Capgemini Engineering interview question

Overall about testing and SQL queries