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) UNIQUE,
"Name" CHAR(52),
"Region" CHAR(26),
"Population" INT,
PRIMARY KEY ("Code")
);

CREATE TABLE "countrylanguage" (
"CountryCode" CHAR(3),
"Language" CHAR(30),
"IsOfficial" TEXT,
"Percentage" FLOAT,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY ("CountryCode") REFERENCES "country"("Code")
);





INSERT INTO "city" VALUES ("1", "Amsterdam", "741636");
INSERT INTO "city" VALUES ("2", "Rotterdam", "598199");
INSERT INTO "city" VALUES ("3", "The Hague", "440979");
INSERT INTO "city" VALUES ("4", "Utrecht", "234323");
INSERT INTO "city" VALUES ("5", "London", "7556900");
INSERT INTO "city" VALUES ("6", "Birmingham", "984333");
INSERT INTO "city" VALUES ("7", "Manchester", "510746");
INSERT INTO "city" VALUES ("8", "Dublin", "527612");
INSERT INTO "city" VALUES ("9", "New York", "8175133");
INSERT INTO "city" VALUES ("10", "Los Angeles", "3792621");
INSERT INTO "city" VALUES ("11", "Sydney", "4627345");
INSERT INTO "city" VALUES ("12", "Melbourne", "4246375");
INSERT INTO "city" VALUES ("13", "Brussels", "1019022");
INSERT INTO "city" VALUES ("14", "Antwerp", "520504");
INSERT INTO "city" VALUES ("15", "Paris", "2243833");
INSERT INTO "city" VALUES ("16", "Berlin", "3520000");
INSERT INTO "city" VALUES ("17", "Rome", "2872800");
INSERT INTO "city" VALUES ("18", "Madrid", "3165235");
INSERT INTO "city" VALUES ("19", "Tokyo", "13515000");
INSERT INTO "city" VALUES ("20", "Beijing", "21540000");
INSERT INTO "country" VALUES ("NLD", "Netherlands", "Western Europe", "16318000");
INSERT INTO "country" VALUES ("GBR", "United Kingdom", "Western Europe", "60627000");
INSERT INTO "country" VALUES ("IRL", "Ireland", "Western Europe", "4234925");
INSERT INTO "country" VALUES ("USA", "United States", "North America", "310232863");
INSERT INTO "country" VALUES ("AUS", "Australia", "Australia and New Zealand", "21515754");
INSERT INTO "country" VALUES ("BEL", "Belgium", "Western Europe", "10239000");
INSERT INTO "country" VALUES ("FRA", "France", "Western Europe", "59225700");
INSERT INTO "country" VALUES ("DEU", "Germany", "Western Europe", "82164700");
INSERT INTO "country" VALUES ("ITA", "Italy", "Southern Europe", "57680000");
INSERT INTO "country" VALUES ("ESP", "Spain", "Southern Europe", "39441700");
INSERT INTO "country" VALUES ("JPN", "Japan", "Eastern Asia", "126714000");
INSERT INTO "country" VALUES ("CHN", "China", "Eastern Asia", "1277558000");
INSERT INTO "country" VALUES ("CAN", "Canada", "North America", "33679000");
INSERT INTO "country" VALUES ("IND", "India", "Southern and Central Asia", "1210193422");
INSERT INTO "country" VALUES ("ZAF", "South Africa", "Southern Africa", "43647000");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Northern Africa", "68470000");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "170115000");
INSERT INTO "country" VALUES ("ARG", "Argentina", "South America", "37032000");
INSERT INTO "country" VALUES ("MEX", "Mexico", "Central America", "98881000");
INSERT INTO "country" VALUES ("RUS", "Russian Federation", "Eastern Europe", "146898000");
INSERT INTO "countrylanguage" VALUES ("NLD", "Dutch", "T", "95.6");
INSERT INTO "countrylanguage" VALUES ("GBR", "English", "T", "97.3");
INSERT INTO "countrylanguage" VALUES ("IRL", "English", "T", "94.0");
INSERT INTO "countrylanguage" VALUES ("IRL", "Irish", "F", "5.0");
INSERT INTO "countrylanguage" VALUES ("USA", "English", "T", "82.1");
INSERT INTO "countrylanguage" VALUES ("USA", "Spanish", "F", "10.7");
INSERT INTO "countrylanguage" VALUES ("AUS", "English", "T", "81.0");
INSERT INTO "countrylanguage" VALUES ("BEL", "Dutch", "T", "59.0");
INSERT INTO "countrylanguage" VALUES ("BEL", "French", "T", "40.0");
INSERT INTO "countrylanguage" VALUES ("FRA", "French", "T", "93.6");
INSERT INTO "countrylanguage" VALUES ("DEU", "German", "T", "91.5");
INSERT INTO "countrylanguage" VALUES ("ITA", "Italian", "T", "94.0");
INSERT INTO "countrylanguage" VALUES ("ESP", "Spanish", "T", "74.0");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese", "T", "99.1");
INSERT INTO "countrylanguage" VALUES ("CHN", "Chinese", "T", "92.0");
INSERT INTO "countrylanguage" VALUES ("CAN", "English", "T", "58.8");
INSERT INTO "countrylanguage" VALUES ("CAN", "French", "T", "22.0");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi", "T", "41.0");
INSERT INTO "countrylanguage" VALUES ("IND", "English", "F", "12.0");
INSERT INTO "countrylanguage" VALUES ("ZAF", "English", "T", "8.2");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Afrikaans", "T", "13.3");
INSERT INTO "countrylanguage" VALUES ("EGY", "Arabic", "T", "99.0");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese", "T", "97.5");
INSERT INTO "countrylanguage" VALUES ("ARG", "Spanish", "T", "96.0");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish", "T", "92.1");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian", "T", "85.0");
INSERT INTO "countrylanguage" VALUES ("NLD", "Frisian", "F", "0.5");
INSERT INTO "countrylanguage" VALUES ("GBR", "Welsh", "F", "0.6");
INSERT INTO "countrylanguage" VALUES ("BEL", "German", "F", "0.9");
INSERT INTO "countrylanguage" VALUES ("DEU", "Turkish", "F", "2.5");
INSERT INTO "countrylanguage" VALUES ("ITA", "German", "F", "0.5");
INSERT INTO "countrylanguage" VALUES ("ESP", "Catalan", "F", "17.0");
INSERT INTO "countrylanguage" VALUES ("CHN", "Cantonese", "F", "1.0");
INSERT INTO "countrylanguage" VALUES ("IND", "Bengali", "F", "8.1");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Zulu", "F", "22.7");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Xhosa", "F", "16.0");