Pergunta de entrevista da empresa ZS Associates

Different SQL queries and their theory.