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),
"Population" INT,
"Capital" 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", "250000");
INSERT INTO "city" VALUES ("10", "Highlands", "350000");
INSERT INTO "city" VALUES ("11", "Plains", "600000");
INSERT INTO "city" VALUES ("12", "Plains", "700000");
INSERT INTO "city" VALUES ("13", "Plains", "300000");
INSERT INTO "city" VALUES ("14", "Plains", "1000000");
INSERT INTO "city" VALUES ("15", "Plains", "200000");
INSERT INTO "country" VALUES ("AAA", "Midlands", "5000000", "2");
INSERT INTO "country" VALUES ("BBB", "Coastal", "4000000", "5");
INSERT INTO "country" VALUES ("CCC", "Highlands", "1500000", "10");
INSERT INTO "country" VALUES ("DDD", "Plains", "3500000", "14");