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

CREATE TABLE "countrylanguage" (
"CountryCode" CHAR(3),
"Language" CHAR(30),
"IsOfficial" TEXT,
PRIMARY KEY ("CountryCode", "Language"),
FOREIGN KEY ("CountryCode") REFERENCES "country"("Code")
);





INSERT INTO "city" VALUES ("1", "Oranjestad");
INSERT INTO "city" VALUES ("2", "San Nicolas");
INSERT INTO "city" VALUES ("3", "Noord");
INSERT INTO "city" VALUES ("4", "Santa Cruz");
INSERT INTO "city" VALUES ("5", "Paradera");
INSERT INTO "city" VALUES ("6", "Savaneta");
INSERT INTO "city" VALUES ("7", "Tanki Leendert");
INSERT INTO "city" VALUES ("8", "Palm Beach");
INSERT INTO "city" VALUES ("9", "Eagle Beach");
INSERT INTO "city" VALUES ("10", "Druif Beach");
INSERT INTO "country" VALUES ("ABW", "Aruba", "106766");
INSERT INTO "country" VALUES ("NLD", "Netherlands", "17400000");
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 ("COL", "Colombia", "50000000");
INSERT INTO "country" VALUES ("VEN", "Venezuela", "28000000");
INSERT INTO "country" VALUES ("BRA", "Brazil", "212000000");
INSERT INTO "country" VALUES ("ARG", "Argentina", "45000000");
INSERT INTO "country" VALUES ("GBR", "United Kingdom", "67000000");
INSERT INTO "countrylanguage" VALUES ("ABW", "Dutch", "T");
INSERT INTO "countrylanguage" VALUES ("ABW", "Papiamento", "T");
INSERT INTO "countrylanguage" VALUES ("ABW", "English", "F");
INSERT INTO "countrylanguage" VALUES ("ABW", "Spanish", "F");
INSERT INTO "countrylanguage" VALUES ("NLD", "Dutch", "T");
INSERT INTO "countrylanguage" VALUES ("USA", "English", "T");
INSERT INTO "countrylanguage" VALUES ("CAN", "English", "T");
INSERT INTO "countrylanguage" VALUES ("CAN", "French", "T");
INSERT INTO "countrylanguage" VALUES ("MEX", "Spanish", "T");
INSERT INTO "countrylanguage" VALUES ("COL", "Spanish", "T");
INSERT INTO "countrylanguage" VALUES ("VEN", "Spanish", "T");
INSERT INTO "countrylanguage" VALUES ("BRA", "Portuguese", "T");
INSERT INTO "countrylanguage" VALUES ("ARG", "Spanish", "T");
INSERT INTO "countrylanguage" VALUES ("GBR", "English", "T");
INSERT INTO "countrylanguage" VALUES ("GBR", "Welsh", "F");
INSERT INTO "countrylanguage" VALUES ("GBR", "Gaelic", "F");