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 "matches" (
"loser_ioc" TEXT,
"winner_ioc" TEXT
);

CREATE TABLE "players" (
"player_id" INT,
"country_code" TEXT,
PRIMARY KEY ("player_id")
);





INSERT INTO "matches" VALUES ("USA", "CAN");
INSERT INTO "matches" VALUES ("AUS", "USA");
INSERT INTO "matches" VALUES ("CAN", "GBR");
INSERT INTO "matches" VALUES ("FRA", "AUS");
INSERT INTO "matches" VALUES ("GBR", "FRA");
INSERT INTO "matches" VALUES ("USA", "GER");
INSERT INTO "matches" VALUES ("GER", "JPN");
INSERT INTO "matches" VALUES ("JPN", "CHN");
INSERT INTO "matches" VALUES ("CHN", "IND");
INSERT INTO "matches" VALUES ("IND", "BRA");
INSERT INTO "matches" VALUES ("BRA", "RSA");
INSERT INTO "matches" VALUES ("RSA", "MEX");
INSERT INTO "matches" VALUES ("MEX", "ARG");
INSERT INTO "matches" VALUES ("ARG", "ESP");
INSERT INTO "matches" VALUES ("ESP", "ITA");
INSERT INTO "players" VALUES ("1", "USA");
INSERT INTO "players" VALUES ("2", "CAN");
INSERT INTO "players" VALUES ("3", "AUS");
INSERT INTO "players" VALUES ("4", "GBR");
INSERT INTO "players" VALUES ("5", "FRA");
INSERT INTO "players" VALUES ("6", "GER");
INSERT INTO "players" VALUES ("7", "JPN");
INSERT INTO "players" VALUES ("8", "CHN");
INSERT INTO "players" VALUES ("9", "IND");
INSERT INTO "players" VALUES ("10", "BRA");
INSERT INTO "players" VALUES ("11", "RSA");
INSERT INTO "players" VALUES ("12", "MEX");
INSERT INTO "players" VALUES ("13", "ARG");
INSERT INTO "players" VALUES ("14", "ESP");
INSERT INTO "players" VALUES ("15", "ITA");
INSERT INTO "players" VALUES ("16", "USA");
INSERT INTO "players" VALUES ("17", "CAN");
INSERT INTO "players" VALUES ("18", "ZIM");
INSERT INTO "players" VALUES ("19", "KEN");
INSERT INTO "players" VALUES ("20", "USA");