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,
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", "12330000");
INSERT INTO "city" VALUES ("5", "Mexico City", "9209000");
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 "city" VALUES ("11", "Karachi", "14910000");
INSERT INTO "city" VALUES ("12", "Chongqing", "32050000");
INSERT INTO "city" VALUES ("13", "Istanbul", "15460000");
INSERT INTO "city" VALUES ("14", "Buenos Aires", "15250000");
INSERT INTO "city" VALUES ("15", "Kolkata", "14850000");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "1444216107");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "1393409038");
INSERT INTO "country" VALUES ("USA", "United States", "North America", "332915073");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "Asia", "276361783");
INSERT INTO "country" VALUES ("PAK", "Pakistan", "Asia", "225199937");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "213993437");
INSERT INTO "country" VALUES ("NGA", "Nigeria", "Africa", "211400708");
INSERT INTO "country" VALUES ("BGD", "Bangladesh", "Asia", "166303498");
INSERT INTO "country" VALUES ("RUS", "Russia", "Europe", "145912025");
INSERT INTO "country" VALUES ("MEX", "Mexico", "North America", "128932700");
INSERT INTO "country" VALUES ("JPN", "Japan", "Asia", "126050000");
INSERT INTO "country" VALUES ("ETH", "Ethiopia", "Africa", "117876000");
INSERT INTO "country" VALUES ("PHL", "Philippines", "Asia", "111046925");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Africa", "104258327");
INSERT INTO "country" VALUES ("VNM", "Vietnam", "Asia", "97468000");
INSERT INTO "country" VALUES ("DEU", "Germany", "Europe", "83190556");
INSERT INTO "country" VALUES ("IRN", "Iran", "Asia", "85028759");
INSERT INTO "country" VALUES ("TUR", "Turkey", "Asia", "84780000");
INSERT INTO "country" VALUES ("FRA", "France", "Europe", "65273511");
INSERT INTO "country" VALUES ("GBR", "United Kingdom", "Europe", "67215293");
INSERT INTO "country" VALUES ("ITA", "Italy", "Europe", "59554023");
INSERT INTO "country" VALUES ("ZAF", "South Africa", "Africa", "59308690");
INSERT INTO "country" VALUES ("KOR", "South Korea", "Asia", "51780579");
INSERT INTO "country" VALUES ("ESP", "Spain", "Europe", "47351567");
INSERT INTO "country" VALUES ("ARG", "Argentina", "South America", "45605000");
INSERT INTO "country" VALUES ("CAN", "Canada", "North America", "38005238");
INSERT INTO "country" VALUES ("AUS", "Australia", "Oceania", "25788200");
INSERT INTO "country" VALUES ("POL", "Poland", "Europe", "37846611");
INSERT INTO "country" VALUES ("UKR", "Ukraine", "Europe", "43790000");
INSERT INTO "country" VALUES ("DZA", "Algeria", "Africa", "44616624");