Appventurez interview question

some SQL Queries