Naviga Interview Question

How you can optimize a query