XYZ interview question

sql based , coding round , sql queries,