{
"cells": [
{
"cell_type": "markdown",
"id": "024c6c11",
"metadata": {},
"source": [
"# Don't Copy The Seal\n",
"# or\n",
"# A Quick Look at the CIA World Factbook\n",
"\n",
"The CIA World Factbook is an almanac-style document that \"provides basic intelligence on the history, people, government, economy, energy, geography, environment, communications, transportation, military, terrorism, and transnational issues for 266 world entities\" (1). It was first made available publicly in 1971 and has been online since 1994 (2). For it's purpose, it is a very thorough document. There are some notable entries like [the World](https://en.wikipedia.org/wiki/Earth), five oceans, and some [miscellaneous locations](https://en.wikipedia.org/wiki/Akrotiri_(prehistoric_city)). Perhaps unsurprisingly, because of the nature of the agency that writes it, there is some controversy over entries for disputed locations. Factual errors, such as [population discrepancies](https://www.npr.org/sections/publiceditor/2010/06/02/127349281/cia-gets-numbers-wrong-on-jewish-settlers) have also been found (3).\n",
"\n",
"This notebook will use SQLite to take a quick look at a dataset for the entire document.\n",
"\n",
"One last note, while the source material and information are in the public domain and downloadable, don't make a copy of the official seal of the CIA without permission! That is prohibited by U.S. federal law—specifically, the Central Intelligence Agency Act of 1949 [(50 U.S.C. § 403m)](https://www.govinfo.gov/app/details/USCODE-2011-title50/USCODE-2011-title50-chap15-subchapI-sec403-4). ;)\n",
"\n",
"## Let's get started!"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "ea2ce774",
"metadata": {},
"outputs": [],
"source": [
"%%capture\n",
"%load_ext sql\n",
"%sql sqlite:///factbook.db"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "a4c812fc",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"
\n",
" \n",
" type | \n",
" name | \n",
" tbl_name | \n",
" rootpage | \n",
" sql | \n",
"
\n",
" \n",
" table | \n",
" sqlite_sequence | \n",
" sqlite_sequence | \n",
" 3 | \n",
" CREATE TABLE sqlite_sequence(name,seq) | \n",
"
\n",
" \n",
" table | \n",
" facts | \n",
" facts | \n",
" 47 | \n",
" CREATE TABLE "facts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(255) NOT NULL, "name" varchar(255) NOT NULL, "area" integer, "area_land" integer, "area_water" integer, "population" integer, "population_growth" float, "birth_rate" float, "death_rate" float, "migration_rate" float) | \n",
"
\n",
"
"
],
"text/plain": [
"[('table', 'sqlite_sequence', 'sqlite_sequence', 3, 'CREATE TABLE sqlite_sequence(name,seq)'),\n",
" ('table', 'facts', 'facts', 47, 'CREATE TABLE \"facts\" (\"id\" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, \"code\" varchar(255) NOT NULL, \"name\" varchar(255) NOT NULL, \"area\" integer, \"a ... (4 characters truncated) ... land\" integer, \"area_water\" integer, \"population\" integer, \"population_growth\" float, \"birth_rate\" float, \"death_rate\" float, \"migration_rate\" float)')]"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM sqlite_master\n",
" WHERE type='table';"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "63250395",
"metadata": {
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 1 | \n",
" af | \n",
" Afghanistan | \n",
" 652230 | \n",
" 652230 | \n",
" 0 | \n",
" 32564342 | \n",
" 2.32 | \n",
" 38.57 | \n",
" 13.89 | \n",
" 1.51 | \n",
"
\n",
" \n",
" 2 | \n",
" al | \n",
" Albania | \n",
" 28748 | \n",
" 27398 | \n",
" 1350 | \n",
" 3029278 | \n",
" 0.3 | \n",
" 12.92 | \n",
" 6.58 | \n",
" 3.3 | \n",
"
\n",
" \n",
" 3 | \n",
" ag | \n",
" Algeria | \n",
" 2381741 | \n",
" 2381741 | \n",
" 0 | \n",
" 39542166 | \n",
" 1.84 | \n",
" 23.67 | \n",
" 4.31 | \n",
" 0.92 | \n",
"
\n",
" \n",
" 4 | \n",
" an | \n",
" Andorra | \n",
" 468 | \n",
" 468 | \n",
" 0 | \n",
" 85580 | \n",
" 0.12 | \n",
" 8.13 | \n",
" 6.96 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 5 | \n",
" ao | \n",
" Angola | \n",
" 1246700 | \n",
" 1246700 | \n",
" 0 | \n",
" 19625353 | \n",
" 2.78 | \n",
" 38.78 | \n",
" 11.49 | \n",
" 0.46 | \n",
"
\n",
"
"
],
"text/plain": [
"[(1, 'af', 'Afghanistan', 652230, 652230, 0, 32564342, 2.32, 38.57, 13.89, 1.51),\n",
" (2, 'al', 'Albania', 28748, 27398, 1350, 3029278, 0.3, 12.92, 6.58, 3.3),\n",
" (3, 'ag', 'Algeria', 2381741, 2381741, 0, 39542166, 1.84, 23.67, 4.31, 0.92),\n",
" (4, 'an', 'Andorra', 468, 468, 0, 85580, 0.12, 8.13, 6.96, 0.0),\n",
" (5, 'ao', 'Angola', 1246700, 1246700, 0, 19625353, 2.78, 38.78, 11.49, 0.46)]"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" LIMIT 5;"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "0ada7a6d",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" COUNT (*) | \n",
"
\n",
" \n",
" 261 | \n",
"
\n",
"
"
],
"text/plain": [
"[(261,)]"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"-- row count\n",
"SELECT COUNT (*)\n",
" FROM facts;"
]
},
{
"cell_type": "markdown",
"id": "1b1cc3c3",
"metadata": {},
"source": [
"**File Info** \n",
"The file opens fine. There are 261 rows and 11 columns with pretty straightforward column titles. It would be helpful to know the units for area and how the rates are calculated."
]
},
{
"cell_type": "markdown",
"id": "12b26f88",
"metadata": {},
"source": [
"## Demographics\n",
"Just some basics."
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "8769aad8",
"metadata": {
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" MIN(population) | \n",
" MAX(population) | \n",
" MIN(population_growth) | \n",
" MAX(population_growth) | \n",
"
\n",
" \n",
" 0 | \n",
" 7256490011 | \n",
" 0.0 | \n",
" 4.02 | \n",
"
\n",
"
"
],
"text/plain": [
"[(0, 7256490011, 0.0, 4.02)]"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT MIN(population), MAX(population), MIN(population_growth), MAX(population_growth)\n",
" FROM facts;"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "fc5f3690",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 250 | \n",
" ay | \n",
" Antarctica | \n",
" None | \n",
" 280000 | \n",
" None | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
"
"
],
"text/plain": [
"[(250, 'ay', 'Antarctica', None, 280000, None, 0, None, None, None, None)]"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" WHERE population = (SELECT MIN(population)\n",
" FROM facts);"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "33109a64",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 238 | \n",
" pc | \n",
" Pitcairn Islands | \n",
" 47 | \n",
" 47 | \n",
" 0 | \n",
" 48 | \n",
" 0.0 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 250 | \n",
" ay | \n",
" Antarctica | \n",
" None | \n",
" 280000 | \n",
" None | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
"
"
],
"text/plain": [
"[(238, 'pc', 'Pitcairn Islands', 47, 47, 0, 48, 0.0, None, None, None),\n",
" (250, 'ay', 'Antarctica', None, 280000, None, 0, None, None, None, None)]"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" WHERE population < 100\n",
" LIMIT 10;"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "ed995406",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
"
"
],
"text/plain": [
"[]"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" WHERE population = 'None'\n",
" LIMIT 50;"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "af2ff359",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 198 | \n",
" at | \n",
" Ashmore and Cartier Islands | \n",
" 5 | \n",
" 5 | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 201 | \n",
" cr | \n",
" Coral Sea Islands | \n",
" 3 | \n",
" 3 | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 202 | \n",
" hm | \n",
" Heard Island and McDonald Islands | \n",
" 412 | \n",
" 412 | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 208 | \n",
" ip | \n",
" Clipperton Island | \n",
" 6 | \n",
" 6 | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 210 | \n",
" fs | \n",
" French Southern and Antarctic Lands | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 222 | \n",
" bv | \n",
" Bouvet Island | \n",
" 49 | \n",
" 49 | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 223 | \n",
" jn | \n",
" Jan Mayen | \n",
" 377 | \n",
" 377 | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 228 | \n",
" io | \n",
" British Indian Ocean Territory | \n",
" 54400 | \n",
" 60 | \n",
" 54340 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 240 | \n",
" sx | \n",
" South Georgia and South Sandwich Islands | \n",
" 3903 | \n",
" 3903 | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 244 | \n",
" bq | \n",
" Navassa Island | \n",
" 5 | \n",
" 5 | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 248 | \n",
" wq | \n",
" Wake Island | \n",
" 6 | \n",
" 6 | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 249 | \n",
" um | \n",
" United States Pacific Island Wildlife Refuges | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 252 | \n",
" pf | \n",
" Paracel Islands | \n",
" 7 | \n",
" 7 | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 253 | \n",
" pg | \n",
" Spratly Islands | \n",
" 5 | \n",
" 5 | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 256 | \n",
" xq | \n",
" Arctic Ocean | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 257 | \n",
" zh | \n",
" Atlantic Ocean | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 258 | \n",
" xo | \n",
" Indian Ocean | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 259 | \n",
" zn | \n",
" Pacific Ocean | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 260 | \n",
" oo | \n",
" Southern Ocean | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 250 | \n",
" ay | \n",
" Antarctica | \n",
" None | \n",
" 280000 | \n",
" None | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 238 | \n",
" pc | \n",
" Pitcairn Islands | \n",
" 47 | \n",
" 47 | \n",
" 0 | \n",
" 48 | \n",
" 0.0 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 200 | \n",
" ck | \n",
" Cocos (Keeling) Islands | \n",
" 14 | \n",
" 14 | \n",
" 0 | \n",
" 596 | \n",
" 0.0 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 190 | \n",
" vt | \n",
" Holy See (Vatican City) | \n",
" 0 | \n",
" 0 | \n",
" 0 | \n",
" 842 | \n",
" 0.0 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 220 | \n",
" ne | \n",
" Niue | \n",
" 260 | \n",
" 260 | \n",
" 0 | \n",
" 1190 | \n",
" 0.03 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 221 | \n",
" tl | \n",
" Tokelau | \n",
" 12 | \n",
" 12 | \n",
" 0 | \n",
" 1337 | \n",
" 0.01 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 199 | \n",
" kt | \n",
" Christmas Island | \n",
" 135 | \n",
" 135 | \n",
" 0 | \n",
" 1530 | \n",
" 1.11 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 224 | \n",
" sv | \n",
" Svalbard | \n",
" 62045 | \n",
" 62045 | \n",
" 0 | \n",
" 1872 | \n",
" 0.03 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 203 | \n",
" nf | \n",
" Norfolk Island | \n",
" 36 | \n",
" 36 | \n",
" 0 | \n",
" 2210 | \n",
" 0.01 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 232 | \n",
" fk | \n",
" Falkland Islands (Islas Malvinas) | \n",
" 12173 | \n",
" 12173 | \n",
" 0 | \n",
" 3361 | \n",
" 0.01 | \n",
" 10.9 | \n",
" 4.9 | \n",
" None | \n",
"
\n",
" \n",
" 237 | \n",
" mh | \n",
" Montserrat | \n",
" 102 | \n",
" 102 | \n",
" 0 | \n",
" 5241 | \n",
" 0.5 | \n",
" 11.26 | \n",
" 6.3 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 214 | \n",
" sb | \n",
" Saint Pierre and Miquelon | \n",
" 242 | \n",
" 242 | \n",
" 0 | \n",
" 5657 | \n",
" 1.08 | \n",
" 7.42 | \n",
" 9.72 | \n",
" 8.49 | \n",
"
\n",
" \n",
" 212 | \n",
" tb | \n",
" Saint Barthelemy | \n",
" None | \n",
" None | \n",
" None | \n",
" 7237 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 239 | \n",
" sh | \n",
" Saint Helena, Ascension, and Tristan da Cunha | \n",
" 308 | \n",
" 122 | \n",
" 0 | \n",
" 7795 | \n",
" 0.24 | \n",
" 9.88 | \n",
" 7.44 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 123 | \n",
" nr | \n",
" Nauru | \n",
" 21 | \n",
" 21 | \n",
" 0 | \n",
" 9540 | \n",
" 0.55 | \n",
" 24.95 | \n",
" 5.87 | \n",
" 13.63 | \n",
"
\n",
" \n",
" 219 | \n",
" cw | \n",
" Cook Islands | \n",
" 236 | \n",
" 236 | \n",
" 0 | \n",
" 9838 | \n",
" 2.95 | \n",
" 14.33 | \n",
" 8.03 | \n",
" None | \n",
"
\n",
" \n",
" 181 | \n",
" tv | \n",
" Tuvalu | \n",
" 26 | \n",
" 26 | \n",
" 0 | \n",
" 10869 | \n",
" 0.82 | \n",
" 23.74 | \n",
" 8.74 | \n",
" 6.81 | \n",
"
\n",
" \n",
" 215 | \n",
" wf | \n",
" Wallis and Futuna | \n",
" 142 | \n",
" 142 | \n",
" 0 | \n",
" 15613 | \n",
" 0.33 | \n",
" 13.45 | \n",
" 5.06 | \n",
" 5.06 | \n",
"
\n",
" \n",
" 225 | \n",
" ax | \n",
" Akrotiri | \n",
" 123 | \n",
" None | \n",
" None | \n",
" 15700 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 231 | \n",
" dx | \n",
" Dhekelia | \n",
" 130 | \n",
" None | \n",
" None | \n",
" 15700 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 226 | \n",
" av | \n",
" Anguilla | \n",
" 91 | \n",
" 91 | \n",
" 0 | \n",
" 16418 | \n",
" 2.03 | \n",
" 12.67 | \n",
" 4.57 | \n",
" 12.18 | \n",
"
\n",
" \n",
" 133 | \n",
" ps | \n",
" Palau | \n",
" 459 | \n",
" 459 | \n",
" 0 | \n",
" 21265 | \n",
" 0.38 | \n",
" 11.05 | \n",
" 7.99 | \n",
" 0.71 | \n",
"
\n",
" \n",
" 233 | \n",
" gi | \n",
" Gibraltar | \n",
" 6 | \n",
" 6 | \n",
" 0 | \n",
" 29258 | \n",
" 0.24 | \n",
" 14.08 | \n",
" 8.37 | \n",
" 3.28 | \n",
"
\n",
" \n",
" 117 | \n",
" mn | \n",
" Monaco | \n",
" 2 | \n",
" 2 | \n",
" 0 | \n",
" 30535 | \n",
" 0.12 | \n",
" 6.65 | \n",
" 9.24 | \n",
" 3.83 | \n",
"
\n",
" \n",
" 213 | \n",
" rn | \n",
" Saint Martin | \n",
" 54 | \n",
" 54 | \n",
" None | \n",
" 31754 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 149 | \n",
" sm | \n",
" San Marino | \n",
" 61 | \n",
" 61 | \n",
" 0 | \n",
" 33020 | \n",
" 0.82 | \n",
" 8.63 | \n",
" 8.45 | \n",
" 8.03 | \n",
"
\n",
"
"
],
"text/plain": [
"[(198, 'at', 'Ashmore and Cartier Islands', 5, 5, 0, None, None, None, None, None),\n",
" (201, 'cr', 'Coral Sea Islands', 3, 3, 0, None, None, None, None, None),\n",
" (202, 'hm', 'Heard Island and McDonald Islands', 412, 412, 0, None, None, None, None, None),\n",
" (208, 'ip', 'Clipperton Island', 6, 6, 0, None, None, None, None, None),\n",
" (210, 'fs', 'French Southern and Antarctic Lands', None, None, None, None, None, None, None, None),\n",
" (222, 'bv', 'Bouvet Island', 49, 49, 0, None, None, None, None, None),\n",
" (223, 'jn', 'Jan Mayen', 377, 377, 0, None, None, None, None, None),\n",
" (228, 'io', 'British Indian Ocean Territory', 54400, 60, 54340, None, None, None, None, None),\n",
" (240, 'sx', 'South Georgia and South Sandwich Islands', 3903, 3903, 0, None, None, None, None, None),\n",
" (244, 'bq', 'Navassa Island', 5, 5, 0, None, None, None, None, None),\n",
" (248, 'wq', 'Wake Island', 6, 6, 0, None, None, None, None, None),\n",
" (249, 'um', 'United States Pacific Island Wildlife Refuges', None, None, None, None, None, None, None, None),\n",
" (252, 'pf', 'Paracel Islands', 7, 7, 0, None, None, None, None, None),\n",
" (253, 'pg', 'Spratly Islands', 5, 5, 0, None, None, None, None, None),\n",
" (256, 'xq', 'Arctic Ocean', None, None, None, None, None, None, None, None),\n",
" (257, 'zh', 'Atlantic Ocean', None, None, None, None, None, None, None, None),\n",
" (258, 'xo', 'Indian Ocean', None, None, None, None, None, None, None, None),\n",
" (259, 'zn', 'Pacific Ocean', None, None, None, None, None, None, None, None),\n",
" (260, 'oo', 'Southern Ocean', None, None, None, None, None, None, None, None),\n",
" (250, 'ay', 'Antarctica', None, 280000, None, 0, None, None, None, None),\n",
" (238, 'pc', 'Pitcairn Islands', 47, 47, 0, 48, 0.0, None, None, None),\n",
" (200, 'ck', 'Cocos (Keeling) Islands', 14, 14, 0, 596, 0.0, None, None, None),\n",
" (190, 'vt', 'Holy See (Vatican City)', 0, 0, 0, 842, 0.0, None, None, None),\n",
" (220, 'ne', 'Niue', 260, 260, 0, 1190, 0.03, None, None, None),\n",
" (221, 'tl', 'Tokelau', 12, 12, 0, 1337, 0.01, None, None, None),\n",
" (199, 'kt', 'Christmas Island', 135, 135, 0, 1530, 1.11, None, None, None),\n",
" (224, 'sv', 'Svalbard', 62045, 62045, 0, 1872, 0.03, None, None, None),\n",
" (203, 'nf', 'Norfolk Island', 36, 36, 0, 2210, 0.01, None, None, None),\n",
" (232, 'fk', 'Falkland Islands (Islas Malvinas)', 12173, 12173, 0, 3361, 0.01, 10.9, 4.9, None),\n",
" (237, 'mh', 'Montserrat', 102, 102, 0, 5241, 0.5, 11.26, 6.3, 0.0),\n",
" (214, 'sb', 'Saint Pierre and Miquelon', 242, 242, 0, 5657, 1.08, 7.42, 9.72, 8.49),\n",
" (212, 'tb', 'Saint Barthelemy', None, None, None, 7237, None, None, None, None),\n",
" (239, 'sh', 'Saint Helena, Ascension, and Tristan da Cunha', 308, 122, 0, 7795, 0.24, 9.88, 7.44, 0.0),\n",
" (123, 'nr', 'Nauru', 21, 21, 0, 9540, 0.55, 24.95, 5.87, 13.63),\n",
" (219, 'cw', 'Cook Islands', 236, 236, 0, 9838, 2.95, 14.33, 8.03, None),\n",
" (181, 'tv', 'Tuvalu', 26, 26, 0, 10869, 0.82, 23.74, 8.74, 6.81),\n",
" (215, 'wf', 'Wallis and Futuna', 142, 142, 0, 15613, 0.33, 13.45, 5.06, 5.06),\n",
" (225, 'ax', 'Akrotiri', 123, None, None, 15700, None, None, None, None),\n",
" (231, 'dx', 'Dhekelia', 130, None, None, 15700, None, None, None, None),\n",
" (226, 'av', 'Anguilla', 91, 91, 0, 16418, 2.03, 12.67, 4.57, 12.18),\n",
" (133, 'ps', 'Palau', 459, 459, 0, 21265, 0.38, 11.05, 7.99, 0.71),\n",
" (233, 'gi', 'Gibraltar', 6, 6, 0, 29258, 0.24, 14.08, 8.37, 3.28),\n",
" (117, 'mn', 'Monaco', 2, 2, 0, 30535, 0.12, 6.65, 9.24, 3.83),\n",
" (213, 'rn', 'Saint Martin', 54, 54, None, 31754, None, None, None, None),\n",
" (149, 'sm', 'San Marino', 61, 61, 0, 33020, 0.82, 8.63, 8.45, 8.03)]"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" ORDER BY population\n",
" LIMIT 45;"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "346da5fc",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 261 | \n",
" xx | \n",
" World | \n",
" None | \n",
" None | \n",
" None | \n",
" 7256490011 | \n",
" 1.08 | \n",
" 18.6 | \n",
" 7.8 | \n",
" None | \n",
"
\n",
"
"
],
"text/plain": [
"[(261, 'xx', 'World', None, None, None, 7256490011, 1.08, 18.6, 7.8, None)]"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" WHERE population = (SELECT MAX(population)\n",
" FROM facts);"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "e13245fc",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 261 | \n",
" xx | \n",
" World | \n",
" None | \n",
" None | \n",
" None | \n",
" 7256490011 | \n",
" 1.08 | \n",
" 18.6 | \n",
" 7.8 | \n",
" None | \n",
"
\n",
" \n",
" 37 | \n",
" ch | \n",
" China | \n",
" 9596960 | \n",
" 9326410 | \n",
" 270550 | \n",
" 1367485388 | \n",
" 0.45 | \n",
" 12.49 | \n",
" 7.53 | \n",
" 0.44 | \n",
"
\n",
" \n",
" 77 | \n",
" in | \n",
" India | \n",
" 3287263 | \n",
" 2973193 | \n",
" 314070 | \n",
" 1251695584 | \n",
" 1.22 | \n",
" 19.55 | \n",
" 7.32 | \n",
" 0.04 | \n",
"
\n",
" \n",
" 197 | \n",
" ee | \n",
" European Union | \n",
" 4324782 | \n",
" None | \n",
" None | \n",
" 513949445 | \n",
" 0.25 | \n",
" 10.2 | \n",
" 10.2 | \n",
" 2.5 | \n",
"
\n",
" \n",
" 186 | \n",
" us | \n",
" United States | \n",
" 9826675 | \n",
" 9161966 | \n",
" 664709 | \n",
" 321368864 | \n",
" 0.78 | \n",
" 12.49 | \n",
" 8.15 | \n",
" 3.86 | \n",
"
\n",
"
"
],
"text/plain": [
"[(261, 'xx', 'World', None, None, None, 7256490011, 1.08, 18.6, 7.8, None),\n",
" (37, 'ch', 'China', 9596960, 9326410, 270550, 1367485388, 0.45, 12.49, 7.53, 0.44),\n",
" (77, 'in', 'India', 3287263, 2973193, 314070, 1251695584, 1.22, 19.55, 7.32, 0.04),\n",
" (197, 'ee', 'European Union', 4324782, None, None, 513949445, 0.25, 10.2, 10.2, 2.5),\n",
" (186, 'us', 'United States', 9826675, 9161966, 664709, 321368864, 0.78, 12.49, 8.15, 3.86)]"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" ORDER BY population DESC\n",
" LIMIT 5;"
]
},
{
"cell_type": "markdown",
"id": "c2b73951",
"metadata": {},
"source": [
"**Outliers** \n",
"The only location with a `population` of 0 is [Antarctica](https://en.wikipedia.org/wiki/Antarctica). There are a number of places with a value of `None` in this column, *but I can't seem to capture that value in a query*. The only row with a true outlier on the high end is `World`."
]
},
{
"cell_type": "markdown",
"id": "217f3609",
"metadata": {},
"source": [
" "
]
},
{
"cell_type": "markdown",
"id": "fae802b5",
"metadata": {},
"source": [
"## Population growth\n",
"Minimums and maximums."
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "e623ae80",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" MIN(population) | \n",
" MAX(population) | \n",
" MIN(population_growth) | \n",
" MAX(population_growth) | \n",
"
\n",
" \n",
" 48 | \n",
" 1367485388 | \n",
" 0.0 | \n",
" 4.02 | \n",
"
\n",
"
"
],
"text/plain": [
"[(48, 1367485388, 0.0, 4.02)]"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT MIN(population), MAX(population), MIN(population_growth), MAX(population_growth)\n",
" FROM facts\n",
" WHERE population != 0 AND name != 'World';"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "45168155",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 238 | \n",
" pc | \n",
" Pitcairn Islands | \n",
" 47 | \n",
" 47 | \n",
" 0 | \n",
" 48 | \n",
" 0.0 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 250 | \n",
" ay | \n",
" Antarctica | \n",
" None | \n",
" 280000 | \n",
" None | \n",
" 0 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
"
"
],
"text/plain": [
"[(238, 'pc', 'Pitcairn Islands', 47, 47, 0, 48, 0.0, None, None, None),\n",
" (250, 'ay', 'Antarctica', None, 280000, None, 0, None, None, None, None)]"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" WHERE population < 100;"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "e4378467",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 37 | \n",
" ch | \n",
" China | \n",
" 9596960 | \n",
" 9326410 | \n",
" 270550 | \n",
" 1367485388 | \n",
" 0.45 | \n",
" 12.49 | \n",
" 7.53 | \n",
" 0.44 | \n",
"
\n",
" \n",
" 77 | \n",
" in | \n",
" India | \n",
" 3287263 | \n",
" 2973193 | \n",
" 314070 | \n",
" 1251695584 | \n",
" 1.22 | \n",
" 19.55 | \n",
" 7.32 | \n",
" 0.04 | \n",
"
\n",
" \n",
" 261 | \n",
" xx | \n",
" World | \n",
" None | \n",
" None | \n",
" None | \n",
" 7256490011 | \n",
" 1.08 | \n",
" 18.6 | \n",
" 7.8 | \n",
" None | \n",
"
\n",
"
"
],
"text/plain": [
"[(37, 'ch', 'China', 9596960, 9326410, 270550, 1367485388, 0.45, 12.49, 7.53, 0.44),\n",
" (77, 'in', 'India', 3287263, 2973193, 314070, 1251695584, 1.22, 19.55, 7.32, 0.04),\n",
" (261, 'xx', 'World', None, None, None, 7256490011, 1.08, 18.6, 7.8, None)]"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" WHERE population > 1000000000;"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "93e333c3",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 190 | \n",
" vt | \n",
" Holy See (Vatican City) | \n",
" 0 | \n",
" 0 | \n",
" 0 | \n",
" 842 | \n",
" 0.0 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 200 | \n",
" ck | \n",
" Cocos (Keeling) Islands | \n",
" 14 | \n",
" 14 | \n",
" 0 | \n",
" 596 | \n",
" 0.0 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 207 | \n",
" gl | \n",
" Greenland | \n",
" 2166086 | \n",
" 2166086 | \n",
" None | \n",
" 57733 | \n",
" 0.0 | \n",
" 14.48 | \n",
" 8.49 | \n",
" 5.98 | \n",
"
\n",
" \n",
" 238 | \n",
" pc | \n",
" Pitcairn Islands | \n",
" 47 | \n",
" 47 | \n",
" 0 | \n",
" 48 | \n",
" 0.0 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
"
"
],
"text/plain": [
"[(190, 'vt', 'Holy See (Vatican City)', 0, 0, 0, 842, 0.0, None, None, None),\n",
" (200, 'ck', 'Cocos (Keeling) Islands', 14, 14, 0, 596, 0.0, None, None, None),\n",
" (207, 'gl', 'Greenland', 2166086, 2166086, None, 57733, 0.0, 14.48, 8.49, 5.98),\n",
" (238, 'pc', 'Pitcairn Islands', 47, 47, 0, 48, 0.0, None, None, None)]"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" WHERE population_growth = (SELECT MIN(population_growth)\n",
" FROM facts);"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "d4267bd3",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 162 | \n",
" od | \n",
" South Sudan | \n",
" 644329 | \n",
" None | \n",
" None | \n",
" 12042910 | \n",
" 4.02 | \n",
" 36.91 | \n",
" 8.18 | \n",
" 11.47 | \n",
"
\n",
"
"
],
"text/plain": [
"[(162, 'od', 'South Sudan', 644329, None, None, 12042910, 4.02, 36.91, 8.18, 11.47)]"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" WHERE population_growth = (SELECT MAX(population_growth)\n",
" FROM facts);"
]
},
{
"cell_type": "code",
"execution_count": 17,
"id": "8536aaa8",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 162 | \n",
" od | \n",
" South Sudan | \n",
" 644329 | \n",
" None | \n",
" None | \n",
" 12042910 | \n",
" 4.02 | \n",
" 36.91 | \n",
" 8.18 | \n",
" 11.47 | \n",
"
\n",
" \n",
" 106 | \n",
" mi | \n",
" Malawi | \n",
" 118484 | \n",
" 94080 | \n",
" 24404 | \n",
" 17964697 | \n",
" 3.32 | \n",
" 41.56 | \n",
" 8.41 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 29 | \n",
" by | \n",
" Burundi | \n",
" 27830 | \n",
" 25680 | \n",
" 2150 | \n",
" 10742276 | \n",
" 3.28 | \n",
" 42.01 | \n",
" 9.27 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 128 | \n",
" ng | \n",
" Niger | \n",
" None | \n",
" 1266700 | \n",
" 300 | \n",
" 18045729 | \n",
" 3.25 | \n",
" 45.45 | \n",
" 12.42 | \n",
" 0.56 | \n",
"
\n",
" \n",
" 182 | \n",
" ug | \n",
" Uganda | \n",
" 241038 | \n",
" 197100 | \n",
" 43938 | \n",
" 37101745 | \n",
" 3.24 | \n",
" 43.79 | \n",
" 10.69 | \n",
" 0.74 | \n",
"
\n",
" \n",
" 141 | \n",
" qa | \n",
" Qatar | \n",
" 11586 | \n",
" 11586 | \n",
" 0 | \n",
" 2194817 | \n",
" 3.07 | \n",
" 9.84 | \n",
" 1.53 | \n",
" 22.39 | \n",
"
\n",
" \n",
" 27 | \n",
" uv | \n",
" Burkina Faso | \n",
" 274200 | \n",
" 273800 | \n",
" 400 | \n",
" 18931686 | \n",
" 3.03 | \n",
" 42.03 | \n",
" 11.72 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 109 | \n",
" ml | \n",
" Mali | \n",
" 1240192 | \n",
" 1220190 | \n",
" 20002 | \n",
" 16955536 | \n",
" 2.98 | \n",
" 44.99 | \n",
" 12.89 | \n",
" 2.26 | \n",
"
\n",
" \n",
" 219 | \n",
" cw | \n",
" Cook Islands | \n",
" 236 | \n",
" 236 | \n",
" 0 | \n",
" 9838 | \n",
" 2.95 | \n",
" 14.33 | \n",
" 8.03 | \n",
" None | \n",
"
\n",
" \n",
" 80 | \n",
" iz | \n",
" Iraq | \n",
" 438317 | \n",
" 437367 | \n",
" 950 | \n",
" 37056169 | \n",
" 2.93 | \n",
" 31.45 | \n",
" 3.77 | \n",
" 1.62 | \n",
"
\n",
" \n",
" 58 | \n",
" et | \n",
" Ethiopia | \n",
" 1104300 | \n",
" None | \n",
" 104300 | \n",
" 99465819 | \n",
" 2.89 | \n",
" 37.27 | \n",
" 8.19 | \n",
" 0.22 | \n",
"
\n",
" \n",
" 194 | \n",
" za | \n",
" Zambia | \n",
" 752618 | \n",
" 743398 | \n",
" 9220 | \n",
" 15066266 | \n",
" 2.88 | \n",
" 42.13 | \n",
" 12.67 | \n",
" 0.68 | \n",
"
\n",
" \n",
" 255 | \n",
" wi | \n",
" Western Sahara | \n",
" 266000 | \n",
" 266000 | \n",
" 0 | \n",
" 570866 | \n",
" 2.82 | \n",
" 30.24 | \n",
" 8.34 | \n",
" None | \n",
"
\n",
" \n",
" 251 | \n",
" gz | \n",
" Gaza Strip | \n",
" 360 | \n",
" 360 | \n",
" 0 | \n",
" 1869055 | \n",
" 2.81 | \n",
" 31.11 | \n",
" 3.04 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 172 | \n",
" tz | \n",
" Tanzania | \n",
" 947300 | \n",
" 885800 | \n",
" 61500 | \n",
" 51045882 | \n",
" 2.79 | \n",
" 36.39 | \n",
" 8.0 | \n",
" 0.54 | \n",
"
\n",
" \n",
" 5 | \n",
" ao | \n",
" Angola | \n",
" 1246700 | \n",
" 1246700 | \n",
" 0 | \n",
" 19625353 | \n",
" 2.78 | \n",
" 38.78 | \n",
" 11.49 | \n",
" 0.46 | \n",
"
\n",
" \n",
" 19 | \n",
" bn | \n",
" Benin | \n",
" 112622 | \n",
" 110622 | \n",
" 2000 | \n",
" 10448647 | \n",
" 2.78 | \n",
" 36.02 | \n",
" 8.21 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 175 | \n",
" to | \n",
" Togo | \n",
" 56785 | \n",
" 54385 | \n",
" 2400 | \n",
" 7552318 | \n",
" 2.69 | \n",
" 34.13 | \n",
" 7.26 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 70 | \n",
" gv | \n",
" Guinea | \n",
" 245857 | \n",
" 245717 | \n",
" 140 | \n",
" 11780162 | \n",
" 2.63 | \n",
" 35.74 | \n",
" 9.46 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 31 | \n",
" cm | \n",
" Cameroon | \n",
" 475440 | \n",
" 472710 | \n",
" 2730 | \n",
" 23739218 | \n",
" 2.59 | \n",
" 36.17 | \n",
" 10.11 | \n",
" 0.15 | \n",
"
\n",
" \n",
" 105 | \n",
" ma | \n",
" Madagascar | \n",
" 587041 | \n",
" 581540 | \n",
" 5501 | \n",
" 23812681 | \n",
" 2.58 | \n",
" 32.61 | \n",
" 6.81 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 184 | \n",
" ae | \n",
" United Arab Emirates | \n",
" 83600 | \n",
" 83600 | \n",
" 0 | \n",
" 5779760 | \n",
" 2.58 | \n",
" 15.43 | \n",
" 1.97 | \n",
" 12.36 | \n",
"
\n",
" \n",
" 144 | \n",
" rw | \n",
" Rwanda | \n",
" 26338 | \n",
" 24668 | \n",
" 1670 | \n",
" 12661733 | \n",
" 2.56 | \n",
" 33.75 | \n",
" 8.96 | \n",
" 0.85 | \n",
"
\n",
" \n",
" 55 | \n",
" ek | \n",
" Equatorial Guinea | \n",
" 28051 | \n",
" 28051 | \n",
" 0 | \n",
" 740743 | \n",
" 2.51 | \n",
" 33.31 | \n",
" 8.19 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 99 | \n",
" li | \n",
" Liberia | \n",
" 111369 | \n",
" 96320 | \n",
" 15049 | \n",
" 4195666 | \n",
" 2.47 | \n",
" 34.41 | \n",
" 9.69 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 193 | \n",
" ym | \n",
" Yemen | \n",
" 527968 | \n",
" 527968 | \n",
" 0 | \n",
" 26737317 | \n",
" 2.47 | \n",
" 29.98 | \n",
" 6.28 | \n",
" 1.0 | \n",
"
\n",
" \n",
" 40 | \n",
" cg | \n",
" Congo, Democratic Republic of the | \n",
" 2344858 | \n",
" 2267048 | \n",
" 77810 | \n",
" 79375136 | \n",
" 2.45 | \n",
" 34.88 | \n",
" 10.07 | \n",
" 0.27 | \n",
"
\n",
" \n",
" 121 | \n",
" mz | \n",
" Mozambique | \n",
" 799380 | \n",
" 786380 | \n",
" 13000 | \n",
" 25303113 | \n",
" 2.45 | \n",
" 38.58 | \n",
" 12.1 | \n",
" 1.98 | \n",
"
\n",
" \n",
" 129 | \n",
" ni | \n",
" Nigeria | \n",
" 923768 | \n",
" 910768 | \n",
" 13000 | \n",
" 181562056 | \n",
" 2.45 | \n",
" 37.64 | \n",
" 12.9 | \n",
" 0.22 | \n",
"
\n",
" \n",
" 152 | \n",
" sg | \n",
" Senegal | \n",
" 196722 | \n",
" 192530 | \n",
" 4192 | \n",
" 13975834 | \n",
" 2.45 | \n",
" 34.52 | \n",
" 8.46 | \n",
" 1.59 | \n",
"
\n",
" \n",
" 174 | \n",
" tt | \n",
" Timor-Leste | \n",
" 14874 | \n",
" 14874 | \n",
" 0 | \n",
" 1231116 | \n",
" 2.42 | \n",
" 34.16 | \n",
" 6.1 | \n",
" 3.86 | \n",
"
\n",
" \n",
" 13 | \n",
" ba | \n",
" Bahrain | \n",
" 760 | \n",
" 760 | \n",
" 0 | \n",
" 1346613 | \n",
" 2.41 | \n",
" 13.66 | \n",
" 2.69 | \n",
" 13.09 | \n",
"
\n",
" \n",
" 155 | \n",
" sl | \n",
" Sierra Leone | \n",
" 71740 | \n",
" 71620 | \n",
" 120 | \n",
" 5879098 | \n",
" 2.35 | \n",
" 37.03 | \n",
" 10.81 | \n",
" 2.77 | \n",
"
\n",
" \n",
" 1 | \n",
" af | \n",
" Afghanistan | \n",
" 652230 | \n",
" 652230 | \n",
" 0 | \n",
" 32564342 | \n",
" 2.32 | \n",
" 38.57 | \n",
" 13.89 | \n",
" 1.51 | \n",
"
\n",
" \n",
" 229 | \n",
" vi | \n",
" British Virgin Islands | \n",
" 151 | \n",
" 151 | \n",
" 0 | \n",
" 33454 | \n",
" 2.32 | \n",
" 10.91 | \n",
" 4.99 | \n",
" 17.28 | \n",
"
\n",
" \n",
" 241 | \n",
" tk | \n",
" Turks and Caicos Islands | \n",
" 948 | \n",
" 948 | \n",
" 0 | \n",
" 50280 | \n",
" 2.3 | \n",
" 16.13 | \n",
" 3.1 | \n",
" 9.94 | \n",
"
\n",
" \n",
" 56 | \n",
" er | \n",
" Eritrea | \n",
" 117600 | \n",
" 101000 | \n",
" 16600 | \n",
" 6527689 | \n",
" 2.25 | \n",
" 30.0 | \n",
" 7.52 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 100 | \n",
" ly | \n",
" Libya | \n",
" 1759540 | \n",
" 1759540 | \n",
" 0 | \n",
" 6411776 | \n",
" 2.23 | \n",
" 18.03 | \n",
" 3.58 | \n",
" 7.8 | \n",
"
\n",
" \n",
" 112 | \n",
" mr | \n",
" Mauritania | \n",
" 1030700 | \n",
" 1030700 | \n",
" 0 | \n",
" 3596702 | \n",
" 2.23 | \n",
" 31.34 | \n",
" 8.2 | \n",
" 0.83 | \n",
"
\n",
" \n",
" 195 | \n",
" zi | \n",
" Zimbabwe | \n",
" 390757 | \n",
" 386847 | \n",
" 3910 | \n",
" 14229541 | \n",
" 2.21 | \n",
" 32.26 | \n",
" 10.13 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 49 | \n",
" dj | \n",
" Djibouti | \n",
" 23200 | \n",
" 23180 | \n",
" 20 | \n",
" 828324 | \n",
" 2.2 | \n",
" 23.65 | \n",
" 7.73 | \n",
" 6.06 | \n",
"
\n",
" \n",
" 66 | \n",
" gh | \n",
" Ghana | \n",
" 238533 | \n",
" 227533 | \n",
" 11000 | \n",
" 26327649 | \n",
" 2.18 | \n",
" 31.09 | \n",
" 7.22 | \n",
" 2.02 | \n",
"
\n",
" \n",
" 245 | \n",
" cq | \n",
" Northern Mariana Islands | \n",
" 464 | \n",
" 464 | \n",
" 0 | \n",
" 52344 | \n",
" 2.18 | \n",
" 18.32 | \n",
" 3.71 | \n",
" 7.16 | \n",
"
\n",
" \n",
" 63 | \n",
" ga | \n",
" Gambia, The | \n",
" 11300 | \n",
" 10120 | \n",
" 1180 | \n",
" 1967709 | \n",
" 2.16 | \n",
" 30.86 | \n",
" 7.15 | \n",
" 2.12 | \n",
"
\n",
" \n",
" 34 | \n",
" ct | \n",
" Central African Republic | \n",
" 622984 | \n",
" 622984 | \n",
" 0 | \n",
" 5391539 | \n",
" 2.13 | \n",
" 35.08 | \n",
" 13.8 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 103 | \n",
" lu | \n",
" Luxembourg | \n",
" 2586 | \n",
" 2586 | \n",
" 0 | \n",
" 570252 | \n",
" 2.13 | \n",
" 11.37 | \n",
" 7.24 | \n",
" 17.16 | \n",
"
\n",
" \n",
" 230 | \n",
" cj | \n",
" Cayman Islands | \n",
" 264 | \n",
" 264 | \n",
" 0 | \n",
" 56092 | \n",
" 2.1 | \n",
" 12.11 | \n",
" 5.53 | \n",
" 14.4 | \n",
"
\n",
" \n",
" 131 | \n",
" mu | \n",
" Oman | \n",
" 309500 | \n",
" 309500 | \n",
" 0 | \n",
" 3286936 | \n",
" 2.07 | \n",
" 24.44 | \n",
" 3.36 | \n",
" 0.43 | \n",
"
\n",
" \n",
" 226 | \n",
" av | \n",
" Anguilla | \n",
" 91 | \n",
" 91 | \n",
" 0 | \n",
" 16418 | \n",
" 2.03 | \n",
" 12.67 | \n",
" 4.57 | \n",
" 12.18 | \n",
"
\n",
" \n",
" 159 | \n",
" bp | \n",
" Solomon Islands | \n",
" 28896 | \n",
" 27986 | \n",
" 910 | \n",
" 622469 | \n",
" 2.02 | \n",
" 25.77 | \n",
" 3.85 | \n",
" 1.75 | \n",
"
\n",
" \n",
" 41 | \n",
" cf | \n",
" Congo, Republic of the | \n",
" 342000 | \n",
" 341500 | \n",
" 500 | \n",
" 4755097 | \n",
" 2.0 | \n",
" 35.85 | \n",
" 10.0 | \n",
" 5.9 | \n",
"
\n",
" \n",
" 189 | \n",
" nh | \n",
" Vanuatu | \n",
" 12189 | \n",
" 12189 | \n",
" 0 | \n",
" 272264 | \n",
" 1.95 | \n",
" 25.04 | \n",
" 4.09 | \n",
" 1.47 | \n",
"
\n",
" \n",
" 254 | \n",
" we | \n",
" West Bank | \n",
" 5860 | \n",
" 5640 | \n",
" 220 | \n",
" 2785366 | \n",
" 1.95 | \n",
" 22.99 | \n",
" 3.5 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 62 | \n",
" gb | \n",
" Gabon | \n",
" 267667 | \n",
" 257667 | \n",
" 10000 | \n",
" 1705336 | \n",
" 1.93 | \n",
" 34.49 | \n",
" 13.12 | \n",
" 2.03 | \n",
"
\n",
" \n",
" 88 | \n",
" ke | \n",
" Kenya | \n",
" 580367 | \n",
" 569140 | \n",
" 11227 | \n",
" 45925301 | \n",
" 1.93 | \n",
" 26.4 | \n",
" 6.89 | \n",
" 0.22 | \n",
"
\n",
" \n",
" 43 | \n",
" iv | \n",
" Cote d'Ivoire | \n",
" 322463 | \n",
" 318003 | \n",
" 4460 | \n",
" 23295302 | \n",
" 1.91 | \n",
" 28.67 | \n",
" 9.55 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 71 | \n",
" pu | \n",
" Guinea-Bissau | \n",
" 36125 | \n",
" 28120 | \n",
" 8005 | \n",
" 1726170 | \n",
" 1.91 | \n",
" 33.38 | \n",
" 14.33 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 35 | \n",
" cd | \n",
" Chad | \n",
" None | \n",
" 1259200 | \n",
" 24800 | \n",
" 11631456 | \n",
" 1.89 | \n",
" 36.6 | \n",
" 14.28 | \n",
" 3.45 | \n",
"
\n",
" \n",
" 156 | \n",
" sn | \n",
" Singapore | \n",
" 697 | \n",
" 687 | \n",
" 10 | \n",
" 5674472 | \n",
" 1.89 | \n",
" 8.27 | \n",
" 3.43 | \n",
" 14.05 | \n",
"
\n",
" \n",
" 18 | \n",
" bh | \n",
" Belize | \n",
" 22966 | \n",
" 22806 | \n",
" 160 | \n",
" 347369 | \n",
" 1.87 | \n",
" 24.68 | \n",
" 5.97 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 3 | \n",
" ag | \n",
" Algeria | \n",
" 2381741 | \n",
" 2381741 | \n",
" 0 | \n",
" 39542166 | \n",
" 1.84 | \n",
" 23.67 | \n",
" 4.31 | \n",
" 0.92 | \n",
"
\n",
" \n",
" 150 | \n",
" tp | \n",
" Sao Tome and Principe | \n",
" 964 | \n",
" 964 | \n",
" 0 | \n",
" 194006 | \n",
" 1.84 | \n",
" 34.23 | \n",
" 7.24 | \n",
" 8.63 | \n",
"
\n",
" \n",
" 160 | \n",
" so | \n",
" Somalia | \n",
" 637657 | \n",
" 627337 | \n",
" 10320 | \n",
" 10616380 | \n",
" 1.83 | \n",
" 40.45 | \n",
" 13.62 | \n",
" 8.49 | \n",
"
\n",
" \n",
" 69 | \n",
" gt | \n",
" Guatemala | \n",
" 108889 | \n",
" 107159 | \n",
" 1730 | \n",
" 14918999 | \n",
" 1.82 | \n",
" 24.89 | \n",
" 4.77 | \n",
" 1.97 | \n",
"
\n",
" \n",
" 53 | \n",
" eg | \n",
" Egypt | \n",
" 1001450 | \n",
" 995450 | \n",
" 6000 | \n",
" 88487396 | \n",
" 1.79 | \n",
" 22.9 | \n",
" 4.77 | \n",
" 0.19 | \n",
"
\n",
" \n",
" 124 | \n",
" np | \n",
" Nepal | \n",
" 147181 | \n",
" 143351 | \n",
" 3830 | \n",
" 31551305 | \n",
" 1.79 | \n",
" 20.64 | \n",
" 6.56 | \n",
" 3.86 | \n",
"
\n",
" \n",
" 135 | \n",
" pp | \n",
" Papua New Guinea | \n",
" 462840 | \n",
" 452860 | \n",
" 9980 | \n",
" 6672429 | \n",
" 1.78 | \n",
" 24.38 | \n",
" 6.53 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 39 | \n",
" cn | \n",
" Comoros | \n",
" 2235 | \n",
" 2235 | \n",
" 0 | \n",
" 780971 | \n",
" 1.77 | \n",
" 27.84 | \n",
" 7.57 | \n",
" 2.53 | \n",
"
\n",
" \n",
" 165 | \n",
" su | \n",
" Sudan | \n",
" 1861484 | \n",
" None | \n",
" None | \n",
" 36108853 | \n",
" 1.72 | \n",
" 29.19 | \n",
" 7.66 | \n",
" 4.29 | \n",
"
\n",
" \n",
" 171 | \n",
" ti | \n",
" Tajikistan | \n",
" 144100 | \n",
" 141510 | \n",
" 2590 | \n",
" 8191958 | \n",
" 1.71 | \n",
" 24.38 | \n",
" 6.18 | \n",
" 1.15 | \n",
"
\n",
" \n",
" 74 | \n",
" ho | \n",
" Honduras | \n",
" 112090 | \n",
" 111890 | \n",
" 200 | \n",
" 8746673 | \n",
" 1.68 | \n",
" 23.14 | \n",
" 5.17 | \n",
" 1.16 | \n",
"
\n",
" \n",
" 111 | \n",
" rm | \n",
" Marshall Islands | \n",
" 181 | \n",
" 181 | \n",
" 0 | \n",
" 72191 | \n",
" 1.66 | \n",
" 25.6 | \n",
" 4.21 | \n",
" 4.83 | \n",
"
\n",
" \n",
" 25 | \n",
" bx | \n",
" Brunei | \n",
" 5765 | \n",
" 5265 | \n",
" 500 | \n",
" 429646 | \n",
" 1.62 | \n",
" 17.32 | \n",
" 3.52 | \n",
" 2.43 | \n",
"
\n",
" \n",
" 93 | \n",
" ku | \n",
" Kuwait | \n",
" 17818 | \n",
" 17818 | \n",
" 0 | \n",
" 2788534 | \n",
" 1.62 | \n",
" 19.91 | \n",
" 2.18 | \n",
" 1.58 | \n",
"
\n",
" \n",
" 138 | \n",
" rp | \n",
" Philippines | \n",
" 300000 | \n",
" 298170 | \n",
" 1830 | \n",
" 100998376 | \n",
" 1.61 | \n",
" 24.27 | \n",
" 6.11 | \n",
" 2.09 | \n",
"
\n",
" \n",
" 14 | \n",
" bg | \n",
" Bangladesh | \n",
" 148460 | \n",
" 130170 | \n",
" 18290 | \n",
" 168957745 | \n",
" 1.6 | \n",
" 21.14 | \n",
" 5.61 | \n",
" 0.46 | \n",
"
\n",
" \n",
" 30 | \n",
" cb | \n",
" Cambodia | \n",
" 181035 | \n",
" 176515 | \n",
" 4520 | \n",
" 15708756 | \n",
" 1.58 | \n",
" 23.83 | \n",
" 7.68 | \n",
" 0.32 | \n",
"
\n",
" \n",
" 21 | \n",
" bl | \n",
" Bolivia | \n",
" 1098581 | \n",
" 1083301 | \n",
" 15280 | \n",
" 10800882 | \n",
" 1.56 | \n",
" 22.76 | \n",
" 6.52 | \n",
" 0.62 | \n",
"
\n",
" \n",
" 82 | \n",
" is | \n",
" Israel | \n",
" 20770 | \n",
" 20330 | \n",
" 440 | \n",
" 8049314 | \n",
" 1.56 | \n",
" 18.48 | \n",
" 5.15 | \n",
" 2.24 | \n",
"
\n",
" \n",
" 95 | \n",
" la | \n",
" Laos | \n",
" 236800 | \n",
" 230800 | \n",
" 6000 | \n",
" 6911544 | \n",
" 1.55 | \n",
" 24.25 | \n",
" 7.63 | \n",
" 1.09 | \n",
"
\n",
" \n",
" 218 | \n",
" sk | \n",
" Sint Maarten | \n",
" 34 | \n",
" 34 | \n",
" 0 | \n",
" 39689 | \n",
" 1.51 | \n",
" 13.0 | \n",
" 4.51 | \n",
" 6.63 | \n",
"
\n",
" \n",
" 132 | \n",
" pk | \n",
" Pakistan | \n",
" 796095 | \n",
" 770875 | \n",
" 25220 | \n",
" 199085847 | \n",
" 1.46 | \n",
" 22.58 | \n",
" 6.49 | \n",
" 1.54 | \n",
"
\n",
" \n",
" 151 | \n",
" sa | \n",
" Saudi Arabia | \n",
" 2149690 | \n",
" 2149690 | \n",
" 0 | \n",
" 27752316 | \n",
" 1.46 | \n",
" 18.51 | \n",
" 3.33 | \n",
" 0.55 | \n",
"
\n",
" \n",
" 107 | \n",
" my | \n",
" Malaysia | \n",
" 329847 | \n",
" 328657 | \n",
" 1190 | \n",
" 30513848 | \n",
" 1.44 | \n",
" 19.71 | \n",
" 5.03 | \n",
" 0.33 | \n",
"
\n",
" \n",
" 46 | \n",
" cy | \n",
" Cyprus | \n",
" 9251 | \n",
" 9241 | \n",
" 10 | \n",
" 1189197 | \n",
" 1.43 | \n",
" 11.41 | \n",
" 6.62 | \n",
" 9.48 | \n",
"
\n",
" \n",
" 191 | \n",
" ve | \n",
" Venezuela | \n",
" 912050 | \n",
" 882050 | \n",
" 30000 | \n",
" 29275460 | \n",
" 1.39 | \n",
" 19.16 | \n",
" 5.31 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 211 | \n",
" nc | \n",
" New Caledonia | \n",
" 18575 | \n",
" 18275 | \n",
" 300 | \n",
" 271615 | \n",
" 1.38 | \n",
" 15.33 | \n",
" 5.52 | \n",
" 4.01 | \n",
"
\n",
" \n",
" 33 | \n",
" cv | \n",
" Cabo Verde | \n",
" 4033 | \n",
" 4033 | \n",
" 0 | \n",
" 545993 | \n",
" 1.36 | \n",
" 20.33 | \n",
" 6.11 | \n",
" 0.63 | \n",
"
\n",
" \n",
" 52 | \n",
" ec | \n",
" Ecuador | \n",
" 283561 | \n",
" 276841 | \n",
" 6720 | \n",
" 15868396 | \n",
" 1.35 | \n",
" 18.51 | \n",
" 5.06 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 161 | \n",
" sf | \n",
" South Africa | \n",
" 1219090 | \n",
" 1214470 | \n",
" 4620 | \n",
" 53675563 | \n",
" 1.33 | \n",
" 20.75 | \n",
" 9.91 | \n",
" 2.42 | \n",
"
\n",
" \n",
" 216 | \n",
" aa | \n",
" Aruba | \n",
" 180 | \n",
" 180 | \n",
" 0 | \n",
" 112162 | \n",
" 1.33 | \n",
" 12.56 | \n",
" 8.18 | \n",
" 8.92 | \n",
"
\n",
" \n",
" 134 | \n",
" pm | \n",
" Panama | \n",
" 75420 | \n",
" 74340 | \n",
" 1080 | \n",
" 3657024 | \n",
" 1.32 | \n",
" 18.32 | \n",
" 4.81 | \n",
" 0.28 | \n",
"
\n",
" \n",
" 118 | \n",
" mg | \n",
" Mongolia | \n",
" 1564116 | \n",
" 1553556 | \n",
" 10560 | \n",
" 2992908 | \n",
" 1.31 | \n",
" 20.25 | \n",
" 6.35 | \n",
" 0.84 | \n",
"
\n",
" \n",
" 179 | \n",
" tu | \n",
" Turkey | \n",
" 783562 | \n",
" 769632 | \n",
" 13930 | \n",
" 79414269 | \n",
" 1.26 | \n",
" 16.33 | \n",
" 5.88 | \n",
" 2.16 | \n",
"
\n",
" \n",
" 81 | \n",
" ei | \n",
" Ireland | \n",
" 70273 | \n",
" 68883 | \n",
" 1390 | \n",
" 4892305 | \n",
" 1.25 | \n",
" 14.84 | \n",
" 6.48 | \n",
" 4.09 | \n",
"
\n",
" \n",
" 6 | \n",
" ac | \n",
" Antigua and Barbuda | \n",
" 442 | \n",
" 442 | \n",
" 0 | \n",
" 92436 | \n",
" 1.24 | \n",
" 15.85 | \n",
" 5.69 | \n",
" 2.21 | \n",
"
\n",
" \n",
" 51 | \n",
" dr | \n",
" Dominican Republic | \n",
" 48670 | \n",
" 48320 | \n",
" 350 | \n",
" 10478756 | \n",
" 1.23 | \n",
" 18.73 | \n",
" 4.55 | \n",
" 1.91 | \n",
"
\n",
" \n",
" 42 | \n",
" cs | \n",
" Costa Rica | \n",
" 51100 | \n",
" 51060 | \n",
" 40 | \n",
" 4814144 | \n",
" 1.22 | \n",
" 15.91 | \n",
" 4.55 | \n",
" 0.83 | \n",
"
\n",
" \n",
" 77 | \n",
" in | \n",
" India | \n",
" 3287263 | \n",
" 2973193 | \n",
" 314070 | \n",
" 1251695584 | \n",
" 1.22 | \n",
" 19.55 | \n",
" 7.32 | \n",
" 0.04 | \n",
"
\n",
" \n",
" 23 | \n",
" bc | \n",
" Botswana | \n",
" 581730 | \n",
" 566730 | \n",
" 15000 | \n",
" 2182719 | \n",
" 1.21 | \n",
" 20.96 | \n",
" 13.39 | \n",
" 4.56 | \n",
"
\n",
" \n",
" 76 | \n",
" ic | \n",
" Iceland | \n",
" 103000 | \n",
" 100250 | \n",
" 2750 | \n",
" 331918 | \n",
" 1.21 | \n",
" 13.91 | \n",
" 6.28 | \n",
" 4.43 | \n",
"
\n",
"
"
],
"text/plain": [
"[(162, 'od', 'South Sudan', 644329, None, None, 12042910, 4.02, 36.91, 8.18, 11.47),\n",
" (106, 'mi', 'Malawi', 118484, 94080, 24404, 17964697, 3.32, 41.56, 8.41, 0.0),\n",
" (29, 'by', 'Burundi', 27830, 25680, 2150, 10742276, 3.28, 42.01, 9.27, 0.0),\n",
" (128, 'ng', 'Niger', None, 1266700, 300, 18045729, 3.25, 45.45, 12.42, 0.56),\n",
" (182, 'ug', 'Uganda', 241038, 197100, 43938, 37101745, 3.24, 43.79, 10.69, 0.74),\n",
" (141, 'qa', 'Qatar', 11586, 11586, 0, 2194817, 3.07, 9.84, 1.53, 22.39),\n",
" (27, 'uv', 'Burkina Faso', 274200, 273800, 400, 18931686, 3.03, 42.03, 11.72, 0.0),\n",
" (109, 'ml', 'Mali', 1240192, 1220190, 20002, 16955536, 2.98, 44.99, 12.89, 2.26),\n",
" (219, 'cw', 'Cook Islands', 236, 236, 0, 9838, 2.95, 14.33, 8.03, None),\n",
" (80, 'iz', 'Iraq', 438317, 437367, 950, 37056169, 2.93, 31.45, 3.77, 1.62),\n",
" (58, 'et', 'Ethiopia', 1104300, None, 104300, 99465819, 2.89, 37.27, 8.19, 0.22),\n",
" (194, 'za', 'Zambia', 752618, 743398, 9220, 15066266, 2.88, 42.13, 12.67, 0.68),\n",
" (255, 'wi', 'Western Sahara', 266000, 266000, 0, 570866, 2.82, 30.24, 8.34, None),\n",
" (251, 'gz', 'Gaza Strip', 360, 360, 0, 1869055, 2.81, 31.11, 3.04, 0.0),\n",
" (172, 'tz', 'Tanzania', 947300, 885800, 61500, 51045882, 2.79, 36.39, 8.0, 0.54),\n",
" (5, 'ao', 'Angola', 1246700, 1246700, 0, 19625353, 2.78, 38.78, 11.49, 0.46),\n",
" (19, 'bn', 'Benin', 112622, 110622, 2000, 10448647, 2.78, 36.02, 8.21, 0.0),\n",
" (175, 'to', 'Togo', 56785, 54385, 2400, 7552318, 2.69, 34.13, 7.26, 0.0),\n",
" (70, 'gv', 'Guinea', 245857, 245717, 140, 11780162, 2.63, 35.74, 9.46, 0.0),\n",
" (31, 'cm', 'Cameroon', 475440, 472710, 2730, 23739218, 2.59, 36.17, 10.11, 0.15),\n",
" (105, 'ma', 'Madagascar', 587041, 581540, 5501, 23812681, 2.58, 32.61, 6.81, 0.0),\n",
" (184, 'ae', 'United Arab Emirates', 83600, 83600, 0, 5779760, 2.58, 15.43, 1.97, 12.36),\n",
" (144, 'rw', 'Rwanda', 26338, 24668, 1670, 12661733, 2.56, 33.75, 8.96, 0.85),\n",
" (55, 'ek', 'Equatorial Guinea', 28051, 28051, 0, 740743, 2.51, 33.31, 8.19, 0.0),\n",
" (99, 'li', 'Liberia', 111369, 96320, 15049, 4195666, 2.47, 34.41, 9.69, 0.0),\n",
" (193, 'ym', 'Yemen', 527968, 527968, 0, 26737317, 2.47, 29.98, 6.28, 1.0),\n",
" (40, 'cg', 'Congo, Democratic Republic of the', 2344858, 2267048, 77810, 79375136, 2.45, 34.88, 10.07, 0.27),\n",
" (121, 'mz', 'Mozambique', 799380, 786380, 13000, 25303113, 2.45, 38.58, 12.1, 1.98),\n",
" (129, 'ni', 'Nigeria', 923768, 910768, 13000, 181562056, 2.45, 37.64, 12.9, 0.22),\n",
" (152, 'sg', 'Senegal', 196722, 192530, 4192, 13975834, 2.45, 34.52, 8.46, 1.59),\n",
" (174, 'tt', 'Timor-Leste', 14874, 14874, 0, 1231116, 2.42, 34.16, 6.1, 3.86),\n",
" (13, 'ba', 'Bahrain', 760, 760, 0, 1346613, 2.41, 13.66, 2.69, 13.09),\n",
" (155, 'sl', 'Sierra Leone', 71740, 71620, 120, 5879098, 2.35, 37.03, 10.81, 2.77),\n",
" (1, 'af', 'Afghanistan', 652230, 652230, 0, 32564342, 2.32, 38.57, 13.89, 1.51),\n",
" (229, 'vi', 'British Virgin Islands', 151, 151, 0, 33454, 2.32, 10.91, 4.99, 17.28),\n",
" (241, 'tk', 'Turks and Caicos Islands', 948, 948, 0, 50280, 2.3, 16.13, 3.1, 9.94),\n",
" (56, 'er', 'Eritrea', 117600, 101000, 16600, 6527689, 2.25, 30.0, 7.52, 0.0),\n",
" (100, 'ly', 'Libya', 1759540, 1759540, 0, 6411776, 2.23, 18.03, 3.58, 7.8),\n",
" (112, 'mr', 'Mauritania', 1030700, 1030700, 0, 3596702, 2.23, 31.34, 8.2, 0.83),\n",
" (195, 'zi', 'Zimbabwe', 390757, 386847, 3910, 14229541, 2.21, 32.26, 10.13, 0.0),\n",
" (49, 'dj', 'Djibouti', 23200, 23180, 20, 828324, 2.2, 23.65, 7.73, 6.06),\n",
" (66, 'gh', 'Ghana', 238533, 227533, 11000, 26327649, 2.18, 31.09, 7.22, 2.02),\n",
" (245, 'cq', 'Northern Mariana Islands', 464, 464, 0, 52344, 2.18, 18.32, 3.71, 7.16),\n",
" (63, 'ga', 'Gambia, The', 11300, 10120, 1180, 1967709, 2.16, 30.86, 7.15, 2.12),\n",
" (34, 'ct', 'Central African Republic', 622984, 622984, 0, 5391539, 2.13, 35.08, 13.8, 0.0),\n",
" (103, 'lu', 'Luxembourg', 2586, 2586, 0, 570252, 2.13, 11.37, 7.24, 17.16),\n",
" (230, 'cj', 'Cayman Islands', 264, 264, 0, 56092, 2.1, 12.11, 5.53, 14.4),\n",
" (131, 'mu', 'Oman', 309500, 309500, 0, 3286936, 2.07, 24.44, 3.36, 0.43),\n",
" (226, 'av', 'Anguilla', 91, 91, 0, 16418, 2.03, 12.67, 4.57, 12.18),\n",
" (159, 'bp', 'Solomon Islands', 28896, 27986, 910, 622469, 2.02, 25.77, 3.85, 1.75),\n",
" (41, 'cf', 'Congo, Republic of the', 342000, 341500, 500, 4755097, 2.0, 35.85, 10.0, 5.9),\n",
" (189, 'nh', 'Vanuatu', 12189, 12189, 0, 272264, 1.95, 25.04, 4.09, 1.47),\n",
" (254, 'we', 'West Bank', 5860, 5640, 220, 2785366, 1.95, 22.99, 3.5, 0.0),\n",
" (62, 'gb', 'Gabon', 267667, 257667, 10000, 1705336, 1.93, 34.49, 13.12, 2.03),\n",
" (88, 'ke', 'Kenya', 580367, 569140, 11227, 45925301, 1.93, 26.4, 6.89, 0.22),\n",
" (43, 'iv', \"Cote d'Ivoire\", 322463, 318003, 4460, 23295302, 1.91, 28.67, 9.55, 0.0),\n",
" (71, 'pu', 'Guinea-Bissau', 36125, 28120, 8005, 1726170, 1.91, 33.38, 14.33, 0.0),\n",
" (35, 'cd', 'Chad', None, 1259200, 24800, 11631456, 1.89, 36.6, 14.28, 3.45),\n",
" (156, 'sn', 'Singapore', 697, 687, 10, 5674472, 1.89, 8.27, 3.43, 14.05),\n",
" (18, 'bh', 'Belize', 22966, 22806, 160, 347369, 1.87, 24.68, 5.97, 0.0),\n",
" (3, 'ag', 'Algeria', 2381741, 2381741, 0, 39542166, 1.84, 23.67, 4.31, 0.92),\n",
" (150, 'tp', 'Sao Tome and Principe', 964, 964, 0, 194006, 1.84, 34.23, 7.24, 8.63),\n",
" (160, 'so', 'Somalia', 637657, 627337, 10320, 10616380, 1.83, 40.45, 13.62, 8.49),\n",
" (69, 'gt', 'Guatemala', 108889, 107159, 1730, 14918999, 1.82, 24.89, 4.77, 1.97),\n",
" (53, 'eg', 'Egypt', 1001450, 995450, 6000, 88487396, 1.79, 22.9, 4.77, 0.19),\n",
" (124, 'np', 'Nepal', 147181, 143351, 3830, 31551305, 1.79, 20.64, 6.56, 3.86),\n",
" (135, 'pp', 'Papua New Guinea', 462840, 452860, 9980, 6672429, 1.78, 24.38, 6.53, 0.0),\n",
" (39, 'cn', 'Comoros', 2235, 2235, 0, 780971, 1.77, 27.84, 7.57, 2.53),\n",
" (165, 'su', 'Sudan', 1861484, None, None, 36108853, 1.72, 29.19, 7.66, 4.29),\n",
" (171, 'ti', 'Tajikistan', 144100, 141510, 2590, 8191958, 1.71, 24.38, 6.18, 1.15),\n",
" (74, 'ho', 'Honduras', 112090, 111890, 200, 8746673, 1.68, 23.14, 5.17, 1.16),\n",
" (111, 'rm', 'Marshall Islands', 181, 181, 0, 72191, 1.66, 25.6, 4.21, 4.83),\n",
" (25, 'bx', 'Brunei', 5765, 5265, 500, 429646, 1.62, 17.32, 3.52, 2.43),\n",
" (93, 'ku', 'Kuwait', 17818, 17818, 0, 2788534, 1.62, 19.91, 2.18, 1.58),\n",
" (138, 'rp', 'Philippines', 300000, 298170, 1830, 100998376, 1.61, 24.27, 6.11, 2.09),\n",
" (14, 'bg', 'Bangladesh', 148460, 130170, 18290, 168957745, 1.6, 21.14, 5.61, 0.46),\n",
" (30, 'cb', 'Cambodia', 181035, 176515, 4520, 15708756, 1.58, 23.83, 7.68, 0.32),\n",
" (21, 'bl', 'Bolivia', 1098581, 1083301, 15280, 10800882, 1.56, 22.76, 6.52, 0.62),\n",
" (82, 'is', 'Israel', 20770, 20330, 440, 8049314, 1.56, 18.48, 5.15, 2.24),\n",
" (95, 'la', 'Laos', 236800, 230800, 6000, 6911544, 1.55, 24.25, 7.63, 1.09),\n",
" (218, 'sk', 'Sint Maarten', 34, 34, 0, 39689, 1.51, 13.0, 4.51, 6.63),\n",
" (132, 'pk', 'Pakistan', 796095, 770875, 25220, 199085847, 1.46, 22.58, 6.49, 1.54),\n",
" (151, 'sa', 'Saudi Arabia', 2149690, 2149690, 0, 27752316, 1.46, 18.51, 3.33, 0.55),\n",
" (107, 'my', 'Malaysia', 329847, 328657, 1190, 30513848, 1.44, 19.71, 5.03, 0.33),\n",
" (46, 'cy', 'Cyprus', 9251, 9241, 10, 1189197, 1.43, 11.41, 6.62, 9.48),\n",
" (191, 've', 'Venezuela', 912050, 882050, 30000, 29275460, 1.39, 19.16, 5.31, 0.0),\n",
" (211, 'nc', 'New Caledonia', 18575, 18275, 300, 271615, 1.38, 15.33, 5.52, 4.01),\n",
" (33, 'cv', 'Cabo Verde', 4033, 4033, 0, 545993, 1.36, 20.33, 6.11, 0.63),\n",
" (52, 'ec', 'Ecuador', 283561, 276841, 6720, 15868396, 1.35, 18.51, 5.06, 0.0),\n",
" (161, 'sf', 'South Africa', 1219090, 1214470, 4620, 53675563, 1.33, 20.75, 9.91, 2.42),\n",
" (216, 'aa', 'Aruba', 180, 180, 0, 112162, 1.33, 12.56, 8.18, 8.92),\n",
" (134, 'pm', 'Panama', 75420, 74340, 1080, 3657024, 1.32, 18.32, 4.81, 0.28),\n",
" (118, 'mg', 'Mongolia', 1564116, 1553556, 10560, 2992908, 1.31, 20.25, 6.35, 0.84),\n",
" (179, 'tu', 'Turkey', 783562, 769632, 13930, 79414269, 1.26, 16.33, 5.88, 2.16),\n",
" (81, 'ei', 'Ireland', 70273, 68883, 1390, 4892305, 1.25, 14.84, 6.48, 4.09),\n",
" (6, 'ac', 'Antigua and Barbuda', 442, 442, 0, 92436, 1.24, 15.85, 5.69, 2.21),\n",
" (51, 'dr', 'Dominican Republic', 48670, 48320, 350, 10478756, 1.23, 18.73, 4.55, 1.91),\n",
" (42, 'cs', 'Costa Rica', 51100, 51060, 40, 4814144, 1.22, 15.91, 4.55, 0.83),\n",
" (77, 'in', 'India', 3287263, 2973193, 314070, 1251695584, 1.22, 19.55, 7.32, 0.04),\n",
" (23, 'bc', 'Botswana', 581730, 566730, 15000, 2182719, 1.21, 20.96, 13.39, 4.56),\n",
" (76, 'ic', 'Iceland', 103000, 100250, 2750, 331918, 1.21, 13.91, 6.28, 4.43)]"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" WHERE population_growth > (SELECT AVG(population_growth)\n",
" FROM facts)\n",
" ORDER BY population_growth DESC;"
]
},
{
"cell_type": "markdown",
"id": "f3147bd5",
"metadata": {},
"source": [
"**Observations** \n",
"The lowest population, other than zero or none, is 48 in the [Pitcairn Islands](https://en.wikipedia.org/wiki/Pitcairn_Islands). The highest population is 1,367,485,388 in [China](https://en.wikipedia.org/wiki/China). [India](https://en.wikipedia.org/wiki/India) also has a population over one billion. The locations with no population growth are [Vatican City](https://en.wikipedia.org/wiki/Vatican_City), [Cocos Island](https://en.wikipedia.org/wiki/Cocos_Island), [Greenland](https://en.wikipedia.org/wiki/Greenland), and the Pitcairn Islands. [South Sudan](https://en.wikipedia.org/wiki/South_Sudan) has the highest population growth. Notably, it is the only place where this value is more than 4. A quick look at other locations with high population growth shows that some places, like [Qatar](https://en.wikipedia.org/wiki/Qatar), increase population primarily through migration rate. *This may be worth further comparison.* "
]
},
{
"cell_type": "markdown",
"id": "3f2833d8",
"metadata": {},
"source": [
" "
]
},
{
"cell_type": "markdown",
"id": "6bd0f59a",
"metadata": {},
"source": [
"## Population density\n",
"Looking at population density two ways. First, using average population and average area (excluding the World and Antarctica) to determine a ratio, then looking at locations that have an above average ratio. Second, selecting locations that meet the double criteria of having above average population and above average area (i.e. skipping the ratio)."
]
},
{
"cell_type": "code",
"execution_count": 18,
"id": "922329c1",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 205 | \n",
" mc | \n",
" Macau | \n",
" 28 | \n",
" 28 | \n",
" 0 | \n",
" 592731 | \n",
" 0.8 | \n",
" 8.88 | \n",
" 4.22 | \n",
" 3.37 | \n",
"
\n",
" \n",
" 117 | \n",
" mn | \n",
" Monaco | \n",
" 2 | \n",
" 2 | \n",
" 0 | \n",
" 30535 | \n",
" 0.12 | \n",
" 6.65 | \n",
" 9.24 | \n",
" 3.83 | \n",
"
\n",
" \n",
" 156 | \n",
" sn | \n",
" Singapore | \n",
" 697 | \n",
" 687 | \n",
" 10 | \n",
" 5674472 | \n",
" 1.89 | \n",
" 8.27 | \n",
" 3.43 | \n",
" 14.05 | \n",
"
\n",
" \n",
" 204 | \n",
" hk | \n",
" Hong Kong | \n",
" 1108 | \n",
" 1073 | \n",
" 35 | \n",
" 7141106 | \n",
" 0.38 | \n",
" 9.23 | \n",
" 7.07 | \n",
" 1.68 | \n",
"
\n",
" \n",
" 251 | \n",
" gz | \n",
" Gaza Strip | \n",
" 360 | \n",
" 360 | \n",
" 0 | \n",
" 1869055 | \n",
" 2.81 | \n",
" 31.11 | \n",
" 3.04 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 233 | \n",
" gi | \n",
" Gibraltar | \n",
" 6 | \n",
" 6 | \n",
" 0 | \n",
" 29258 | \n",
" 0.24 | \n",
" 14.08 | \n",
" 8.37 | \n",
" 3.28 | \n",
"
\n",
" \n",
" 13 | \n",
" ba | \n",
" Bahrain | \n",
" 760 | \n",
" 760 | \n",
" 0 | \n",
" 1346613 | \n",
" 2.41 | \n",
" 13.66 | \n",
" 2.69 | \n",
" 13.09 | \n",
"
\n",
" \n",
" 108 | \n",
" mv | \n",
" Maldives | \n",
" 298 | \n",
" 298 | \n",
" 0 | \n",
" 393253 | \n",
" 0.08 | \n",
" 15.75 | \n",
" 3.89 | \n",
" 12.68 | \n",
"
\n",
" \n",
" 110 | \n",
" mt | \n",
" Malta | \n",
" 316 | \n",
" 316 | \n",
" 0 | \n",
" 413965 | \n",
" 0.31 | \n",
" 10.18 | \n",
" 9.09 | \n",
" 1.98 | \n",
"
\n",
" \n",
" 227 | \n",
" bd | \n",
" Bermuda | \n",
" 54 | \n",
" 54 | \n",
" 0 | \n",
" 70196 | \n",
" 0.5 | \n",
" 11.33 | \n",
" 8.23 | \n",
" 1.88 | \n",
"
\n",
" \n",
" 218 | \n",
" sk | \n",
" Sint Maarten | \n",
" 34 | \n",
" 34 | \n",
" 0 | \n",
" 39689 | \n",
" 1.51 | \n",
" 13.0 | \n",
" 4.51 | \n",
" 6.63 | \n",
"
\n",
" \n",
" 14 | \n",
" bg | \n",
" Bangladesh | \n",
" 148460 | \n",
" 130170 | \n",
" 18290 | \n",
" 168957745 | \n",
" 1.6 | \n",
" 21.14 | \n",
" 5.61 | \n",
" 0.46 | \n",
"
\n",
" \n",
" 234 | \n",
" gk | \n",
" Guernsey | \n",
" 78 | \n",
" 78 | \n",
" 0 | \n",
" 66080 | \n",
" 0.34 | \n",
" 9.84 | \n",
" 8.78 | \n",
" 2.32 | \n",
"
\n",
" \n",
" 235 | \n",
" je | \n",
" Jersey | \n",
" 116 | \n",
" 116 | \n",
" 0 | \n",
" 97294 | \n",
" 0.8 | \n",
" 11.91 | \n",
" 7.68 | \n",
" 3.76 | \n",
"
\n",
" \n",
" 15 | \n",
" bb | \n",
" Barbados | \n",
" 430 | \n",
" 430 | \n",
" 0 | \n",
" 290604 | \n",
" 0.31 | \n",
" 11.87 | \n",
" 8.44 | \n",
" 0.3 | \n",
"
\n",
" \n",
" 113 | \n",
" mp | \n",
" Mauritius | \n",
" 2040 | \n",
" 2030 | \n",
" 10 | \n",
" 1339827 | \n",
" 0.64 | \n",
" 13.29 | \n",
" 6.91 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 196 | \n",
" tw | \n",
" Taiwan | \n",
" 35980 | \n",
" 32260 | \n",
" 3720 | \n",
" 23415126 | \n",
" 0.23 | \n",
" 8.47 | \n",
" 7.11 | \n",
" 0.89 | \n",
"
\n",
" \n",
" 216 | \n",
" aa | \n",
" Aruba | \n",
" 180 | \n",
" 180 | \n",
" 0 | \n",
" 112162 | \n",
" 1.33 | \n",
" 12.56 | \n",
" 8.18 | \n",
" 8.92 | \n",
"
\n",
" \n",
" 97 | \n",
" le | \n",
" Lebanon | \n",
" 10400 | \n",
" 10230 | \n",
" 170 | \n",
" 6184701 | \n",
" 0.86 | \n",
" 14.59 | \n",
" 4.88 | \n",
" 1.1 | \n",
"
\n",
" \n",
" 213 | \n",
" rn | \n",
" Saint Martin | \n",
" 54 | \n",
" 54 | \n",
" None | \n",
" 31754 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 149 | \n",
" sm | \n",
" San Marino | \n",
" 61 | \n",
" 61 | \n",
" 0 | \n",
" 33020 | \n",
" 0.82 | \n",
" 8.63 | \n",
" 8.45 | \n",
" 8.03 | \n",
"
\n",
" \n",
" 91 | \n",
" ks | \n",
" Korea, South | \n",
" 99720 | \n",
" 96920 | \n",
" 2800 | \n",
" 49115196 | \n",
" 0.14 | \n",
" 8.19 | \n",
" 6.75 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 144 | \n",
" rw | \n",
" Rwanda | \n",
" 26338 | \n",
" 24668 | \n",
" 1670 | \n",
" 12661733 | \n",
" 2.56 | \n",
" 33.75 | \n",
" 8.96 | \n",
" 0.85 | \n",
"
\n",
" \n",
" 254 | \n",
" we | \n",
" West Bank | \n",
" 5860 | \n",
" 5640 | \n",
" 220 | \n",
" 2785366 | \n",
" 1.95 | \n",
" 22.99 | \n",
" 3.5 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 123 | \n",
" nr | \n",
" Nauru | \n",
" 21 | \n",
" 21 | \n",
" 0 | \n",
" 9540 | \n",
" 0.55 | \n",
" 24.95 | \n",
" 5.87 | \n",
" 13.63 | \n",
"
\n",
" \n",
" 181 | \n",
" tv | \n",
" Tuvalu | \n",
" 26 | \n",
" 26 | \n",
" 0 | \n",
" 10869 | \n",
" 0.82 | \n",
" 23.74 | \n",
" 8.74 | \n",
" 6.81 | \n",
"
\n",
" \n",
" 125 | \n",
" nl | \n",
" Netherlands | \n",
" 41543 | \n",
" 33893 | \n",
" 7650 | \n",
" 16947904 | \n",
" 0.41 | \n",
" 10.83 | \n",
" 8.66 | \n",
" 1.95 | \n",
"
\n",
" \n",
" 111 | \n",
" rm | \n",
" Marshall Islands | \n",
" 181 | \n",
" 181 | \n",
" 0 | \n",
" 72191 | \n",
" 1.66 | \n",
" 25.6 | \n",
" 4.21 | \n",
" 4.83 | \n",
"
\n",
" \n",
" 82 | \n",
" is | \n",
" Israel | \n",
" 20770 | \n",
" 20330 | \n",
" 440 | \n",
" 8049314 | \n",
" 1.56 | \n",
" 18.48 | \n",
" 5.15 | \n",
" 2.24 | \n",
"
\n",
" \n",
" 29 | \n",
" by | \n",
" Burundi | \n",
" 27830 | \n",
" 25680 | \n",
" 2150 | \n",
" 10742276 | \n",
" 3.28 | \n",
" 42.01 | \n",
" 9.27 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 77 | \n",
" in | \n",
" India | \n",
" 3287263 | \n",
" 2973193 | \n",
" 314070 | \n",
" 1251695584 | \n",
" 1.22 | \n",
" 19.55 | \n",
" 7.32 | \n",
" 0.04 | \n",
"
\n",
" \n",
" 17 | \n",
" be | \n",
" Belgium | \n",
" 30528 | \n",
" 30278 | \n",
" 250 | \n",
" 11323973 | \n",
" 0.76 | \n",
" 11.41 | \n",
" 9.63 | \n",
" 5.87 | \n",
"
\n",
" \n",
" 73 | \n",
" ha | \n",
" Haiti | \n",
" 27750 | \n",
" 27560 | \n",
" 190 | \n",
" 10110019 | \n",
" 1.17 | \n",
" 22.31 | \n",
" 7.83 | \n",
" 2.76 | \n",
"
\n",
" \n",
" 39 | \n",
" cn | \n",
" Comoros | \n",
" 2235 | \n",
" 2235 | \n",
" 0 | \n",
" 780971 | \n",
" 1.77 | \n",
" 27.84 | \n",
" 7.57 | \n",
" 2.53 | \n",
"
\n",
" \n",
" 138 | \n",
" rp | \n",
" Philippines | \n",
" 300000 | \n",
" 298170 | \n",
" 1830 | \n",
" 100998376 | \n",
" 1.61 | \n",
" 24.27 | \n",
" 6.11 | \n",
" 2.09 | \n",
"
\n",
" \n",
" 164 | \n",
" ce | \n",
" Sri Lanka | \n",
" 65610 | \n",
" 64630 | \n",
" 980 | \n",
" 22053488 | \n",
" 0.84 | \n",
" 15.85 | \n",
" 6.11 | \n",
" 1.35 | \n",
"
\n",
" \n",
" 85 | \n",
" ja | \n",
" Japan | \n",
" 377915 | \n",
" 364485 | \n",
" 13430 | \n",
" 126919659 | \n",
" 0.16 | \n",
" 7.93 | \n",
" 9.51 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 217 | \n",
" cc | \n",
" Curacao | \n",
" 444 | \n",
" 444 | \n",
" 0 | \n",
" 148406 | \n",
" 0.43 | \n",
" 13.8 | \n",
" 8.2 | \n",
" 1.4 | \n",
"
\n",
" \n",
" 68 | \n",
" gj | \n",
" Grenada | \n",
" 344 | \n",
" 344 | \n",
" 0 | \n",
" 110694 | \n",
" 0.48 | \n",
" 16.03 | \n",
" 8.08 | \n",
" 3.13 | \n",
"
\n",
" \n",
" 243 | \n",
" gq | \n",
" Guam | \n",
" 544 | \n",
" 544 | \n",
" 0 | \n",
" 161785 | \n",
" 0.54 | \n",
" 16.82 | \n",
" 5.12 | \n",
" 6.34 | \n",
"
\n",
" \n",
" 54 | \n",
" es | \n",
" El Salvador | \n",
" 21041 | \n",
" 20721 | \n",
" 320 | \n",
" 6141350 | \n",
" 0.25 | \n",
" 16.46 | \n",
" 5.69 | \n",
" 8.28 | \n",
"
\n",
" \n",
" 192 | \n",
" vm | \n",
" Vietnam | \n",
" 331210 | \n",
" 310070 | \n",
" 21140 | \n",
" 94348835 | \n",
" 0.97 | \n",
" 15.96 | \n",
" 5.93 | \n",
" 0.3 | \n",
"
\n",
" \n",
" 242 | \n",
" aq | \n",
" American Samoa | \n",
" 199 | \n",
" 199 | \n",
" 0 | \n",
" 54343 | \n",
" 0.3 | \n",
" 22.89 | \n",
" 4.75 | \n",
" 21.13 | \n",
"
\n",
" \n",
" 84 | \n",
" jm | \n",
" Jamaica | \n",
" 10991 | \n",
" 10831 | \n",
" 160 | \n",
" 2950210 | \n",
" 0.68 | \n",
" 18.16 | \n",
" 6.7 | \n",
" 4.66 | \n",
"
\n",
" \n",
" 146 | \n",
" st | \n",
" Saint Lucia | \n",
" 616 | \n",
" 606 | \n",
" 10 | \n",
" 163922 | \n",
" 0.34 | \n",
" 13.7 | \n",
" 7.42 | \n",
" 2.93 | \n",
"
\n",
" \n",
" 147 | \n",
" vc | \n",
" Saint Vincent and the Grenadines | \n",
" 389 | \n",
" 389 | \n",
" 0 | \n",
" 102627 | \n",
" 0.28 | \n",
" 13.57 | \n",
" 7.18 | \n",
" 9.17 | \n",
"
\n",
" \n",
" 185 | \n",
" uk | \n",
" United Kingdom | \n",
" 243610 | \n",
" 241930 | \n",
" 1680 | \n",
" 64088222 | \n",
" 0.54 | \n",
" 12.17 | \n",
" 9.35 | \n",
" 2.54 | \n",
"
\n",
" \n",
" 246 | \n",
" rq | \n",
" Puerto Rico | \n",
" 13791 | \n",
" 8870 | \n",
" 4921 | \n",
" 3598357 | \n",
" 0.6 | \n",
" 10.86 | \n",
" 8.67 | \n",
" 8.15 | \n",
"
\n",
" \n",
" 132 | \n",
" pk | \n",
" Pakistan | \n",
" 796095 | \n",
" 770875 | \n",
" 25220 | \n",
" 199085847 | \n",
" 1.46 | \n",
" 22.58 | \n",
" 6.49 | \n",
" 1.54 | \n",
"
\n",
" \n",
" 177 | \n",
" td | \n",
" Trinidad and Tobago | \n",
" 5128 | \n",
" 5128 | \n",
" 0 | \n",
" 1222363 | \n",
" 0.13 | \n",
" 13.46 | \n",
" 8.56 | \n",
" 6.25 | \n",
"
\n",
" \n",
" 101 | \n",
" ls | \n",
" Liechtenstein | \n",
" 160 | \n",
" 160 | \n",
" 0 | \n",
" 37624 | \n",
" 0.84 | \n",
" 10.45 | \n",
" 7.12 | \n",
" 5.08 | \n",
"
\n",
" \n",
" 65 | \n",
" gm | \n",
" Germany | \n",
" 357022 | \n",
" 348672 | \n",
" 8350 | \n",
" 80854408 | \n",
" 0.17 | \n",
" 8.47 | \n",
" 11.42 | \n",
" 1.24 | \n",
"
\n",
" \n",
" 229 | \n",
" vi | \n",
" British Virgin Islands | \n",
" 151 | \n",
" 151 | \n",
" 0 | \n",
" 33454 | \n",
" 2.32 | \n",
" 10.91 | \n",
" 4.99 | \n",
" 17.28 | \n",
"
\n",
" \n",
" 103 | \n",
" lu | \n",
" Luxembourg | \n",
" 2586 | \n",
" 2586 | \n",
" 0 | \n",
" 570252 | \n",
" 2.13 | \n",
" 11.37 | \n",
" 7.24 | \n",
" 17.16 | \n",
"
\n",
" \n",
" 51 | \n",
" dr | \n",
" Dominican Republic | \n",
" 48670 | \n",
" 48320 | \n",
" 350 | \n",
" 10478756 | \n",
" 1.23 | \n",
" 18.73 | \n",
" 4.55 | \n",
" 1.91 | \n",
"
\n",
" \n",
" 124 | \n",
" np | \n",
" Nepal | \n",
" 147181 | \n",
" 143351 | \n",
" 3830 | \n",
" 31551305 | \n",
" 1.79 | \n",
" 20.64 | \n",
" 6.56 | \n",
" 3.86 | \n",
"
\n",
" \n",
" 230 | \n",
" cj | \n",
" Cayman Islands | \n",
" 264 | \n",
" 264 | \n",
" 0 | \n",
" 56092 | \n",
" 2.1 | \n",
" 12.11 | \n",
" 5.53 | \n",
" 14.4 | \n",
"
\n",
" \n",
" 6 | \n",
" ac | \n",
" Antigua and Barbuda | \n",
" 442 | \n",
" 442 | \n",
" 0 | \n",
" 92436 | \n",
" 1.24 | \n",
" 15.85 | \n",
" 5.69 | \n",
" 2.21 | \n",
"
\n",
" \n",
" 90 | \n",
" kn | \n",
" Korea, North | \n",
" 120538 | \n",
" 120408 | \n",
" 130 | \n",
" 24983205 | \n",
" 0.53 | \n",
" 14.52 | \n",
" 9.21 | \n",
" 0.04 | \n",
"
\n",
" \n",
" 83 | \n",
" it | \n",
" Italy | \n",
" 301340 | \n",
" 294140 | \n",
" 7200 | \n",
" 61855120 | \n",
" 0.27 | \n",
" 8.74 | \n",
" 10.19 | \n",
" 4.1 | \n",
"
\n",
" \n",
" 154 | \n",
" se | \n",
" Seychelles | \n",
" 455 | \n",
" 455 | \n",
" 0 | \n",
" 92430 | \n",
" 0.83 | \n",
" 14.19 | \n",
" 6.89 | \n",
" 1.0 | \n",
"
\n",
" \n",
" 150 | \n",
" tp | \n",
" Sao Tome and Principe | \n",
" 964 | \n",
" 964 | \n",
" 0 | \n",
" 194006 | \n",
" 1.84 | \n",
" 34.23 | \n",
" 7.24 | \n",
" 8.63 | \n",
"
\n",
" \n",
" 145 | \n",
" sc | \n",
" Saint Kitts and Nevis | \n",
" 261 | \n",
" 261 | \n",
" 0 | \n",
" 51936 | \n",
" 0.76 | \n",
" 13.5 | \n",
" 7.09 | \n",
" 1.21 | \n",
"
\n",
" \n",
" 129 | \n",
" ni | \n",
" Nigeria | \n",
" 923768 | \n",
" 910768 | \n",
" 13000 | \n",
" 181562056 | \n",
" 2.45 | \n",
" 37.64 | \n",
" 12.9 | \n",
" 0.22 | \n",
"
\n",
" \n",
" 169 | \n",
" sz | \n",
" Switzerland | \n",
" 41277 | \n",
" 39997 | \n",
" 1280 | \n",
" 8121830 | \n",
" 0.71 | \n",
" 10.5 | \n",
" 8.13 | \n",
" 4.74 | \n",
"
\n",
" \n",
" 141 | \n",
" qa | \n",
" Qatar | \n",
" 11586 | \n",
" 11586 | \n",
" 0 | \n",
" 2194817 | \n",
" 3.07 | \n",
" 9.84 | \n",
" 1.53 | \n",
" 22.39 | \n",
"
\n",
" \n",
" 4 | \n",
" an | \n",
" Andorra | \n",
" 468 | \n",
" 468 | \n",
" 0 | \n",
" 85580 | \n",
" 0.12 | \n",
" 8.13 | \n",
" 6.96 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 226 | \n",
" av | \n",
" Anguilla | \n",
" 91 | \n",
" 91 | \n",
" 0 | \n",
" 16418 | \n",
" 2.03 | \n",
" 12.67 | \n",
" 4.57 | \n",
" 12.18 | \n",
"
\n",
" \n",
" 63 | \n",
" ga | \n",
" Gambia, The | \n",
" 11300 | \n",
" 10120 | \n",
" 1180 | \n",
" 1967709 | \n",
" 2.16 | \n",
" 30.86 | \n",
" 7.15 | \n",
" 2.12 | \n",
"
\n",
" \n",
" 92 | \n",
" kv | \n",
" Kosovo | \n",
" 10887 | \n",
" 10887 | \n",
" 0 | \n",
" 1870981 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 93 | \n",
" ku | \n",
" Kuwait | \n",
" 17818 | \n",
" 17818 | \n",
" 0 | \n",
" 2788534 | \n",
" 1.62 | \n",
" 19.91 | \n",
" 2.18 | \n",
" 1.58 | \n",
"
\n",
" \n",
" 182 | \n",
" ug | \n",
" Uganda | \n",
" 241038 | \n",
" 197100 | \n",
" 43938 | \n",
" 37101745 | \n",
" 3.24 | \n",
" 43.79 | \n",
" 10.69 | \n",
" 0.74 | \n",
"
\n",
" \n",
" 236 | \n",
" im | \n",
" Isle of Man | \n",
" 572 | \n",
" 572 | \n",
" 0 | \n",
" 87545 | \n",
" 0.76 | \n",
" 11.1 | \n",
" 10.06 | \n",
" 6.56 | \n",
"
\n",
" \n",
" 106 | \n",
" mi | \n",
" Malawi | \n",
" 118484 | \n",
" 94080 | \n",
" 24404 | \n",
" 17964697 | \n",
" 3.32 | \n",
" 41.56 | \n",
" 8.41 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 115 | \n",
" fm | \n",
" Micronesia, Federated States of | \n",
" 702 | \n",
" 702 | \n",
" 0 | \n",
" 105216 | \n",
" 0.46 | \n",
" 20.54 | \n",
" 4.23 | \n",
" 20.93 | \n",
"
\n",
" \n",
" 37 | \n",
" ch | \n",
" China | \n",
" 9596960 | \n",
" 9326410 | \n",
" 270550 | \n",
" 1367485388 | \n",
" 0.45 | \n",
" 12.49 | \n",
" 7.53 | \n",
" 0.44 | \n",
"
\n",
" \n",
" 176 | \n",
" tn | \n",
" Tonga | \n",
" 747 | \n",
" 717 | \n",
" 30 | \n",
" 106501 | \n",
" 0.03 | \n",
" 23.0 | \n",
" 4.85 | \n",
" 17.84 | \n",
"
\n",
" \n",
" 69 | \n",
" gt | \n",
" Guatemala | \n",
" 108889 | \n",
" 107159 | \n",
" 1730 | \n",
" 14918999 | \n",
" 1.82 | \n",
" 24.89 | \n",
" 4.77 | \n",
" 1.97 | \n",
"
\n",
" \n",
" 33 | \n",
" cv | \n",
" Cabo Verde | \n",
" 4033 | \n",
" 4033 | \n",
" 0 | \n",
" 545993 | \n",
" 1.36 | \n",
" 20.33 | \n",
" 6.11 | \n",
" 0.63 | \n",
"
\n",
" \n",
" 47 | \n",
" ez | \n",
" Czech Republic | \n",
" 78867 | \n",
" 77247 | \n",
" 1620 | \n",
" 10644842 | \n",
" 0.16 | \n",
" 9.63 | \n",
" 10.34 | \n",
" 2.33 | \n",
"
\n",
" \n",
" 78 | \n",
" id | \n",
" Indonesia | \n",
" 1904569 | \n",
" 1811569 | \n",
" 93000 | \n",
" 255993674 | \n",
" 0.92 | \n",
" 16.72 | \n",
" 6.37 | \n",
" 1.16 | \n",
"
\n",
" \n",
" 173 | \n",
" th | \n",
" Thailand | \n",
" 513120 | \n",
" 510890 | \n",
" 2230 | \n",
" 67976405 | \n",
" 0.34 | \n",
" 11.19 | \n",
" 7.8 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 175 | \n",
" to | \n",
" Togo | \n",
" 56785 | \n",
" 54385 | \n",
" 2400 | \n",
" 7552318 | \n",
" 2.69 | \n",
" 34.13 | \n",
" 7.26 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 89 | \n",
" kr | \n",
" Kiribati | \n",
" 811 | \n",
" 811 | \n",
" 0 | \n",
" 105711 | \n",
" 1.15 | \n",
" 21.46 | \n",
" 7.12 | \n",
" 2.87 | \n",
"
\n",
" \n",
" 48 | \n",
" da | \n",
" Denmark | \n",
" 43094 | \n",
" 42434 | \n",
" 660 | \n",
" 5581503 | \n",
" 0.22 | \n",
" 10.27 | \n",
" 10.25 | \n",
" 2.2 | \n",
"
\n",
" \n",
" 46 | \n",
" cy | \n",
" Cyprus | \n",
" 9251 | \n",
" 9241 | \n",
" 10 | \n",
" 1189197 | \n",
" 1.43 | \n",
" 11.41 | \n",
" 6.62 | \n",
" 9.48 | \n",
"
\n",
" \n",
" 225 | \n",
" ax | \n",
" Akrotiri | \n",
" 123 | \n",
" None | \n",
" None | \n",
" 15700 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 139 | \n",
" pl | \n",
" Poland | \n",
" 312685 | \n",
" 304255 | \n",
" 8430 | \n",
" 38562189 | \n",
" 0.09 | \n",
" 9.74 | \n",
" 10.19 | \n",
" 0.46 | \n",
"
\n",
" \n",
" 231 | \n",
" dx | \n",
" Dhekelia | \n",
" 130 | \n",
" None | \n",
" None | \n",
" 15700 | \n",
" None | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 197 | \n",
" ee | \n",
" European Union | \n",
" 4324782 | \n",
" None | \n",
" None | \n",
" 513949445 | \n",
" 0.25 | \n",
" 10.2 | \n",
" 10.2 | \n",
" 2.5 | \n",
"
\n",
" \n",
" 140 | \n",
" po | \n",
" Portugal | \n",
" 92090 | \n",
" 91470 | \n",
" 620 | \n",
" 10825309 | \n",
" 0.09 | \n",
" 9.27 | \n",
" 11.02 | \n",
" 2.67 | \n",
"
\n",
" \n",
" 11 | \n",
" aj | \n",
" Azerbaijan | \n",
" 86600 | \n",
" 82629 | \n",
" 3971 | \n",
" 9780780 | \n",
" 0.96 | \n",
" 16.64 | \n",
" 7.07 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 245 | \n",
" cq | \n",
" Northern Mariana Islands | \n",
" 464 | \n",
" 464 | \n",
" 0 | \n",
" 52344 | \n",
" 2.18 | \n",
" 18.32 | \n",
" 3.71 | \n",
" 7.16 | \n",
"
\n",
" \n",
" 157 | \n",
" lo | \n",
" Slovakia | \n",
" 49035 | \n",
" 48105 | \n",
" 930 | \n",
" 5445027 | \n",
" 0.02 | \n",
" 9.91 | \n",
" 9.74 | \n",
" 0.04 | \n",
"
\n",
" \n",
" 221 | \n",
" tl | \n",
" Tokelau | \n",
" 12 | \n",
" 12 | \n",
" 0 | \n",
" 1337 | \n",
" 0.01 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 66 | \n",
" gh | \n",
" Ghana | \n",
" 238533 | \n",
" 227533 | \n",
" 11000 | \n",
" 26327649 | \n",
" 2.18 | \n",
" 31.09 | \n",
" 7.22 | \n",
" 2.02 | \n",
"
\n",
" \n",
" 215 | \n",
" wf | \n",
" Wallis and Futuna | \n",
" 142 | \n",
" 142 | \n",
" 0 | \n",
" 15613 | \n",
" 0.33 | \n",
" 13.45 | \n",
" 5.06 | \n",
" 5.06 | \n",
"
\n",
" \n",
" 75 | \n",
" hu | \n",
" Hungary | \n",
" 93028 | \n",
" 89608 | \n",
" 3420 | \n",
" 9897541 | \n",
" 0.22 | \n",
" 9.16 | \n",
" 12.73 | \n",
" 1.33 | \n",
"
\n",
" \n",
" 2 | \n",
" al | \n",
" Albania | \n",
" 28748 | \n",
" 27398 | \n",
" 1350 | \n",
" 3029278 | \n",
" 0.3 | \n",
" 12.92 | \n",
" 6.58 | \n",
" 3.3 | \n",
"
\n",
" \n",
" 116 | \n",
" md | \n",
" Moldova | \n",
" 33851 | \n",
" 32891 | \n",
" 960 | \n",
" 3546847 | \n",
" 1.03 | \n",
" 12.0 | \n",
" 12.59 | \n",
" 9.67 | \n",
"
\n",
" \n",
" 10 | \n",
" au | \n",
" Austria | \n",
" 83871 | \n",
" 82445 | \n",
" 1426 | \n",
" 8665550 | \n",
" 0.55 | \n",
" 9.41 | \n",
" 9.42 | \n",
" 5.56 | \n",
"
\n",
" \n",
" 61 | \n",
" fr | \n",
" France | \n",
" 643801 | \n",
" 640427 | \n",
" 3374 | \n",
" 66553766 | \n",
" 0.43 | \n",
" 12.38 | \n",
" 9.16 | \n",
" 1.09 | \n",
"
\n",
" \n",
" 8 | \n",
" am | \n",
" Armenia | \n",
" 29743 | \n",
" 28203 | \n",
" 1540 | \n",
" 3056382 | \n",
" 0.15 | \n",
" 13.61 | \n",
" 9.34 | \n",
" 5.8 | \n",
"
\n",
" \n",
" 179 | \n",
" tu | \n",
" Turkey | \n",
" 783562 | \n",
" 769632 | \n",
" 13930 | \n",
" 79414269 | \n",
" 1.26 | \n",
" 16.33 | \n",
" 5.88 | \n",
" 2.16 | \n",
"
\n",
" \n",
" 45 | \n",
" cu | \n",
" Cuba | \n",
" 110860 | \n",
" 109820 | \n",
" 1040 | \n",
" 11031433 | \n",
" 0.15 | \n",
" 9.9 | \n",
" 7.72 | \n",
" 3.66 | \n",
"
\n",
" \n",
" 50 | \n",
" do | \n",
" Dominica | \n",
" 751 | \n",
" 751 | \n",
" 0 | \n",
" 73607 | \n",
" 0.21 | \n",
" 15.41 | \n",
" 7.91 | \n",
" 5.38 | \n",
"
\n",
" \n",
" 158 | \n",
" si | \n",
" Slovenia | \n",
" 20273 | \n",
" 20151 | \n",
" 122 | \n",
" 1983412 | \n",
" 0.26 | \n",
" 8.42 | \n",
" 11.37 | \n",
" 0.37 | \n",
"
\n",
" \n",
" 163 | \n",
" sp | \n",
" Spain | \n",
" 505370 | \n",
" 498980 | \n",
" 6390 | \n",
" 48146134 | \n",
" 0.89 | \n",
" 9.64 | \n",
" 9.04 | \n",
" 8.31 | \n",
"
\n",
" \n",
" 42 | \n",
" cs | \n",
" Costa Rica | \n",
" 51100 | \n",
" 51060 | \n",
" 40 | \n",
" 4814144 | \n",
" 1.22 | \n",
" 15.91 | \n",
" 4.55 | \n",
" 0.83 | \n",
"
\n",
" \n",
" 19 | \n",
" bn | \n",
" Benin | \n",
" 112622 | \n",
" 110622 | \n",
" 2000 | \n",
" 10448647 | \n",
" 2.78 | \n",
" 36.02 | \n",
" 8.21 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 107 | \n",
" my | \n",
" Malaysia | \n",
" 329847 | \n",
" 328657 | \n",
" 1190 | \n",
" 30513848 | \n",
" 1.44 | \n",
" 19.71 | \n",
" 5.03 | \n",
" 0.33 | \n",
"
\n",
" \n",
" 153 | \n",
" ri | \n",
" Serbia | \n",
" 77474 | \n",
" 77474 | \n",
" 0 | \n",
" 7176794 | \n",
" 0.46 | \n",
" 9.08 | \n",
" 13.66 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 170 | \n",
" sy | \n",
" Syria | \n",
" 185180 | \n",
" 183630 | \n",
" 1550 | \n",
" 17064854 | \n",
" 0.16 | \n",
" 22.17 | \n",
" 4.0 | \n",
" 19.79 | \n",
"
\n",
" \n",
" 58 | \n",
" et | \n",
" Ethiopia | \n",
" 1104300 | \n",
" None | \n",
" 104300 | \n",
" 99465819 | \n",
" 2.89 | \n",
" 37.27 | \n",
" 8.19 | \n",
" 0.22 | \n",
"
\n",
" \n",
" 86 | \n",
" jo | \n",
" Jordan | \n",
" 89342 | \n",
" 88802 | \n",
" 540 | \n",
" 8117564 | \n",
" 0.83 | \n",
" 25.37 | \n",
" 3.79 | \n",
" 13.24 | \n",
"
\n",
" \n",
" 142 | \n",
" ro | \n",
" Romania | \n",
" 238391 | \n",
" 229891 | \n",
" 8500 | \n",
" 21666350 | \n",
" 0.3 | \n",
" 9.14 | \n",
" 11.9 | \n",
" 0.24 | \n",
"
\n",
" \n",
" 53 | \n",
" eg | \n",
" Egypt | \n",
" 1001450 | \n",
" 995450 | \n",
" 6000 | \n",
" 88487396 | \n",
" 1.79 | \n",
" 22.9 | \n",
" 4.77 | \n",
" 0.19 | \n",
"
\n",
" \n",
" 30 | \n",
" cb | \n",
" Cambodia | \n",
" 181035 | \n",
" 176515 | \n",
" 4520 | \n",
" 15708756 | \n",
" 1.58 | \n",
" 23.83 | \n",
" 7.68 | \n",
" 0.32 | \n",
"
\n",
" \n",
" 80 | \n",
" iz | \n",
" Iraq | \n",
" 438317 | \n",
" 437367 | \n",
" 950 | \n",
" 37056169 | \n",
" 2.93 | \n",
" 31.45 | \n",
" 3.77 | \n",
" 1.62 | \n",
"
\n",
" \n",
" 28 | \n",
" bm | \n",
" Burma | \n",
" 676578 | \n",
" 653508 | \n",
" 23070 | \n",
" 56320206 | \n",
" 1.01 | \n",
" 18.39 | \n",
" 7.96 | \n",
" 0.28 | \n",
"
\n",
" \n",
" 167 | \n",
" wz | \n",
" Swaziland | \n",
" 17364 | \n",
" 17204 | \n",
" 160 | \n",
" 1435613 | \n",
" 1.11 | \n",
" 24.67 | \n",
" 13.56 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 174 | \n",
" tt | \n",
" Timor-Leste | \n",
" 14874 | \n",
" 14874 | \n",
" 0 | \n",
" 1231116 | \n",
" 2.42 | \n",
" 34.16 | \n",
" 6.1 | \n",
" 3.86 | \n",
"
\n",
" \n",
" 67 | \n",
" gr | \n",
" Greece | \n",
" 131957 | \n",
" 130647 | \n",
" 1310 | \n",
" 10775643 | \n",
" 0.01 | \n",
" 8.66 | \n",
" 11.09 | \n",
" 2.32 | \n",
"
\n",
" \n",
" 104 | \n",
" mk | \n",
" Macedonia | \n",
" 25713 | \n",
" 25433 | \n",
" 280 | \n",
" 2096015 | \n",
" 0.2 | \n",
" 11.55 | \n",
" 9.08 | \n",
" 0.48 | \n",
"
\n",
" \n",
" 155 | \n",
" sl | \n",
" Sierra Leone | \n",
" 71740 | \n",
" 71620 | \n",
" 120 | \n",
" 5879098 | \n",
" 2.35 | \n",
" 37.03 | \n",
" 10.81 | \n",
" 2.77 | \n",
"
\n",
" \n",
" 88 | \n",
" ke | \n",
" Kenya | \n",
" 580367 | \n",
" 569140 | \n",
" 11227 | \n",
" 45925301 | \n",
" 1.93 | \n",
" 26.4 | \n",
" 6.89 | \n",
" 0.22 | \n",
"
\n",
" \n",
" 44 | \n",
" hr | \n",
" Croatia | \n",
" 56594 | \n",
" 55974 | \n",
" 620 | \n",
" 4464844 | \n",
" 0.13 | \n",
" 9.45 | \n",
" 12.18 | \n",
" 1.39 | \n",
"
\n",
" \n",
" 74 | \n",
" ho | \n",
" Honduras | \n",
" 112090 | \n",
" 111890 | \n",
" 200 | \n",
" 8746673 | \n",
" 1.68 | \n",
" 23.14 | \n",
" 5.17 | \n",
" 1.16 | \n",
"
\n",
" \n",
" 22 | \n",
" bk | \n",
" Bosnia and Herzegovina | \n",
" 51197 | \n",
" 51187 | \n",
" 10 | \n",
" 3867055 | \n",
" 0.13 | \n",
" 8.87 | \n",
" 9.75 | \n",
" 0.38 | \n",
"
\n",
" \n",
" 25 | \n",
" bx | \n",
" Brunei | \n",
" 5765 | \n",
" 5265 | \n",
" 500 | \n",
" 429646 | \n",
" 1.62 | \n",
" 17.32 | \n",
" 3.52 | \n",
" 2.43 | \n",
"
\n",
" \n",
" 120 | \n",
" mo | \n",
" Morocco | \n",
" 446550 | \n",
" 446300 | \n",
" 250 | \n",
" 33322699 | \n",
" 1.0 | \n",
" 18.2 | \n",
" 4.81 | \n",
" 3.36 | \n",
"
\n",
" \n",
" 183 | \n",
" up | \n",
" Ukraine | \n",
" 603550 | \n",
" 579330 | \n",
" 24220 | \n",
" 44429471 | \n",
" 0.6 | \n",
" 10.72 | \n",
" 14.46 | \n",
" 2.25 | \n",
"
\n",
" \n",
" 43 | \n",
" iv | \n",
" Cote d'Ivoire | \n",
" 322463 | \n",
" 318003 | \n",
" 4460 | \n",
" 23295302 | \n",
" 1.91 | \n",
" 28.67 | \n",
" 9.55 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 152 | \n",
" sg | \n",
" Senegal | \n",
" 196722 | \n",
" 192530 | \n",
" 4192 | \n",
" 13975834 | \n",
" 2.45 | \n",
" 34.52 | \n",
" 8.46 | \n",
" 1.59 | \n",
"
\n",
" \n",
" 64 | \n",
" gg | \n",
" Georgia | \n",
" 69700 | \n",
" 69700 | \n",
" 0 | \n",
" 4931226 | \n",
" 0.08 | \n",
" 12.74 | \n",
" 10.82 | \n",
" 2.7 | \n",
"
\n",
" \n",
" 27 | \n",
" uv | \n",
" Burkina Faso | \n",
" 274200 | \n",
" 273800 | \n",
" 400 | \n",
" 18931686 | \n",
" 3.03 | \n",
" 42.03 | \n",
" 11.72 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 81 | \n",
" ei | \n",
" Ireland | \n",
" 70273 | \n",
" 68883 | \n",
" 1390 | \n",
" 4892305 | \n",
" 1.25 | \n",
" 14.84 | \n",
" 6.48 | \n",
" 4.09 | \n",
"
\n",
" \n",
" 148 | \n",
" ws | \n",
" Samoa | \n",
" 2831 | \n",
" 2821 | \n",
" 10 | \n",
" 197773 | \n",
" 0.58 | \n",
" 20.87 | \n",
" 5.32 | \n",
" 9.78 | \n",
"
\n",
" \n",
" 184 | \n",
" ae | \n",
" United Arab Emirates | \n",
" 83600 | \n",
" 83600 | \n",
" 0 | \n",
" 5779760 | \n",
" 2.58 | \n",
" 15.43 | \n",
" 1.97 | \n",
" 12.36 | \n",
"
\n",
" \n",
" 178 | \n",
" ts | \n",
" Tunisia | \n",
" 163610 | \n",
" 155360 | \n",
" 8250 | \n",
" 11037225 | \n",
" 0.89 | \n",
" 16.64 | \n",
" 5.98 | \n",
" 1.73 | \n",
"
\n",
" \n",
" 209 | \n",
" fp | \n",
" French Polynesia | \n",
" 4167 | \n",
" 3827 | \n",
" 340 | \n",
" 282703 | \n",
" 0.94 | \n",
" 15.22 | \n",
" 5.02 | \n",
" 0.84 | \n",
"
\n",
" \n",
" 188 | \n",
" uz | \n",
" Uzbekistan | \n",
" 447400 | \n",
" 425400 | \n",
" 22000 | \n",
" 29199942 | \n",
" 0.93 | \n",
" 17.0 | \n",
" 5.3 | \n",
" 2.37 | \n",
"
\n",
" \n",
" 26 | \n",
" bu | \n",
" Bulgaria | \n",
" 110879 | \n",
" 108489 | \n",
" 2390 | \n",
" 7186893 | \n",
" 0.58 | \n",
" 8.92 | \n",
" 14.44 | \n",
" 0.29 | \n",
"
\n",
" \n",
" 98 | \n",
" lt | \n",
" Lesotho | \n",
" 30355 | \n",
" 30355 | \n",
" 0 | \n",
" 1947701 | \n",
" 0.32 | \n",
" 25.47 | \n",
" 14.89 | \n",
" 7.36 | \n",
"
\n",
" \n",
" 114 | \n",
" mx | \n",
" Mexico | \n",
" 1964375 | \n",
" 1943945 | \n",
" 20430 | \n",
" 121736809 | \n",
" 1.18 | \n",
" 18.78 | \n",
" 5.26 | \n",
" 1.68 | \n",
"
\n",
" \n",
" 203 | \n",
" nf | \n",
" Norfolk Island | \n",
" 36 | \n",
" 36 | \n",
" 0 | \n",
" 2210 | \n",
" 0.01 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
"
"
],
"text/plain": [
"[(205, 'mc', 'Macau', 28, 28, 0, 592731, 0.8, 8.88, 4.22, 3.37),\n",
" (117, 'mn', 'Monaco', 2, 2, 0, 30535, 0.12, 6.65, 9.24, 3.83),\n",
" (156, 'sn', 'Singapore', 697, 687, 10, 5674472, 1.89, 8.27, 3.43, 14.05),\n",
" (204, 'hk', 'Hong Kong', 1108, 1073, 35, 7141106, 0.38, 9.23, 7.07, 1.68),\n",
" (251, 'gz', 'Gaza Strip', 360, 360, 0, 1869055, 2.81, 31.11, 3.04, 0.0),\n",
" (233, 'gi', 'Gibraltar', 6, 6, 0, 29258, 0.24, 14.08, 8.37, 3.28),\n",
" (13, 'ba', 'Bahrain', 760, 760, 0, 1346613, 2.41, 13.66, 2.69, 13.09),\n",
" (108, 'mv', 'Maldives', 298, 298, 0, 393253, 0.08, 15.75, 3.89, 12.68),\n",
" (110, 'mt', 'Malta', 316, 316, 0, 413965, 0.31, 10.18, 9.09, 1.98),\n",
" (227, 'bd', 'Bermuda', 54, 54, 0, 70196, 0.5, 11.33, 8.23, 1.88),\n",
" (218, 'sk', 'Sint Maarten', 34, 34, 0, 39689, 1.51, 13.0, 4.51, 6.63),\n",
" (14, 'bg', 'Bangladesh', 148460, 130170, 18290, 168957745, 1.6, 21.14, 5.61, 0.46),\n",
" (234, 'gk', 'Guernsey', 78, 78, 0, 66080, 0.34, 9.84, 8.78, 2.32),\n",
" (235, 'je', 'Jersey', 116, 116, 0, 97294, 0.8, 11.91, 7.68, 3.76),\n",
" (15, 'bb', 'Barbados', 430, 430, 0, 290604, 0.31, 11.87, 8.44, 0.3),\n",
" (113, 'mp', 'Mauritius', 2040, 2030, 10, 1339827, 0.64, 13.29, 6.91, 0.0),\n",
" (196, 'tw', 'Taiwan', 35980, 32260, 3720, 23415126, 0.23, 8.47, 7.11, 0.89),\n",
" (216, 'aa', 'Aruba', 180, 180, 0, 112162, 1.33, 12.56, 8.18, 8.92),\n",
" (97, 'le', 'Lebanon', 10400, 10230, 170, 6184701, 0.86, 14.59, 4.88, 1.1),\n",
" (213, 'rn', 'Saint Martin', 54, 54, None, 31754, None, None, None, None),\n",
" (149, 'sm', 'San Marino', 61, 61, 0, 33020, 0.82, 8.63, 8.45, 8.03),\n",
" (91, 'ks', 'Korea, South', 99720, 96920, 2800, 49115196, 0.14, 8.19, 6.75, 0.0),\n",
" (144, 'rw', 'Rwanda', 26338, 24668, 1670, 12661733, 2.56, 33.75, 8.96, 0.85),\n",
" (254, 'we', 'West Bank', 5860, 5640, 220, 2785366, 1.95, 22.99, 3.5, 0.0),\n",
" (123, 'nr', 'Nauru', 21, 21, 0, 9540, 0.55, 24.95, 5.87, 13.63),\n",
" (181, 'tv', 'Tuvalu', 26, 26, 0, 10869, 0.82, 23.74, 8.74, 6.81),\n",
" (125, 'nl', 'Netherlands', 41543, 33893, 7650, 16947904, 0.41, 10.83, 8.66, 1.95),\n",
" (111, 'rm', 'Marshall Islands', 181, 181, 0, 72191, 1.66, 25.6, 4.21, 4.83),\n",
" (82, 'is', 'Israel', 20770, 20330, 440, 8049314, 1.56, 18.48, 5.15, 2.24),\n",
" (29, 'by', 'Burundi', 27830, 25680, 2150, 10742276, 3.28, 42.01, 9.27, 0.0),\n",
" (77, 'in', 'India', 3287263, 2973193, 314070, 1251695584, 1.22, 19.55, 7.32, 0.04),\n",
" (17, 'be', 'Belgium', 30528, 30278, 250, 11323973, 0.76, 11.41, 9.63, 5.87),\n",
" (73, 'ha', 'Haiti', 27750, 27560, 190, 10110019, 1.17, 22.31, 7.83, 2.76),\n",
" (39, 'cn', 'Comoros', 2235, 2235, 0, 780971, 1.77, 27.84, 7.57, 2.53),\n",
" (138, 'rp', 'Philippines', 300000, 298170, 1830, 100998376, 1.61, 24.27, 6.11, 2.09),\n",
" (164, 'ce', 'Sri Lanka', 65610, 64630, 980, 22053488, 0.84, 15.85, 6.11, 1.35),\n",
" (85, 'ja', 'Japan', 377915, 364485, 13430, 126919659, 0.16, 7.93, 9.51, 0.0),\n",
" (217, 'cc', 'Curacao', 444, 444, 0, 148406, 0.43, 13.8, 8.2, 1.4),\n",
" (68, 'gj', 'Grenada', 344, 344, 0, 110694, 0.48, 16.03, 8.08, 3.13),\n",
" (243, 'gq', 'Guam', 544, 544, 0, 161785, 0.54, 16.82, 5.12, 6.34),\n",
" (54, 'es', 'El Salvador', 21041, 20721, 320, 6141350, 0.25, 16.46, 5.69, 8.28),\n",
" (192, 'vm', 'Vietnam', 331210, 310070, 21140, 94348835, 0.97, 15.96, 5.93, 0.3),\n",
" (242, 'aq', 'American Samoa', 199, 199, 0, 54343, 0.3, 22.89, 4.75, 21.13),\n",
" (84, 'jm', 'Jamaica', 10991, 10831, 160, 2950210, 0.68, 18.16, 6.7, 4.66),\n",
" (146, 'st', 'Saint Lucia', 616, 606, 10, 163922, 0.34, 13.7, 7.42, 2.93),\n",
" (147, 'vc', 'Saint Vincent and the Grenadines', 389, 389, 0, 102627, 0.28, 13.57, 7.18, 9.17),\n",
" (185, 'uk', 'United Kingdom', 243610, 241930, 1680, 64088222, 0.54, 12.17, 9.35, 2.54),\n",
" (246, 'rq', 'Puerto Rico', 13791, 8870, 4921, 3598357, 0.6, 10.86, 8.67, 8.15),\n",
" (132, 'pk', 'Pakistan', 796095, 770875, 25220, 199085847, 1.46, 22.58, 6.49, 1.54),\n",
" (177, 'td', 'Trinidad and Tobago', 5128, 5128, 0, 1222363, 0.13, 13.46, 8.56, 6.25),\n",
" (101, 'ls', 'Liechtenstein', 160, 160, 0, 37624, 0.84, 10.45, 7.12, 5.08),\n",
" (65, 'gm', 'Germany', 357022, 348672, 8350, 80854408, 0.17, 8.47, 11.42, 1.24),\n",
" (229, 'vi', 'British Virgin Islands', 151, 151, 0, 33454, 2.32, 10.91, 4.99, 17.28),\n",
" (103, 'lu', 'Luxembourg', 2586, 2586, 0, 570252, 2.13, 11.37, 7.24, 17.16),\n",
" (51, 'dr', 'Dominican Republic', 48670, 48320, 350, 10478756, 1.23, 18.73, 4.55, 1.91),\n",
" (124, 'np', 'Nepal', 147181, 143351, 3830, 31551305, 1.79, 20.64, 6.56, 3.86),\n",
" (230, 'cj', 'Cayman Islands', 264, 264, 0, 56092, 2.1, 12.11, 5.53, 14.4),\n",
" (6, 'ac', 'Antigua and Barbuda', 442, 442, 0, 92436, 1.24, 15.85, 5.69, 2.21),\n",
" (90, 'kn', 'Korea, North', 120538, 120408, 130, 24983205, 0.53, 14.52, 9.21, 0.04),\n",
" (83, 'it', 'Italy', 301340, 294140, 7200, 61855120, 0.27, 8.74, 10.19, 4.1),\n",
" (154, 'se', 'Seychelles', 455, 455, 0, 92430, 0.83, 14.19, 6.89, 1.0),\n",
" (150, 'tp', 'Sao Tome and Principe', 964, 964, 0, 194006, 1.84, 34.23, 7.24, 8.63),\n",
" (145, 'sc', 'Saint Kitts and Nevis', 261, 261, 0, 51936, 0.76, 13.5, 7.09, 1.21),\n",
" (129, 'ni', 'Nigeria', 923768, 910768, 13000, 181562056, 2.45, 37.64, 12.9, 0.22),\n",
" (169, 'sz', 'Switzerland', 41277, 39997, 1280, 8121830, 0.71, 10.5, 8.13, 4.74),\n",
" (141, 'qa', 'Qatar', 11586, 11586, 0, 2194817, 3.07, 9.84, 1.53, 22.39),\n",
" (4, 'an', 'Andorra', 468, 468, 0, 85580, 0.12, 8.13, 6.96, 0.0),\n",
" (226, 'av', 'Anguilla', 91, 91, 0, 16418, 2.03, 12.67, 4.57, 12.18),\n",
" (63, 'ga', 'Gambia, The', 11300, 10120, 1180, 1967709, 2.16, 30.86, 7.15, 2.12),\n",
" (92, 'kv', 'Kosovo', 10887, 10887, 0, 1870981, None, None, None, None),\n",
" (93, 'ku', 'Kuwait', 17818, 17818, 0, 2788534, 1.62, 19.91, 2.18, 1.58),\n",
" (182, 'ug', 'Uganda', 241038, 197100, 43938, 37101745, 3.24, 43.79, 10.69, 0.74),\n",
" (236, 'im', 'Isle of Man', 572, 572, 0, 87545, 0.76, 11.1, 10.06, 6.56),\n",
" (106, 'mi', 'Malawi', 118484, 94080, 24404, 17964697, 3.32, 41.56, 8.41, 0.0),\n",
" (115, 'fm', 'Micronesia, Federated States of', 702, 702, 0, 105216, 0.46, 20.54, 4.23, 20.93),\n",
" (37, 'ch', 'China', 9596960, 9326410, 270550, 1367485388, 0.45, 12.49, 7.53, 0.44),\n",
" (176, 'tn', 'Tonga', 747, 717, 30, 106501, 0.03, 23.0, 4.85, 17.84),\n",
" (69, 'gt', 'Guatemala', 108889, 107159, 1730, 14918999, 1.82, 24.89, 4.77, 1.97),\n",
" (33, 'cv', 'Cabo Verde', 4033, 4033, 0, 545993, 1.36, 20.33, 6.11, 0.63),\n",
" (47, 'ez', 'Czech Republic', 78867, 77247, 1620, 10644842, 0.16, 9.63, 10.34, 2.33),\n",
" (78, 'id', 'Indonesia', 1904569, 1811569, 93000, 255993674, 0.92, 16.72, 6.37, 1.16),\n",
" (173, 'th', 'Thailand', 513120, 510890, 2230, 67976405, 0.34, 11.19, 7.8, 0.0),\n",
" (175, 'to', 'Togo', 56785, 54385, 2400, 7552318, 2.69, 34.13, 7.26, 0.0),\n",
" (89, 'kr', 'Kiribati', 811, 811, 0, 105711, 1.15, 21.46, 7.12, 2.87),\n",
" (48, 'da', 'Denmark', 43094, 42434, 660, 5581503, 0.22, 10.27, 10.25, 2.2),\n",
" (46, 'cy', 'Cyprus', 9251, 9241, 10, 1189197, 1.43, 11.41, 6.62, 9.48),\n",
" (225, 'ax', 'Akrotiri', 123, None, None, 15700, None, None, None, None),\n",
" (139, 'pl', 'Poland', 312685, 304255, 8430, 38562189, 0.09, 9.74, 10.19, 0.46),\n",
" (231, 'dx', 'Dhekelia', 130, None, None, 15700, None, None, None, None),\n",
" (197, 'ee', 'European Union', 4324782, None, None, 513949445, 0.25, 10.2, 10.2, 2.5),\n",
" (140, 'po', 'Portugal', 92090, 91470, 620, 10825309, 0.09, 9.27, 11.02, 2.67),\n",
" (11, 'aj', 'Azerbaijan', 86600, 82629, 3971, 9780780, 0.96, 16.64, 7.07, 0.0),\n",
" (245, 'cq', 'Northern Mariana Islands', 464, 464, 0, 52344, 2.18, 18.32, 3.71, 7.16),\n",
" (157, 'lo', 'Slovakia', 49035, 48105, 930, 5445027, 0.02, 9.91, 9.74, 0.04),\n",
" (221, 'tl', 'Tokelau', 12, 12, 0, 1337, 0.01, None, None, None),\n",
" (66, 'gh', 'Ghana', 238533, 227533, 11000, 26327649, 2.18, 31.09, 7.22, 2.02),\n",
" (215, 'wf', 'Wallis and Futuna', 142, 142, 0, 15613, 0.33, 13.45, 5.06, 5.06),\n",
" (75, 'hu', 'Hungary', 93028, 89608, 3420, 9897541, 0.22, 9.16, 12.73, 1.33),\n",
" (2, 'al', 'Albania', 28748, 27398, 1350, 3029278, 0.3, 12.92, 6.58, 3.3),\n",
" (116, 'md', 'Moldova', 33851, 32891, 960, 3546847, 1.03, 12.0, 12.59, 9.67),\n",
" (10, 'au', 'Austria', 83871, 82445, 1426, 8665550, 0.55, 9.41, 9.42, 5.56),\n",
" (61, 'fr', 'France', 643801, 640427, 3374, 66553766, 0.43, 12.38, 9.16, 1.09),\n",
" (8, 'am', 'Armenia', 29743, 28203, 1540, 3056382, 0.15, 13.61, 9.34, 5.8),\n",
" (179, 'tu', 'Turkey', 783562, 769632, 13930, 79414269, 1.26, 16.33, 5.88, 2.16),\n",
" (45, 'cu', 'Cuba', 110860, 109820, 1040, 11031433, 0.15, 9.9, 7.72, 3.66),\n",
" (50, 'do', 'Dominica', 751, 751, 0, 73607, 0.21, 15.41, 7.91, 5.38),\n",
" (158, 'si', 'Slovenia', 20273, 20151, 122, 1983412, 0.26, 8.42, 11.37, 0.37),\n",
" (163, 'sp', 'Spain', 505370, 498980, 6390, 48146134, 0.89, 9.64, 9.04, 8.31),\n",
" (42, 'cs', 'Costa Rica', 51100, 51060, 40, 4814144, 1.22, 15.91, 4.55, 0.83),\n",
" (19, 'bn', 'Benin', 112622, 110622, 2000, 10448647, 2.78, 36.02, 8.21, 0.0),\n",
" (107, 'my', 'Malaysia', 329847, 328657, 1190, 30513848, 1.44, 19.71, 5.03, 0.33),\n",
" (153, 'ri', 'Serbia', 77474, 77474, 0, 7176794, 0.46, 9.08, 13.66, 0.0),\n",
" (170, 'sy', 'Syria', 185180, 183630, 1550, 17064854, 0.16, 22.17, 4.0, 19.79),\n",
" (58, 'et', 'Ethiopia', 1104300, None, 104300, 99465819, 2.89, 37.27, 8.19, 0.22),\n",
" (86, 'jo', 'Jordan', 89342, 88802, 540, 8117564, 0.83, 25.37, 3.79, 13.24),\n",
" (142, 'ro', 'Romania', 238391, 229891, 8500, 21666350, 0.3, 9.14, 11.9, 0.24),\n",
" (53, 'eg', 'Egypt', 1001450, 995450, 6000, 88487396, 1.79, 22.9, 4.77, 0.19),\n",
" (30, 'cb', 'Cambodia', 181035, 176515, 4520, 15708756, 1.58, 23.83, 7.68, 0.32),\n",
" (80, 'iz', 'Iraq', 438317, 437367, 950, 37056169, 2.93, 31.45, 3.77, 1.62),\n",
" (28, 'bm', 'Burma', 676578, 653508, 23070, 56320206, 1.01, 18.39, 7.96, 0.28),\n",
" (167, 'wz', 'Swaziland', 17364, 17204, 160, 1435613, 1.11, 24.67, 13.56, 0.0),\n",
" (174, 'tt', 'Timor-Leste', 14874, 14874, 0, 1231116, 2.42, 34.16, 6.1, 3.86),\n",
" (67, 'gr', 'Greece', 131957, 130647, 1310, 10775643, 0.01, 8.66, 11.09, 2.32),\n",
" (104, 'mk', 'Macedonia', 25713, 25433, 280, 2096015, 0.2, 11.55, 9.08, 0.48),\n",
" (155, 'sl', 'Sierra Leone', 71740, 71620, 120, 5879098, 2.35, 37.03, 10.81, 2.77),\n",
" (88, 'ke', 'Kenya', 580367, 569140, 11227, 45925301, 1.93, 26.4, 6.89, 0.22),\n",
" (44, 'hr', 'Croatia', 56594, 55974, 620, 4464844, 0.13, 9.45, 12.18, 1.39),\n",
" (74, 'ho', 'Honduras', 112090, 111890, 200, 8746673, 1.68, 23.14, 5.17, 1.16),\n",
" (22, 'bk', 'Bosnia and Herzegovina', 51197, 51187, 10, 3867055, 0.13, 8.87, 9.75, 0.38),\n",
" (25, 'bx', 'Brunei', 5765, 5265, 500, 429646, 1.62, 17.32, 3.52, 2.43),\n",
" (120, 'mo', 'Morocco', 446550, 446300, 250, 33322699, 1.0, 18.2, 4.81, 3.36),\n",
" (183, 'up', 'Ukraine', 603550, 579330, 24220, 44429471, 0.6, 10.72, 14.46, 2.25),\n",
" (43, 'iv', \"Cote d'Ivoire\", 322463, 318003, 4460, 23295302, 1.91, 28.67, 9.55, 0.0),\n",
" (152, 'sg', 'Senegal', 196722, 192530, 4192, 13975834, 2.45, 34.52, 8.46, 1.59),\n",
" (64, 'gg', 'Georgia', 69700, 69700, 0, 4931226, 0.08, 12.74, 10.82, 2.7),\n",
" (27, 'uv', 'Burkina Faso', 274200, 273800, 400, 18931686, 3.03, 42.03, 11.72, 0.0),\n",
" (81, 'ei', 'Ireland', 70273, 68883, 1390, 4892305, 1.25, 14.84, 6.48, 4.09),\n",
" (148, 'ws', 'Samoa', 2831, 2821, 10, 197773, 0.58, 20.87, 5.32, 9.78),\n",
" (184, 'ae', 'United Arab Emirates', 83600, 83600, 0, 5779760, 2.58, 15.43, 1.97, 12.36),\n",
" (178, 'ts', 'Tunisia', 163610, 155360, 8250, 11037225, 0.89, 16.64, 5.98, 1.73),\n",
" (209, 'fp', 'French Polynesia', 4167, 3827, 340, 282703, 0.94, 15.22, 5.02, 0.84),\n",
" (188, 'uz', 'Uzbekistan', 447400, 425400, 22000, 29199942, 0.93, 17.0, 5.3, 2.37),\n",
" (26, 'bu', 'Bulgaria', 110879, 108489, 2390, 7186893, 0.58, 8.92, 14.44, 0.29),\n",
" (98, 'lt', 'Lesotho', 30355, 30355, 0, 1947701, 0.32, 25.47, 14.89, 7.36),\n",
" (114, 'mx', 'Mexico', 1964375, 1943945, 20430, 121736809, 1.18, 18.78, 5.26, 1.68),\n",
" (203, 'nf', 'Norfolk Island', 36, 36, 0, 2210, 0.01, None, None, None)]"
]
},
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" WHERE (population/area) > (SELECT AVG(population)/AVG(area)\n",
" FROM facts\n",
" WHERE name != 'World' AND name != 'Antarctica')\n",
" ORDER BY (population/area) DESC;"
]
},
{
"cell_type": "code",
"execution_count": 19,
"id": "94fde1d6",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" COUNT(*) | \n",
"
\n",
" \n",
" 146 | \n",
"
\n",
"
"
],
"text/plain": [
"[(146,)]"
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT COUNT(*)\n",
" FROM facts\n",
" WHERE (population/area) > (SELECT AVG(population)/AVG(area)\n",
" FROM facts\n",
" WHERE name != 'World' AND name != 'Antarctica');"
]
},
{
"cell_type": "code",
"execution_count": 20,
"id": "9d20a52f",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 207 | \n",
" gl | \n",
" Greenland | \n",
" 2166086 | \n",
" 2166086 | \n",
" None | \n",
" 57733 | \n",
" 0.0 | \n",
" 14.48 | \n",
" 8.49 | \n",
" 5.98 | \n",
"
\n",
" \n",
" 224 | \n",
" sv | \n",
" Svalbard | \n",
" 62045 | \n",
" 62045 | \n",
" 0 | \n",
" 1872 | \n",
" 0.03 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 232 | \n",
" fk | \n",
" Falkland Islands (Islas Malvinas) | \n",
" 12173 | \n",
" 12173 | \n",
" 0 | \n",
" 3361 | \n",
" 0.01 | \n",
" 10.9 | \n",
" 4.9 | \n",
" None | \n",
"
\n",
" \n",
" 118 | \n",
" mg | \n",
" Mongolia | \n",
" 1564116 | \n",
" 1553556 | \n",
" 10560 | \n",
" 2992908 | \n",
" 1.31 | \n",
" 20.25 | \n",
" 6.35 | \n",
" 0.84 | \n",
"
\n",
" \n",
" 238 | \n",
" pc | \n",
" Pitcairn Islands | \n",
" 47 | \n",
" 47 | \n",
" 0 | \n",
" 48 | \n",
" 0.0 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 9 | \n",
" as | \n",
" Australia | \n",
" 7741220 | \n",
" 7682300 | \n",
" 58920 | \n",
" 22751014 | \n",
" 1.07 | \n",
" 12.15 | \n",
" 7.14 | \n",
" 5.65 | \n",
"
\n",
" \n",
" 122 | \n",
" wa | \n",
" Namibia | \n",
" 824292 | \n",
" 823290 | \n",
" 1002 | \n",
" 2212307 | \n",
" 0.59 | \n",
" 19.8 | \n",
" 13.91 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 255 | \n",
" wi | \n",
" Western Sahara | \n",
" 266000 | \n",
" 266000 | \n",
" 0 | \n",
" 570866 | \n",
" 2.82 | \n",
" 30.24 | \n",
" 8.34 | \n",
" None | \n",
"
\n",
" \n",
" 23 | \n",
" bc | \n",
" Botswana | \n",
" 581730 | \n",
" 566730 | \n",
" 15000 | \n",
" 2182719 | \n",
" 1.21 | \n",
" 20.96 | \n",
" 13.39 | \n",
" 4.56 | \n",
"
\n",
" \n",
" 32 | \n",
" ca | \n",
" Canada | \n",
" 9984670 | \n",
" 9093507 | \n",
" 891163 | \n",
" 35099836 | \n",
" 0.75 | \n",
" 10.28 | \n",
" 8.42 | \n",
" 5.66 | \n",
"
\n",
" \n",
" 72 | \n",
" gy | \n",
" Guyana | \n",
" 214969 | \n",
" 196849 | \n",
" 18120 | \n",
" 735222 | \n",
" 0.02 | \n",
" 15.59 | \n",
" 7.32 | \n",
" 8.06 | \n",
"
\n",
" \n",
" 76 | \n",
" ic | \n",
" Iceland | \n",
" 103000 | \n",
" 100250 | \n",
" 2750 | \n",
" 331918 | \n",
" 1.21 | \n",
" 13.91 | \n",
" 6.28 | \n",
" 4.43 | \n",
"
\n",
" \n",
" 100 | \n",
" ly | \n",
" Libya | \n",
" 1759540 | \n",
" 1759540 | \n",
" 0 | \n",
" 6411776 | \n",
" 2.23 | \n",
" 18.03 | \n",
" 3.58 | \n",
" 7.8 | \n",
"
\n",
" \n",
" 112 | \n",
" mr | \n",
" Mauritania | \n",
" 1030700 | \n",
" 1030700 | \n",
" 0 | \n",
" 3596702 | \n",
" 2.23 | \n",
" 31.34 | \n",
" 8.2 | \n",
" 0.83 | \n",
"
\n",
" \n",
" 166 | \n",
" ns | \n",
" Suriname | \n",
" 163820 | \n",
" 156000 | \n",
" 7820 | \n",
" 579633 | \n",
" 1.08 | \n",
" 16.34 | \n",
" 6.13 | \n",
" 0.56 | \n",
"
\n",
" \n",
" 220 | \n",
" ne | \n",
" Niue | \n",
" 260 | \n",
" 260 | \n",
" 0 | \n",
" 1190 | \n",
" 0.03 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 62 | \n",
" gb | \n",
" Gabon | \n",
" 267667 | \n",
" 257667 | \n",
" 10000 | \n",
" 1705336 | \n",
" 1.93 | \n",
" 34.49 | \n",
" 13.12 | \n",
" 2.03 | \n",
"
\n",
" \n",
" 87 | \n",
" kz | \n",
" Kazakhstan | \n",
" 2724900 | \n",
" 2699700 | \n",
" 25200 | \n",
" 18157122 | \n",
" 1.14 | \n",
" 19.15 | \n",
" 8.21 | \n",
" 0.41 | \n",
"
\n",
" \n",
" 34 | \n",
" ct | \n",
" Central African Republic | \n",
" 622984 | \n",
" 622984 | \n",
" 0 | \n",
" 5391539 | \n",
" 2.13 | \n",
" 35.08 | \n",
" 13.8 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 143 | \n",
" rs | \n",
" Russia | \n",
" 17098242 | \n",
" 16377742 | \n",
" 720500 | \n",
" 142423773 | \n",
" 0.04 | \n",
" 11.6 | \n",
" 13.69 | \n",
" 1.69 | \n",
"
\n",
" \n",
" 21 | \n",
" bl | \n",
" Bolivia | \n",
" 1098581 | \n",
" 1083301 | \n",
" 15280 | \n",
" 10800882 | \n",
" 1.56 | \n",
" 22.76 | \n",
" 6.52 | \n",
" 0.62 | \n",
"
\n",
" \n",
" 131 | \n",
" mu | \n",
" Oman | \n",
" 309500 | \n",
" 309500 | \n",
" 0 | \n",
" 3286936 | \n",
" 2.07 | \n",
" 24.44 | \n",
" 3.36 | \n",
" 0.43 | \n",
"
\n",
" \n",
" 180 | \n",
" tx | \n",
" Turkmenistan | \n",
" 488100 | \n",
" 469930 | \n",
" 18170 | \n",
" 5231422 | \n",
" 1.14 | \n",
" 19.4 | \n",
" 6.13 | \n",
" 1.84 | \n",
"
\n",
" \n",
" 199 | \n",
" kt | \n",
" Christmas Island | \n",
" 135 | \n",
" 135 | \n",
" 0 | \n",
" 1530 | \n",
" 1.11 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 151 | \n",
" sa | \n",
" Saudi Arabia | \n",
" 2149690 | \n",
" 2149690 | \n",
" 0 | \n",
" 27752316 | \n",
" 1.46 | \n",
" 18.51 | \n",
" 3.33 | \n",
" 0.55 | \n",
"
\n",
" \n",
" 41 | \n",
" cf | \n",
" Congo, Republic of the | \n",
" 342000 | \n",
" 341500 | \n",
" 500 | \n",
" 4755097 | \n",
" 2.0 | \n",
" 35.85 | \n",
" 10.0 | \n",
" 5.9 | \n",
"
\n",
" \n",
" 109 | \n",
" ml | \n",
" Mali | \n",
" 1240192 | \n",
" 1220190 | \n",
" 20002 | \n",
" 16955536 | \n",
" 2.98 | \n",
" 44.99 | \n",
" 12.89 | \n",
" 2.26 | \n",
"
\n",
" \n",
" 135 | \n",
" pp | \n",
" Papua New Guinea | \n",
" 462840 | \n",
" 452860 | \n",
" 9980 | \n",
" 6672429 | \n",
" 1.78 | \n",
" 24.38 | \n",
" 6.53 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 211 | \n",
" nc | \n",
" New Caledonia | \n",
" 18575 | \n",
" 18275 | \n",
" 300 | \n",
" 271615 | \n",
" 1.38 | \n",
" 15.33 | \n",
" 5.52 | \n",
" 4.01 | \n",
"
\n",
" \n",
" 5 | \n",
" ao | \n",
" Angola | \n",
" 1246700 | \n",
" 1246700 | \n",
" 0 | \n",
" 19625353 | \n",
" 2.78 | \n",
" 38.78 | \n",
" 11.49 | \n",
" 0.46 | \n",
"
\n",
" \n",
" 7 | \n",
" ar | \n",
" Argentina | \n",
" 2780400 | \n",
" 2736690 | \n",
" 43710 | \n",
" 43431886 | \n",
" 0.93 | \n",
" 16.64 | \n",
" 7.33 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 18 | \n",
" bh | \n",
" Belize | \n",
" 22966 | \n",
" 22806 | \n",
" 160 | \n",
" 347369 | \n",
" 1.87 | \n",
" 24.68 | \n",
" 5.97 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 3 | \n",
" ag | \n",
" Algeria | \n",
" 2381741 | \n",
" 2381741 | \n",
" 0 | \n",
" 39542166 | \n",
" 1.84 | \n",
" 23.67 | \n",
" 4.31 | \n",
" 0.92 | \n",
"
\n",
" \n",
" 60 | \n",
" fi | \n",
" Finland | \n",
" 338145 | \n",
" 303815 | \n",
" 34330 | \n",
" 5476922 | \n",
" 0.4 | \n",
" 10.72 | \n",
" 9.83 | \n",
" 3.1 | \n",
"
\n",
" \n",
" 126 | \n",
" nz | \n",
" New Zealand | \n",
" 267710 | \n",
" 267710 | \n",
" None | \n",
" 4438393 | \n",
" 0.82 | \n",
" 13.33 | \n",
" 7.36 | \n",
" 2.21 | \n",
"
\n",
" \n",
" 130 | \n",
" no | \n",
" Norway | \n",
" 323802 | \n",
" 304282 | \n",
" 19520 | \n",
" 5207689 | \n",
" 1.13 | \n",
" 12.14 | \n",
" 8.12 | \n",
" 7.25 | \n",
"
\n",
" \n",
" 136 | \n",
" pa | \n",
" Paraguay | \n",
" 406752 | \n",
" 397302 | \n",
" 9450 | \n",
" 6783272 | \n",
" 1.16 | \n",
" 16.37 | \n",
" 4.68 | \n",
" 0.07 | \n",
"
\n",
" \n",
" 160 | \n",
" so | \n",
" Somalia | \n",
" 637657 | \n",
" 627337 | \n",
" 10320 | \n",
" 10616380 | \n",
" 1.83 | \n",
" 40.45 | \n",
" 13.62 | \n",
" 8.49 | \n",
"
\n",
" \n",
" 162 | \n",
" od | \n",
" South Sudan | \n",
" 644329 | \n",
" None | \n",
" None | \n",
" 12042910 | \n",
" 4.02 | \n",
" 36.91 | \n",
" 8.18 | \n",
" 11.47 | \n",
"
\n",
" \n",
" 187 | \n",
" uy | \n",
" Uruguay | \n",
" 176215 | \n",
" 175015 | \n",
" 1200 | \n",
" 3341893 | \n",
" 0.27 | \n",
" 13.07 | \n",
" 9.45 | \n",
" 0.9 | \n",
"
\n",
" \n",
" 20 | \n",
" bt | \n",
" Bhutan | \n",
" 38394 | \n",
" 38394 | \n",
" 0 | \n",
" 741919 | \n",
" 1.11 | \n",
" 17.78 | \n",
" 6.69 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 165 | \n",
" su | \n",
" Sudan | \n",
" 1861484 | \n",
" None | \n",
" None | \n",
" 36108853 | \n",
" 1.72 | \n",
" 29.19 | \n",
" 7.66 | \n",
" 4.29 | \n",
"
\n",
" \n",
" 194 | \n",
" za | \n",
" Zambia | \n",
" 752618 | \n",
" 743398 | \n",
" 9220 | \n",
" 15066266 | \n",
" 2.88 | \n",
" 42.13 | \n",
" 12.67 | \n",
" 0.68 | \n",
"
\n",
" \n",
" 159 | \n",
" bp | \n",
" Solomon Islands | \n",
" 28896 | \n",
" 27986 | \n",
" 910 | \n",
" 622469 | \n",
" 2.02 | \n",
" 25.77 | \n",
" 3.85 | \n",
" 1.75 | \n",
"
\n",
" \n",
" 168 | \n",
" sw | \n",
" Sweden | \n",
" 450295 | \n",
" 410335 | \n",
" 39960 | \n",
" 9801616 | \n",
" 0.8 | \n",
" 11.99 | \n",
" 9.4 | \n",
" 5.42 | \n",
"
\n",
" \n",
" 189 | \n",
" nh | \n",
" Vanuatu | \n",
" 12189 | \n",
" 12189 | \n",
" 0 | \n",
" 272264 | \n",
" 1.95 | \n",
" 25.04 | \n",
" 4.09 | \n",
" 1.47 | \n",
"
\n",
" \n",
" 12 | \n",
" bf | \n",
" Bahamas, The | \n",
" 13880 | \n",
" 10010 | \n",
" 3870 | \n",
" 324597 | \n",
" 0.85 | \n",
" 15.5 | \n",
" 7.05 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 24 | \n",
" br | \n",
" Brazil | \n",
" 8515770 | \n",
" 8358140 | \n",
" 157630 | \n",
" 204259812 | \n",
" 0.77 | \n",
" 14.46 | \n",
" 6.58 | \n",
" 0.14 | \n",
"
\n",
" \n",
" 36 | \n",
" ci | \n",
" Chile | \n",
" 756102 | \n",
" 743812 | \n",
" 12290 | \n",
" 17508260 | \n",
" 0.82 | \n",
" 13.83 | \n",
" 6.0 | \n",
" 0.34 | \n",
"
\n",
" \n",
" 137 | \n",
" pe | \n",
" Peru | \n",
" 1285216 | \n",
" 1279996 | \n",
" 5220 | \n",
" 30444999 | \n",
" 0.97 | \n",
" 18.28 | \n",
" 6.01 | \n",
" 2.53 | \n",
"
\n",
" \n",
" 214 | \n",
" sb | \n",
" Saint Pierre and Miquelon | \n",
" 242 | \n",
" 242 | \n",
" 0 | \n",
" 5657 | \n",
" 1.08 | \n",
" 7.42 | \n",
" 9.72 | \n",
" 8.49 | \n",
"
\n",
" \n",
" 239 | \n",
" sh | \n",
" Saint Helena, Ascension, and Tristan da Cunha | \n",
" 308 | \n",
" 122 | \n",
" 0 | \n",
" 7795 | \n",
" 0.24 | \n",
" 9.88 | \n",
" 7.44 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 55 | \n",
" ek | \n",
" Equatorial Guinea | \n",
" 28051 | \n",
" 28051 | \n",
" 0 | \n",
" 740743 | \n",
" 2.51 | \n",
" 33.31 | \n",
" 8.19 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 57 | \n",
" en | \n",
" Estonia | \n",
" 45228 | \n",
" 42388 | \n",
" 2840 | \n",
" 1265420 | \n",
" 0.55 | \n",
" 10.51 | \n",
" 12.4 | \n",
" 3.6 | \n",
"
\n",
" \n",
" 94 | \n",
" kg | \n",
" Kyrgyzstan | \n",
" 199951 | \n",
" 191801 | \n",
" 8150 | \n",
" 5664939 | \n",
" 1.11 | \n",
" 22.98 | \n",
" 6.65 | \n",
" 5.22 | \n",
"
\n",
" \n",
" 95 | \n",
" la | \n",
" Laos | \n",
" 236800 | \n",
" 230800 | \n",
" 6000 | \n",
" 6911544 | \n",
" 1.55 | \n",
" 24.25 | \n",
" 7.63 | \n",
" 1.09 | \n",
"
\n",
" \n",
" 96 | \n",
" lg | \n",
" Latvia | \n",
" 64589 | \n",
" 62249 | \n",
" 2340 | \n",
" 1986705 | \n",
" 1.06 | \n",
" 10.0 | \n",
" 14.31 | \n",
" 6.26 | \n",
"
\n",
" \n",
" 121 | \n",
" mz | \n",
" Mozambique | \n",
" 799380 | \n",
" 786380 | \n",
" 13000 | \n",
" 25303113 | \n",
" 2.45 | \n",
" 38.58 | \n",
" 12.1 | \n",
" 1.98 | \n",
"
\n",
" \n",
" 186 | \n",
" us | \n",
" United States | \n",
" 9826675 | \n",
" 9161966 | \n",
" 664709 | \n",
" 321368864 | \n",
" 0.78 | \n",
" 12.49 | \n",
" 8.15 | \n",
" 3.86 | \n",
"
\n",
" \n",
" 191 | \n",
" ve | \n",
" Venezuela | \n",
" 912050 | \n",
" 882050 | \n",
" 30000 | \n",
" 29275460 | \n",
" 1.39 | \n",
" 19.16 | \n",
" 5.31 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 40 | \n",
" cg | \n",
" Congo, Democratic Republic of the | \n",
" 2344858 | \n",
" 2267048 | \n",
" 77810 | \n",
" 79375136 | \n",
" 2.45 | \n",
" 34.88 | \n",
" 10.07 | \n",
" 0.27 | \n",
"
\n",
" \n",
" 49 | \n",
" dj | \n",
" Djibouti | \n",
" 23200 | \n",
" 23180 | \n",
" 20 | \n",
" 828324 | \n",
" 2.2 | \n",
" 23.65 | \n",
" 7.73 | \n",
" 6.06 | \n",
"
\n",
" \n",
" 195 | \n",
" zi | \n",
" Zimbabwe | \n",
" 390757 | \n",
" 386847 | \n",
" 3910 | \n",
" 14229541 | \n",
" 2.21 | \n",
" 32.26 | \n",
" 10.13 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 206 | \n",
" fo | \n",
" Faroe Islands | \n",
" 1393 | \n",
" 1393 | \n",
" 0 | \n",
" 50196 | \n",
" 0.51 | \n",
" 13.77 | \n",
" 8.71 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 99 | \n",
" li | \n",
" Liberia | \n",
" 111369 | \n",
" 96320 | \n",
" 15049 | \n",
" 4195666 | \n",
" 2.47 | \n",
" 34.41 | \n",
" 9.69 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 105 | \n",
" ma | \n",
" Madagascar | \n",
" 587041 | \n",
" 581540 | \n",
" 5501 | \n",
" 23812681 | \n",
" 2.58 | \n",
" 32.61 | \n",
" 6.81 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 38 | \n",
" co | \n",
" Colombia | \n",
" 1138910 | \n",
" 1038700 | \n",
" 100210 | \n",
" 46736728 | \n",
" 1.04 | \n",
" 16.47 | \n",
" 5.4 | \n",
" 0.64 | \n",
"
\n",
" \n",
" 219 | \n",
" cw | \n",
" Cook Islands | \n",
" 236 | \n",
" 236 | \n",
" 0 | \n",
" 9838 | \n",
" 2.95 | \n",
" 14.33 | \n",
" 8.03 | \n",
" None | \n",
"
\n",
" \n",
" 200 | \n",
" ck | \n",
" Cocos (Keeling) Islands | \n",
" 14 | \n",
" 14 | \n",
" 0 | \n",
" 596 | \n",
" 0.0 | \n",
" None | \n",
" None | \n",
" None | \n",
"
\n",
" \n",
" 102 | \n",
" lh | \n",
" Lithuania | \n",
" 65300 | \n",
" 62680 | \n",
" 2620 | \n",
" 2884433 | \n",
" 1.04 | \n",
" 10.1 | \n",
" 14.27 | \n",
" 6.27 | \n",
"
\n",
" \n",
" 161 | \n",
" sf | \n",
" South Africa | \n",
" 1219090 | \n",
" 1214470 | \n",
" 4620 | \n",
" 53675563 | \n",
" 1.33 | \n",
" 20.75 | \n",
" 9.91 | \n",
" 2.42 | \n",
"
\n",
" \n",
" 127 | \n",
" nu | \n",
" Nicaragua | \n",
" 130370 | \n",
" 119990 | \n",
" 10380 | \n",
" 5907881 | \n",
" 1.0 | \n",
" 18.03 | \n",
" 5.08 | \n",
" 3.0 | \n",
"
\n",
" \n",
" 16 | \n",
" bo | \n",
" Belarus | \n",
" 207600 | \n",
" 202900 | \n",
" 4700 | \n",
" 9589689 | \n",
" 0.2 | \n",
" 10.7 | \n",
" 13.36 | \n",
" 0.7 | \n",
"
\n",
" \n",
" 119 | \n",
" mj | \n",
" Montenegro | \n",
" 13812 | \n",
" 13452 | \n",
" 360 | \n",
" 647073 | \n",
" 0.42 | \n",
" 10.42 | \n",
" 9.43 | \n",
" None | \n",
"
\n",
" \n",
" 133 | \n",
" ps | \n",
" Palau | \n",
" 459 | \n",
" 459 | \n",
" 0 | \n",
" 21265 | \n",
" 0.38 | \n",
" 11.05 | \n",
" 7.99 | \n",
" 0.71 | \n",
"
\n",
" \n",
" 70 | \n",
" gv | \n",
" Guinea | \n",
" 245857 | \n",
" 245717 | \n",
" 140 | \n",
" 11780162 | \n",
" 2.63 | \n",
" 35.74 | \n",
" 9.46 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 71 | \n",
" pu | \n",
" Guinea-Bissau | \n",
" 36125 | \n",
" 28120 | \n",
" 8005 | \n",
" 1726170 | \n",
" 1.91 | \n",
" 33.38 | \n",
" 14.33 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 134 | \n",
" pm | \n",
" Panama | \n",
" 75420 | \n",
" 74340 | \n",
" 1080 | \n",
" 3657024 | \n",
" 1.32 | \n",
" 18.32 | \n",
" 4.81 | \n",
" 0.28 | \n",
"
\n",
" \n",
" 1 | \n",
" af | \n",
" Afghanistan | \n",
" 652230 | \n",
" 652230 | \n",
" 0 | \n",
" 32564342 | \n",
" 2.32 | \n",
" 38.57 | \n",
" 13.89 | \n",
" 1.51 | \n",
"
\n",
" \n",
" 31 | \n",
" cm | \n",
" Cameroon | \n",
" 475440 | \n",
" 472710 | \n",
" 2730 | \n",
" 23739218 | \n",
" 2.59 | \n",
" 36.17 | \n",
" 10.11 | \n",
" 0.15 | \n",
"
\n",
" \n",
" 59 | \n",
" fj | \n",
" Fiji | \n",
" 18274 | \n",
" 18274 | \n",
" 0 | \n",
" 909389 | \n",
" 0.67 | \n",
" 19.43 | \n",
" 6.04 | \n",
" 6.75 | \n",
"
\n",
" \n",
" 79 | \n",
" ir | \n",
" Iran | \n",
" 1648195 | \n",
" 1531595 | \n",
" 116600 | \n",
" 81824270 | \n",
" 1.2 | \n",
" 17.99 | \n",
" 5.94 | \n",
" 0.07 | \n",
"
\n",
" \n",
" 193 | \n",
" ym | \n",
" Yemen | \n",
" 527968 | \n",
" 527968 | \n",
" 0 | \n",
" 26737317 | \n",
" 2.47 | \n",
" 29.98 | \n",
" 6.28 | \n",
" 1.0 | \n",
"
\n",
" \n",
" 237 | \n",
" mh | \n",
" Montserrat | \n",
" 102 | \n",
" 102 | \n",
" 0 | \n",
" 5241 | \n",
" 0.5 | \n",
" 11.26 | \n",
" 6.3 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 172 | \n",
" tz | \n",
" Tanzania | \n",
" 947300 | \n",
" 885800 | \n",
" 61500 | \n",
" 51045882 | \n",
" 2.79 | \n",
" 36.39 | \n",
" 8.0 | \n",
" 0.54 | \n",
"
\n",
" \n",
" 241 | \n",
" tk | \n",
" Turks and Caicos Islands | \n",
" 948 | \n",
" 948 | \n",
" 0 | \n",
" 50280 | \n",
" 2.3 | \n",
" 16.13 | \n",
" 3.1 | \n",
" 9.94 | \n",
"
\n",
" \n",
" 247 | \n",
" vq | \n",
" Virgin Islands | \n",
" 1910 | \n",
" 346 | \n",
" 1564 | \n",
" 103574 | \n",
" 0.59 | \n",
" 10.31 | \n",
" 8.54 | \n",
" 7.67 | \n",
"
\n",
" \n",
" 52 | \n",
" ec | \n",
" Ecuador | \n",
" 283561 | \n",
" 276841 | \n",
" 6720 | \n",
" 15868396 | \n",
" 1.35 | \n",
" 18.51 | \n",
" 5.06 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 56 | \n",
" er | \n",
" Eritrea | \n",
" 117600 | \n",
" 101000 | \n",
" 16600 | \n",
" 6527689 | \n",
" 2.25 | \n",
" 30.0 | \n",
" 7.52 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 171 | \n",
" ti | \n",
" Tajikistan | \n",
" 144100 | \n",
" 141510 | \n",
" 2590 | \n",
" 8191958 | \n",
" 1.71 | \n",
" 24.38 | \n",
" 6.18 | \n",
" 1.15 | \n",
"
\n",
"
"
],
"text/plain": [
"[(207, 'gl', 'Greenland', 2166086, 2166086, None, 57733, 0.0, 14.48, 8.49, 5.98),\n",
" (224, 'sv', 'Svalbard', 62045, 62045, 0, 1872, 0.03, None, None, None),\n",
" (232, 'fk', 'Falkland Islands (Islas Malvinas)', 12173, 12173, 0, 3361, 0.01, 10.9, 4.9, None),\n",
" (118, 'mg', 'Mongolia', 1564116, 1553556, 10560, 2992908, 1.31, 20.25, 6.35, 0.84),\n",
" (238, 'pc', 'Pitcairn Islands', 47, 47, 0, 48, 0.0, None, None, None),\n",
" (9, 'as', 'Australia', 7741220, 7682300, 58920, 22751014, 1.07, 12.15, 7.14, 5.65),\n",
" (122, 'wa', 'Namibia', 824292, 823290, 1002, 2212307, 0.59, 19.8, 13.91, 0.0),\n",
" (255, 'wi', 'Western Sahara', 266000, 266000, 0, 570866, 2.82, 30.24, 8.34, None),\n",
" (23, 'bc', 'Botswana', 581730, 566730, 15000, 2182719, 1.21, 20.96, 13.39, 4.56),\n",
" (32, 'ca', 'Canada', 9984670, 9093507, 891163, 35099836, 0.75, 10.28, 8.42, 5.66),\n",
" (72, 'gy', 'Guyana', 214969, 196849, 18120, 735222, 0.02, 15.59, 7.32, 8.06),\n",
" (76, 'ic', 'Iceland', 103000, 100250, 2750, 331918, 1.21, 13.91, 6.28, 4.43),\n",
" (100, 'ly', 'Libya', 1759540, 1759540, 0, 6411776, 2.23, 18.03, 3.58, 7.8),\n",
" (112, 'mr', 'Mauritania', 1030700, 1030700, 0, 3596702, 2.23, 31.34, 8.2, 0.83),\n",
" (166, 'ns', 'Suriname', 163820, 156000, 7820, 579633, 1.08, 16.34, 6.13, 0.56),\n",
" (220, 'ne', 'Niue', 260, 260, 0, 1190, 0.03, None, None, None),\n",
" (62, 'gb', 'Gabon', 267667, 257667, 10000, 1705336, 1.93, 34.49, 13.12, 2.03),\n",
" (87, 'kz', 'Kazakhstan', 2724900, 2699700, 25200, 18157122, 1.14, 19.15, 8.21, 0.41),\n",
" (34, 'ct', 'Central African Republic', 622984, 622984, 0, 5391539, 2.13, 35.08, 13.8, 0.0),\n",
" (143, 'rs', 'Russia', 17098242, 16377742, 720500, 142423773, 0.04, 11.6, 13.69, 1.69),\n",
" (21, 'bl', 'Bolivia', 1098581, 1083301, 15280, 10800882, 1.56, 22.76, 6.52, 0.62),\n",
" (131, 'mu', 'Oman', 309500, 309500, 0, 3286936, 2.07, 24.44, 3.36, 0.43),\n",
" (180, 'tx', 'Turkmenistan', 488100, 469930, 18170, 5231422, 1.14, 19.4, 6.13, 1.84),\n",
" (199, 'kt', 'Christmas Island', 135, 135, 0, 1530, 1.11, None, None, None),\n",
" (151, 'sa', 'Saudi Arabia', 2149690, 2149690, 0, 27752316, 1.46, 18.51, 3.33, 0.55),\n",
" (41, 'cf', 'Congo, Republic of the', 342000, 341500, 500, 4755097, 2.0, 35.85, 10.0, 5.9),\n",
" (109, 'ml', 'Mali', 1240192, 1220190, 20002, 16955536, 2.98, 44.99, 12.89, 2.26),\n",
" (135, 'pp', 'Papua New Guinea', 462840, 452860, 9980, 6672429, 1.78, 24.38, 6.53, 0.0),\n",
" (211, 'nc', 'New Caledonia', 18575, 18275, 300, 271615, 1.38, 15.33, 5.52, 4.01),\n",
" (5, 'ao', 'Angola', 1246700, 1246700, 0, 19625353, 2.78, 38.78, 11.49, 0.46),\n",
" (7, 'ar', 'Argentina', 2780400, 2736690, 43710, 43431886, 0.93, 16.64, 7.33, 0.0),\n",
" (18, 'bh', 'Belize', 22966, 22806, 160, 347369, 1.87, 24.68, 5.97, 0.0),\n",
" (3, 'ag', 'Algeria', 2381741, 2381741, 0, 39542166, 1.84, 23.67, 4.31, 0.92),\n",
" (60, 'fi', 'Finland', 338145, 303815, 34330, 5476922, 0.4, 10.72, 9.83, 3.1),\n",
" (126, 'nz', 'New Zealand', 267710, 267710, None, 4438393, 0.82, 13.33, 7.36, 2.21),\n",
" (130, 'no', 'Norway', 323802, 304282, 19520, 5207689, 1.13, 12.14, 8.12, 7.25),\n",
" (136, 'pa', 'Paraguay', 406752, 397302, 9450, 6783272, 1.16, 16.37, 4.68, 0.07),\n",
" (160, 'so', 'Somalia', 637657, 627337, 10320, 10616380, 1.83, 40.45, 13.62, 8.49),\n",
" (162, 'od', 'South Sudan', 644329, None, None, 12042910, 4.02, 36.91, 8.18, 11.47),\n",
" (187, 'uy', 'Uruguay', 176215, 175015, 1200, 3341893, 0.27, 13.07, 9.45, 0.9),\n",
" (20, 'bt', 'Bhutan', 38394, 38394, 0, 741919, 1.11, 17.78, 6.69, 0.0),\n",
" (165, 'su', 'Sudan', 1861484, None, None, 36108853, 1.72, 29.19, 7.66, 4.29),\n",
" (194, 'za', 'Zambia', 752618, 743398, 9220, 15066266, 2.88, 42.13, 12.67, 0.68),\n",
" (159, 'bp', 'Solomon Islands', 28896, 27986, 910, 622469, 2.02, 25.77, 3.85, 1.75),\n",
" (168, 'sw', 'Sweden', 450295, 410335, 39960, 9801616, 0.8, 11.99, 9.4, 5.42),\n",
" (189, 'nh', 'Vanuatu', 12189, 12189, 0, 272264, 1.95, 25.04, 4.09, 1.47),\n",
" (12, 'bf', 'Bahamas, The', 13880, 10010, 3870, 324597, 0.85, 15.5, 7.05, 0.0),\n",
" (24, 'br', 'Brazil', 8515770, 8358140, 157630, 204259812, 0.77, 14.46, 6.58, 0.14),\n",
" (36, 'ci', 'Chile', 756102, 743812, 12290, 17508260, 0.82, 13.83, 6.0, 0.34),\n",
" (137, 'pe', 'Peru', 1285216, 1279996, 5220, 30444999, 0.97, 18.28, 6.01, 2.53),\n",
" (214, 'sb', 'Saint Pierre and Miquelon', 242, 242, 0, 5657, 1.08, 7.42, 9.72, 8.49),\n",
" (239, 'sh', 'Saint Helena, Ascension, and Tristan da Cunha', 308, 122, 0, 7795, 0.24, 9.88, 7.44, 0.0),\n",
" (55, 'ek', 'Equatorial Guinea', 28051, 28051, 0, 740743, 2.51, 33.31, 8.19, 0.0),\n",
" (57, 'en', 'Estonia', 45228, 42388, 2840, 1265420, 0.55, 10.51, 12.4, 3.6),\n",
" (94, 'kg', 'Kyrgyzstan', 199951, 191801, 8150, 5664939, 1.11, 22.98, 6.65, 5.22),\n",
" (95, 'la', 'Laos', 236800, 230800, 6000, 6911544, 1.55, 24.25, 7.63, 1.09),\n",
" (96, 'lg', 'Latvia', 64589, 62249, 2340, 1986705, 1.06, 10.0, 14.31, 6.26),\n",
" (121, 'mz', 'Mozambique', 799380, 786380, 13000, 25303113, 2.45, 38.58, 12.1, 1.98),\n",
" (186, 'us', 'United States', 9826675, 9161966, 664709, 321368864, 0.78, 12.49, 8.15, 3.86),\n",
" (191, 've', 'Venezuela', 912050, 882050, 30000, 29275460, 1.39, 19.16, 5.31, 0.0),\n",
" (40, 'cg', 'Congo, Democratic Republic of the', 2344858, 2267048, 77810, 79375136, 2.45, 34.88, 10.07, 0.27),\n",
" (49, 'dj', 'Djibouti', 23200, 23180, 20, 828324, 2.2, 23.65, 7.73, 6.06),\n",
" (195, 'zi', 'Zimbabwe', 390757, 386847, 3910, 14229541, 2.21, 32.26, 10.13, 0.0),\n",
" (206, 'fo', 'Faroe Islands', 1393, 1393, 0, 50196, 0.51, 13.77, 8.71, 0.0),\n",
" (99, 'li', 'Liberia', 111369, 96320, 15049, 4195666, 2.47, 34.41, 9.69, 0.0),\n",
" (105, 'ma', 'Madagascar', 587041, 581540, 5501, 23812681, 2.58, 32.61, 6.81, 0.0),\n",
" (38, 'co', 'Colombia', 1138910, 1038700, 100210, 46736728, 1.04, 16.47, 5.4, 0.64),\n",
" (219, 'cw', 'Cook Islands', 236, 236, 0, 9838, 2.95, 14.33, 8.03, None),\n",
" (200, 'ck', 'Cocos (Keeling) Islands', 14, 14, 0, 596, 0.0, None, None, None),\n",
" (102, 'lh', 'Lithuania', 65300, 62680, 2620, 2884433, 1.04, 10.1, 14.27, 6.27),\n",
" (161, 'sf', 'South Africa', 1219090, 1214470, 4620, 53675563, 1.33, 20.75, 9.91, 2.42),\n",
" (127, 'nu', 'Nicaragua', 130370, 119990, 10380, 5907881, 1.0, 18.03, 5.08, 3.0),\n",
" (16, 'bo', 'Belarus', 207600, 202900, 4700, 9589689, 0.2, 10.7, 13.36, 0.7),\n",
" (119, 'mj', 'Montenegro', 13812, 13452, 360, 647073, 0.42, 10.42, 9.43, None),\n",
" (133, 'ps', 'Palau', 459, 459, 0, 21265, 0.38, 11.05, 7.99, 0.71),\n",
" (70, 'gv', 'Guinea', 245857, 245717, 140, 11780162, 2.63, 35.74, 9.46, 0.0),\n",
" (71, 'pu', 'Guinea-Bissau', 36125, 28120, 8005, 1726170, 1.91, 33.38, 14.33, 0.0),\n",
" (134, 'pm', 'Panama', 75420, 74340, 1080, 3657024, 1.32, 18.32, 4.81, 0.28),\n",
" (1, 'af', 'Afghanistan', 652230, 652230, 0, 32564342, 2.32, 38.57, 13.89, 1.51),\n",
" (31, 'cm', 'Cameroon', 475440, 472710, 2730, 23739218, 2.59, 36.17, 10.11, 0.15),\n",
" (59, 'fj', 'Fiji', 18274, 18274, 0, 909389, 0.67, 19.43, 6.04, 6.75),\n",
" (79, 'ir', 'Iran', 1648195, 1531595, 116600, 81824270, 1.2, 17.99, 5.94, 0.07),\n",
" (193, 'ym', 'Yemen', 527968, 527968, 0, 26737317, 2.47, 29.98, 6.28, 1.0),\n",
" (237, 'mh', 'Montserrat', 102, 102, 0, 5241, 0.5, 11.26, 6.3, 0.0),\n",
" (172, 'tz', 'Tanzania', 947300, 885800, 61500, 51045882, 2.79, 36.39, 8.0, 0.54),\n",
" (241, 'tk', 'Turks and Caicos Islands', 948, 948, 0, 50280, 2.3, 16.13, 3.1, 9.94),\n",
" (247, 'vq', 'Virgin Islands', 1910, 346, 1564, 103574, 0.59, 10.31, 8.54, 7.67),\n",
" (52, 'ec', 'Ecuador', 283561, 276841, 6720, 15868396, 1.35, 18.51, 5.06, 0.0),\n",
" (56, 'er', 'Eritrea', 117600, 101000, 16600, 6527689, 2.25, 30.0, 7.52, 0.0),\n",
" (171, 'ti', 'Tajikistan', 144100, 141510, 2590, 8191958, 1.71, 24.38, 6.18, 1.15)]"
]
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" WHERE (population/area) <= (SELECT AVG(population)/AVG(area)\n",
" FROM facts\n",
" WHERE name != 'World' AND name != 'Antarctica')\n",
" ORDER BY population/area ASC;"
]
},
{
"cell_type": "code",
"execution_count": 21,
"id": "52366060",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" COUNT(*) | \n",
"
\n",
" \n",
" 90 | \n",
"
\n",
"
"
],
"text/plain": [
"[(90,)]"
]
},
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT COUNT(*)\n",
" FROM facts\n",
" WHERE (population/area) <= (SELECT AVG(population)/AVG(area)\n",
" FROM facts\n",
" WHERE name != 'World' AND name != 'Antarctica');"
]
},
{
"cell_type": "code",
"execution_count": 22,
"id": "8f1eb3e6",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 14 | \n",
" bg | \n",
" Bangladesh | \n",
" 148460 | \n",
" 130170 | \n",
" 18290 | \n",
" 168957745 | \n",
" 1.6 | \n",
" 21.14 | \n",
" 5.61 | \n",
" 0.46 | \n",
"
\n",
" \n",
" 91 | \n",
" ks | \n",
" Korea, South | \n",
" 99720 | \n",
" 96920 | \n",
" 2800 | \n",
" 49115196 | \n",
" 0.14 | \n",
" 8.19 | \n",
" 6.75 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 138 | \n",
" rp | \n",
" Philippines | \n",
" 300000 | \n",
" 298170 | \n",
" 1830 | \n",
" 100998376 | \n",
" 1.61 | \n",
" 24.27 | \n",
" 6.11 | \n",
" 2.09 | \n",
"
\n",
" \n",
" 85 | \n",
" ja | \n",
" Japan | \n",
" 377915 | \n",
" 364485 | \n",
" 13430 | \n",
" 126919659 | \n",
" 0.16 | \n",
" 7.93 | \n",
" 9.51 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 192 | \n",
" vm | \n",
" Vietnam | \n",
" 331210 | \n",
" 310070 | \n",
" 21140 | \n",
" 94348835 | \n",
" 0.97 | \n",
" 15.96 | \n",
" 5.93 | \n",
" 0.3 | \n",
"
\n",
" \n",
" 185 | \n",
" uk | \n",
" United Kingdom | \n",
" 243610 | \n",
" 241930 | \n",
" 1680 | \n",
" 64088222 | \n",
" 0.54 | \n",
" 12.17 | \n",
" 9.35 | \n",
" 2.54 | \n",
"
\n",
" \n",
" 65 | \n",
" gm | \n",
" Germany | \n",
" 357022 | \n",
" 348672 | \n",
" 8350 | \n",
" 80854408 | \n",
" 0.17 | \n",
" 8.47 | \n",
" 11.42 | \n",
" 1.24 | \n",
"
\n",
" \n",
" 83 | \n",
" it | \n",
" Italy | \n",
" 301340 | \n",
" 294140 | \n",
" 7200 | \n",
" 61855120 | \n",
" 0.27 | \n",
" 8.74 | \n",
" 10.19 | \n",
" 4.1 | \n",
"
\n",
" \n",
" 182 | \n",
" ug | \n",
" Uganda | \n",
" 241038 | \n",
" 197100 | \n",
" 43938 | \n",
" 37101745 | \n",
" 3.24 | \n",
" 43.79 | \n",
" 10.69 | \n",
" 0.74 | \n",
"
\n",
" \n",
" 173 | \n",
" th | \n",
" Thailand | \n",
" 513120 | \n",
" 510890 | \n",
" 2230 | \n",
" 67976405 | \n",
" 0.34 | \n",
" 11.19 | \n",
" 7.8 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 139 | \n",
" pl | \n",
" Poland | \n",
" 312685 | \n",
" 304255 | \n",
" 8430 | \n",
" 38562189 | \n",
" 0.09 | \n",
" 9.74 | \n",
" 10.19 | \n",
" 0.46 | \n",
"
\n",
" \n",
" 163 | \n",
" sp | \n",
" Spain | \n",
" 505370 | \n",
" 498980 | \n",
" 6390 | \n",
" 48146134 | \n",
" 0.89 | \n",
" 9.64 | \n",
" 9.04 | \n",
" 8.31 | \n",
"
\n",
" \n",
" 80 | \n",
" iz | \n",
" Iraq | \n",
" 438317 | \n",
" 437367 | \n",
" 950 | \n",
" 37056169 | \n",
" 2.93 | \n",
" 31.45 | \n",
" 3.77 | \n",
" 1.62 | \n",
"
\n",
" \n",
" 120 | \n",
" mo | \n",
" Morocco | \n",
" 446550 | \n",
" 446300 | \n",
" 250 | \n",
" 33322699 | \n",
" 1.0 | \n",
" 18.2 | \n",
" 4.81 | \n",
" 3.36 | \n",
"
\n",
"
"
],
"text/plain": [
"[(14, 'bg', 'Bangladesh', 148460, 130170, 18290, 168957745, 1.6, 21.14, 5.61, 0.46),\n",
" (91, 'ks', 'Korea, South', 99720, 96920, 2800, 49115196, 0.14, 8.19, 6.75, 0.0),\n",
" (138, 'rp', 'Philippines', 300000, 298170, 1830, 100998376, 1.61, 24.27, 6.11, 2.09),\n",
" (85, 'ja', 'Japan', 377915, 364485, 13430, 126919659, 0.16, 7.93, 9.51, 0.0),\n",
" (192, 'vm', 'Vietnam', 331210, 310070, 21140, 94348835, 0.97, 15.96, 5.93, 0.3),\n",
" (185, 'uk', 'United Kingdom', 243610, 241930, 1680, 64088222, 0.54, 12.17, 9.35, 2.54),\n",
" (65, 'gm', 'Germany', 357022, 348672, 8350, 80854408, 0.17, 8.47, 11.42, 1.24),\n",
" (83, 'it', 'Italy', 301340, 294140, 7200, 61855120, 0.27, 8.74, 10.19, 4.1),\n",
" (182, 'ug', 'Uganda', 241038, 197100, 43938, 37101745, 3.24, 43.79, 10.69, 0.74),\n",
" (173, 'th', 'Thailand', 513120, 510890, 2230, 67976405, 0.34, 11.19, 7.8, 0.0),\n",
" (139, 'pl', 'Poland', 312685, 304255, 8430, 38562189, 0.09, 9.74, 10.19, 0.46),\n",
" (163, 'sp', 'Spain', 505370, 498980, 6390, 48146134, 0.89, 9.64, 9.04, 8.31),\n",
" (80, 'iz', 'Iraq', 438317, 437367, 950, 37056169, 2.93, 31.45, 3.77, 1.62),\n",
" (120, 'mo', 'Morocco', 446550, 446300, 250, 33322699, 1.0, 18.2, 4.81, 3.36)]"
]
},
"execution_count": 22,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" WHERE population > (SELECT AVG(population)\n",
" FROM facts\n",
" WHERE name != 'World' AND name != 'Antarctica')\n",
" AND area < (SELECT AVG(area)\n",
" FROM facts\n",
" WHERE name != 'World' AND name != 'Antarctica')\n",
" ORDER BY population/area DESC;"
]
},
{
"cell_type": "code",
"execution_count": 23,
"id": "8802ba5d",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" COUNT(*) | \n",
"
\n",
" \n",
" 14 | \n",
"
\n",
"
"
],
"text/plain": [
"[(14,)]"
]
},
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT COUNT(*)\n",
" FROM facts\n",
" WHERE (population > (SELECT AVG(population)\n",
" FROM facts\n",
" WHERE name != 'World' AND name != 'Antarctica'))\n",
" AND (area < (SELECT AVG(area)\n",
" FROM facts\n",
" WHERE name != 'World' AND name != 'Antarctica'));"
]
},
{
"cell_type": "code",
"execution_count": 24,
"id": "1fa7fcae",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" id | \n",
" code | \n",
" name | \n",
" area | \n",
" area_land | \n",
" area_water | \n",
" population | \n",
" population_growth | \n",
" birth_rate | \n",
" death_rate | \n",
" migration_rate | \n",
"
\n",
" \n",
" 207 | \n",
" gl | \n",
" Greenland | \n",
" 2166086 | \n",
" 2166086 | \n",
" None | \n",
" 57733 | \n",
" 0.0 | \n",
" 14.48 | \n",
" 8.49 | \n",
" 5.98 | \n",
"
\n",
" \n",
" 118 | \n",
" mg | \n",
" Mongolia | \n",
" 1564116 | \n",
" 1553556 | \n",
" 10560 | \n",
" 2992908 | \n",
" 1.31 | \n",
" 20.25 | \n",
" 6.35 | \n",
" 0.84 | \n",
"
\n",
" \n",
" 9 | \n",
" as | \n",
" Australia | \n",
" 7741220 | \n",
" 7682300 | \n",
" 58920 | \n",
" 22751014 | \n",
" 1.07 | \n",
" 12.15 | \n",
" 7.14 | \n",
" 5.65 | \n",
"
\n",
" \n",
" 122 | \n",
" wa | \n",
" Namibia | \n",
" 824292 | \n",
" 823290 | \n",
" 1002 | \n",
" 2212307 | \n",
" 0.59 | \n",
" 19.8 | \n",
" 13.91 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 23 | \n",
" bc | \n",
" Botswana | \n",
" 581730 | \n",
" 566730 | \n",
" 15000 | \n",
" 2182719 | \n",
" 1.21 | \n",
" 20.96 | \n",
" 13.39 | \n",
" 4.56 | \n",
"
\n",
" \n",
" 100 | \n",
" ly | \n",
" Libya | \n",
" 1759540 | \n",
" 1759540 | \n",
" 0 | \n",
" 6411776 | \n",
" 2.23 | \n",
" 18.03 | \n",
" 3.58 | \n",
" 7.8 | \n",
"
\n",
" \n",
" 112 | \n",
" mr | \n",
" Mauritania | \n",
" 1030700 | \n",
" 1030700 | \n",
" 0 | \n",
" 3596702 | \n",
" 2.23 | \n",
" 31.34 | \n",
" 8.2 | \n",
" 0.83 | \n",
"
\n",
" \n",
" 87 | \n",
" kz | \n",
" Kazakhstan | \n",
" 2724900 | \n",
" 2699700 | \n",
" 25200 | \n",
" 18157122 | \n",
" 1.14 | \n",
" 19.15 | \n",
" 8.21 | \n",
" 0.41 | \n",
"
\n",
" \n",
" 34 | \n",
" ct | \n",
" Central African Republic | \n",
" 622984 | \n",
" 622984 | \n",
" 0 | \n",
" 5391539 | \n",
" 2.13 | \n",
" 35.08 | \n",
" 13.8 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 21 | \n",
" bl | \n",
" Bolivia | \n",
" 1098581 | \n",
" 1083301 | \n",
" 15280 | \n",
" 10800882 | \n",
" 1.56 | \n",
" 22.76 | \n",
" 6.52 | \n",
" 0.62 | \n",
"
\n",
" \n",
" 151 | \n",
" sa | \n",
" Saudi Arabia | \n",
" 2149690 | \n",
" 2149690 | \n",
" 0 | \n",
" 27752316 | \n",
" 1.46 | \n",
" 18.51 | \n",
" 3.33 | \n",
" 0.55 | \n",
"
\n",
" \n",
" 109 | \n",
" ml | \n",
" Mali | \n",
" 1240192 | \n",
" 1220190 | \n",
" 20002 | \n",
" 16955536 | \n",
" 2.98 | \n",
" 44.99 | \n",
" 12.89 | \n",
" 2.26 | \n",
"
\n",
" \n",
" 5 | \n",
" ao | \n",
" Angola | \n",
" 1246700 | \n",
" 1246700 | \n",
" 0 | \n",
" 19625353 | \n",
" 2.78 | \n",
" 38.78 | \n",
" 11.49 | \n",
" 0.46 | \n",
"
\n",
" \n",
" 160 | \n",
" so | \n",
" Somalia | \n",
" 637657 | \n",
" 627337 | \n",
" 10320 | \n",
" 10616380 | \n",
" 1.83 | \n",
" 40.45 | \n",
" 13.62 | \n",
" 8.49 | \n",
"
\n",
" \n",
" 162 | \n",
" od | \n",
" South Sudan | \n",
" 644329 | \n",
" None | \n",
" None | \n",
" 12042910 | \n",
" 4.02 | \n",
" 36.91 | \n",
" 8.18 | \n",
" 11.47 | \n",
"
\n",
" \n",
" 194 | \n",
" za | \n",
" Zambia | \n",
" 752618 | \n",
" 743398 | \n",
" 9220 | \n",
" 15066266 | \n",
" 2.88 | \n",
" 42.13 | \n",
" 12.67 | \n",
" 0.68 | \n",
"
\n",
" \n",
" 36 | \n",
" ci | \n",
" Chile | \n",
" 756102 | \n",
" 743812 | \n",
" 12290 | \n",
" 17508260 | \n",
" 0.82 | \n",
" 13.83 | \n",
" 6.0 | \n",
" 0.34 | \n",
"
\n",
" \n",
" 137 | \n",
" pe | \n",
" Peru | \n",
" 1285216 | \n",
" 1279996 | \n",
" 5220 | \n",
" 30444999 | \n",
" 0.97 | \n",
" 18.28 | \n",
" 6.01 | \n",
" 2.53 | \n",
"
\n",
" \n",
" 121 | \n",
" mz | \n",
" Mozambique | \n",
" 799380 | \n",
" 786380 | \n",
" 13000 | \n",
" 25303113 | \n",
" 2.45 | \n",
" 38.58 | \n",
" 12.1 | \n",
" 1.98 | \n",
"
\n",
" \n",
" 191 | \n",
" ve | \n",
" Venezuela | \n",
" 912050 | \n",
" 882050 | \n",
" 30000 | \n",
" 29275460 | \n",
" 1.39 | \n",
" 19.16 | \n",
" 5.31 | \n",
" 0.0 | \n",
"
\n",
" \n",
" 105 | \n",
" ma | \n",
" Madagascar | \n",
" 587041 | \n",
" 581540 | \n",
" 5501 | \n",
" 23812681 | \n",
" 2.58 | \n",
" 32.61 | \n",
" 6.81 | \n",
" 0.0 | \n",
"
\n",
"
"
],
"text/plain": [
"[(207, 'gl', 'Greenland', 2166086, 2166086, None, 57733, 0.0, 14.48, 8.49, 5.98),\n",
" (118, 'mg', 'Mongolia', 1564116, 1553556, 10560, 2992908, 1.31, 20.25, 6.35, 0.84),\n",
" (9, 'as', 'Australia', 7741220, 7682300, 58920, 22751014, 1.07, 12.15, 7.14, 5.65),\n",
" (122, 'wa', 'Namibia', 824292, 823290, 1002, 2212307, 0.59, 19.8, 13.91, 0.0),\n",
" (23, 'bc', 'Botswana', 581730, 566730, 15000, 2182719, 1.21, 20.96, 13.39, 4.56),\n",
" (100, 'ly', 'Libya', 1759540, 1759540, 0, 6411776, 2.23, 18.03, 3.58, 7.8),\n",
" (112, 'mr', 'Mauritania', 1030700, 1030700, 0, 3596702, 2.23, 31.34, 8.2, 0.83),\n",
" (87, 'kz', 'Kazakhstan', 2724900, 2699700, 25200, 18157122, 1.14, 19.15, 8.21, 0.41),\n",
" (34, 'ct', 'Central African Republic', 622984, 622984, 0, 5391539, 2.13, 35.08, 13.8, 0.0),\n",
" (21, 'bl', 'Bolivia', 1098581, 1083301, 15280, 10800882, 1.56, 22.76, 6.52, 0.62),\n",
" (151, 'sa', 'Saudi Arabia', 2149690, 2149690, 0, 27752316, 1.46, 18.51, 3.33, 0.55),\n",
" (109, 'ml', 'Mali', 1240192, 1220190, 20002, 16955536, 2.98, 44.99, 12.89, 2.26),\n",
" (5, 'ao', 'Angola', 1246700, 1246700, 0, 19625353, 2.78, 38.78, 11.49, 0.46),\n",
" (160, 'so', 'Somalia', 637657, 627337, 10320, 10616380, 1.83, 40.45, 13.62, 8.49),\n",
" (162, 'od', 'South Sudan', 644329, None, None, 12042910, 4.02, 36.91, 8.18, 11.47),\n",
" (194, 'za', 'Zambia', 752618, 743398, 9220, 15066266, 2.88, 42.13, 12.67, 0.68),\n",
" (36, 'ci', 'Chile', 756102, 743812, 12290, 17508260, 0.82, 13.83, 6.0, 0.34),\n",
" (137, 'pe', 'Peru', 1285216, 1279996, 5220, 30444999, 0.97, 18.28, 6.01, 2.53),\n",
" (121, 'mz', 'Mozambique', 799380, 786380, 13000, 25303113, 2.45, 38.58, 12.1, 1.98),\n",
" (191, 've', 'Venezuela', 912050, 882050, 30000, 29275460, 1.39, 19.16, 5.31, 0.0),\n",
" (105, 'ma', 'Madagascar', 587041, 581540, 5501, 23812681, 2.58, 32.61, 6.81, 0.0)]"
]
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT *\n",
" FROM facts\n",
" WHERE population <= (SELECT AVG(population)\n",
" FROM facts\n",
" WHERE name != 'World' AND name != 'Antarctica')\n",
" AND area >= (SELECT AVG(area)\n",
" FROM facts\n",
" WHERE name != 'World' AND name != 'Antarctica')\n",
" ORDER BY population/area ASC;"
]
},
{
"cell_type": "code",
"execution_count": 25,
"id": "2036dea3",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" * sqlite:///factbook.db\n",
"Done.\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" COUNT(*) | \n",
"
\n",
" \n",
" 21 | \n",
"
\n",
"
"
],
"text/plain": [
"[(21,)]"
]
},
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"%%sql\n",
"SELECT COUNT(*)\n",
" FROM facts\n",
" WHERE population <= (SELECT AVG(population)\n",
" FROM facts\n",
" WHERE name != 'World' AND name != 'Antarctica')\n",
" AND area >= (SELECT AVG(area)\n",
" FROM facts\n",
" WHERE name != 'World' AND name != 'Antarctica');"
]
},
{
"cell_type": "markdown",
"id": "33385482",
"metadata": {},
"source": [
"**Observations** \n",
"The two methods produce fairly different results, with some overlap. The largest difference is the capture size of the two groups, which subsequently gives different countries. \n",
"* The first method, comparing a country specific density ratio to average density ratio, yields 146 countries above average and 90 countries below or equal to average for a total of 236. \n",
"* Method two, using a double criteria match, yields 14 countries with high population and low area and 21 countries with low population and high area. This gives a total of 35 countries, a much smaller selection. \n",
"\n",
"Taking a closer look at the whole dataset shows 20 countries that list population as zero or none, leaving only five countries out of the group produced by the first method. These most likely have an area value of `none`, like the entry for [Saint Bathelemy](https://en.wikipedia.org/wiki/Saint_Barth%C3%A9lemy). Which incidentally looks like an awesome place to go visit! Here is a table with the results. The upper and lower bounds for each subgroup are provided."
]
},
{
"cell_type": "markdown",
"id": "50f14d0d",
"metadata": {},
"source": [
"| Method 1 | | || Method 2 | | |\n",
"| --- | --- | --- || --- | --- | --- |\n",
"| City | population : area | ratio || City | population : area | ratio |\n",
"| [Macau](https://en.wikipedia.org/wiki/Macau) | 592,731 : 28 | 21,168.96 || [Bangladesh](https://en.wikipedia.org/wiki/Bangladesh) | 168,957,745 : 148,460 | 1138.07 |\n",
"| [Norfolk Island](https://en.wikipedia.org/wiki/Norfolk_Island) | 2,210 : 36 | 61.38 || [Morocco](https://en.wikipedia.org/wiki/Morocco) | 33,322,699 : 446,300 | 74.66 |\n",
"| [Greenland](https://en.wikipedia.org/wiki/Greenland) | 57,733 : 2,166,086 | 0.03 || [Greenland](https://en.wikipedia.org/wiki/Greenland) | 57,733 : 2,166,086 | 0.03 |\n",
"| [Tajikistan](https://en.wikipedia.org/wiki/Tajikistan) | 8,191,958 : 144,100 | 56.85 || [Madagascar](https://en.wikipedia.org/wiki/Madagascar) | 2,381,268 : 587,041 | 4.06 |"
]
},
{
"cell_type": "markdown",
"id": "894a5901",
"metadata": {},
"source": [
"## Conclusions\n",
" \n",
"This is just an quick overview of the information contained in this dataset. Overall it seems like an interesting product that could be combined with other data to yield results with increased depth. That being said, the context of the source needs to be taken into account."
]
},
{
"cell_type": "markdown",
"id": "a400b98b",
"metadata": {},
"source": [
"## Citations\n",
" \n",
" \n",
"1) Central Intelligence Agency. (n.d.). The World Factbook. Central Intelligence Agency. Retrieved August 30, 2022, from https://www.cia.gov/the-world-factbook/ \n",
"2) Wikimedia Foundation. (2022, August 10). The World Factbook. Wikipedia. Retrieved August 30, 2022, from https://en.wikipedia.org/wiki/The_World_Factbook \n",
"3) Shepard, A. C. (2010, June 2). CIA gets numbers wrong on Jewish settlers. NPR. Retrieved August 30, 2022, from https://www.npr.org/sections/publiceditor/2010/06/02/127349281/cia-gets-numbers-wrong-on-jewish-settlers "
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
}
},
"nbformat": 4,
"nbformat_minor": 5
}