PRAGMA foreign_keys = ON;

PRAGMA writable_schema = 1;
DELETE FROM sqlite_master WHERE type IN ("table", "index", "trigger");
PRAGMA writable_schema = 0;
VACUUM;

CREATE TABLE "city" (
"ID" INT,
"Name" CHAR(35),
PRIMARY KEY ("ID")
);

CREATE TABLE "country" (
"Code" CHAR(3) UNIQUE,
"Name" CHAR(52),
"Population" INT,
"GovernmentForm" CHAR(45),
PRIMARY KEY ("Code")
);

CREATE TABLE "countrylanguage" (
"CountryCode" CHAR(3),
"Language" CHAR(30),
"IsOfficial" TEXT,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY ("CountryCode") REFERENCES "country"("Code")
);





INSERT INTO "city" VALUES ("1", "Kabul");
INSERT INTO "city" VALUES ("2", "Qandahar");
INSERT INTO "city" VALUES ("3", "Herat");
INSERT INTO "city" VALUES ("4", "Mazar-e-Sharif");
INSERT INTO "city" VALUES ("5", "Amsterdam");
INSERT INTO "city" VALUES ("6", "Rotterdam");
INSERT INTO "city" VALUES ("7", "The Hague");
INSERT INTO "city" VALUES ("8", "Utrecht");
INSERT INTO "city" VALUES ("9", "Eindhoven");
INSERT INTO "city" VALUES ("10", "Groningen");
INSERT INTO "country" VALUES ("AFG", "Afghanistan", "22720000", "Islamic Emirate");
INSERT INTO "country" VALUES ("NLD", "Netherlands", "15947000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("GBR", "United Kingdom", "59623400", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("USA", "United States", "278357000", "Federal Republic");
INSERT INTO "country" VALUES ("CAN", "Canada", "31147000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("AUS", "Australia", "18886000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("IND", "India", "1013662000", "Federal Republic");
INSERT INTO "country" VALUES ("CHN", "China", "1277558000", "People's Republic");
INSERT INTO "country" VALUES ("JPN", "Japan", "126714000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("DEU", "Germany", "82164700", "Federal Republic");
INSERT INTO "country" VALUES ("FRA", "France", "59225700", "Republic");
INSERT INTO "country" VALUES ("BRA", "Brazil", "170115000", "Federal Republic");
INSERT INTO "country" VALUES ("ARG", "Argentina", "37032000", "Federal Republic");
INSERT INTO "country" VALUES ("EGY", "Egypt", "68470000", "Republic");
INSERT INTO "country" VALUES ("ZAF", "South Africa", "40377000", "Republic");
INSERT INTO "country" VALUES ("MEX", "Mexico", "98881000", "Federal Republic");
INSERT INTO "country" VALUES ("RUS", "Russian Federation", "146934000", "Federal Republic");
INSERT INTO "country" VALUES ("KOR", "South Korea", "46844000", "Republic");
INSERT INTO "country" VALUES ("ITA", "Italy", "57680700", "Republic");
INSERT INTO "country" VALUES ("ESP", "Spain", "39441700", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("SWE", "Sweden", "8861400", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("NOR", "Norway", "4478500", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("FIN", "Finland", "5171300", "Republic");
INSERT INTO "country" VALUES ("DNK", "Denmark", "5330000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("CHE", "Switzerland", "7160400", "Federal Republic");
INSERT INTO "country" VALUES ("AUT", "Austria", "8091900", "Federal Republic");
INSERT INTO "country" VALUES ("BEL", "Belgium", "10239000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("GRC", "Greece", "10645900", "Republic");
INSERT INTO "country" VALUES ("PRT", "Portugal", "9997600", "Republic");
INSERT INTO "country" VALUES ("IRL", "Ireland", "3788500", "Republic");
INSERT INTO "country" VALUES ("NZL", "New Zealand", "3862000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("SGP", "Singapore", "3567000", "Republic");
INSERT INTO "country" VALUES ("MYS", "Malaysia", "22244000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("THA", "Thailand", "61399000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("VNM", "Vietnam", "79832000", "Socialist Republic");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "212107000", "Republic");
INSERT INTO "country" VALUES ("PHL", "Philippines", "76987000", "Republic");
INSERT INTO "country" VALUES ("PAK", "Pakistan", "156483000", "Federal Republic");
INSERT INTO "country" VALUES ("BGD", "Bangladesh", "129155000", "Republic");
INSERT INTO "country" VALUES ("NGA", "Nigeria", "111506000", "Federal Republic");
INSERT INTO "country" VALUES ("ETH", "Ethiopia", "62565000", "Federal Republic");
INSERT INTO "country" VALUES ("KEN", "Kenya", "30080000", "Republic");
INSERT INTO "country" VALUES ("TZA", "Tanzania", "33790000", "Republic");
INSERT INTO "country" VALUES ("UGA", "Uganda", "21778000", "Republic");
INSERT INTO "country" VALUES ("DZA", "Algeria", "31471000", "Republic");
INSERT INTO "country" VALUES ("MAR", "Morocco", "29161000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("SDN", "Sudan", "30921000", "Federal Republic");
INSERT INTO "country" VALUES ("AGO", "Angola", "12878000", "Republic");
INSERT INTO "country" VALUES ("MOZ", "Mozambique", "19686000", "Republic");
INSERT INTO "country" VALUES ("COD", "Congo, The Democratic Republic of the", "50416000", "Republic");
INSERT INTO "country" VALUES ("ZMB", "Zambia", "9169000", "Republic");
INSERT INTO "country" VALUES ("ZWE", "Zimbabwe", "11669000", "Republic");
INSERT INTO "country" VALUES ("MDG", "Madagascar", "15942000", "Republic");
INSERT INTO "country" VALUES ("CMR", "Cameroon", "15085000", "Republic");
INSERT INTO "country" VALUES ("CIV", "Cote d'Ivoire", "14782000", "Republic");
INSERT INTO "country" VALUES ("GHA", "Ghana", "18888000", "Republic");
INSERT INTO "country" VALUES ("SEN", "Senegal", "9481000", "Republic");
INSERT INTO "country" VALUES ("MLI", "Mali", "11241000", "Republic");
INSERT INTO "country" VALUES ("NER", "Niger", "10146000", "Republic");
INSERT INTO "country" VALUES ("BFA", "Burkina Faso", "11937000", "Republic");
INSERT INTO "country" VALUES ("TCD", "Chad", "7615000", "Republic");
INSERT INTO "country" VALUES ("SOM", "Somalia", "10100000", "Republic");
INSERT INTO "country" VALUES ("ERI", "Eritrea", "3850000", "Republic");
INSERT INTO "country" VALUES ("DJI", "Djibouti", "691000", "Republic");
INSERT INTO "country" VALUES ("CAF", "Central African Republic", "3615000", "Republic");
INSERT INTO "country" VALUES ("GAB", "Gabon", "1226000", "Republic");
INSERT INTO "country" VALUES ("COG", "Congo", "2943000", "Republic");
INSERT INTO "country" VALUES ("BEN", "Benin", "6095000", "Republic");
INSERT INTO "country" VALUES ("TGO", "Togo", "4625000", "Republic");
INSERT INTO "country" VALUES ("SLE", "Sierra Leone", "4843000", "Republic");
INSERT INTO "country" VALUES ("LBR", "Liberia", "3154000", "Republic");
INSERT INTO "country" VALUES ("GIN", "Guinea", "7430000", "Republic");
INSERT INTO "country" VALUES ("GNB", "Guinea-Bissau", "1213000", "Republic");
INSERT INTO "country" VALUES ("CPV", "Cape Verde", "435000", "Republic");
INSERT INTO "country" VALUES ("MRT", "Mauritania", "2670000", "Republic");
INSERT INTO "country" VALUES ("GMB", "Gambia", "1305000", "Republic");
INSERT INTO "country" VALUES ("BWA", "Botswana", "1622000", "Republic");
INSERT INTO "country" VALUES ("NAM", "Namibia", "1726000", "Republic");
INSERT INTO "country" VALUES ("LSO", "Lesotho", "2153000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("SWZ", "Swaziland", "1083000", "Absolute Monarchy");
INSERT INTO "country" VALUES ("COM", "Comoros", "578000", "Republic");
INSERT INTO "country" VALUES ("MUS", "Mauritius", "1158000", "Republic");
INSERT INTO "country" VALUES ("SYC", "Seychelles", "77000", "Republic");
INSERT INTO "country" VALUES ("MDV", "Maldives", "286000", "Republic");
INSERT INTO "country" VALUES ("LKA", "Sri Lanka", "18827000", "Republic");
INSERT INTO "country" VALUES ("NPL", "Nepal", "23949000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("BTN", "Bhutan", "2124000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("MMR", "Myanmar", "45611000", "Military Junta");
INSERT INTO "country" VALUES ("LAO", "Laos", "5433000", "People's Republic");
INSERT INTO "country" VALUES ("KHM", "Cambodia", "11168000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("BRN", "Brunei", "328000", "Sultanate");
INSERT INTO "country" VALUES ("TLS", "East Timor", "885000", "Republic");
INSERT INTO "country" VALUES ("PRK", "North Korea", "23348000", "People's Republic");
INSERT INTO "country" VALUES ("MNG", "Mongolia", "2654000", "Republic");
INSERT INTO "country" VALUES ("KAZ", "Kazakstan", "16223000", "Republic");
INSERT INTO "country" VALUES ("KGZ", "Kyrgyzstan", "4699000", "Republic");
INSERT INTO "country" VALUES ("TJK", "Tajikistan", "6188000", "Republic");
INSERT INTO "country" VALUES ("TKM", "Turkmenistan", "4518000", "Republic");
INSERT INTO "country" VALUES ("UZB", "Uzbekistan", "24318000", "Republic");
INSERT INTO "country" VALUES ("AZE", "Azerbaijan", "7734000", "Republic");
INSERT INTO "country" VALUES ("ARM", "Armenia", "3520000", "Republic");
INSERT INTO "country" VALUES ("GEO", "Georgia", "5404000", "Republic");
INSERT INTO "country" VALUES ("TUR", "Turkey", "66591000", "Republic");
INSERT INTO "country" VALUES ("CYP", "Cyprus", "759000", "Republic");
INSERT INTO "country" VALUES ("SYR", "Syria", "16125000", "Republic");
INSERT INTO "country" VALUES ("LBN", "Lebanon", "3286000", "Republic");
INSERT INTO "country" VALUES ("ISR", "Israel", "6217000", "Republic");
INSERT INTO "country" VALUES ("JOR", "Jordan", "4823000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("SAU", "Saudi Arabia", "21607000", "Absolute Monarchy");
INSERT INTO "country" VALUES ("KWT", "Kuwait", "1972000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("BHR", "Bahrain", "617000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("QAT", "Qatar", "599000", "Monarchy");
INSERT INTO "country" VALUES ("ARE", "United Arab Emirates", "2441000", "Federal Monarchy");
INSERT INTO "country" VALUES ("OMN", "Oman", "2441000", "Sultanate");
INSERT INTO "country" VALUES ("YEM", "Yemen", "18112000", "Republic");
INSERT INTO "country" VALUES ("IRN", "Iran", "67695000", "Islamic Republic");
INSERT INTO "country" VALUES ("IRQ", "Iraq", "23115000", "Republic");
INSERT INTO "country" VALUES ("AFG", "Afghanistan", "22720000", "Islamic Emirate");
INSERT INTO "country" VALUES ("NLD", "Netherlands", "15947000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("GBR", "United Kingdom", "59623400", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("USA", "United States", "278357000", "Federal Republic");
INSERT INTO "country" VALUES ("CAN", "Canada", "31147000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("AUS", "Australia", "18886000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("IND", "India", "1013662000", "Federal Republic");
INSERT INTO "country" VALUES ("CHN", "China", "1277558000", "People's Republic");
INSERT INTO "country" VALUES ("JPN", "Japan", "126714000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("DEU", "Germany", "82164700", "Federal Republic");
INSERT INTO "country" VALUES ("FRA", "France", "59225700", "Republic");
INSERT INTO "country" VALUES ("BRA", "Brazil", "170115000", "Federal Republic");
INSERT INTO "country" VALUES ("ARG", "Argentina", "37032000", "Federal Republic");
INSERT INTO "country" VALUES ("EGY", "Egypt", "68470000", "Republic");
INSERT INTO "country" VALUES ("ZAF", "South Africa", "40377000", "Republic");
INSERT INTO "country" VALUES ("MEX", "Mexico", "98881000", "Federal Republic");
INSERT INTO "country" VALUES ("RUS", "Russian Federation", "146934000", "Federal Republic");
INSERT INTO "country" VALUES ("KOR", "South Korea", "46844000", "Republic");
INSERT INTO "country" VALUES ("ITA", "Italy", "57680700", "Republic");
INSERT INTO "country" VALUES ("ESP", "Spain", "39441700", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("SWE", "Sweden", "8861400", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("NOR", "Norway", "4478500", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("FIN", "Finland", "5171300", "Republic");
INSERT INTO "country" VALUES ("DNK", "Denmark", "5330000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("CHE", "Switzerland", "7160400", "Federal Republic");
INSERT INTO "country" VALUES ("AUT", "Austria", "8091900", "Federal Republic");
INSERT INTO "country" VALUES ("BEL", "Belgium", "10239000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("GRC", "Greece", "10645900", "Republic");
INSERT INTO "country" VALUES ("PRT", "Portugal", "9997600", "Republic");
INSERT INTO "country" VALUES ("IRL", "Ireland", "3788500", "Republic");
INSERT INTO "country" VALUES ("NZL", "New Zealand", "3862000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("SGP", "Singapore", "3567000", "Republic");
INSERT INTO "country" VALUES ("MYS", "Malaysia", "22244000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("THA", "Thailand", "61399000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("VNM", "Vietnam", "79832000", "Socialist Republic");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "212107000", "Republic");
INSERT INTO "country" VALUES ("PHL", "Philippines", "76987000", "Republic");
INSERT INTO "country" VALUES ("PAK", "Pakistan", "156483000", "Federal Republic");
INSERT INTO "country" VALUES ("BGD", "Bangladesh", "129155000", "Republic");
INSERT INTO "country" VALUES ("NGA", "Nigeria", "111506000", "Federal Republic");
INSERT INTO "country" VALUES ("ETH", "Ethiopia", "62565000", "Federal Republic");
INSERT INTO "country" VALUES ("KEN", "Kenya", "30080000", "Republic");
INSERT INTO "country" VALUES ("TZA", "Tanzania", "33790000", "Republic");
INSERT INTO "country" VALUES ("UGA", "Uganda", "21778000", "Republic");
INSERT INTO "country" VALUES ("DZA", "Algeria", "31471000", "Republic");
INSERT INTO "country" VALUES ("MAR", "Morocco", "29161000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("SDN", "Sudan", "30921000", "Federal Republic");
INSERT INTO "country" VALUES ("AGO", "Angola", "12878000", "Republic");
INSERT INTO "country" VALUES ("MOZ", "Mozambique", "19686000", "Republic");
INSERT INTO "country" VALUES ("COD", "Congo, The Democratic Republic of the", "50416000", "Republic");
INSERT INTO "country" VALUES ("ZMB", "Zambia", "9169000", "Republic");
INSERT INTO "country" VALUES ("ZWE", "Zimbabwe", "11669000", "Republic");
INSERT INTO "country" VALUES ("MDG", "Madagascar", "15942000", "Republic");
INSERT INTO "country" VALUES ("CMR", "Cameroon", "15085000", "Republic");
INSERT INTO "country" VALUES ("CIV", "Cote d'Ivoire", "14782000", "Republic");
INSERT INTO "country" VALUES ("GHA", "Ghana", "18888000", "Republic");
INSERT INTO "country" VALUES ("SEN", "Senegal", "9481000", "Republic");
INSERT INTO "country" VALUES ("MLI", "Mali", "11241000", "Republic");
INSERT INTO "country" VALUES ("NER", "Niger", "10146000", "Republic");
INSERT INTO "country" VALUES ("BFA", "Burkina Faso", "11937000", "Republic");
INSERT INTO "country" VALUES ("TCD", "Chad", "7615000", "Republic");
INSERT INTO "country" VALUES ("SOM", "Somalia", "10100000", "Republic");
INSERT INTO "country" VALUES ("ERI", "Eritrea", "3850000", "Republic");
INSERT INTO "country" VALUES ("DJI", "Djibouti", "691000", "Republic");
INSERT INTO "country" VALUES ("CAF", "Central African Republic", "3615000", "Republic");
INSERT INTO "country" VALUES ("GAB", "Gabon", "1226000", "Republic");
INSERT INTO "country" VALUES ("COG", "Congo", "2943000", "Republic");
INSERT INTO "country" VALUES ("BEN", "Benin", "6095000", "Republic");
INSERT INTO "country" VALUES ("TGO", "Togo", "4625000", "Republic");
INSERT INTO "country" VALUES ("SLE", "Sierra Leone", "4843000", "Republic");
INSERT INTO "country" VALUES ("LBR", "Liberia", "3154000", "Republic");
INSERT INTO "country" VALUES ("GIN", "Guinea", "7430000", "Republic");
INSERT INTO "country" VALUES ("GNB", "Guinea-Bissau", "1213000", "Republic");
INSERT INTO "country" VALUES ("CPV", "Cape Verde", "435000", "Republic");
INSERT INTO "country" VALUES ("MRT", "Mauritania", "2670000", "Republic");
INSERT INTO "country" VALUES ("GMB", "Gambia", "1305000", "Republic");
INSERT INTO "country" VALUES ("BWA", "Botswana", "1622000", "Republic");
INSERT INTO "country" VALUES ("NAM", "Namibia", "1726000", "Republic");
INSERT INTO "country" VALUES ("LSO", "Lesotho", "2153000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("SWZ", "Swaziland", "1083000", "Absolute Monarchy");
INSERT INTO "country" VALUES ("COM", "Comoros", "578000", "Republic");
INSERT INTO "country" VALUES ("MUS", "Mauritius", "1158000", "Republic");
INSERT INTO "country" VALUES ("SYC", "Seychelles", "77000", "Republic");
INSERT INTO "country" VALUES ("MDV", "Maldives", "286000", "Republic");
INSERT INTO "country" VALUES ("LKA", "Sri Lanka", "18827000", "Republic");
INSERT INTO "country" VALUES ("NPL", "Nepal", "23949000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("BTN", "Bhutan", "2124000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("MMR", "Myanmar", "45611000", "Military Junta");
INSERT INTO "country" VALUES ("LAO", "Laos", "5433000", "People's Republic");
INSERT INTO "country" VALUES ("KHM", "Cambodia", "11168000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("BRN", "Brunei", "328000", "Sultanate");
INSERT INTO "country" VALUES ("TLS", "East Timor", "885000", "Republic");
INSERT INTO "country" VALUES ("PRK", "North Korea", "23348000", "People's Republic");
INSERT INTO "country" VALUES ("MNG", "Mongolia", "2654000", "Republic");
INSERT INTO "country" VALUES ("KAZ", "Kazakstan", "16223000", "Republic");
INSERT INTO "country" VALUES ("KGZ", "Kyrgyzstan", "4699000", "Republic");
INSERT INTO "country" VALUES ("TJK", "Tajikistan", "6188000", "Republic");
INSERT INTO "country" VALUES ("TKM", "Turkmenistan", "4518000", "Republic");
INSERT INTO "country" VALUES ("UZB", "Uzbekistan", "24318000", "Republic");
INSERT INTO "country" VALUES ("AZE", "Azerbaijan", "7734000", "Republic");
INSERT INTO "country" VALUES ("ARM", "Armenia", "3520000", "Republic");
INSERT INTO "country" VALUES ("GEO", "Georgia", "5404000", "Republic");
INSERT INTO "country" VALUES ("TUR", "Turkey", "66591000", "Republic");
INSERT INTO "country" VALUES ("CYP", "Cyprus", "759000", "Republic");
INSERT INTO "country" VALUES ("SYR", "Syria", "16125000", "Republic");
INSERT INTO "country" VALUES ("LBN", "Lebanon", "3286000", "Republic");
INSERT INTO "country" VALUES ("ISR", "Israel", "6217000", "Republic");
INSERT INTO "country" VALUES ("JOR", "Jordan", "4823000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("SAU", "Saudi Arabia", "21607000", "Absolute Monarchy");
INSERT INTO "country" VALUES ("KWT", "Kuwait", "1972000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("BHR", "Bahrain", "617000", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("QAT", "Qatar", "599000", "Monarchy");
INSERT INTO "country" VALUES ("ARE", "United Arab Emirates", "2441000", "Federal Monarchy");
INSERT INTO "country" VALUES ("OMN", "Oman", "2441000", "Sultanate");
INSERT INTO "country" VALUES ("YEM", "Yemen", "18112000", "Republic");
INSERT INTO "country" VALUES ("IRN", "Iran", "67695000", "Islamic Republic");
INSERT INTO "country" VALUES ("IRQ", "Iraq", "23115000", "Republic");
INSERT INTO "countrylanguage" VALUES ("AFG", "Dari", "T");
INSERT INTO "countrylanguage" VALUES ("AFG", "Pashto", "T");
INSERT INTO "countrylanguage" VALUES ("NLD", "Dutch", "T");