Nagarro interview question

answer about the sql queries m