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

CREATE TABLE "countrylanguage" (
"CountryCode" CHAR(3),
"Language" CHAR(30),
PRIMARY KEY ("CountryCode", "Language")
);





INSERT INTO "city" VALUES ("1", "Tokyo", "37400068");
INSERT INTO "city" VALUES ("2", "Delhi", "28514000");
INSERT INTO "city" VALUES ("3", "Shanghai", "25582000");
INSERT INTO "city" VALUES ("4", "São Paulo", "21650000");
INSERT INTO "city" VALUES ("5", "Mumbai", "20411000");
INSERT INTO "city" VALUES ("6", "Mexico City", "21581000");
INSERT INTO "city" VALUES ("7", "Beijing", "19618000");
INSERT INTO "city" VALUES ("8", "Osaka", "19281000");
INSERT INTO "city" VALUES ("9", "Cairo", "20076000");
INSERT INTO "city" VALUES ("10", "New York", "18804000");
INSERT INTO "country" VALUES ("CHN", "China", "1402112000");
INSERT INTO "country" VALUES ("IND", "India", "1380004385");
INSERT INTO "country" VALUES ("USA", "United States", "331893745");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "273523621");
INSERT INTO "country" VALUES ("PAK", "Pakistan", "220892331");
INSERT INTO "country" VALUES ("BRA", "Brazil", "212559409");
INSERT INTO "country" VALUES ("NGA", "Nigeria", "206139587");
INSERT INTO "country" VALUES ("BGD", "Bangladesh", "164689383");
INSERT INTO "country" VALUES ("RUS", "Russia", "145912025");
INSERT INTO "country" VALUES ("MEX", "Mexico", "128932753");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin");
INSERT INTO "countrylanguage" VALUES ("CHN", "Cantonese");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi");
INSERT INTO "countrylanguage" VALUES ("IND", "English");
INSERT INTO "countrylanguage" VALUES ("USA", "English");
INSERT INTO "countrylanguage" VALUES ("USA", "Spanish");
INSERT INTO "countrylanguage" VALUES ("IDN", "Indonesian");
INSERT INTO "countrylanguage" VALUES ("PAK", "Urdu");
INSERT INTO "countrylanguage" VALUES ("PAK", "Punjabi");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese");
INSERT INTO "countrylanguage" VALUES ("NGA", "English");
INSERT INTO "countrylanguage" VALUES ("BGD", "Bengali");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish");