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),
"Population" INT,
PRIMARY KEY ("ID")
);

CREATE TABLE "country" (
"Code" CHAR(3),
"Name" CHAR(52),
"Continent" TEXT,
"SurfaceArea" FLOAT,
"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", "Tokyo", "13960000");
INSERT INTO "city" VALUES ("2", "Delhi", "19000000");
INSERT INTO "city" VALUES ("3", "Shanghai", "26320000");
INSERT INTO "city" VALUES ("4", "Sao Paulo", "12330000");
INSERT INTO "city" VALUES ("5", "Mexico City", "9209000");
INSERT INTO "city" VALUES ("6", "Cairo", "9845000");
INSERT INTO "city" VALUES ("7", "London", "8982000");
INSERT INTO "city" VALUES ("8", "New York", "8419000");
INSERT INTO "city" VALUES ("9", "Sydney", "5312000");
INSERT INTO "city" VALUES ("10", "Moscow", "12615000");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "9596961.0", "1444216107", "77.4");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "3287590.0", "1393409038", "70.4");
INSERT INTO "country" VALUES ("RUS", "Russian Federation", "Europe", "17098242.0", "145934462", "72.4");
INSERT INTO "country" VALUES ("USA", "United States", "North America", "9833520.0", "332915073", "78.5");
INSERT INTO "country" VALUES ("CAN", "Canada", "North America", "9984670.0", "38005238", "82.0");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "8515767.0", "213993437", "75.9");
INSERT INTO "country" VALUES ("AUS", "Australia", "Oceania", "7692024.0", "25788217", "83.0");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Africa", "1010408.0", "104258327", "71.8");
INSERT INTO "country" VALUES ("JPN", "Japan", "Asia", "377975.0", "126050804", "84.6");
INSERT INTO "country" VALUES ("KAZ", "Kazakhstan", "Asia", "2724900.0", "18754000", "73.2");
INSERT INTO "country" VALUES ("SAU", "Saudi Arabia", "Asia", "2149690.0", "35013414", "75.0");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "Asia", "1904569.0", "276361788", "71.5");
INSERT INTO "country" VALUES ("MNG", "Mongolia", "Asia", "1564116.0", "3329289", "69.9");
INSERT INTO "country" VALUES ("IRN", "Iran", "Asia", "1648195.0", "85028759", "76.3");
INSERT INTO "country" VALUES ("ARG", "Argentina", "South America", "2780400.0", "45605826", "76.5");
INSERT INTO "country" VALUES ("DZA", "Algeria", "Africa", "2381741.0", "44616624", "77.0");
INSERT INTO "country" VALUES ("COD", "Congo, The Democratic Republic of the", "Africa", "2344858.0", "92377960", "61.0");
INSERT INTO "country" VALUES ("SDN", "Sudan", "Africa", "1886068.0", "44909353", "65.1");
INSERT INTO "country" VALUES ("LBY", "Libya", "Africa", "1759540.0", "6871287", "72.7");
INSERT INTO "country" VALUES ("MEX", "Mexico", "North America", "1964375.0", "128932700", "75.0");
INSERT INTO "countrylanguage" VALUES ("CHN", "Chinese");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian");
INSERT INTO "countrylanguage" VALUES ("USA", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "French");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese");
INSERT INTO "countrylanguage" VALUES ("AUS", "English");
INSERT INTO "countrylanguage" VALUES ("EGY", "Arabic");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese");
INSERT INTO "countrylanguage" VALUES ("KAZ", "Kazakh");
INSERT INTO "countrylanguage" VALUES ("KAZ", "Russian");
INSERT INTO "countrylanguage" VALUES ("SAU", "Arabic");
INSERT INTO "countrylanguage" VALUES ("IDN", "Indonesian");
INSERT INTO "countrylanguage" VALUES ("MNG", "Mongolian");
INSERT INTO "countrylanguage" VALUES ("IRN", "Persian");
INSERT INTO "countrylanguage" VALUES ("ARG", "Spanish");
INSERT INTO "countrylanguage" VALUES ("DZA", "Arabic");
INSERT INTO "countrylanguage" VALUES ("COD", "French");
INSERT INTO "countrylanguage" VALUES ("SDN", "Arabic");
INSERT INTO "countrylanguage" VALUES ("LBY", "Arabic");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish");