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", "California", "3800000");
INSERT INTO "city" VALUES ("2", "Texas", "2500000");
INSERT INTO "city" VALUES ("3", "Florida", "2000000");
INSERT INTO "city" VALUES ("4", "New York", "8000000");
INSERT INTO "city" VALUES ("5", "California", "1500000");
INSERT INTO "city" VALUES ("6", "Texas", "1000000");
INSERT INTO "city" VALUES ("7", "Florida", "500000");
INSERT INTO "city" VALUES ("8", "New York", "7000000");
INSERT INTO "city" VALUES ("9", "California", "400000");
INSERT INTO "city" VALUES ("10", "Texas", "200000");
INSERT INTO "city" VALUES ("11", "Florida", "100000");
INSERT INTO "city" VALUES ("12", "New York", "50000");
INSERT INTO "city" VALUES ("13", "California", "10000");
INSERT INTO "city" VALUES ("14", "Texas", "5000");
INSERT INTO "city" VALUES ("15", "Florida", "1000");
INSERT INTO "city" VALUES ("16", "Washington", "700000");
INSERT INTO "city" VALUES ("17", "Washington", "600000");
INSERT INTO "city" VALUES ("18", "Washington", "500000");
INSERT INTO "city" VALUES ("19", "Washington", "400000");
INSERT INTO "city" VALUES ("20", "Washington", "300000");
INSERT INTO "country" VALUES ("USA", "North America", "330000000", "4");
INSERT INTO "country" VALUES ("CAN", "North America", "38000000", "NULL");
INSERT INTO "country" VALUES ("MEX", "North America", "126000000", "NULL");
INSERT INTO "country" VALUES ("BRA", "South America", "215000000", "NULL");
INSERT INTO "country" VALUES ("ARG", "South America", "45000000", "NULL");
INSERT INTO "country" VALUES ("GBR", "Europe", "67000000", "NULL");
INSERT INTO "country" VALUES ("FRA", "Europe", "65000000", "NULL");
INSERT INTO "country" VALUES ("DEU", "Europe", "83000000", "NULL");
INSERT INTO "country" VALUES ("CHN", "Asia", "1400000000", "NULL");
INSERT INTO "country" VALUES ("IND", "Asia", "1380000000", "NULL");