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





INSERT INTO "city" VALUES ("1", "Midlands", "500000");
INSERT INTO "city" VALUES ("2", "Midlands", "1500000");
INSERT INTO "city" VALUES ("3", "Midlands", "300000");
INSERT INTO "city" VALUES ("4", "Coastal", "800000");
INSERT INTO "city" VALUES ("5", "Coastal", "1200000");
INSERT INTO "city" VALUES ("6", "Coastal", "400000");
INSERT INTO "city" VALUES ("7", "Highlands", "200000");
INSERT INTO "city" VALUES ("8", "Highlands", "100000");
INSERT INTO "city" VALUES ("9", "Highlands", "350000");
INSERT INTO "city" VALUES ("10", "Highlands", "500000");
INSERT INTO "city" VALUES ("11", "Lowlands", "600000");
INSERT INTO "city" VALUES ("12", "Lowlands", "700000");
INSERT INTO "city" VALUES ("13", "Lowlands", "300000");
INSERT INTO "city" VALUES ("14", "Lowlands", "1000000");
INSERT INTO "city" VALUES ("15", "Lowlands", "200000");
INSERT INTO "country" VALUES ("USA", "North America", "9833520", "331000000");
INSERT INTO "country" VALUES ("CAN", "North America", "9984670", "38000000");
INSERT INTO "country" VALUES ("BRA", "South America", "8515767", "212000000");
INSERT INTO "country" VALUES ("FRA", "Europe", "643801", "67000000");
INSERT INTO "country" VALUES ("AUS", "Oceania", "7692024", "25000000");
INSERT INTO "country" VALUES ("JPN", "Asia", "377975", "126000000");