EBdesk interview question

Questions mostly related to db query