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

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





INSERT INTO "city" VALUES ("1", "New York");
INSERT INTO "city" VALUES ("2", "London");
INSERT INTO "city" VALUES ("3", "Paris");
INSERT INTO "city" VALUES ("4", "Tokyo");
INSERT INTO "city" VALUES ("5", "Sydney");
INSERT INTO "city" VALUES ("6", "Beijing");
INSERT INTO "city" VALUES ("7", "Cairo");
INSERT INTO "city" VALUES ("8", "Rio de Janeiro");
INSERT INTO "city" VALUES ("9", "Mumbai");
INSERT INTO "city" VALUES ("10", "Moscow");
INSERT INTO "country" VALUES ("USA", "United States", "North America", "North America");
INSERT INTO "country" VALUES ("GBR", "United Kingdom", "Europe", "Western Europe");
INSERT INTO "country" VALUES ("FRA", "France", "Europe", "Western Europe");
INSERT INTO "country" VALUES ("JPN", "Japan", "Asia", "Eastern Asia");
INSERT INTO "country" VALUES ("AUS", "Australia", "Oceania", "Australia and New Zealand");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "Eastern Asia");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Africa", "Northern Africa");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "South America");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "Southern Asia");
INSERT INTO "country" VALUES ("RUS", "Russian Federation", "Europe", "Eastern Europe");
INSERT INTO "country" VALUES ("AIA", "Anguilla", "North America", "Caribbean");
INSERT INTO "country" VALUES ("CAN", "Canada", "North America", "North America");
INSERT INTO "country" VALUES ("MEX", "Mexico", "North America", "Central America");
INSERT INTO "country" VALUES ("DEU", "Germany", "Europe", "Western Europe");
INSERT INTO "country" VALUES ("ITA", "Italy", "Europe", "Southern Europe");
INSERT INTO "country" VALUES ("ZAF", "South Africa", "Africa", "Southern Africa");
INSERT INTO "country" VALUES ("ARG", "Argentina", "South America", "South America");
INSERT INTO "country" VALUES ("KOR", "South Korea", "Asia", "Eastern Asia");
INSERT INTO "country" VALUES ("NZL", "New Zealand", "Oceania", "Australia and New Zealand");
INSERT INTO "country" VALUES ("NGA", "Nigeria", "Africa", "Western Africa");
INSERT INTO "countrylanguage" VALUES ("USA", "English");
INSERT INTO "countrylanguage" VALUES ("GBR", "English");
INSERT INTO "countrylanguage" VALUES ("FRA", "French");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese");
INSERT INTO "countrylanguage" VALUES ("AUS", "English");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin");
INSERT INTO "countrylanguage" VALUES ("EGY", "Arabic");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian");
INSERT INTO "countrylanguage" VALUES ("AIA", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "French");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish");
INSERT INTO "countrylanguage" VALUES ("DEU", "German");
INSERT INTO "countrylanguage" VALUES ("ITA", "Italian");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Afrikaans");
INSERT INTO "countrylanguage" VALUES ("ZAF", "English");
INSERT INTO "countrylanguage" VALUES ("ARG", "Spanish");
INSERT INTO "countrylanguage" VALUES ("KOR", "Korean");
INSERT INTO "countrylanguage" VALUES ("NZL", "English");
INSERT INTO "countrylanguage" VALUES ("NZL", "Maori");
INSERT INTO "countrylanguage" VALUES ("NGA", "English");