Baxter interview question

They have asked some SQL queries