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

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





INSERT INTO "city" VALUES ("1", "The Valley", "15000");
INSERT INTO "city" VALUES ("2", "Saint John's", "22000");
INSERT INTO "city" VALUES ("3", "Road Town", "12000");
INSERT INTO "city" VALUES ("4", "George Town", "30000");
INSERT INTO "city" VALUES ("5", "Kingstown", "25000");
INSERT INTO "city" VALUES ("6", "Charlestown", "13000");
INSERT INTO "city" VALUES ("7", "Cockburn Town", "4500");
INSERT INTO "city" VALUES ("8", "Basseterre", "18000");
INSERT INTO "city" VALUES ("9", "Castries", "20000");
INSERT INTO "city" VALUES ("10", "Roseau", "16000");
INSERT INTO "country" VALUES ("AIA", "Anguilla", "North America");
INSERT INTO "country" VALUES ("ATG", "Antigua and Barbuda", "North America");
INSERT INTO "country" VALUES ("VGB", "British Virgin Islands", "North America");
INSERT INTO "country" VALUES ("CYM", "Cayman Islands", "North America");
INSERT INTO "country" VALUES ("GRD", "Grenada", "North America");
INSERT INTO "country" VALUES ("KNA", "Saint Kitts and Nevis", "North America");
INSERT INTO "country" VALUES ("LCA", "Saint Lucia", "North America");
INSERT INTO "country" VALUES ("TCA", "Turks and Caicos Islands", "North America");
INSERT INTO "country" VALUES ("DMA", "Dominica", "North America");
INSERT INTO "country" VALUES ("VCT", "Saint Vincent and the Grenadines", "North America");
INSERT INTO "countrylanguage" VALUES ("AIA", "English");
INSERT INTO "countrylanguage" VALUES ("ATG", "English");
INSERT INTO "countrylanguage" VALUES ("VGB", "English");
INSERT INTO "countrylanguage" VALUES ("CYM", "English");
INSERT INTO "countrylanguage" VALUES ("GRD", "English");
INSERT INTO "countrylanguage" VALUES ("KNA", "English");
INSERT INTO "countrylanguage" VALUES ("LCA", "English");
INSERT INTO "countrylanguage" VALUES ("TCA", "English");
INSERT INTO "countrylanguage" VALUES ("DMA", "English");
INSERT INTO "countrylanguage" VALUES ("VCT", "English");