DataSturdy interview question

Task on SQL queries and on joins