Pregunta de entrevista de Deel

How would you optimize a SQL query?