Baxter Interview Question

They have asked some SQL queries