Deskpro interview question

How do you optimise SQL queries?