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

CREATE TABLE "country" (
"Code" CHAR(3) UNIQUE,
"Name" CHAR(52),
"Population" INT,
PRIMARY KEY ("Code")
);

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





INSERT INTO "city" VALUES ("1", "Kabul");
INSERT INTO "city" VALUES ("2", "Qandahar");
INSERT INTO "city" VALUES ("3", "Herat");
INSERT INTO "city" VALUES ("4", "Mazar-e-Sharif");
INSERT INTO "city" VALUES ("5", "Amsterdam");
INSERT INTO "city" VALUES ("6", "Rotterdam");
INSERT INTO "city" VALUES ("7", "The Hague");
INSERT INTO "city" VALUES ("8", "Utrecht");
INSERT INTO "city" VALUES ("9", "Eindhoven");
INSERT INTO "city" VALUES ("10", "Groningen");
INSERT INTO "city" VALUES ("11", "Leiden");
INSERT INTO "city" VALUES ("12", "Haarlem");
INSERT INTO "city" VALUES ("13", "Maastricht");
INSERT INTO "city" VALUES ("14", "Arnhem");
INSERT INTO "city" VALUES ("15", "Breda");
INSERT INTO "city" VALUES ("16", "Nijmegen");
INSERT INTO "city" VALUES ("17", "Apeldoorn");
INSERT INTO "city" VALUES ("18", "Enschede");
INSERT INTO "city" VALUES ("19", "Amersfoort");
INSERT INTO "city" VALUES ("20", "Dordrecht");
INSERT INTO "country" VALUES ("AFG", "Afghanistan", "22720000");
INSERT INTO "country" VALUES ("NLD", "Netherlands", "15864000");
INSERT INTO "country" VALUES ("USA", "United States", "278357000");
INSERT INTO "country" VALUES ("CAN", "Canada", "31147000");
INSERT INTO "country" VALUES ("MEX", "Mexico", "98881000");
INSERT INTO "country" VALUES ("BRA", "Brazil", "170115000");
INSERT INTO "country" VALUES ("ARG", "Argentina", "37032000");
INSERT INTO "country" VALUES ("GBR", "United Kingdom", "59623000");
INSERT INTO "country" VALUES ("FRA", "France", "59225000");
INSERT INTO "country" VALUES ("DEU", "Germany", "82164000");
INSERT INTO "country" VALUES ("ITA", "Italy", "57679000");
INSERT INTO "country" VALUES ("ESP", "Spain", "39441700");
INSERT INTO "country" VALUES ("CHN", "China", "1277558000");
INSERT INTO "country" VALUES ("IND", "India", "1013662000");
INSERT INTO "country" VALUES ("JPN", "Japan", "126714000");
INSERT INTO "country" VALUES ("AUS", "Australia", "18886000");
INSERT INTO "country" VALUES ("NZL", "New Zealand", "3862000");
INSERT INTO "country" VALUES ("EGY", "Egypt", "68470000");
INSERT INTO "country" VALUES ("ZAF", "South Africa", "40377000");
INSERT INTO "country" VALUES ("KEN", "Kenya", "30339000");
INSERT INTO "countrylanguage" VALUES ("AFG", "Dari", "T");
INSERT INTO "countrylanguage" VALUES ("AFG", "Pashto", "T");
INSERT INTO "countrylanguage" VALUES ("AFG", "Turkmen", "F");
INSERT INTO "countrylanguage" VALUES ("AFG", "Uzbek", "F");
INSERT INTO "countrylanguage" VALUES ("NLD", "Dutch", "T");
INSERT INTO "countrylanguage" VALUES ("NLD", "Frisian", "F");
INSERT INTO "countrylanguage" VALUES ("USA", "English", "T");
INSERT INTO "countrylanguage" VALUES ("USA", "Spanish", "F");
INSERT INTO "countrylanguage" VALUES ("USA", "French", "F");
INSERT INTO "countrylanguage" VALUES ("USA", "German", "F");
INSERT INTO "countrylanguage" VALUES ("CAN", "English", "T");
INSERT INTO "countrylanguage" VALUES ("CAN", "French", "T");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish", "T");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese", "T");
INSERT INTO "countrylanguage" VALUES ("ARG", "Spanish", "T");
INSERT INTO "countrylanguage" VALUES ("GBR", "English", "T");
INSERT INTO "countrylanguage" VALUES ("GBR", "Welsh", "F");
INSERT INTO "countrylanguage" VALUES ("GBR", "Gaelic", "F");
INSERT INTO "countrylanguage" VALUES ("FRA", "French", "T");
INSERT INTO "countrylanguage" VALUES ("DEU", "German", "T");
INSERT INTO "countrylanguage" VALUES ("ITA", "Italian", "T");
INSERT INTO "countrylanguage" VALUES ("ESP", "Spanish", "T");
INSERT INTO "countrylanguage" VALUES ("ESP", "Catalan", "F");
INSERT INTO "countrylanguage" VALUES ("ESP", "Galician", "F");
INSERT INTO "countrylanguage" VALUES ("ESP", "Basque", "F");
INSERT INTO "countrylanguage" VALUES ("CHN", "Chinese", "T");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi", "T");
INSERT INTO "countrylanguage" VALUES ("IND", "English", "F");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese", "T");
INSERT INTO "countrylanguage" VALUES ("AUS", "English", "T");
INSERT INTO "countrylanguage" VALUES ("NZL", "English", "T");
INSERT INTO "countrylanguage" VALUES ("NZL", "Maori", "T");
INSERT INTO "countrylanguage" VALUES ("EGY", "Arabic", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Afrikaans", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "English", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Zulu", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Xhosa", "T");
INSERT INTO "countrylanguage" VALUES ("KEN", "Swahili", "T");
INSERT INTO "countrylanguage" VALUES ("KEN", "English", "T");