Apple interview question

How would you optimize SQL queries.