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,
"loser_name" TEXT,
"winner_ioc" TEXT
);

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





INSERT INTO "players" VALUES ("1", "Serena", "1981-09-26", "USA");
INSERT INTO "players" VALUES ("2", "Venus", "1980-06-17", "USA");
INSERT INTO "players" VALUES ("3", "Sloane", "1991-03-20", "USA");
INSERT INTO "players" VALUES ("4", "Coco", "1998-09-17", "USA");
INSERT INTO "players" VALUES ("5", "Madison", "1995-09-22", "USA");
INSERT INTO "players" VALUES ("6", "Jennifer", "NULL", "USA");
INSERT INTO "players" VALUES ("7", "Jennifer", "1984-04-06", "USA");
INSERT INTO "players" VALUES ("8", "Simona", "1990-04-14", "ROU");
INSERT INTO "players" VALUES ("9", "Naomi", "1997-10-16", "JPN");
INSERT INTO "players" VALUES ("10", "Ashleigh", "1996-04-04", "AUS");
INSERT INTO "players" VALUES ("11", "Petra", "1986-06-08", "CZE");
INSERT INTO "players" VALUES ("12", "Angelique", "1984-04-18", "GER");
INSERT INTO "matches" VALUES ("USA", "Serena", "ROU");
INSERT INTO "matches" VALUES ("USA", "Venus", "JPN");
INSERT INTO "matches" VALUES ("ROU", "Simona", "USA");
INSERT INTO "matches" VALUES ("USA", "Jennifer", "CZE");
INSERT INTO "matches" VALUES ("GER", "Angelique", "USA");
INSERT INTO "matches" VALUES ("USA", "Jennifer", "AUS");