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





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", "Philadelphia");
INSERT INTO "city" VALUES ("7", "San Antonio");
INSERT INTO "city" VALUES ("8", "San Diego");
INSERT INTO "city" VALUES ("9", "Dallas");
INSERT INTO "city" VALUES ("10", "San Jose");
INSERT INTO "country" VALUES ("USA", "United States", "North America", "9833520.0", "331000000");
INSERT INTO "country" VALUES ("CAN", "Canada", "North America", "9984670.0", "38000000");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "9596961.0", "1441000000");
INSERT INTO "country" VALUES ("RUS", "Russia", "Europe", "17098246.0", "146000000");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "8515767.0", "212000000");
INSERT INTO "country" VALUES ("AUS", "Australia", "Oceania", "7692024.0", "25000000");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "3287590.0", "1380000000");
INSERT INTO "country" VALUES ("ARG", "Argentina", "South America", "2780400.0", "45000000");
INSERT INTO "country" VALUES ("KAZ", "Kazakhstan", "Asia", "2724900.0", "18000000");
INSERT INTO "country" VALUES ("DZA", "Algeria", "Africa", "2381741.0", "44000000");
INSERT INTO "country" VALUES ("COD", "DR Congo", "Africa", "2344858.0", "89000000");
INSERT INTO "country" VALUES ("MEX", "Mexico", "North America", "1972550.0", "128000000");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "Asia", "1904569.0", "273000000");
INSERT INTO "country" VALUES ("SDN", "Sudan", "Africa", "1886068.0", "43000000");
INSERT INTO "country" VALUES ("LBY", "Libya", "Africa", "1759540.0", "6000000");