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 "country" VALUES ("JPN", "Japan", "Asia", "126000000");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "1380000000");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "1440000000");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "212000000");
INSERT INTO "country" VALUES ("MEX", "Mexico", "North America", "128000000");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Africa", "102000000");
INSERT INTO "country" VALUES ("BGD", "Bangladesh", "Asia", "164000000");
INSERT INTO "country" VALUES ("VAT", "Vatican City", "Europe", "800");
INSERT INTO "country" VALUES ("NRU", "Nauru", "Oceania", "10000");
INSERT INTO "country" VALUES ("TUV", "Tuvalu", "Oceania", "12000");
INSERT INTO "country" VALUES ("SMR", "San Marino", "Europe", "34000");
INSERT INTO "country" VALUES ("LIE", "Liechtenstein", "Europe", "38000");
INSERT INTO "country" VALUES ("MCO", "Monaco", "Europe", "39000");
INSERT INTO "country" VALUES ("FJI", "Fiji", "Oceania", "900000");
INSERT INTO "country" VALUES ("LUX", "Luxembourg", "Europe", "630000");
INSERT INTO "country" VALUES ("ISL", "Iceland", "Europe", "360000");