United Airlines interview question

Join these tables to show data.