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,
"Name" CHAR(35),
PRIMARY KEY ("ID")
);

CREATE TABLE "country" (
"Code" CHAR(3),
"Name" CHAR(52),
"Continent" TEXT,
"SurfaceArea" FLOAT,
"Population" INT,
"HeadOfState" CHAR(60),
PRIMARY KEY ("Code")
);

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





INSERT INTO "city" VALUES ("1", "New York");
INSERT INTO "city" VALUES ("2", "Los Angeles");
INSERT INTO "city" VALUES ("3", "Chicago");
INSERT INTO "city" VALUES ("4", "Houston");
INSERT INTO "city" VALUES ("5", "Phoenix");
INSERT INTO "city" VALUES ("6", "London");
INSERT INTO "city" VALUES ("7", "Paris");
INSERT INTO "city" VALUES ("8", "Tokyo");
INSERT INTO "city" VALUES ("9", "Beijing");
INSERT INTO "city" VALUES ("10", "Moscow");
INSERT INTO "country" VALUES ("USA", "United States", "North America", "9833520.0", "331000000", "Joe Biden");
INSERT INTO "country" VALUES ("CAN", "Canada", "North America", "9984670.0", "38000000", "Justin Trudeau");
INSERT INTO "country" VALUES ("MEX", "Mexico", "North America", "1972550.0", "128000000", "Andrés Manuel López Obrador");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "8515767.0", "212000000", "Jair Bolsonaro");
INSERT INTO "country" VALUES ("ARG", "Argentina", "South America", "2780400.0", "45000000", "Alberto Fernández");
INSERT INTO "country" VALUES ("GBR", "United Kingdom", "Europe", "243610.0", "67000000", "Boris Johnson");
INSERT INTO "country" VALUES ("FRA", "France", "Europe", "551695.0", "65000000", "Emmanuel Macron");
INSERT INTO "country" VALUES ("DEU", "Germany", "Europe", "357022.0", "83000000", "Angela Merkel");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "9596961.0", "1440000000", "Xi Jinping");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "3287590.0", "1380000000", "Narendra Modi");
INSERT INTO "country" VALUES ("RUS", "Russia", "Europe", "17098246.0", "146000000", "Vladimir Putin");
INSERT INTO "country" VALUES ("AUS", "Australia", "Oceania", "7692024.0", "25000000", "Scott Morrison");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Africa", "1010408.0", "102000000", "Abdel Fattah el-Sisi");
INSERT INTO "country" VALUES ("ZAF", "South Africa", "Africa", "1221037.0", "59000000", "Cyril Ramaphosa");
INSERT INTO "country" VALUES ("JPN", "Japan", "Asia", "377975.0", "126000000", "Yoshihide Suga");
INSERT INTO "countrylanguage" VALUES ("USA", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "French");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese");
INSERT INTO "countrylanguage" VALUES ("ARG", "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 ("RUS", "Russian");
INSERT INTO "countrylanguage" VALUES ("AUS", "English");
INSERT INTO "countrylanguage" VALUES ("EGY", "Arabic");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Zulu");
INSERT INTO "countrylanguage" VALUES ("ZAF", "Xhosa");
INSERT INTO "countrylanguage" VALUES ("JPN", "Japanese");