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

CREATE TABLE "country" (
"Code" CHAR(3) UNIQUE,
"Name" CHAR(52),
"Continent" TEXT,
"SurfaceArea" FLOAT,
"Population" INT,
"LifeExpectancy" FLOAT,
PRIMARY KEY ("Code")
);





INSERT INTO "city" VALUES ("1", "5000000");
INSERT INTO "city" VALUES ("2", "10000000");
INSERT INTO "city" VALUES ("3", "2000000");
INSERT INTO "city" VALUES ("4", "3000000");
INSERT INTO "city" VALUES ("5", "1500000");
INSERT INTO "country" VALUES ("USA", "United States", "North America", "9833520.0", "331000000", "78.9");
INSERT INTO "country" VALUES ("CAN", "Canada", "North America", "9984670.0", "37590000", "82.3");
INSERT INTO "country" VALUES ("BRA", "Brazil", "South America", "8515767.0", "212600000", "75.7");
INSERT INTO "country" VALUES ("RUS", "Russia", "Europe", "17098242.0", "144500000", "72.6");
INSERT INTO "country" VALUES ("FRA", "France", "Europe", "551695.0", "67060000", "82.5");
INSERT INTO "country" VALUES ("DEU", "Germany", "Europe", "357022.0", "83190000", "81.0");
INSERT INTO "country" VALUES ("CHN", "China", "Asia", "9596961.0", "1439323776", "76.9");
INSERT INTO "country" VALUES ("AUS", "Australia", "Oceania", "7692024.0", "25690000", "83.4");
INSERT INTO "country" VALUES ("IND", "India", "Asia", "3287263.0", "1380004385", "69.7");
INSERT INTO "country" VALUES ("ARG", "Argentina", "South America", "2780400.0", "45195774", "76.7");
INSERT INTO "country" VALUES ("KAZ", "Kazakhstan", "Asia", "2724900.0", "18776707", "72.0");
INSERT INTO "country" VALUES ("EGY", "Egypt", "Africa", "1002450.0", "102334404", "71.7");
INSERT INTO "country" VALUES ("ZAF", "South Africa", "Africa", "1221037.0", "59308690", "64.1");
INSERT INTO "country" VALUES ("ESP", "Spain", "Europe", "505990.0", "46754778", "83.4");
INSERT INTO "country" VALUES ("SWE", "Sweden", "Europe", "450295.0", "10353442", "82.8");
INSERT INTO "country" VALUES ("MNG", "Mongolia", "Asia", "1564110.0", "3278290", "69.5");
INSERT INTO "country" VALUES ("IDN", "Indonesia", "Asia", "1904569.0", "273523615", "71.7");
INSERT INTO "country" VALUES ("SAU", "Saudi Arabia", "Asia", "2149690.0", "34813871", "75.0");
INSERT INTO "country" VALUES ("FJI", "Fiji", "Oceania", "18274.0", "896445", "67.3");