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),
"Continent" TEXT,
"Region" CHAR(26),
"SurfaceArea" FLOAT,
"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", "500000");
INSERT INTO "city" VALUES ("2", "1200000");
INSERT INTO "city" VALUES ("3", "300000");
INSERT INTO "city" VALUES ("4", "800000");
INSERT INTO "city" VALUES ("5", "450000");
INSERT INTO "city" VALUES ("6", "700000");
INSERT INTO "city" VALUES ("7", "200000");
INSERT INTO "city" VALUES ("8", "1000000");
INSERT INTO "city" VALUES ("9", "150000");
INSERT INTO "city" VALUES ("10", "600000");
INSERT INTO "country" VALUES ("CUB", "North America", "Caribbean", "109884.0", "11300000");
INSERT INTO "country" VALUES ("JAM", "North America", "Caribbean", "10991.0", "2960000");
INSERT INTO "country" VALUES ("HTI", "North America", "Caribbean", "27750.0", "11400000");
INSERT INTO "country" VALUES ("DOM", "North America", "Caribbean", "48670.0", "10800000");
INSERT INTO "country" VALUES ("BRB", "North America", "Caribbean", "430.0", "287000");
INSERT INTO "country" VALUES ("BHS", "North America", "Caribbean", "13940.0", "393000");
INSERT INTO "country" VALUES ("TTO", "North America", "Caribbean", "5130.0", "1390000");
INSERT INTO "country" VALUES ("USA", "North America", "Northern America", "9833520.0", "331000000");
INSERT INTO "country" VALUES ("MEX", "North America", "Central America", "1964375.0", "128000000");
INSERT INTO "country" VALUES ("CAN", "North America", "Northern America", "9984670.0", "38000000");
INSERT INTO "countrylanguage" VALUES ("CUB", "Spanish", "99.8");
INSERT INTO "countrylanguage" VALUES ("JAM", "English", "90.0");
INSERT INTO "countrylanguage" VALUES ("HTI", "French", "42.0");
INSERT INTO "countrylanguage" VALUES ("HTI", "Haitian Creole", "90.0");
INSERT INTO "countrylanguage" VALUES ("DOM", "Spanish", "95.0");
INSERT INTO "countrylanguage" VALUES ("BRB", "English", "100.0");
INSERT INTO "countrylanguage" VALUES ("BHS", "English", "95.0");
INSERT INTO "countrylanguage" VALUES ("TTO", "English", "92.0");
INSERT INTO "countrylanguage" VALUES ("USA", "English", "80.0");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish", "92.0");
INSERT INTO "countrylanguage" VALUES ("CAN", "English", "60.0");
INSERT INTO "countrylanguage" VALUES ("CAN", "French", "23.0");