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,
"Population" INT,
PRIMARY KEY ("ID")
);

CREATE TABLE "country" (
"Code" CHAR(3),
"Name" CHAR(52),
"IndepYear" INT,
"Population" INT,
"LifeExpectancy" FLOAT,
PRIMARY KEY ("Code")
);





INSERT INTO "city" VALUES ("1", "5000000");
INSERT INTO "city" VALUES ("2", "12000000");
INSERT INTO "city" VALUES ("3", "300000");
INSERT INTO "city" VALUES ("4", "750000");
INSERT INTO "city" VALUES ("5", "2000000");
INSERT INTO "city" VALUES ("6", "10000000");
INSERT INTO "city" VALUES ("7", "1500000");
INSERT INTO "city" VALUES ("8", "4500000");
INSERT INTO "city" VALUES ("9", "800000");
INSERT INTO "city" VALUES ("10", "600000");
INSERT INTO "country" VALUES ("USA", "United States", "1776", "331000000", "78.9");
INSERT INTO "country" VALUES ("CAN", "Canada", "1867", "38000000", "82.3");
INSERT INTO "country" VALUES ("IND", "India", "1947", "1380000000", "69.7");
INSERT INTO "country" VALUES ("ZAF", "South Africa", "1910", "60000000", "64.1");
INSERT INTO "country" VALUES ("SSD", "South Sudan", "2011", "11000000", "57.5");
INSERT INTO "country" VALUES ("TLS", "Timor-Leste", "2002", "1300000", "69.2");
INSERT INTO "country" VALUES ("KOS", "Kosovo", "2008", "1800000", "71.5");
INSERT INTO "country" VALUES ("JAM", "Jamaica", "1962", "3000000", "74.9");
INSERT INTO "country" VALUES ("BHR", "Bahrain", "1971", "1600000", "77.0");
INSERT INTO "country" VALUES ("SGP", "Singapore", "1965", "5700000", "83.6");