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,
"Region" CHAR(26),
"Population" INT,
"LifeExpectancy" FLOAT,
PRIMARY KEY ("Code")
);





INSERT INTO "country" VALUES ("USA", "North America", "Northern America", "331000000", "78.9");
INSERT INTO "country" VALUES ("CAN", "North America", "Northern America", "38000000", "82.3");
INSERT INTO "country" VALUES ("MEX", "North America", "Central America", "128000000", "75.0");
INSERT INTO "country" VALUES ("BLZ", "North America", "Central America", "400000", "72.0");
INSERT INTO "country" VALUES ("GTM", "North America", "Central America", "17000000", "71.5");
INSERT INTO "country" VALUES ("BRA", "South America", "South America", "212000000", "75.7");
INSERT INTO "country" VALUES ("ARG", "South America", "South America", "45000000", "76.7");
INSERT INTO "country" VALUES ("COL", "South America", "South America", "51000000", "74.9");
INSERT INTO "country" VALUES ("VEN", "South America", "South America", "28500000", "72.5");
INSERT INTO "country" VALUES ("PER", "South America", "South America", "33000000", "69.6");
INSERT INTO "country" VALUES ("DEU", "Europe", "Western Europe", "83000000", "81.0");
INSERT INTO "country" VALUES ("FRA", "Europe", "Western Europe", "67000000", "82.4");
INSERT INTO "country" VALUES ("ITA", "Europe", "Southern Europe", "60000000", "83.2");
INSERT INTO "country" VALUES ("POL", "Europe", "Eastern Europe", "38000000", "77.8");
INSERT INTO "country" VALUES ("UKR", "Europe", "Eastern Europe", "42000000", "71.2");
INSERT INTO "country" VALUES ("NGA", "Africa", "Western Africa", "206000000", "54.3");
INSERT INTO "country" VALUES ("EGY", "Africa", "Northern Africa", "102000000", "71.0");
INSERT INTO "country" VALUES ("ZAF", "Africa", "Southern Africa", "59000000", "64.1");
INSERT INTO "country" VALUES ("KEN", "Africa", "Eastern Africa", "54000000", "66.7");
INSERT INTO "country" VALUES ("ETH", "Africa", "Eastern Africa", "114000000", "66.0");
INSERT INTO "country" VALUES ("CHN", "Asia", "Eastern Asia", "1402000000", "76.9");
INSERT INTO "country" VALUES ("JPN", "Asia", "Eastern Asia", "126000000", "84.5");
INSERT INTO "country" VALUES ("IND", "Asia", "Southern Asia", "1380000000", "69.7");
INSERT INTO "country" VALUES ("PAK", "Asia", "Southern Asia", "220000000", "67.3");
INSERT INTO "country" VALUES ("BGD", "Asia", "Southern Asia", "165000000", "72.3");
INSERT INTO "country" VALUES ("AUS", "Oceania", "Australia and New Zealand", "25000000", "83.0");
INSERT INTO "country" VALUES ("NZL", "Oceania", "Australia and New Zealand", "5000000", "82.1");
INSERT INTO "country" VALUES ("FJI", "Oceania", "Melanesia", "900000", "67.5");
INSERT INTO "country" VALUES ("PNG", "Oceania", "Melanesia", "9000000", "64.0");
INSERT INTO "country" VALUES ("SLB", "Oceania", "Melanesia", "700000", "73.0");