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

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





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", "377975.0", "126000000", "84.2");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "3287590.0", "1380000000", "69.4");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "9596961.0", "1440000000", "77.1");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "8515767.0", "212000000", "75.9");
INSERT INTO "country" VALUES ("MEX", "Mexico", "North America", "1964375.0", "128000000", "75.0");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Africa", "1010408.0", "102000000", "71.8");
INSERT INTO "country" VALUES ("RUS", "Russia", "Europe", "17098246.0", "146000000", "72.4");
INSERT INTO "country" VALUES ("CAN", "Canada", "North America", "9984670.0", "38000000", "82.0");
INSERT INTO "country" VALUES ("USA", "United States", "North America", "9833520.0", "331000000", "78.5");
INSERT INTO "country" VALUES ("AUS", "Australia", "Oceania", "7692024.0", "25000000", "83.0");
INSERT INTO "country" VALUES ("KAZ", "Kazakhstan", "Asia", "2724900.0", "18000000", "73.2");
INSERT INTO "country" VALUES ("SAU", "Saudi Arabia", "Asia", "2149690.0", "34000000", "75.0");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "Asia", "1904569.0", "273000000", "71.5");
INSERT INTO "country" VALUES ("MYS", "Malaysia", "Asia", "330803.0", "32000000", "76.0");
INSERT INTO "country" VALUES ("VNM", "Vietnam", "Asia", "331212.0", "97000000", "75.4");
INSERT INTO "country" VALUES ("IRN", "Iran", "Asia", "1648195.0", "83000000", "76.0");
INSERT INTO "country" VALUES ("MNG", "Mongolia", "Asia", "1564116.0", "3000000", "69.9");
INSERT INTO "country" VALUES ("AFG", "Afghanistan", "Asia", "652230.0", "38000000", "64.8");
INSERT INTO "country" VALUES ("PAK", "Pakistan", "Asia", "796095.0", "220000000", "67.1");
INSERT INTO "country" VALUES ("TUR", "Turkey", "Asia", "783562.0", "84000000", "78.0");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish");
INSERT INTO "countrylanguage" VALUES ("EGY", "Arabic");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian");
INSERT INTO "countrylanguage" VALUES ("CAN", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "French");
INSERT INTO "countrylanguage" VALUES ("USA", "English");
INSERT INTO "countrylanguage" VALUES ("AUS", "English");
INSERT INTO "countrylanguage" VALUES ("KAZ", "Kazakh");
INSERT INTO "countrylanguage" VALUES ("KAZ", "Russian");
INSERT INTO "countrylanguage" VALUES ("SAU", "Arabic");
INSERT INTO "countrylanguage" VALUES ("IDN", "Indonesian");
INSERT INTO "countrylanguage" VALUES ("MYS", "Malay");
INSERT INTO "countrylanguage" VALUES ("VNM", "Vietnamese");
INSERT INTO "countrylanguage" VALUES ("IRN", "Persian");
INSERT INTO "countrylanguage" VALUES ("MNG", "Mongolian");
INSERT INTO "countrylanguage" VALUES ("AFG", "Dari");
INSERT INTO "countrylanguage" VALUES ("AFG", "Pashto");
INSERT INTO "countrylanguage" VALUES ("PAK", "Urdu");
INSERT INTO "countrylanguage" VALUES ("TUR", "Turkish");