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

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





INSERT INTO "city" VALUES ("1", "Tokyo", "37400068");
INSERT INTO "city" VALUES ("2", "Shanghai", "26317104");
INSERT INTO "city" VALUES ("3", "Mumbai", "20411000");
INSERT INTO "city" VALUES ("4", "Beijing", "21516000");
INSERT INTO "city" VALUES ("5", "Karachi", "14910352");
INSERT INTO "city" VALUES ("6", "Delhi", "16787941");
INSERT INTO "city" VALUES ("7", "Istanbul", "15029231");
INSERT INTO "city" VALUES ("8", "Dhaka", "8906039");
INSERT INTO "city" VALUES ("9", "Seoul", "9776000");
INSERT INTO "city" VALUES ("10", "Jakarta", "10770487");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "9596961", "1402112000", "76.7");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "3287263", "1380004385", "69.7");
INSERT INTO "country" VALUES ("RUS", "Russia", "Asia", "17098242", "146599183", "72.6");
INSERT INTO "country" VALUES ("JPN", "Japan", "Asia", "377975", "126476461", "84.5");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "Asia", "1904569", "273523615", "71.7");
INSERT INTO "country" VALUES ("KOR", "South Korea", "Asia", "100210", "51269185", "83.3");
INSERT INTO "country" VALUES ("SAU", "Saudi Arabia", "Asia", "2149690", "34813871", "75.0");
INSERT INTO "country" VALUES ("MNG", "Mongolia", "Asia", "1564110", "3278290", "69.5");
INSERT INTO "country" VALUES ("VNM", "Vietnam", "Asia", "331212", "97338583", "75.4");
INSERT INTO "country" VALUES ("TUR", "Turkey", "Asia", "783562", "84339067", "77.4");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin", "70.0");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi", "41.0");
INSERT INTO "countrylanguage" VALUES ("IND", "English", "12.0");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian", "85.0");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese", "99.0");
INSERT INTO "countrylanguage" VALUES ("IDN", "Indonesian", "90.0");
INSERT INTO "countrylanguage" VALUES ("KOR", "Korean", "97.0");
INSERT INTO "countrylanguage" VALUES ("SAU", "Arabic", "90.0");
INSERT INTO "countrylanguage" VALUES ("MNG", "Mongolian", "95.0");
INSERT INTO "countrylanguage" VALUES ("VNM", "Vietnamese", "85.0");
INSERT INTO "countrylanguage" VALUES ("TUR", "Turkish", "85.0");