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

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





INSERT INTO "city" VALUES ("1", "California", "39538223");
INSERT INTO "city" VALUES ("2", "Texas", "29145505");
INSERT INTO "city" VALUES ("3", "New York", "20201249");
INSERT INTO "city" VALUES ("4", "Florida", "21538187");
INSERT INTO "city" VALUES ("5", "Illinois", "12812508");
INSERT INTO "city" VALUES ("6", "Ontario", "14711827");
INSERT INTO "city" VALUES ("7", "Quebec", "8537674");
INSERT INTO "city" VALUES ("8", "British Columbia", "5147712");
INSERT INTO "city" VALUES ("9", "Bavaria", "13076721");
INSERT INTO "city" VALUES ("10", "North Rhine-Westphalia", "17947221");
INSERT INTO "country" VALUES ("USA", "United States of America", "331893745");
INSERT INTO "country" VALUES ("CHN", "China", "1444216107");
INSERT INTO "country" VALUES ("IND", "India", "1393409038");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "273523621");
INSERT INTO "country" VALUES ("PAK", "Pakistan", "220892331");
INSERT INTO "country" VALUES ("BRA", "Brazil", "212821986");
INSERT INTO "country" VALUES ("NGA", "Nigeria", "206139587");
INSERT INTO "country" VALUES ("BGD", "Bangladesh", "164689383");
INSERT INTO "country" VALUES ("RUS", "Russia", "145912025");
INSERT INTO "country" VALUES ("MEX", "Mexico", "128932753");
INSERT INTO "countrylanguage" VALUES ("USA", "English", "82.1");
INSERT INTO "countrylanguage" VALUES ("USA", "Spanish", "13.5");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin", "70.4");
INSERT INTO "countrylanguage" VALUES ("CHN", "Cantonese", "5.3");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi", "41.0");
INSERT INTO "countrylanguage" VALUES ("IND", "English", "12.0");
INSERT INTO "countrylanguage" VALUES ("IDN", "Indonesian", "90.4");
INSERT INTO "countrylanguage" VALUES ("PAK", "Urdu", "8.0");
INSERT INTO "countrylanguage" VALUES ("PAK", "Punjabi", "44.0");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese", "97.9");
INSERT INTO "countrylanguage" VALUES ("NGA", "English", "53.0");
INSERT INTO "countrylanguage" VALUES ("BGD", "Bengali", "98.0");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian", "85.7");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish", "92.7");