Anonymous interview question

SQL queries and perform different operations