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





INSERT INTO "city" VALUES ("1", "Springfield", "150000");
INSERT INTO "city" VALUES ("2", "Rivertown", "160000");
INSERT INTO "city" VALUES ("3", "Lakeside", "450000");
INSERT INTO "city" VALUES ("4", "Hillview", "900000");
INSERT INTO "city" VALUES ("5", "Mapleton", "900001");
INSERT INTO "city" VALUES ("6", "Greenville", "159999");
INSERT INTO "city" VALUES ("7", "Oakwood", "300000");
INSERT INTO "city" VALUES ("8", "Fairview", "850000");
INSERT INTO "city" VALUES ("9", "Brookfield", "1000000");
INSERT INTO "city" VALUES ("10", "Cedarville", "200000");
INSERT INTO "country" VALUES ("USA", "United States of America", "331000000");
INSERT INTO "country" VALUES ("CAN", "Canada", "38000000");
INSERT INTO "country" VALUES ("MEX", "Mexico", "128000000");
INSERT INTO "country" VALUES ("BRA", "Brazil", "212000000");
INSERT INTO "country" VALUES ("ARG", "Argentina", "45000000");