Pergunta de entrevista da empresa Deel

How would you optimize a SQL query?