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

CREATE TABLE "country" (
"Code" CHAR(3) UNIQUE,
"LifeExpectancy" FLOAT,
"GovernmentForm" CHAR(45),
PRIMARY KEY ("Code")
);

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





INSERT INTO "city" VALUES ("1", "5000000");
INSERT INTO "city" VALUES ("2", "12000000");
INSERT INTO "city" VALUES ("3", "800000");
INSERT INTO "city" VALUES ("4", "1500000");
INSERT INTO "city" VALUES ("5", "300000");
INSERT INTO "city" VALUES ("6", "4500000");
INSERT INTO "city" VALUES ("7", "700000");
INSERT INTO "city" VALUES ("8", "2000000");
INSERT INTO "city" VALUES ("9", "1000000");
INSERT INTO "city" VALUES ("10", "2500000");
INSERT INTO "country" VALUES ("USA", "78.9", "Federal Republic");
INSERT INTO "country" VALUES ("FRA", "82.3", "Unitary Republic");
INSERT INTO "country" VALUES ("CHN", "76.7", "Single-party State");
INSERT INTO "country" VALUES ("RUS", "72.6", "Federal Semi-Presidential Republic");
INSERT INTO "country" VALUES ("DEU", "81.0", "Federal Republic");
INSERT INTO "country" VALUES ("GBR", "81.2", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("BRA", "75.7", "Federal Republic");
INSERT INTO "country" VALUES ("SAU", "75.0", "Absolute Monarchy");
INSERT INTO "country" VALUES ("IND", "69.4", "Federal Parliamentary Republic");
INSERT INTO "country" VALUES ("ZAF", "64.1", "Parliamentary Republic");
INSERT INTO "country" VALUES ("ESP", "83.4", "Parliamentary Monarchy");
INSERT INTO "country" VALUES ("ARG", "76.3", "Federal Republic");
INSERT INTO "country" VALUES ("NOR", "82.5", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("TUR", "77.4", "Presidential Republic");
INSERT INTO "country" VALUES ("CUB", "78.0", "Single-party State");
INSERT INTO "country" VALUES ("MEX", "75.0", "Federal Republic");
INSERT INTO "country" VALUES ("IRN", "76.0", "Islamic Republic");
INSERT INTO "country" VALUES ("NZL", "81.8", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("KOR", "83.0", "Presidential Republic");
INSERT INTO "country" VALUES ("VEN", "72.0", "Federal Republic");
INSERT INTO "country" VALUES ("BEL", "81.5", "Federal Parliamentary Constitutional Monarchy");
INSERT INTO "country" VALUES ("CZE", "79.1", "Parliamentary Republic");
INSERT INTO "country" VALUES ("SWE", "82.8", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("POL", "77.5", "Parliamentary Republic");
INSERT INTO "country" VALUES ("EGY", "71.8", "Semi-Presidential Republic");
INSERT INTO "country" VALUES ("ISR", "82.0", "Parliamentary Republic");
INSERT INTO "country" VALUES ("JPN", "84.2", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("PAK", "67.3", "Federal Parliamentary Republic");
INSERT INTO "country" VALUES ("NGA", "54.3", "Federal Republic");
INSERT INTO "country" VALUES ("SAF", "64.1", "Parliamentary Republic");
INSERT INTO "countrylanguage" VALUES ("USA", "English", "T");
INSERT INTO "countrylanguage" VALUES ("FRA", "French", "T");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin", "T");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian", "T");
INSERT INTO "countrylanguage" VALUES ("DEU", "German", "T");
INSERT INTO "countrylanguage" VALUES ("GBR", "English", "T");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese", "T");
INSERT INTO "countrylanguage" VALUES ("SAU", "Arabic", "T");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi", "T");
INSERT INTO "countrylanguage" VALUES ("IND", "English", "F");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Zulu", "F");
INSERT INTO "countrylanguage" VALUES ("ZAF", "English", "T");
INSERT INTO "countrylanguage" VALUES ("ESP", "Spanish", "T");
INSERT INTO "countrylanguage" VALUES ("ARG", "Spanish", "T");
INSERT INTO "countrylanguage" VALUES ("NOR", "Norwegian", "T");
INSERT INTO "countrylanguage" VALUES ("TUR", "Turkish", "T");
INSERT INTO "countrylanguage" VALUES ("CUB", "Spanish", "T");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish", "T");
INSERT INTO "countrylanguage" VALUES ("IRN", "Persian", "T");
INSERT INTO "countrylanguage" VALUES ("NZL", "English", "T");
INSERT INTO "countrylanguage" VALUES ("KOR", "Korean", "T");
INSERT INTO "countrylanguage" VALUES ("VEN", "Spanish", "T");
INSERT INTO "countrylanguage" VALUES ("BEL", "Dutch", "F");
INSERT INTO "countrylanguage" VALUES ("BEL", "French", "T");
INSERT INTO "countrylanguage" VALUES ("BEL", "German", "F");
INSERT INTO "countrylanguage" VALUES ("CZE", "Czech", "T");
INSERT INTO "countrylanguage" VALUES ("SWE", "Swedish", "T");
INSERT INTO "countrylanguage" VALUES ("POL", "Polish", "T");
INSERT INTO "countrylanguage" VALUES ("EGY", "Arabic", "T");
INSERT INTO "countrylanguage" VALUES ("ISR", "Hebrew", "T");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese", "T");
INSERT INTO "countrylanguage" VALUES ("PAK", "Urdu", "T");
INSERT INTO "countrylanguage" VALUES ("NGA", "English", "T");
INSERT INTO "countrylanguage" VALUES ("SAF", "Afrikaans", "F");
INSERT INTO "countrylanguage" VALUES ("SAF", "English", "T");