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", "13929286");
INSERT INTO "city" VALUES ("2", "Delhi", "18980000");
INSERT INTO "city" VALUES ("3", "Shanghai", "26317104");
INSERT INTO "city" VALUES ("4", "Sao Paulo", "12325232");
INSERT INTO "city" VALUES ("5", "Mexico City", "8918653");
INSERT INTO "city" VALUES ("6", "Cairo", "9845000");
INSERT INTO "city" VALUES ("7", "Mumbai", "12442373");
INSERT INTO "city" VALUES ("8", "Beijing", "21542000");
INSERT INTO "city" VALUES ("9", "Dhaka", "19578000");
INSERT INTO "city" VALUES ("10", "Osaka", "2700000");
INSERT INTO "city" VALUES ("11", "Karachi", "14910352");
INSERT INTO "city" VALUES ("12", "Chongqing", "32054000");
INSERT INTO "city" VALUES ("13", "Istanbul", "15462452");
INSERT INTO "city" VALUES ("14", "Buenos Aires", "15257673");
INSERT INTO "city" VALUES ("15", "Kolkata", "14681589");
INSERT INTO "city" VALUES ("16", "Lagos", "14862000");
INSERT INTO "city" VALUES ("17", "Manila", "13484462");
INSERT INTO "city" VALUES ("18", "Rio de Janeiro", "6710000");
INSERT INTO "city" VALUES ("19", "Tianjin", "15469500");
INSERT INTO "city" VALUES ("20", "Lahore", "11126285");
INSERT INTO "country" VALUES ("JPN", "Japan", "Asia", "126476461");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "1380004385");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "1439323776");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "212559417");
INSERT INTO "country" VALUES ("MEX", "Mexico", "North America", "128932753");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Africa", "102334404");
INSERT INTO "country" VALUES ("PAK", "Pakistan", "Asia", "220892331");
INSERT INTO "country" VALUES ("BGD", "Bangladesh", "Asia", "164689383");
INSERT INTO "country" VALUES ("TUR", "Turkey", "Asia", "84339067");
INSERT INTO "country" VALUES ("ARG", "Argentina", "South America", "45195777");
INSERT INTO "country" VALUES ("NGA", "Nigeria", "Africa", "206139589");
INSERT INTO "country" VALUES ("PHL", "Philippines", "Asia", "109581078");
INSERT INTO "country" VALUES ("VAT", "Vatican City", "Europe", "825");
INSERT INTO "country" VALUES ("NRU", "Nauru", "Oceania", "10824");
INSERT INTO "country" VALUES ("TUV", "Tuvalu", "Oceania", "11792");
INSERT INTO "country" VALUES ("SMR", "San Marino", "Europe", "33931");
INSERT INTO "country" VALUES ("LIE", "Liechtenstein", "Europe", "38128");
INSERT INTO "country" VALUES ("MCO", "Monaco", "Europe", "39244");
INSERT INTO "country" VALUES ("FJI", "Fiji", "Oceania", "896445");
INSERT INTO "country" VALUES ("GRN", "Grenada", "North America", "112523");
INSERT INTO "country" VALUES ("KNA", "Saint Kitts and Nevis", "North America", "53109");