Exusia interview question

sql queries based on joins