JK Tech interview question

Different queries in sql