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,
"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", "Tilburg");
INSERT INTO "country" VALUES ("AFG", "Afghanistan", "22720000");
INSERT INTO "country" VALUES ("NLD", "Netherlands", "15864000");
INSERT INTO "country" VALUES ("GBR", "United Kingdom", "59623400");
INSERT INTO "country" VALUES ("USA", "United States", "278357000");
INSERT INTO "country" VALUES ("CAN", "Canada", "31147000");
INSERT INTO "country" VALUES ("AUS", "Australia", "18886000");
INSERT INTO "country" VALUES ("IND", "India", "1013662000");
INSERT INTO "country" VALUES ("CHN", "China", "1277558000");
INSERT INTO "country" VALUES ("FRA", "France", "59225700");
INSERT INTO "country" VALUES ("DEU", "Germany", "82164700");
INSERT INTO "countrylanguage" VALUES ("AFG", "Dari", "T", "50.0");
INSERT INTO "countrylanguage" VALUES ("AFG", "Pashto", "T", "35.0");
INSERT INTO "countrylanguage" VALUES ("NLD", "Dutch", "T", "95.0");
INSERT INTO "countrylanguage" VALUES ("GBR", "English", "T", "97.0");
INSERT INTO "countrylanguage" VALUES ("USA", "English", "T", "82.1");
INSERT INTO "countrylanguage" VALUES ("CAN", "English", "T", "59.3");
INSERT INTO "countrylanguage" VALUES ("CAN", "French", "T", "23.2");
INSERT INTO "countrylanguage" VALUES ("AUS", "English", "T", "81.2");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi", "T", "40.0");
INSERT INTO "countrylanguage" VALUES ("IND", "English", "F", "12.0");
INSERT INTO "countrylanguage" VALUES ("CHN", "Chinese", "T", "92.0");
INSERT INTO "countrylanguage" VALUES ("FRA", "French", "T", "96.0");
INSERT INTO "countrylanguage" VALUES ("DEU", "German", "T", "91.5");
INSERT INTO "countrylanguage" VALUES ("AFG", "Uzbek", "F", "9.0");
INSERT INTO "countrylanguage" VALUES ("NLD", "Frisian", "F", "1.0");
INSERT INTO "countrylanguage" VALUES ("GBR", "Welsh", "F", "1.5");
INSERT INTO "countrylanguage" VALUES ("USA", "Spanish", "F", "10.7");
INSERT INTO "countrylanguage" VALUES ("IND", "Bengali", "F", "8.0");
INSERT INTO "countrylanguage" VALUES ("CHN", "Cantonese", "F", "1.0");