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

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





INSERT INTO "city" VALUES ("1", "Luanda", "8417000");
INSERT INTO "city" VALUES ("2", "Benguela", "500000");
INSERT INTO "city" VALUES ("3", "Huambo", "700000");
INSERT INTO "city" VALUES ("4", "Lubango", "600000");
INSERT INTO "city" VALUES ("5", "Malanje", "300000");
INSERT INTO "city" VALUES ("6", "Namibe", "250000");
INSERT INTO "city" VALUES ("7", "Cabinda", "200000");
INSERT INTO "city" VALUES ("8", "Uige", "400000");
INSERT INTO "city" VALUES ("9", "Soyo", "150000");
INSERT INTO "city" VALUES ("10", "Caxito", "180000");
INSERT INTO "country" VALUES ("AGO", "Angola", "Sub-Saharan Africa", "32866272");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "211000000");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "1393000000");
INSERT INTO "country" VALUES ("USA", "United States", "North America", "331000000");
INSERT INTO "country" VALUES ("FRA", "France", "Europe", "67000000");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "1366000000");
INSERT INTO "country" VALUES ("ZAF", "South Africa", "Sub-Saharan Africa", "58500000");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Middle East", "100000000");
INSERT INTO "country" VALUES ("RUS", "Russia", "Europe", "144000000");
INSERT INTO "country" VALUES ("AUS", "Australia", "Oceania", "25000000");
INSERT INTO "countrylanguage" VALUES ("AGO", "Portuguese", "85.0");
INSERT INTO "countrylanguage" VALUES ("AGO", "Umbundu", "25.0");
INSERT INTO "countrylanguage" VALUES ("AGO", "Kimbundu", "10.0");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese", "98.0");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin", "70.0");
INSERT INTO "countrylanguage" VALUES ("USA", "English", "80.0");
INSERT INTO "countrylanguage" VALUES ("FRA", "French", "88.0");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi", "41.0");
INSERT INTO "countrylanguage" VALUES ("IND", "English", "12.0");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Zulu", "24.0");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Xhosa", "18.0");
INSERT INTO "countrylanguage" VALUES ("EGY", "Arabic", "90.0");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian", "95.0");
INSERT INTO "countrylanguage" VALUES ("AUS", "English", "75.0");