I would probably use window function:
select
name, population, population
from
country
order by
abs(population - avg(population) over())
limit 1
Or cross-joined countries with global average:
select
name, population, population
from
country
cross join (select avg(population) gac from country) gac
order by
abs(population - gac.gac)
limit 1