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_age" FLOAT,
"loser_ioc" 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-04-25", "ROU");
INSERT INTO "players" VALUES ("5", "Naomi", "1997-10-16", "JPN");
INSERT INTO "players" VALUES ("6", "Sloane", "1991-03-20", "USA");
INSERT INTO "players" VALUES ("7", "Ashleigh", "1996-04-24", "AUS");
INSERT INTO "players" VALUES ("8", "Petra", "1990-06-08", "CZE");
INSERT INTO "players" VALUES ("9", "Bianca", "1996-06-30", "ROU");
INSERT INTO "players" VALUES ("10", "Coco", "1998-09-22", "USA");
INSERT INTO "matches" VALUES ("39.5", "USA", "RUS");
INSERT INTO "matches" VALUES ("40.0", "ROU", "USA");
INSERT INTO "matches" VALUES ("22.0", "USA", "JPN");
INSERT INTO "matches" VALUES ("28.0", "AUS", "USA");
INSERT INTO "matches" VALUES ("30.0", "CZE", "USA");
INSERT INTO "matches" VALUES ("25.0", "USA", "ROU");
INSERT INTO "matches" VALUES ("19.0", "USA", "AUS");
INSERT INTO "matches" VALUES ("23.0", "JPN", "USA");
INSERT INTO "matches" VALUES ("21.0", "USA", "CZE");
INSERT INTO "matches" VALUES ("27.0", "ROU", "USA");