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 "country" (
"Code" CHAR(3),
"Name" CHAR(52),
"Population" INT,
PRIMARY KEY ("Code")
);

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





INSERT INTO "country" VALUES ("USA", "United States", "331000000");
INSERT INTO "country" VALUES ("CAN", "Canada", "38000000");
INSERT INTO "country" VALUES ("MEX", "Mexico", "128000000");
INSERT INTO "country" VALUES ("GBR", "United Kingdom", "67000000");
INSERT INTO "country" VALUES ("FRA", "France", "65000000");
INSERT INTO "country" VALUES ("DEU", "Germany", "83000000");
INSERT INTO "country" VALUES ("CHN", "China", "1441000000");
INSERT INTO "country" VALUES ("IND", "India", "1393000000");
INSERT INTO "country" VALUES ("BRA", "Brazil", "213000000");
INSERT INTO "country" VALUES ("ARG", "Argentina", "45000000");
INSERT INTO "country" VALUES ("AUS", "Australia", "25000000");
INSERT INTO "country" VALUES ("JPN", "Japan", "126000000");
INSERT INTO "country" VALUES ("KOR", "South Korea", "51000000");
INSERT INTO "country" VALUES ("EGY", "Egypt", "102000000");
INSERT INTO "country" VALUES ("NGA", "Nigeria", "206000000");
INSERT INTO "countrylanguage" VALUES ("USA", "English");
INSERT INTO "countrylanguage" VALUES ("USA", "Spanish");
INSERT INTO "countrylanguage" VALUES ("CAN", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "French");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish");
INSERT INTO "countrylanguage" VALUES ("GBR", "English");
INSERT INTO "countrylanguage" VALUES ("FRA", "French");
INSERT INTO "countrylanguage" VALUES ("DEU", "German");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi");
INSERT INTO "countrylanguage" VALUES ("IND", "English");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese");
INSERT INTO "countrylanguage" VALUES ("ARG", "Spanish");
INSERT INTO "countrylanguage" VALUES ("AUS", "English");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese");
INSERT INTO "countrylanguage" VALUES ("KOR", "Korean");
INSERT INTO "countrylanguage" VALUES ("EGY", "Arabic");
INSERT INTO "countrylanguage" VALUES ("NGA", "English");
INSERT INTO "countrylanguage" VALUES ("NGA", "Hausa");
INSERT INTO "countrylanguage" VALUES ("NGA", "Yoruba");
INSERT INTO "countrylanguage" VALUES ("NGA", "Igbo");
INSERT INTO "countrylanguage" VALUES ("USA", "Chinese");
INSERT INTO "countrylanguage" VALUES ("DEU", "Turkish");
INSERT INTO "countrylanguage" VALUES ("FRA", "Arabic");
INSERT INTO "countrylanguage" VALUES ("CHN", "Cantonese");
INSERT INTO "countrylanguage" VALUES ("IND", "Bengali");
INSERT INTO "countrylanguage" VALUES ("BRA", "Spanish");
INSERT INTO "countrylanguage" VALUES ("ARG", "English");
INSERT INTO "countrylanguage" VALUES ("JPN", "English");
INSERT INTO "countrylanguage" VALUES ("KOR", "English");
INSERT INTO "countrylanguage" VALUES ("EGY", "English");