Pregunta de entrevista de Zendesk

How would you optimise a slow SQL query?