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

CREATE TABLE "country" (
"Code" CHAR(3),
"Population" INT,
"LifeExpectancy" FLOAT,
"GNP" FLOAT,
"GovernmentForm" CHAR(45),
PRIMARY KEY ("Code")
);

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





INSERT INTO "city" VALUES ("1", "500000");
INSERT INTO "city" VALUES ("2", "1200000");
INSERT INTO "city" VALUES ("3", "300000");
INSERT INTO "city" VALUES ("4", "750000");
INSERT INTO "city" VALUES ("5", "450000");
INSERT INTO "city" VALUES ("6", "200000");
INSERT INTO "city" VALUES ("7", "100000");
INSERT INTO "city" VALUES ("8", "900000");
INSERT INTO "city" VALUES ("9", "150000");
INSERT INTO "city" VALUES ("10", "600000");
INSERT INTO "country" VALUES ("USA", "331000000", "78.9", "21433226.0", "Federal Republic");
INSERT INTO "country" VALUES ("PRI", "3200000", "79.0", "104000.0", "US territory");
INSERT INTO "country" VALUES ("GUM", "170000", "77.5", "4000.0", "US territory");
INSERT INTO "country" VALUES ("VIR", "105000", "78.0", "3500.0", "US territory");
INSERT INTO "country" VALUES ("CAN", "37590000", "82.3", "1736426.0", "Constitutional Monarchy");
INSERT INTO "country" VALUES ("MEX", "128900000", "75.0", "1220700.0", "Federal Republic");
INSERT INTO "country" VALUES ("ASM", "55000", "73.0", "600.0", "US territory");
INSERT INTO "country" VALUES ("FRA", "67000000", "82.5", "2715518.0", "Republic");
INSERT INTO "country" VALUES ("NMI", "57000", "76.0", "700.0", "US territory");
INSERT INTO "country" VALUES ("CUB", "11300000", "79.0", "100000.0", "Communist State");
INSERT INTO "countrylanguage" VALUES ("USA", "English", "82.1");
INSERT INTO "countrylanguage" VALUES ("PRI", "Spanish", "95.0");
INSERT INTO "countrylanguage" VALUES ("GUM", "English", "60.0");
INSERT INTO "countrylanguage" VALUES ("VIR", "English", "90.0");
INSERT INTO "countrylanguage" VALUES ("CAN", "English", "56.0");
INSERT INTO "countrylanguage" VALUES ("CAN", "French", "22.0");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish", "92.7");
INSERT INTO "countrylanguage" VALUES ("ASM", "English", "80.0");
INSERT INTO "countrylanguage" VALUES ("FRA", "French", "88.0");
INSERT INTO "countrylanguage" VALUES ("NMI", "English", "85.0");
INSERT INTO "countrylanguage" VALUES ("CUB", "Spanish", "99.0");