select getorcreate_country(make_standard_name('uk'), 'gb');
select getorcreate_country(make_standard_name('united states'), 'us');
select count(*) from (select getorcreate_country(make_standard_name(country_code), country_code) from country_name where country_code is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:af'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:af']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:ar'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:ar']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:br'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:br']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:ca'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:ca']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:cs'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:cs']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:de'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:de']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:en'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:en']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:es'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:es']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:et'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:et']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:eu'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:eu']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:fa'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:fa']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:fi'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:fi']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:fr'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:fr']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:gl'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:gl']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:hr'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:hr']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:hu'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:hu']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:ia'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:ia']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:is'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:is']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:it'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:it']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:ja'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:ja']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:mk'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:mk']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:nl'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:nl']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:no'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:no']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:pl'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:pl']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:ps'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:ps']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:pt'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:pt']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:ru'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:ru']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:sk'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:sk']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:sv'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:sv']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:uk'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:uk']) is not null) as x;
select count(*) from (select getorcreate_country(make_standard_name(get_name_by_language(country_name.name,ARRAY['name:vi'])), country_code) from country_name where get_name_by_language(country_name.name, ARRAY['name:vi']) is not null) as x;
