Pergunta de entrevista da empresa BIS Safety Software

How would you optimize a query