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", "Sloane", "1991-03-20", "USA");
INSERT INTO "players" VALUES ("4", "Madison", "1995-09-09", "USA");
INSERT INTO "players" VALUES ("5", "Coco", "1998-12-17", "USA");
INSERT INTO "players" VALUES ("6", "Naomi", "1997-10-16", "JPN");
INSERT INTO "players" VALUES ("7", "Simona", "1990-04-14", "ROU");
INSERT INTO "players" VALUES ("8", "Ashleigh", "1996-04-24", "AUS");
INSERT INTO "players" VALUES ("9", "Bianca", "1996-06-19", "ROU");
INSERT INTO "players" VALUES ("10", "Petra", "1990-06-08", "CZE");
INSERT INTO "players" VALUES ("11", "PlayerNullDate", "NULL", "USA");
INSERT INTO "players" VALUES ("12", "OldTimer", "1960-01-01", "USA");
INSERT INTO "players" VALUES ("13", "FutureStar", "2025-01-01", "USA");
INSERT INTO "players" VALUES ("14", "International", "1992-07-07", "FRA");
INSERT INTO "players" VALUES ("15", "AnotherUSA", "1985-11-11", "USA");
INSERT INTO "matches" VALUES ("29.5", "USA", "JPN");
INSERT INTO "matches" VALUES ("31.0", "ROU", "USA");
INSERT INTO "matches" VALUES ("22.0", "USA", "AUS");
INSERT INTO "matches" VALUES ("27.5", "CZE", "USA");
INSERT INTO "matches" VALUES ("19.0", "USA", "ROU");
INSERT INTO "matches" VALUES ("35.0", "FRA", "USA");
INSERT INTO "matches" VALUES ("NULL", "USA", "USA");
INSERT INTO "matches" VALUES ("40.0", "USA", "FRA");
INSERT INTO "matches" VALUES ("18.0", "AUS", "USA");
INSERT INTO "matches" VALUES ("25.0", "USA", "CZE");