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,
"Continent" TEXT,
"Population" INT,
"GNP" FLOAT,
PRIMARY KEY ("Code")
);

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





INSERT INTO "city" VALUES ("1", "Kanto", "14000000");
INSERT INTO "city" VALUES ("2", "Guangdong", "104000000");
INSERT INTO "city" VALUES ("3", "Maharashtra", "112000000");
INSERT INTO "city" VALUES ("4", "Ile-de-France", "12000000");
INSERT INTO "city" VALUES ("5", "California", "39500000");
INSERT INTO "city" VALUES ("6", "Tokyo", "37400068");
INSERT INTO "city" VALUES ("7", "Seoul", "9776000");
INSERT INTO "city" VALUES ("8", "Jakarta", "10700000");
INSERT INTO "city" VALUES ("9", "Lagos", "14000000");
INSERT INTO "city" VALUES ("10", "Beijing", "21500000");
INSERT INTO "country" VALUES ("JPN", "Asia", "126000000", "5065.0");
INSERT INTO "country" VALUES ("CHN", "Asia", "1402000000", "14342.9");
INSERT INTO "country" VALUES ("IND", "Asia", "1380004385", "2875.1");
INSERT INTO "country" VALUES ("FRA", "Europe", "67000000", "2715.5");
INSERT INTO "country" VALUES ("USA", "North America", "331000000", "21433.2");
INSERT INTO "country" VALUES ("KOR", "Asia", "51700000", "1630.0");
INSERT INTO "country" VALUES ("IDN", "Asia", "273000000", "1119.2");
INSERT INTO "country" VALUES ("NGA", "Africa", "206000000", "448.1");
INSERT INTO "country" VALUES ("RUS", "Europe", "146000000", "1699.9");
INSERT INTO "country" VALUES ("SGP", "Asia", "5700000", "372.8");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese", "99.0");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin", "70.0");
INSERT INTO "countrylanguage" VALUES ("CHN", "Cantonese", "5.0");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi", "41.0");
INSERT INTO "countrylanguage" VALUES ("IND", "English", "12.0");
INSERT INTO "countrylanguage" VALUES ("FRA", "French", "88.0");
INSERT INTO "countrylanguage" VALUES ("USA", "English", "80.0");
INSERT INTO "countrylanguage" VALUES ("KOR", "Korean", "97.0");
INSERT INTO "countrylanguage" VALUES ("IDN", "Indonesian", "90.0");
INSERT INTO "countrylanguage" VALUES ("NGA", "English", "53.0");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian", "85.0");
INSERT INTO "countrylanguage" VALUES ("SGP", "English", "36.0");
INSERT INTO "countrylanguage" VALUES ("SGP", "Mandarin", "35.0");