Naviga interview question

How you can optimize a query