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),
"Name" CHAR(52),
"Continent" TEXT,
"SurfaceArea" FLOAT,
"Population" INT,
"Capital" INT,
PRIMARY KEY ("Code")
);

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





INSERT INTO "city" VALUES ("1", "1000000");
INSERT INTO "city" VALUES ("2", "500000");
INSERT INTO "city" VALUES ("3", "2000000");
INSERT INTO "city" VALUES ("4", "750000");
INSERT INTO "city" VALUES ("5", "1500000");
INSERT INTO "city" VALUES ("6", "300000");
INSERT INTO "city" VALUES ("7", "900000");
INSERT INTO "city" VALUES ("8", "1200000");
INSERT INTO "city" VALUES ("9", "600000");
INSERT INTO "city" VALUES ("10", "400000");
INSERT INTO "country" VALUES ("USA", "United States", "North America", "9833520.0", "331000000", "1");
INSERT INTO "country" VALUES ("CAN", "Canada", "North America", "9984670.0", "38000000", "2");
INSERT INTO "country" VALUES ("MEX", "Mexico", "North America", "1972550.0", "128000000", "3");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "8515767.0", "212000000", "4");
INSERT INTO "country" VALUES ("ARG", "Argentina", "South America", "2780400.0", "45000000", "5");
INSERT INTO "country" VALUES ("GBR", "United Kingdom", "Europe", "243610.0", "67000000", "6");
INSERT INTO "country" VALUES ("FRA", "France", "Europe", "551695.0", "65000000", "7");
INSERT INTO "country" VALUES ("JPN", "Japan", "Asia", "377975.0", "126000000", "8");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "9596961.0", "1440000000", "9");
INSERT INTO "country" VALUES ("AUS", "Australia", "Oceania", "7692024.0", "25000000", "10");
INSERT INTO "country" VALUES ("CUB", "Cuba", "North America", "109884.0", "11000000", "NULL");
INSERT INTO "country" VALUES ("BLZ", "Belize", "North America", "22966.0", "400000", "NULL");
INSERT INTO "country" VALUES ("GRL", "Greenland", "North America", "2166086.0", "56000", "NULL");
INSERT INTO "country" VALUES ("PAN", "Panama", "North America", "75417.0", "4000000", "NULL");
INSERT INTO "country" VALUES ("SLV", "El Salvador", "North America", "21041.0", "6500000", "NULL");
INSERT INTO "country" VALUES ("HTI", "Haiti", "North America", "27750.0", "11000000", "NULL");
INSERT INTO "country" VALUES ("JAM", "Jamaica", "North America", "10991.0", "3000000", "NULL");
INSERT INTO "country" VALUES ("DOM", "Dominican Republic", "North America", "48671.0", "10000000", "NULL");
INSERT INTO "country" VALUES ("NIC", "Nicaragua", "North America", "130373.0", "6000000", "NULL");
INSERT INTO "country" VALUES ("HND", "Honduras", "North America", "112492.0", "9000000", "NULL");
INSERT INTO "country" VALUES ("GTM", "Guatemala", "North America", "108889.0", "18000000", "NULL");
INSERT INTO "country" VALUES ("CRI", "Costa Rica", "North America", "51100.0", "5000000", "NULL");
INSERT INTO "countrylanguage" VALUES ("USA", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "French");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese");
INSERT INTO "countrylanguage" VALUES ("ARG", "Spanish");
INSERT INTO "countrylanguage" VALUES ("GBR", "English");
INSERT INTO "countrylanguage" VALUES ("FRA", "French");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin");
INSERT INTO "countrylanguage" VALUES ("AUS", "English");
INSERT INTO "countrylanguage" VALUES ("CUB", "Spanish");
INSERT INTO "countrylanguage" VALUES ("BLZ", "English");
INSERT INTO "countrylanguage" VALUES ("GRL", "Greenlandic");
INSERT INTO "countrylanguage" VALUES ("PAN", "Spanish");
INSERT INTO "countrylanguage" VALUES ("SLV", "Spanish");
INSERT INTO "countrylanguage" VALUES ("HTI", "Haitian Creole");
INSERT INTO "countrylanguage" VALUES ("JAM", "English");
INSERT INTO "countrylanguage" VALUES ("DOM", "Spanish");
INSERT INTO "countrylanguage" VALUES ("NIC", "Spanish");
INSERT INTO "countrylanguage" VALUES ("HND", "Spanish");
INSERT INTO "countrylanguage" VALUES ("GTM", "Spanish");
INSERT INTO "countrylanguage" VALUES ("CRI", "Spanish");