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),
"Continent" TEXT,
"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", "California", "39500000");
INSERT INTO "city" VALUES ("2", "Texas", "29000000");
INSERT INTO "city" VALUES ("3", "Ontario", "14000000");
INSERT INTO "city" VALUES ("4", "Quebec", "8500000");
INSERT INTO "city" VALUES ("5", "British Columbia", "5000000");
INSERT INTO "city" VALUES ("6", "Florida", "21500000");
INSERT INTO "city" VALUES ("7", "New York", "19500000");
INSERT INTO "city" VALUES ("8", "Mexico City", "9200000");
INSERT INTO "city" VALUES ("9", "Jalisco", "8000000");
INSERT INTO "city" VALUES ("10", "Yucatan", "2100000");
INSERT INTO "country" VALUES ("USA", "North America", "9834.0", "331000000");
INSERT INTO "country" VALUES ("CAN", "North America", "9984.0", "38000000");
INSERT INTO "country" VALUES ("MEX", "North America", "1964.0", "126000000");
INSERT INTO "country" VALUES ("BLZ", "North America", "22966.0", "400000");
INSERT INTO "country" VALUES ("GTM", "North America", "10889.0", "17000000");
INSERT INTO "country" VALUES ("CUB", "North America", "10989.0", "11300000");
INSERT INTO "country" VALUES ("HTI", "North America", "2775.0", "11000000");
INSERT INTO "country" VALUES ("JAM", "North America", "1099.0", "3000000");
INSERT INTO "country" VALUES ("FRA", "Europe", "643.0", "67000000");
INSERT INTO "country" VALUES ("BRA", "South America", "8516.0", "211000000");
INSERT INTO "countrylanguage" VALUES ("USA", "English", "82.1");
INSERT INTO "countrylanguage" VALUES ("USA", "Spanish", "13.5");
INSERT INTO "countrylanguage" VALUES ("CAN", "English", "56.0");
INSERT INTO "countrylanguage" VALUES ("CAN", "French", "21.0");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish", "92.7");
INSERT INTO "countrylanguage" VALUES ("BLZ", "English", "62.9");
INSERT INTO "countrylanguage" VALUES ("GTM", "Spanish", "60.0");
INSERT INTO "countrylanguage" VALUES ("CUB", "Spanish", "99.8");
INSERT INTO "countrylanguage" VALUES ("HTI", "French", "42.0");
INSERT INTO "countrylanguage" VALUES ("HTI", "Haitian Creole", "90.0");
INSERT INTO "countrylanguage" VALUES ("JAM", "English", "88.0");
INSERT INTO "countrylanguage" VALUES ("FRA", "French", "100.0");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese", "98.0");