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),
"Population" INT,
PRIMARY KEY ("ID")
);

CREATE TABLE "country" (
"Code" CHAR(3),
"Name" CHAR(52),
"Continent" TEXT,
"Population" INT,
"LifeExpectancy" FLOAT,
PRIMARY KEY ("Code")
);





INSERT INTO "city" VALUES ("1", "Tokyo", "13960000");
INSERT INTO "city" VALUES ("2", "Delhi", "19000000");
INSERT INTO "city" VALUES ("3", "Shanghai", "26320000");
INSERT INTO "city" VALUES ("4", "Sao Paulo", "12250000");
INSERT INTO "city" VALUES ("5", "Mexico City", "9200000");
INSERT INTO "city" VALUES ("6", "Cairo", "9845000");
INSERT INTO "city" VALUES ("7", "Mumbai", "12440000");
INSERT INTO "city" VALUES ("8", "Beijing", "21540000");
INSERT INTO "city" VALUES ("9", "Dhaka", "21000000");
INSERT INTO "city" VALUES ("10", "Osaka", "2700000");
INSERT INTO "country" VALUES ("JPN", "Japan", "Asia", "126000000", "84.2");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "1380000000", "69.4");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "1440000000", "77.1");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "212000000", "75.9");
INSERT INTO "country" VALUES ("MEX", "Mexico", "North America", "128000000", "75.1");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Africa", "102000000", "71.8");
INSERT INTO "country" VALUES ("BGD", "Bangladesh", "Asia", "164000000", "72.5");
INSERT INTO "country" VALUES ("PAK", "Pakistan", "Asia", "220000000", "67.1");
INSERT INTO "country" VALUES ("AFG", "Afghanistan", "Asia", "38000000", "64.5");
INSERT INTO "country" VALUES ("IRQ", "Iraq", "Asia", "40000000", "70.1");
INSERT INTO "country" VALUES ("SYR", "Syria", "Asia", "17000000", "69.0");
INSERT INTO "country" VALUES ("YEM", "Yemen", "Asia", "29000000", "66.0");
INSERT INTO "country" VALUES ("PRK", "North Korea", "Asia", "25000000", "72.0");
INSERT INTO "country" VALUES ("KOR", "South Korea", "Asia", "51000000", "83.0");
INSERT INTO "country" VALUES ("VNM", "Vietnam", "Asia", "97000000", "75.4");
INSERT INTO "country" VALUES ("LAO", "Laos", "Asia", "7000000", "67.6");
INSERT INTO "country" VALUES ("KHM", "Cambodia", "Asia", "16000000", "69.6");
INSERT INTO "country" VALUES ("MMR", "Myanmar", "Asia", "54000000", "67.1");
INSERT INTO "country" VALUES ("NPL", "Nepal", "Asia", "29000000", "70.5");
INSERT INTO "country" VALUES ("BTN", "Bhutan", "Asia", "770000", "71.5");
INSERT INTO "country" VALUES ("MNG", "Mongolia", "Asia", "3000000", "69.9");
INSERT INTO "country" VALUES ("KAZ", "Kazakhstan", "Asia", "18000000", "73.2");
INSERT INTO "country" VALUES ("UZB", "Uzbekistan", "Asia", "33000000", "71.6");
INSERT INTO "country" VALUES ("TKM", "Turkmenistan", "Asia", "5000000", "68.0");
INSERT INTO "country" VALUES ("KGZ", "Kyrgyzstan", "Asia", "6000000", "71.0");
INSERT INTO "country" VALUES ("TJK", "Tajikistan", "Asia", "9000000", "69.5");
INSERT INTO "country" VALUES ("SAU", "Saudi Arabia", "Asia", "34000000", "75.0");
INSERT INTO "country" VALUES ("ARE", "United Arab Emirates", "Asia", "9000000", "77.8");
INSERT INTO "country" VALUES ("QAT", "Qatar", "Asia", "2800000", "80.2");
INSERT INTO "country" VALUES ("BHR", "Bahrain", "Asia", "1700000", "77.0");
INSERT INTO "country" VALUES ("KWT", "Kuwait", "Asia", "4200000", "75.4");
INSERT INTO "country" VALUES ("OMN", "Oman", "Asia", "5000000", "77.9");
INSERT INTO "country" VALUES ("ISR", "Israel", "Asia", "9000000", "82.8");
INSERT INTO "country" VALUES ("JOR", "Jordan", "Asia", "10000000", "74.5");
INSERT INTO "country" VALUES ("LBN", "Lebanon", "Asia", "6000000", "78.9");
INSERT INTO "country" VALUES ("CYP", "Cyprus", "Asia", "1200000", "80.9");
INSERT INTO "country" VALUES ("TUR", "Turkey", "Asia", "84000000", "78.0");
INSERT INTO "country" VALUES ("GEO", "Georgia", "Asia", "3700000", "73.5");
INSERT INTO "country" VALUES ("ARM", "Armenia", "Asia", "2900000", "75.0");
INSERT INTO "country" VALUES ("AZE", "Azerbaijan", "Asia", "10000000", "73.0");
INSERT INTO "country" VALUES ("SGP", "Singapore", "Asia", "5700000", "83.7");
INSERT INTO "country" VALUES ("MYS", "Malaysia", "Asia", "32000000", "76.0");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "Asia", "273000000", "71.5");
INSERT INTO "country" VALUES ("PHL", "Philippines", "Asia", "109000000", "71.0");
INSERT INTO "country" VALUES ("THA", "Thailand", "Asia", "69000000", "77.7");
INSERT INTO "country" VALUES ("BRN", "Brunei", "Asia", "430000", "77.0");
INSERT INTO "country" VALUES ("TLS", "East Timor", "Asia", "1300000", "69.0");
INSERT INTO "country" VALUES ("MDV", "Maldives", "Asia", "540000", "79.0");
INSERT INTO "country" VALUES ("LKA", "Sri Lanka", "Asia", "21000000", "76.8");
INSERT INTO "country" VALUES ("BTN", "Bhutan", "Asia", "770000", "71.5");
INSERT INTO "country" VALUES ("NPL", "Nepal", "Asia", "29000000", "70.5");
INSERT INTO "country" VALUES ("AFG", "Afghanistan", "Asia", "38000000", "64.5");
INSERT INTO "country" VALUES ("YEM", "Yemen", "Asia", "29000000", "66.0");
INSERT INTO "country" VALUES ("PAK", "Pakistan", "Asia", "220000000", "67.1");
INSERT INTO "country" VALUES ("LAO", "Laos", "Asia", "7000000", "67.6");
INSERT INTO "country" VALUES ("TKM", "Turkmenistan", "Asia", "5000000", "68.0");
INSERT INTO "country" VALUES ("SYR", "Syria", "Asia", "17000000", "69.0");
INSERT INTO "country" VALUES ("TLS", "East Timor", "Asia", "1300000", "69.0");
INSERT INTO "country" VALUES ("TJK", "Tajikistan", "Asia", "9000000", "69.5");
INSERT INTO "country" VALUES ("KHM", "Cambodia", "Asia", "16000000", "69.6");
INSERT INTO "country" VALUES ("MNG", "Mongolia", "Asia", "3000000", "69.9");
INSERT INTO "country" VALUES ("IRQ", "Iraq", "Asia", "40000000", "70.1");
INSERT INTO "country" VALUES ("NPL", "Nepal", "Asia", "29000000", "70.5");
INSERT INTO "country" VALUES ("KGZ", "Kyrgyzstan", "Asia", "6000000", "71.0");
INSERT INTO "country" VALUES ("PHL", "Philippines", "Asia", "109000000", "71.0");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "Asia", "273000000", "71.5");
INSERT INTO "country" VALUES ("BTN", "Bhutan", "Asia", "770000", "71.5");
INSERT INTO "country" VALUES ("UZB", "Uzbekistan", "Asia", "33000000", "71.6");
INSERT INTO "country" VALUES ("PRK", "North Korea", "Asia", "25000000", "72.0");
INSERT INTO "country" VALUES ("BGD", "Bangladesh", "Asia", "164000000", "72.5");
INSERT INTO "country" VALUES ("AZE", "Azerbaijan", "Asia", "10000000", "73.0");
INSERT INTO "country" VALUES ("KAZ", "Kazakhstan", "Asia", "18000000", "73.2");
INSERT INTO "country" VALUES ("GEO", "Georgia", "Asia", "3700000", "73.5");
INSERT INTO "country" VALUES ("JOR", "Jordan", "Asia", "10000000", "74.5");
INSERT INTO "country" VALUES ("ARM", "Armenia", "Asia", "2900000", "75.0");
INSERT INTO "country" VALUES ("SAU", "Saudi Arabia", "Asia", "34000000", "75.0");
INSERT INTO "country" VALUES ("KWT", "Kuwait", "Asia", "4200000", "75.4");
INSERT INTO "country" VALUES ("VNM", "Vietnam", "Asia", "97000000", "75.4");
INSERT INTO "country" VALUES ("MYS", "Malaysia", "Asia", "32000000", "76.0");
INSERT INTO "country" VALUES ("LKA", "Sri Lanka", "Asia", "21000000", "76.8");
INSERT INTO "country" VALUES ("BRN", "Brunei", "Asia", "430000", "77.0");
INSERT INTO "country" VALUES ("BHR", "Bahrain", "Asia", "1700000", "77.0");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "1440000000", "77.1");
INSERT INTO "country" VALUES ("THA", "Thailand", "Asia", "69000000", "77.7");
INSERT INTO "country" VALUES ("ARE", "United Arab Emirates", "Asia", "9000000", "77.8");
INSERT INTO "country" VALUES ("OMN", "Oman", "Asia", "5000000", "77.9");
INSERT INTO "country" VALUES ("TUR", "Turkey", "Asia", "84000000", "78.0");
INSERT INTO "country" VALUES ("LBN", "Lebanon", "Asia", "6000000", "78.9");
INSERT INTO "country" VALUES ("MDV", "Maldives", "Asia", "540000", "79.0");
INSERT INTO "country" VALUES ("CYP", "Cyprus", "Asia", "1200000", "80.9");
INSERT INTO "country" VALUES ("ISR", "Israel", "Asia", "9000000", "82.8");
INSERT INTO "country" VALUES ("KOR", "South Korea", "Asia", "51000000", "83.0");
INSERT INTO "country" VALUES ("SGP", "Singapore", "Asia", "5700000", "83.7");
INSERT INTO "country" VALUES ("JPN", "Japan", "Asia", "126000000", "84.2");