1. SELECT
    2. *
    3. FROM
    4. employees
    5. ORDER BY
    6. tenure
    7. ), average_salaries AS (
    8. SELECT
    9. country,
    10. AVG(salary) AS average_country_salary
    11. FROM
    12. salaries
    13. GROUP BY
    14. )
    15. SELECT
    16. newest_employees.name,
    17. newest_employees.salary,
    18. average_salaries.average_country_salary
    19. FROM
    20. newest_employees