Versatiletech interview question

Basic queries of sql