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,
"Name" CHAR(35),
PRIMARY KEY ("ID")
);

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

CREATE TABLE "countrylanguage" (
"CountryCode" CHAR(3),
"Language" CHAR(30),
"IsOfficial" TEXT,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY ("CountryCode") REFERENCES "country"("Code")
);





INSERT INTO "city" VALUES ("1", "Tokyo");
INSERT INTO "city" VALUES ("2", "New York");
INSERT INTO "city" VALUES ("3", "London");
INSERT INTO "city" VALUES ("4", "Paris");
INSERT INTO "city" VALUES ("5", "Beijing");
INSERT INTO "city" VALUES ("6", "Cairo");
INSERT INTO "city" VALUES ("7", "Rio de Janeiro");
INSERT INTO "city" VALUES ("8", "Sydney");
INSERT INTO "city" VALUES ("9", "Mumbai");
INSERT INTO "city" VALUES ("10", "Moscow");
INSERT INTO "country" VALUES ("JPN", "Japan", "126000000");
INSERT INTO "country" VALUES ("USA", "United States", "330000000");
INSERT INTO "country" VALUES ("GBR", "United Kingdom", "67000000");
INSERT INTO "country" VALUES ("FRA", "France", "65000000");
INSERT INTO "country" VALUES ("CHN", "China", "1400000000");
INSERT INTO "country" VALUES ("EGY", "Egypt", "100000000");
INSERT INTO "country" VALUES ("BRA", "Brazil", "210000000");
INSERT INTO "country" VALUES ("AUS", "Australia", "25000000");
INSERT INTO "country" VALUES ("IND", "India", "1380000000");
INSERT INTO "country" VALUES ("RUS", "Russia", "145000000");
INSERT INTO "country" VALUES ("PNG", "Papua New Guinea", "9000000");
INSERT INTO "country" VALUES ("VUT", "Vanuatu", "300000");
INSERT INTO "country" VALUES ("NGA", "Nigeria", "200000000");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "270000000");
INSERT INTO "country" VALUES ("ZAF", "South Africa", "60000000");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese", "T");
INSERT INTO "countrylanguage" VALUES ("USA", "English", "T");
INSERT INTO "countrylanguage" VALUES ("USA", "Spanish", "F");
INSERT INTO "countrylanguage" VALUES ("GBR", "English", "T");
INSERT INTO "countrylanguage" VALUES ("FRA", "French", "T");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin", "T");
INSERT INTO "countrylanguage" VALUES ("EGY", "Arabic", "T");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese", "T");
INSERT INTO "countrylanguage" VALUES ("AUS", "English", "T");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi", "T");
INSERT INTO "countrylanguage" VALUES ("IND", "English", "F");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian", "T");
INSERT INTO "countrylanguage" VALUES ("PNG", "Tok Pisin", "T");
INSERT INTO "countrylanguage" VALUES ("PNG", "Hiri Motu", "T");
INSERT INTO "countrylanguage" VALUES ("PNG", "English", "T");
INSERT INTO "countrylanguage" VALUES ("PNG", "Kuanua", "F");
INSERT INTO "countrylanguage" VALUES ("PNG", "Melanesian Pidgin", "F");
INSERT INTO "countrylanguage" VALUES ("PNG", "Motu", "F");
INSERT INTO "countrylanguage" VALUES ("PNG", "Kâte", "F");
INSERT INTO "countrylanguage" VALUES ("PNG", "Enga", "F");
INSERT INTO "countrylanguage" VALUES ("PNG", "Fore", "F");
INSERT INTO "countrylanguage" VALUES ("PNG", "Kalam", "F");
INSERT INTO "countrylanguage" VALUES ("PNG", "Kewa", "F");
INSERT INTO "countrylanguage" VALUES ("PNG", "Kyaka", "F");
INSERT INTO "countrylanguage" VALUES ("PNG", "Medlpa", "F");
INSERT INTO "countrylanguage" VALUES ("PNG", "Nii", "F");
INSERT INTO "countrylanguage" VALUES ("PNG", "Sinasina", "F");
INSERT INTO "countrylanguage" VALUES ("PNG", "Wahgi", "F");
INSERT INTO "countrylanguage" VALUES ("PNG", "Yareba", "F");
INSERT INTO "countrylanguage" VALUES ("VUT", "Bislama", "T");
INSERT INTO "countrylanguage" VALUES ("VUT", "English", "T");
INSERT INTO "countrylanguage" VALUES ("VUT", "French", "T");
INSERT INTO "countrylanguage" VALUES ("VUT", "Lenakel", "F");
INSERT INTO "countrylanguage" VALUES ("VUT", "Paamese", "F");
INSERT INTO "countrylanguage" VALUES ("VUT", "Raga", "F");
INSERT INTO "countrylanguage" VALUES ("VUT", "South Efate", "F");
INSERT INTO "countrylanguage" VALUES ("VUT", "Tanna", "F");
INSERT INTO "countrylanguage" VALUES ("NGA", "English", "T");
INSERT INTO "countrylanguage" VALUES ("NGA", "Hausa", "F");
INSERT INTO "countrylanguage" VALUES ("NGA", "Igbo", "F");
INSERT INTO "countrylanguage" VALUES ("NGA", "Yoruba", "F");
INSERT INTO "countrylanguage" VALUES ("IDN", "Indonesian", "T");
INSERT INTO "countrylanguage" VALUES ("IDN", "Javanese", "F");
INSERT INTO "countrylanguage" VALUES ("IDN", "Sundanese", "F");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Afrikaans", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "English", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Zulu", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Xhosa", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Sotho", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Tswana", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Pedi", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Venda", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Tsonga", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Swati", "T");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Ndebele", "T");