Countries

Countries with core reference data: names, capital, region, currency, calling code, internet domain, population, area, coordinates and flag. Keyed by the ISO 3166-1 alpha-2 code, e.g. CZ, US, DE. Contains information from the mledoze/countries database (https://github.com/mledoze/countries), made available under the Open Database License (ODbL); population from Wikidata (CC0).

In a model it is global.countries, and each row is identified by its Country. Country is also a global attribute: pick it from the Global Attributes block of a property's type picker to give your own column the same values and labels without joining to the rest of the dataset.

Properties

Name Type Description
Country Id ISO 3166-1 alpha-2 code (uppercase), e.g. CZ, US, DE.
ISO 3 Attribute ISO 3166-1 alpha-3 code, e.g. CZE, USA, DEU.
Numeric Code Attribute ISO 3166-1 numeric code.
Capital Attribute Primary capital city.
Region Attribute High-level region (e.g. Europe, Asia).
Subregion Attribute Subregion within the region (e.g. Northern Europe).
Continent Attribute Two-letter continent code (AF, AN, AS, EU, NA, OC, SA).
Currency Reference to Currencies Primary currency, as the ISO 4217 three-letter code. Joins to global.currencies for its name, symbol and decimal places.
Currency Symbol Attribute Currency symbol, e.g. €, $. Redundant with global.currencies.symbol once currency is resolved; kept for callers that read the flat countries row without following the reference.
Calling Code Attribute International dialing code, e.g. +420.
TLD Attribute Country-code top-level domain, e.g. .cz.
Primary Language Reference to Languages Primary official language as a single value, ISO 639-2/T three-letter code. Joins to global.languages for English name, native name, and RTL flag. Use it when one language per country is what the question needs; use officialLanguages when a country's several official languages all matter (Switzerland has four, South Africa twelve).
Official Languages Set of global attributes Language Every language with official status at national level, as ISO 639 codes. A multi-value property: segmenting by it gives one segment per language while counting the country once, and a filter matches any member, so a filter on fra matches Belgium, Canada, Switzerland and France alike. The codes are the ones global.languages is keyed by. Languages official only in one region, sign languages and languages without an ISO 639-2/3 code are not listed. Blank where no national official language is recorded — Uruguay, whose Spanish is customary rather than declared, is the notable case. Source: Wikidata (CC0).
Flag Attribute Emoji flag.
EU Member Attribute EU Member for the current EU member states, Not EU Member for every other country.
UN Member Attribute UN Member for the current UN member states, Not UN Member for every other country.
Population Measure Estimated population.
Area (km²) Measure Total area in square kilometers.
Latitude Measure Country centroid latitude, decimal degrees, 6 decimal places.
Longitude Measure Country centroid longitude, decimal degrees, 6 decimal places.

Example records

Five real records, one column per property. An empty cell is a value that is absent — left empty, never filled with a zero or a placeholder.

Country ISO 3 Numeric Code Capital Region Subregion Continent Currency Currency Symbol Calling Code TLD Primary Language Official Languages Flag EU Member UN Member Population Area (km²) Latitude Longitude
AD AND 020 Andorra la Vella Europe Southern Europe EU EUR € +376 .ad cat cat 🇦🇩 Not EU Member UN Member 89752 468 42.500000 1.500000
AE ARE 784 Abu Dhabi Asia Western Asia AS AED د.إ +971 .ae ara ara 🇦🇪 Not EU Member UN Member 9890400 83600 24.000000 54.000000
AG ATG 028 Saint John's Americas Caribbean NA XCD $ +1268 .ag eng eng, spa 🇦🇬 Not EU Member UN Member 101489 442 17.050000 -61.800000
AQ ATA 010 empty Antarctic empty AN empty empty empty .aq empty empty 🇦🇶 Not EU Member Not UN Member 5000 14000000 -90.000000 0.000000
XK UNK empty Pristina Europe Southeast Europe EU EUR € +383 .xk sqi sqi, srp 🇽🇰 Not EU Member Not UN Member 1586659 10908 42.666667 21.166667

Linked datasets

See also

← Codes and StandardsCountry Statistics →