HCLTech interview question

Difficult Queries from DBMS