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,
"LifeExpectancy" FLOAT,
PRIMARY KEY ("Code")
);

CREATE TABLE "countrylanguage" (
"CountryCode" CHAR(3),
"Language" CHAR(30),
PRIMARY KEY ("CountryCode", "Language")
);





INSERT INTO "city" VALUES ("1", "5000000");
INSERT INTO "city" VALUES ("2", "12000000");
INSERT INTO "city" VALUES ("3", "800000");
INSERT INTO "city" VALUES ("4", "3000000");
INSERT INTO "city" VALUES ("5", "15000000");
INSERT INTO "city" VALUES ("6", "450000");
INSERT INTO "city" VALUES ("7", "7000000");
INSERT INTO "city" VALUES ("8", "2000000");
INSERT INTO "city" VALUES ("9", "1000000");
INSERT INTO "city" VALUES ("10", "600000");
INSERT INTO "country" VALUES ("USA", "United States", "1776", "78.9");
INSERT INTO "country" VALUES ("CAN", "Canada", "1867", "82.3");
INSERT INTO "country" VALUES ("IND", "India", "1947", "69.4");
INSERT INTO "country" VALUES ("ZAF", "South Africa", "1910", "64.1");
INSERT INTO "country" VALUES ("JAM", "Jamaica", "1962", "74.3");
INSERT INTO "country" VALUES ("KEN", "Kenya", "1963", "66.7");
INSERT INTO "country" VALUES ("SGP", "Singapore", "1965", "83.1");
INSERT INTO "country" VALUES ("VNM", "Vietnam", "1945", "75.4");
INSERT INTO "country" VALUES ("TLS", "Timor-Leste", "2002", "69.0");
INSERT INTO "country" VALUES ("SSD", "South Sudan", "2011", "57.5");
INSERT INTO "countrylanguage" VALUES ("USA", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "French");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi");
INSERT INTO "countrylanguage" VALUES ("IND", "English");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Zulu");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Afrikaans");
INSERT INTO "countrylanguage" VALUES ("JAM", "English");
INSERT INTO "countrylanguage" VALUES ("KEN", "Swahili");
INSERT INTO "countrylanguage" VALUES ("KEN", "English");
INSERT INTO "countrylanguage" VALUES ("SGP", "English");
INSERT INTO "countrylanguage" VALUES ("SGP", "Mandarin");
INSERT INTO "countrylanguage" VALUES ("VNM", "Vietnamese");
INSERT INTO "countrylanguage" VALUES ("TLS", "Tetum");
INSERT INTO "countrylanguage" VALUES ("TLS", "Portuguese");
INSERT INTO "countrylanguage" VALUES ("SSD", "English");