Deel Interview Question

How would you optimize a SQL query?