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

CREATE TABLE "country" (
"Code" CHAR(3) UNIQUE,
"Name" CHAR(52),
"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", "8175133");
INSERT INTO "city" VALUES ("2", "Los Angeles", "3792621");
INSERT INTO "city" VALUES ("3", "Chicago", "2695598");
INSERT INTO "city" VALUES ("4", "Houston", "2099451");
INSERT INTO "city" VALUES ("5", "Philadelphia", "1526006");
INSERT INTO "city" VALUES ("6", "Phoenix", "1445632");
INSERT INTO "city" VALUES ("7", "San Antonio", "1327407");
INSERT INTO "city" VALUES ("8", "San Diego", "1307402");
INSERT INTO "city" VALUES ("9", "Dallas", "1197816");
INSERT INTO "city" VALUES ("10", "San Jose", "945942");
INSERT INTO "country" VALUES ("USA", "United States", "9833520.00", "331000000", "Joe Biden");
INSERT INTO "country" VALUES ("CAN", "Canada", "9984670.00", "38000000", "Justin Trudeau");
INSERT INTO "country" VALUES ("CHN", "China", "9596961.00", "1440000000", "Xi Jinping");
INSERT INTO "country" VALUES ("RUS", "Russia", "17098246.00", "146000000", "Vladimir Putin");
INSERT INTO "country" VALUES ("IND", "India", "3287590.00", "1380000000", "Ram Nath Kovind");
INSERT INTO "country" VALUES ("BRA", "Brazil", "8515767.00", "212000000", "Jair Bolsonaro");
INSERT INTO "country" VALUES ("AUS", "Australia", "7692024.00", "25000000", "Elizabeth II");
INSERT INTO "country" VALUES ("ARG", "Argentina", "2780400.00", "45000000", "Alberto Fernández");
INSERT INTO "country" VALUES ("KAZ", "Kazakhstan", "2724900.00", "18000000", "Kassym-Jomart Tokayev");
INSERT INTO "country" VALUES ("DZA", "Algeria", "2381741.00", "44000000", "Abdelmadjid Tebboune");
INSERT INTO "countrylanguage" VALUES ("USA", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "English");
INSERT INTO "countrylanguage" VALUES ("CAN", "French");
INSERT INTO "countrylanguage" VALUES ("CHN", "Mandarin");
INSERT INTO "countrylanguage" VALUES ("RUS", "Russian");
INSERT INTO "countrylanguage" VALUES ("IND", "Hindi");
INSERT INTO "countrylanguage" VALUES ("IND", "English");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese");
INSERT INTO "countrylanguage" VALUES ("AUS", "English");
INSERT INTO "countrylanguage" VALUES ("ARG", "Spanish");
INSERT INTO "countrylanguage" VALUES ("KAZ", "Kazakh");
INSERT INTO "countrylanguage" VALUES ("KAZ", "Russian");
INSERT INTO "countrylanguage" VALUES ("DZA", "Arabic");
INSERT INTO "countrylanguage" VALUES ("DZA", "Berber");