HashTag Labs interview question

Basic sql queries having 1-2