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),
"Percentage" FLOAT,
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", "Haarlem");
INSERT INTO "city" VALUES ("12", "Arnhem");
INSERT INTO "city" VALUES ("13", "Breda");
INSERT INTO "city" VALUES ("14", "Apeldoorn");
INSERT INTO "city" VALUES ("15", "Nijmegen");
INSERT INTO "country" VALUES ("AFG", "Afghanistan", "22720000");
INSERT INTO "country" VALUES ("NLD", "Netherlands", "15922000");
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 ("GBR", "United Kingdom", "59623400");
INSERT INTO "country" VALUES ("FRA", "France", "59225700");
INSERT INTO "country" VALUES ("DEU", "Germany", "82164700");
INSERT INTO "country" VALUES ("JPN", "Japan", "126714000");
INSERT INTO "country" VALUES ("CHN", "China", "1277558000");
INSERT INTO "country" VALUES ("IND", "India", "1013662000");
INSERT INTO "country" VALUES ("BRA", "Brazil", "170115000");
INSERT INTO "country" VALUES ("ARG", "Argentina", "37032000");
INSERT INTO "country" VALUES ("AUS", "Australia", "18886000");
INSERT INTO "country" VALUES ("NZL", "New Zealand", "3862000");
INSERT INTO "countrylanguage" VALUES ("AFG", "Dari", "50.0");
INSERT INTO "countrylanguage" VALUES ("AFG", "Pashto", "35.0");
INSERT INTO "countrylanguage" VALUES ("AFG", "Uzbek", "9.0");
INSERT INTO "countrylanguage" VALUES ("AFG", "Turkmen", "3.0");
INSERT INTO "countrylanguage" VALUES ("NLD", "Dutch", "95.6");
INSERT INTO "countrylanguage" VALUES ("NLD", "Frisian", "4.4");
INSERT INTO "countrylanguage" VALUES ("USA", "English", "82.1");
INSERT INTO "countrylanguage" VALUES ("USA", "Spanish", "10.7");
INSERT INTO "countrylanguage" VALUES ("USA", "Chinese", "0.6");
INSERT INTO "countrylanguage" VALUES ("CAN", "English", "59.3");
INSERT INTO "countrylanguage" VALUES ("CAN", "French", "23.2");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish", "96.0");
INSERT INTO "countrylanguage" VALUES ("GBR", "English", "97.0");
INSERT INTO "countrylanguage" VALUES ("FRA", "French", "98.0");
INSERT INTO "countrylanguage" VALUES ("DEU", "German", "91.5");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese", "99.0");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin Chinese", "70.0");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi", "40.0");
INSERT INTO "countrylanguage" VALUES ("IND", "English", "12.0");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese", "97.5");
INSERT INTO "countrylanguage" VALUES ("ARG", "Spanish", "96.0");
INSERT INTO "countrylanguage" VALUES ("AUS", "English", "80.0");
INSERT INTO "countrylanguage" VALUES ("NZL", "English", "91.0");
INSERT INTO "countrylanguage" VALUES ("NZL", "Maori", "4.0");