Lightspeed interview question

How do you go about optimizing a sql query?