Apple Interview Question

How would you optimize SQL queries.