Вы можете использовать string_agg () :
select name, surname,
string_agg(PossibleAges, ', ') within group (order by PossibleAges) as PossibleAges
from table t
group by name, surname;
Для более старой версии вы можете использовать xml подход:
select name, surname,
stuff(( select concat(', ', t1.PossibleAges)
from table t1
where t1.name = t.name and t1.surname = t.surname
for xml path('')
), 1, 1, ''
) as PossibleAges
from (select distinct name, surname from table t) t;