Glovo Interview Question

How can you optimize a Query?