Aon interview question

Few questions related to SQL and logical reasoning