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

CREATE TABLE "country" (
"Code" CHAR(3),
"Name" CHAR(52),
"Continent" TEXT,
"Region" CHAR(26),
"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", "5000000");
INSERT INTO "city" VALUES ("2", "12000000");
INSERT INTO "city" VALUES ("3", "300000");
INSERT INTO "city" VALUES ("4", "8000000");
INSERT INTO "city" VALUES ("5", "1500000");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "Southern Asia", "69.4");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "Eastern Asia", "76.7");
INSERT INTO "country" VALUES ("PAK", "Pakistan", "Asia", "Southern Asia", "66.5");
INSERT INTO "country" VALUES ("NPL", "Nepal", "Asia", "Southern Asia", "70.0");
INSERT INTO "country" VALUES ("AFG", "Afghanistan", "Asia", "Southern Asia", "52.3");
INSERT INTO "country" VALUES ("JPN", "Japan", "Asia", "Eastern Asia", "84.5");
INSERT INTO "country" VALUES ("RUS", "Russia", "Europe", "Eastern Europe", "72.6");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Africa", "Northern Africa", "71.8");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi", "41.0");
INSERT INTO "countrylanguage" VALUES ("IND", "English", "10.0");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin", "70.0");
INSERT INTO "countrylanguage" VALUES ("PAK", "Urdu", "50.0");
INSERT INTO "countrylanguage" VALUES ("NPL", "Nepali", "44.6");
INSERT INTO "countrylanguage" VALUES ("AFG", "Pashto", "35.0");
INSERT INTO "countrylanguage" VALUES ("AFG", "Dari", "50.0");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese", "99.0");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian", "85.0");
INSERT INTO "countrylanguage" VALUES ("EGY", "Arabic", "90.0");