John Deere interview question

Sql query to join tables