Infosys interview question

Lot of sql queries