Pergunta de entrevista da empresa Cognizant

Sql Query based on schema diagram and transactions.