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

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

CREATE TABLE "countrylanguage" (
"CountryCode" CHAR(3),
"Language" CHAR(30),
"Percentage" FLOAT,
PRIMARY KEY ("CountryCode", "Language")
);





INSERT INTO "city" VALUES ("1", "Bavaria", "1300000");
INSERT INTO "city" VALUES ("2", "Catalonia", "750000");
INSERT INTO "city" VALUES ("3", "Normandy", "500000");
INSERT INTO "city" VALUES ("4", "Sicily", "1200000");
INSERT INTO "city" VALUES ("5", "Brittany", "300000");
INSERT INTO "city" VALUES ("6", "Andalusia", "800000");
INSERT INTO "city" VALUES ("7", "Bavaria", "80000");
INSERT INTO "city" VALUES ("8", "Lombardy", "900000");
INSERT INTO "city" VALUES ("9", "Galicia", "850000");
INSERT INTO "city" VALUES ("10", "Bavaria", "80000");
INSERT INTO "country" VALUES ("DEU", "Germany", "Europe", "80000");
INSERT INTO "country" VALUES ("FRA", "France", "Europe", "67000000");
INSERT INTO "country" VALUES ("ESP", "Spain", "Europe", "47000000");
INSERT INTO "country" VALUES ("ITA", "Italy", "Europe", "60000000");
INSERT INTO "country" VALUES ("NLD", "Netherlands", "Europe", "17000000");
INSERT INTO "country" VALUES ("SWE", "Sweden", "Europe", "10000000");
INSERT INTO "country" VALUES ("ISL", "Iceland", "Europe", "80000");
INSERT INTO "country" VALUES ("TUR", "Turkey", "Asia", "80000");
INSERT INTO "country" VALUES ("RUS", "Russia", "Europe", "144000000");
INSERT INTO "country" VALUES ("POL", "Poland", "Europe", "38000000");
INSERT INTO "countrylanguage" VALUES ("DEU", "German", "95.0");
INSERT INTO "countrylanguage" VALUES ("FRA", "French", "88.0");
INSERT INTO "countrylanguage" VALUES ("ESP", "Spanish", "90.0");
INSERT INTO "countrylanguage" VALUES ("ITA", "Italian", "92.0");
INSERT INTO "countrylanguage" VALUES ("NLD", "Dutch", "85.0");
INSERT INTO "countrylanguage" VALUES ("SWE", "Swedish", "90.0");
INSERT INTO "countrylanguage" VALUES ("ISL", "Icelandic", "98.0");
INSERT INTO "countrylanguage" VALUES ("TUR", "Turkish", "85.0");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian", "80.0");
INSERT INTO "countrylanguage" VALUES ("POL", "Polish", "95.0");