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) UNIQUE,
"Name" CHAR(52),
"Region" CHAR(26),
"Population" INT,
"LifeExpectancy" FLOAT,
PRIMARY KEY ("Code")
);

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





INSERT INTO "city" VALUES ("1", "3000000");
INSERT INTO "city" VALUES ("2", "1500000");
INSERT INTO "city" VALUES ("3", "500000");
INSERT INTO "city" VALUES ("4", "10000000");
INSERT INTO "city" VALUES ("5", "750000");
INSERT INTO "country" VALUES ("AGO", "Angola", "Sub-Saharan Africa", "32866272", "61.2");
INSERT INTO "country" VALUES ("USA", "United States", "North America", "331893745", "78.9");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "212559417", "75.7");
INSERT INTO "country" VALUES ("CHN", "China", "East Asia", "1439323776", "76.9");
INSERT INTO "country" VALUES ("FRA", "France", "Western Europe", "65273511", "82.5");
INSERT INTO "countrylanguage" VALUES ("AGO", "Portuguese");
INSERT INTO "countrylanguage" VALUES ("AGO", "Umbundu");
INSERT INTO "countrylanguage" VALUES ("USA", "English");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin");
INSERT INTO "countrylanguage" VALUES ("FRA", "French");