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

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





INSERT INTO "city" VALUES ("1", "Lagos", "14000000");
INSERT INTO "city" VALUES ("2", "Cairo", "9500000");
INSERT INTO "city" VALUES ("3", "Nairobi", "4500000");
INSERT INTO "city" VALUES ("4", "Tokyo", "37400068");
INSERT INTO "city" VALUES ("5", "Mumbai", "20400000");
INSERT INTO "city" VALUES ("6", "Beijing", "21500000");
INSERT INTO "city" VALUES ("7", "Cape Town", "4300000");
INSERT INTO "city" VALUES ("8", "Addis Ababa", "3500000");
INSERT INTO "city" VALUES ("9", "Jakarta", "10700000");
INSERT INTO "city" VALUES ("10", "Seoul", "9770000");
INSERT INTO "country" VALUES ("NGA", "Nigeria", "Africa", "206000000");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Africa", "102000000");
INSERT INTO "country" VALUES ("KEN", "Kenya", "Africa", "54000000");
INSERT INTO "country" VALUES ("ZAF", "South Africa", "Africa", "60000000");
INSERT INTO "country" VALUES ("ETH", "Ethiopia", "Africa", "114000000");
INSERT INTO "country" VALUES ("JPN", "Japan", "Asia", "126000000");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "1400000000");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "1380000000");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "Asia", "273000000");
INSERT INTO "country" VALUES ("KOR", "South Korea", "Asia", "52000000");
INSERT INTO "country" VALUES ("SGP", "Singapore", "Asia", "5700000");
INSERT INTO "country" VALUES ("BHR", "Bahrain", "Asia", "1700000");
INSERT INTO "country" VALUES ("BTN", "Bhutan", "Asia", "800000");
INSERT INTO "countrylanguage" VALUES ("NGA", "English");
INSERT INTO "countrylanguage" VALUES ("EGY", "Arabic");
INSERT INTO "countrylanguage" VALUES ("KEN", "Swahili");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Zulu");
INSERT INTO "countrylanguage" VALUES ("ETH", "Amharic");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi");
INSERT INTO "countrylanguage" VALUES ("IDN", "Indonesian");
INSERT INTO "countrylanguage" VALUES ("KOR", "Korean");
INSERT INTO "countrylanguage" VALUES ("SGP", "English");
INSERT INTO "countrylanguage" VALUES ("BHR", "Arabic");
INSERT INTO "countrylanguage" VALUES ("BTN", "Dzongkha");