Pergunta de entrevista da empresa Kuehne+Nagel

How to approach a system with inefficient database queries.