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", "Maria", "1987-06-19", "RUS");
INSERT INTO "players" VALUES ("4", "Simona", "1990-06-25", "ROU");
INSERT INTO "players" VALUES ("5", "Sloane", "1991-03-20", "USA");
INSERT INTO "players" VALUES ("6", "Naomi", "1997-10-16", "JPN");
INSERT INTO "players" VALUES ("7", "Ashleigh", "1996-04-24", "AUS");
INSERT INTO "players" VALUES ("8", "Coco", "1998-09-22", "USA");
INSERT INTO "players" VALUES ("9", "Petra", "1990-06-08", "CZE");
INSERT INTO "players" VALUES ("10", "Bianca", "1994-06-30", "ROU");
INSERT INTO "matches" VALUES ("USA", "Serena", "RUS");
INSERT INTO "matches" VALUES ("ROU", "Simona", "USA");
INSERT INTO "matches" VALUES ("USA", "Venus", "JPN");
INSERT INTO "matches" VALUES ("CZE", "Petra", "USA");
INSERT INTO "matches" VALUES ("USA", "Sloane", "AUS");
INSERT INTO "matches" VALUES ("USA", "Coco", "ROU");
INSERT INTO "matches" VALUES ("JPN", "Naomi", "USA");
INSERT INTO "matches" VALUES ("AUS", "Ashleigh", "USA");