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", "75000");
INSERT INTO "city" VALUES ("3", "Normandy", "80000");
INSERT INTO "city" VALUES ("4", "Sicily", "50000");
INSERT INTO "city" VALUES ("5", "Brittany", "0");
INSERT INTO "city" VALUES ("6", "Andalusia", "90000");
INSERT INTO "city" VALUES ("7", "Lombardy", "80000");
INSERT INTO "city" VALUES ("8", "Galicia", "79999");
INSERT INTO "city" VALUES ("9", "Wales", "81000");
INSERT INTO "city" VALUES ("10", "Scotland", "null");
INSERT INTO "country" VALUES ("FRA", "France", "Europe", "80000");
INSERT INTO "country" VALUES ("GER", "Germany", "Europe", "79999");
INSERT INTO "country" VALUES ("ITA", "Italy", "Europe", "80000");
INSERT INTO "country" VALUES ("ESP", "Spain", "Europe", "81000");
INSERT INTO "country" VALUES ("POL", "Poland", "Europe", "0");
INSERT INTO "country" VALUES ("NLD", "Netherlands", "Europe", "null");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Africa", "80000");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "80000");
INSERT INTO "country" VALUES ("JPN", "Japan", "Asia", "80000");
INSERT INTO "country" VALUES ("CAN", "Canada", "North America", "80000");
INSERT INTO "countrylanguage" VALUES ("FRA", "French", "88.0");
INSERT INTO "countrylanguage" VALUES ("GER", "German", "95.0");
INSERT INTO "countrylanguage" VALUES ("ITA", "Italian", "92.0");
INSERT INTO "countrylanguage" VALUES ("ESP", "Spanish", "89.0");
INSERT INTO "countrylanguage" VALUES ("POL", "Polish", "98.0");
INSERT INTO "countrylanguage" VALUES ("NLD", "Dutch", "85.0");
INSERT INTO "countrylanguage" VALUES ("EGY", "Arabic", "90.0");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese", "97.0");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese", "99.0");
INSERT INTO "countrylanguage" VALUES ("CAN", "English", "75.0");
INSERT INTO "countrylanguage" VALUES ("CAN", "French", "23.0");