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 "city" VALUES ("1", "California", "39500000");
INSERT INTO "city" VALUES ("2", "Ontario", "14000000");
INSERT INTO "city" VALUES ("3", "Queensland", "5000000");
INSERT INTO "city" VALUES ("4", "Bavaria", "13000000");
INSERT INTO "city" VALUES ("5", "Lombardy", "10000000");
INSERT INTO "city" VALUES ("6", "Gauteng", "15000000");
INSERT INTO "city" VALUES ("7", "Ile-de-France", "12000000");
INSERT INTO "city" VALUES ("8", "Maharashtra", "112000000");
INSERT INTO "city" VALUES ("9", "New South Wales", "8000000");
INSERT INTO "city" VALUES ("10", "Catalonia", "7500000");
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 ("AUS", "Oceania", "Australia and New Zealand", "25000000", "83.0");
INSERT INTO "country" VALUES ("DEU", "Europe", "Western Europe", "83000000", "81.0");
INSERT INTO "country" VALUES ("ITA", "Europe", "Southern Europe", "60000000", "83.4");
INSERT INTO "country" VALUES ("ZAF", "Africa", "Southern Africa", "60000000", "64.1");
INSERT INTO "country" VALUES ("FRA", "Europe", "Western Europe", "67000000", "82.5");
INSERT INTO "country" VALUES ("IND", "Asia", "Southern Asia", "1380000000", "69.7");
INSERT INTO "country" VALUES ("NZL", "Oceania", "Australia and New Zealand", "5000000", "82.1");
INSERT INTO "country" VALUES ("ESP", "Europe", "Southern Europe", "47000000", "83.0");