diff --git "a/training-data/combined_full_dataset.tsv" "b/training-data/combined_full_dataset.tsv" new file mode 100644--- /dev/null +++ "b/training-data/combined_full_dataset.tsv" @@ -0,0 +1,1015 @@ +natural_query sql_query result is_nba +How many matches were played at Wimbledon in 2022? SELECT COUNT(*) FROM matches WHERE tourney_name = 'Wimbledon' AND tourney_date BETWEEN 20220101 AND 20221231; 239 False +How many US Open matches has Novak Djokovic participated in total? SELECT COUNT(*) FROM matches WHERE tourney_name = 'US Open' AND (winner_name = 'Novak Djokovic' OR loser_name = 'Novak Djokovic'); 84 False +List all matches won by Cameron Norrie. SELECT tourney_name FROM matches WHERE winner_name = 'Cameron Norrie'; False +What is the highest number of personal fouls committed by the Portland Trail Blazers away? SELECT MAX(pf_away) as max_pf FROM game WHERE team_name_away = 'Portland Trail Blazers'; 41 True +What is the average points scored by the San Antonio Spurs away? SELECT AVG(pts_away) as avg_points FROM game WHERE team_name_away = 'San Antonio Spurs'; 102.35 True +What was the name and country of the winner of the 'Roland Garros' 2023 tournament? SELECT winner_name, winner_ioc FROM matches WHERE tourney_name = 'Roland Garros' AND round = 'F' AND tourney_date >= 20230000 AND tourney_date < 20240000; Novak Djokovic|SRB False +Who won the final of the 2022 Australian Open? SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' AND tourney_date BETWEEN 20220000 AND 20221231 AND round = 'F'; Rafael Nadal False +Who is the most recent US Open winner? SELECT winner_name FROM matches WHERE tourney_name = 'US Open' ORDER BY tourney_date DESC LIMIT 1; Novak Djokovic False +Show all matches where a left-handed player won. SELECT tourney_name, winner_name FROM matches WHERE winner_hand = 'L'; False +What was the average margin of victory for the Toronto Raptors in home games where they scored more than 100 points and allowed fewer than 90 points? SELECT AVG(pts_home - pts_away) AS avg_victory_margin FROM game WHERE team_name_home = 'Toronto Raptors' AND pts_home > 100 AND pts_away < 90; 23.72857143 True +Find the name of the player who won the shortest match. SELECT winner_name FROM matches WHERE minutes IS NOT NULL ORDER BY minutes ASC LIMIT 1; Tim Smyczek False +What is the most points the Orlando Magic have scored in a single home game? SELECT pts_home FROM game WHERE team_name_home = 'Orlando Magic' ORDER BY pts_home DESC LIMIT 1; 155 True +What is the aggregate height of the doubles team 'Bryan/Bryan' (Bob and Mike)? SELECT SUM(height) FROM players WHERE name IN ('Bob Bryan', 'Mike Bryan'); 383.0 False +How many games did the New York Knicks win at home in 1996? SELECT COUNT(*) as home_wins FROM game WHERE team_name_home = 'New York Knicks' AND wl_home = 'W' AND season_id = '21996'; 31 True +How many matches did Roger Federer win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Roger Federer'; 1305 False +How many games did the Orlando Magic win at home in the 2015 season? SELECT COUNT(*) AS home_wins FROM game WHERE season_id = '22015' AND team_abbreviation_home = 'ORL' AND pts_home > pts_away; 23 True +What is the average height of players from ESP? SELECT AVG(height) FROM players WHERE ioc = 'ESP'; 180.697183098592 False +List all matches with a score of '6-4 6-3'. SELECT * FROM matches WHERE score = '6-4 6-3'; False +What is the highest combined fg_pct in any game involving the Phoenix Suns? SELECT MAX(fg_pct_home + fg_pct_away) FROM game WHERE team_name_home = 'Phoenix Suns' OR team_name_away = 'Phoenix Suns'; 1.226 True +What is the highest combined fg_pct in any game involving the Miami Heat? SELECT MAX(fg_pct_home + fg_pct_away) FROM game WHERE team_name_home = 'Miami Heat' OR team_name_away = 'Miami Heat'; 1.1949999999999998 True +How many matches did Fernando Verdasco win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Fernando Verdasco'; False +What is the highest number of points scored by the Washington Wizards away when they had more than 10 second chance points? SELECT MAX(g.pts_away) as max_points FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_away = 'Washington Wizards' AND os.pts_2nd_chance_away > 10; 147 True +How many matches did Daniil Medvedev win on hard courts (implied by US Open/Australian Open)? SELECT COUNT(*) FROM matches WHERE winner_name = 'Daniil Medvedev' AND tourney_name IN ('US Open', 'Australian Open'); 35 False +How many wins does John McEnroe have against Jimmy Connors? SELECT COUNT(*) FROM matches WHERE winner_name = 'John McEnroe' AND loser_name = 'Jimmy Connors'; 21 False +What was the highest number of assists recorded by the Miami Heat in a single game during the 2015 season? SELECT MAX(ast) AS max_assists FROM ( SELECT ast_home AS ast FROM game WHERE team_abbreviation_home = 'MIA' AND season_id = '22015' UNION ALL SELECT ast_away AS ast FROM game WHERE team_abbreviation_away = 'MIA' AND season_id = '22015' ); 31.0 True +What is the average height of right handed players? SELECT AVG(height) AS avg_height FROM players WHERE hand = 'right'; 183.806518151815 False +What is the total points off turnovers by the Milwaukee Bucks at home? SELECT SUM(pts_off_to_home) as total_pts_off_to FROM other_stats WHERE team_abbreviation_home = 'MIL'; 13477 True +How many different tournaments are in the database? SELECT COUNT(DISTINCT tourney_name) FROM matches; 9082 False +How many games did the Atlanta Hawks win at home with a largest lead greater than 20 in 1996? SELECT COUNT(*) as wins FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Atlanta Hawks' AND g.wl_home = 'W' AND os.largest_lead_home > 20 AND g.season_id = '21996'; 7.0 True +What is the average number of reb in home games by the Philadelphia 76ers? SELECT AVG(reb_home) FROM game WHERE team_name_home = 'Philadelphia 76ers'; 43.56101601 True +What is the average match duration? SELECT AVG(minutes) FROM matches; False +How many field goals did the Houston Rockets make in total during the 1995 season? SELECT SUM(CASE WHEN team_name_home = 'Houston Rockets' THEN fgm_home ELSE 0 END) + SUM(CASE WHEN team_name_away = 'Houston Rockets' THEN fgm_away ELSE 0 END) AS total_field_goals FROM game WHERE season_id = '21995'; 3078.0 True +What is the minimum height of any player who defeated Roger Federer? SELECT MIN(winner_ht) FROM matches WHERE loser_name = 'Roger Federer'; 173.0 False +How many matches were won by a player older than their opponent? SELECT count(*) FROM matches WHERE winner_age > loser_age; 468479 False +What is the highest points scored by the San Antonio Spurs away when they had more than 5 lead changes? SELECT MAX(g.pts_away) as max_points FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_away = 'San Antonio Spurs' AND os.lead_changes > 5; 157 True +What is Taylor Fritz’s average match duration at the US Open? SELECT AVG(minutes) FROM matches WHERE (winner_name = 'Taylor Fritz' OR loser_name = 'Taylor Fritz') AND tourney_name = 'US Open'; 160.75 False +What was the highest number of assists the Philadelphia 76ers recorded in an away game during the 2001 season? SELECT MAX(ast_away) FROM game WHERE team_abbreviation_away = 'PHI' AND season_id = '22001'; 30.0 True +How many matches went to a 5th set in the 2019 Wimbledon tournament? SELECT COUNT(*) FROM matches WHERE tourney_name = 'Wimbledon' AND tourney_date LIKE '2019%' AND best_of = '5' AND score LIKE '%-% %-% %-% %-% %-%'; 21 False +How many matches did Pete Sampras win when he was under 25 years old? SELECT COUNT(*) FROM matches WHERE winner_name = 'Pete Sampras' AND winner_age < 25; 480 False +What is the total number of ranking points for all USA players combined on 2022-01-01? SELECT SUM(r.Points) FROM rankings r JOIN players p ON r.player = p.player_id WHERE p.ioc = 'USA' AND r.ranking_date > 20220101 and r.ranking_date < 20220108; 25480.0 False +How many assists did the Charlotte Hornets have away in 1996? SELECT SUM(ast_away) as total_assists FROM game WHERE team_name_away = 'Charlotte Hornets' AND season_id = '21996'; 880.0 True +Find the date of birth of the player who won the 'US Open' in 2012. SELECT T1.dob FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'US Open' AND T2.round = 'F' AND T2.tourney_date >= 20120000 AND T2.tourney_date < 20130000; 19870515.0 False +What is the average points scored by the Philadelphia 76ers away when they had more than 5 steals? SELECT AVG(pts_away) as avg_points FROM game WHERE team_name_away = 'Philadelphia 76ers' AND stl_away > 5; 100.42 True +What is the earliest ranking date recorded in the rankings table? SELECT MIN(ranking_date) FROM rankings; 19730827 False +What is the highest combined pts in any game involving the New York Knicks? SELECT MAX(pts_home + pts_away) FROM game WHERE team_name_home = 'New York Knicks' OR team_name_away = 'New York Knicks'; 302 True +Which game had the largest margin of victory in the 1998 season? SELECT game_id, team_abbreviation_home, team_abbreviation_away, ABS(pts_home - pts_away) AS margin FROM game WHERE season_id = '21998' ORDER BY margin DESC LIMIT 1; 0029800450|CHI|ORL|47.0 True +How many away games did the Miami Heat play in the 2014 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Miami Heat' AND season_id = '22015'; 41.0 True +Who won the most matches on the tour in 2011? SELECT winner_name FROM matches WHERE tourney_date BETWEEN 20110000 AND 20111231 GROUP BY winner_name ORDER BY COUNT(*) DESC LIMIT 1; Novak Djokovic False +Show the tallest left-handed player. SELECT name, height FROM players WHERE hand = 'L' ORDER BY height DESC LIMIT 1; False +List right-handed players from Switzerland. SELECT name FROM players WHERE hand = 'R' AND ioc = 'SUI'; False +What is the average number of ft_pct in away games by the Denver Nuggets? SELECT AVG(ft_pct_away) FROM game WHERE team_name_away = 'Denver Nuggets'; 0.7586835067 True +What were the total points scored by the home team in the game with the most total blocks? SELECT pts_home FROM game WHERE game_id = (SELECT game_id FROM game ORDER BY (blk_home + blk_away) DESC LIMIT 1); 92.0 True +How many away games did the Boston Celtics play in the 2009 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Boston Celtics' AND season_id = '22009'; 41.0 True +How many matches did 'Pete Sampras' win in 1990? SELECT COUNT(*) FROM matches WHERE winner_name = 'Pete Sampras' AND tourney_date BETWEEN 19900101 AND 19901231; False +What is the total number of losses Roger Federer has at the Roland Garros? SELECT COUNT(*) FROM matches WHERE loser_name = 'Roger Federer' AND tourney_name = 'Roland Garros'; 18 False +What is the average number of points for players from 'USA' vs 'CAN'? SELECT T1.ioc, avg(T2.points) FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player WHERE T1.ioc IN ('USA', 'CAN') GROUP BY T1.ioc; CAN|137.325744104014 USA|132.369032395567 False +What is Jannik Sinner’s date of birth? SELECT dob FROM players WHERE name = 'Jannik Sinner'; 20010816.0 False +What's the highest number of lead changes in any game involving the Indiana Pacers? SELECT MAX(os.lead_changes) FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_abbreviation_home = 'IND' OR g.team_abbreviation_away = 'IND'; 32 True +What is the average number of reb in home games by the Golden State Warriors? SELECT AVG(reb_home) FROM game WHERE team_name_home = 'Golden State Warriors'; 44.818285714285715 True +List matches where winner_age is less than 21. SELECT tourney_name, winner_name FROM matches WHERE winner_age < 21; False +Who has beaten Rafael Nadal the most at Wimbledon? SELECT winner_name, COUNT(*) AS wins FROM matches WHERE loser_name = 'Rafael Nadal' AND tourney_name = 'Wimbledon' GROUP BY winner_name ORDER BY wins DESC LIMIT 1; Roger Federer|3 False +How many matches ended with a tiebreak in the final set? SELECT COUNT(*) FROM matches WHERE score LIKE '%7-6%' AND (score LIKE '% 7-6' OR score LIKE '%7-6%'); False +Find the average number of assists per game for the Utah Jazz in the 2016 season. SELECT AVG(assists) FROM ( SELECT ast_home AS assists FROM game WHERE team_abbreviation_home = 'UTA' AND season_id = '22016' UNION ALL SELECT ast_away AS assists FROM game WHERE team_abbreviation_away = 'UTA' AND season_id = '22016' ) AS team_assists; 20.13414634 True +What is the largest lead the New Orleans Pelicans had away? SELECT MAX(largest_lead_away) as max_lead FROM other_stats WHERE team_abbreviation_away = 'NOP'; 42 True +What is the average free throw percentage for the Utah Jazz away? SELECT AVG(ft_pct_away) as avg_ft_pct FROM game WHERE team_name_away = 'Utah Jazz'; 0.7584554974 True +What is Andre Agassi’s average number of minutes per match at the US Open? SELECT AVG(minutes) FROM matches WHERE (winner_name = 'Andre Agassi' OR loser_name = 'Andre Agassi') AND tourney_name = 'US Open'; 130.436363636364 False +What is the average height of players grouped by their playing hand? SELECT hand, avg(height) FROM players GROUP BY hand; A|180.25 L|183.606060606061 R|183.806518151815 U|181.035714285714 False +What is the largest margin of victory the Boston Celtics had in an away game during the 2010 season? SELECT MAX(ABS(pts_away - pts_home)) FROM game WHERE team_abbreviation_away = 'BOS' AND season_id = '22010' AND wl_away = 'W'; 31.0 True +How many games did the Utah Jazz lose at home with more than 5 lead changes in 1996? SELECT COUNT(*) as losses FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Utah Jazz' AND g.wl_home = 'L' AND os.lead_changes > 5 AND g.season_id = '21996'; 2 True +How many right-handed players are shorter than 175 cm? SELECT COUNT(*) FROM players WHERE hand = 'R' AND height < 175; False +What is the most total rebounds the New York Knicks have had in a home game? SELECT MAX(reb_home) FROM game WHERE team_abbreviation_home = 'NYK'; 75.0 True +What is the largest lead the Brooklyn Nets had away? SELECT MAX(largest_lead_away) as max_lead FROM other_stats WHERE team_abbreviation_away = 'BKN'; 45 True +How many times did the Detroit Pistons score more than 120 points but still lose the game? SELECT COUNT(*) AS high_scoring_losses FROM game WHERE ((team_name_home = 'Detroit Pistons' AND pts_home > 120 AND wl_home = 'L') OR (team_name_away = 'Detroit Pistons' AND pts_away > 120 AND wl_away = 'L')); 128 True +Who is the shortest player to ever be ranked in the top 10? SELECT p.name, p.height FROM players p JOIN rankings r ON p.player_id = r.player WHERE r.rank <= 10 AND p.height IS NOT NULL ORDER BY p.height ASC LIMIT 1; Harold Solomon|168.0\ False +In the 2005 season, what was the average number of second chance points scored by the opponents when the Dallas Mavericks played at home and lost? SELECT AVG(o.pts_2nd_chance_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'DAL' AND g.wl_home = 'L' AND g.season_id = '22005'; 11.4 True +What is Novak Djokovic’s height? SELECT height FROM players WHERE name = 'Novak Djokovic'; 188.0 False +What is the most common winner score? SELECT score, COUNT() FROM matches GROUP BY score ORDER BY COUNT() DESC LIMIT 1; False +What is the highest number of turnovers the Golden State Warriors committed in a single away game during the 2016 season? SELECT MAX(tov_away) FROM game WHERE team_abbreviation_away = 'GSW' AND season_id = '22016'; 23 True +Which game had the lowest combined score when the Detroit Pistons played in the 2019 season? SELECT game_id, (pts_home + pts_away) AS total_points FROM game WHERE season_id = '22019' AND (team_abbreviation_home = 'DET' OR team_abbreviation_away = 'DET') ORDER BY total_points ASC LIMIT 1; 0021900793 | 163.0 True +Show all players who are 180 cm tall. SELECT name FROM players WHERE height = 180; False +"How many matches included a score containing ""6-0""?" SELECT COUNT(*) FROM matches WHERE score LIKE '%6-0%'; 94269 False +How many total blocks did the Cleveland Cavaliers record in games where they had more than 10 turnovers? SELECT SUM(blocks) AS total_blocks FROM ( SELECT blk_home AS blocks FROM game WHERE team_name_home = 'Cleveland Cavaliers' AND tov_home > 10 UNION ALL SELECT blk_away AS blocks FROM game WHERE team_name_away = 'Cleveland Cavaliers' AND tov_away > 10 ) AS turnover_games 14149 True +What was the highest field goal percentage the Dallas Mavericks achieved in a single away game in the 2008 season? SELECT MAX(fg_pct_away) FROM game WHERE team_abbreviation_away = 'DAL' AND season_id = '22008'; 0.603 True +List the top 10 players by number of match wins SELECT winner_name, COUNT(*) as wins FROM matches GROUP BY winner_name ORDER BY wins DESC LIMIT 10; |26399 Roger Federer|1305 Jimmy Connors|1279 Novak Djokovic|1179 Rafael Nadal|1167 Ivan Lendl|1075 Guillermo Vilas|953 Ilie Nastase|950 Andre Agassi|887 John McEnroe|886 False +How many players were born before 1990? SELECT COUNT(*) FROM players WHERE dob < 19900101; 29388 False +What are the player names and countries for players over 210 cm tall? SELECT name, ioc FROM players WHERE height > 210; False +What is the total free throws made by the Houston Rockets at home? SELECT SUM(ftm_home) as total_ftm FROM game WHERE team_name_home = 'Houston Rockets'; 42496 True +How many turnovers did the Phoenix Suns have at home in 1996? SELECT SUM(tov_home) as total_turnovers FROM game WHERE team_name_home = 'Phoenix Suns' AND season_id = '21996'; 540 True +How many away games did the Cleveland Cavaliers play in the 2019 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Cleveland Cavaliers' AND season_id = '22019'; 29 True +Show all players from USA. SELECT name FROM players WHERE ioc = 'USA'; False +What is the lowest points scored by the Utah Jazz away? SELECT MIN(pts_away) as min_points FROM game WHERE team_name_away = 'Utah Jazz'; 54 True +How many right-handed players are from Germany? SELECT COUNT(*) FROM players WHERE hand = 'R' AND ioc = 'GER'; False +What was the difference in three-point shooting volume (attempts) between the Los Angeles Lakers and their opponents in home games during their record-breaking 2016 season? SELECT AVG(fg3a_home - fg3a_away) AS three_point_attempt_diff FROM game WHERE team_name_home = 'Los Angeles Lakers' AND season_id = '22016'; -1.170731707 True +What was the lowest-scoring home game for the Washington Wizards? SELECT game_date, pts_home FROM game WHERE team_abbreviation_home = 'WAS' ORDER BY pts_home ASC LIMIT 1; 1946-11-30 00:00:00 | 49.0 True +What is the total second chance points by the Boston Celtics at home in games they won? SELECT SUM(os.pts_2nd_chance_home) as total_2nd_chance FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Boston Celtics' AND g.wl_home = 'W'; 7951 True +Show all players who are 175 cm tall. SELECT name FROM players WHERE height = 175; False +How many Milwaukee Bucks home games had over 15 offensive rebounds and 10+ steals? SELECT game_date, oreb_home, stl_home FROM game WHERE team_name_home = 'Milwaukee Bucks' AND oreb_home > 15 AND stl_home >= 10; ('1982-03-12 00:00:00', 16.0, 10.0) | ('1985-02-26 00:00:00', 17.0, 11.0) | ('1985-11-15 00:00:00', 22.0, 12.0) | ('1985-12-13 00:00:00', 17.0, 12.0) | ('1985-12-21 00:00:00', 21.0, 14.0) | ('1985-12-30 00:00:00', 17.0, 15.0) | ('1986-01-07 00:00:00', 26.0, 12.0) | ('1986-01-16 00:00:00', 20.0, 13.0) | ('1986-01-19 00:00:00', 19.0, 10.0) | ('1986-02-25 00:00:00', 18.0, 11.0) | ('1986-03-22 00:00:00', 17.0, 12.0) | ('1986-12-10 00:00:00', 20.0, 13.0) | ('1986-12-20 00:00:00', 23.0, 10.0) | ('1987-01-03 00:00:00', 16.0, 16.0) | ('1987-01-16 00:00:00', 27.0, 17.0) | ('1987-02-16 00:00:00', 16.0, 10.0) | ('1987-03-04 00:00:00', 29.0, 15.0) | ('1987-03-06 00:00:00', 29.0, 11.0) | ('1987-04-04 00:00:00', 16.0, 12.0) | ('1987-04-11 00:00:00', 16.0, 18.0) | ('1988-02-19 00:00:00', 16.0, 10.0) | ('1988-03-22 00:00:00', 16.0, 12.0) | ('1988-03-31 00:00:00', 18.0, 18.0) | ('1988-11-26 00:00:00', 16.0, 13.0) | ('1988-12-23 00:00:00', 20.0, 15.0) | ('1989-01-04 00:00:00', 20.0, 13.0) | ('1989-01-18 00:00:00', 17.0, 13.0) | ('1989-02-19 00:00:00', 17.0, 16.0) | ('1989-02-21 00:00:00', 19.0, 14.0) | ('1989-02-27 00:00:00', 19.0, 20.0) | ('1989-04-19 00:00:00', 17.0, 12.0) | ('1989-11-11 00:00:00', 16.0, 13.0) | ('1989-12-30 00:00:00', 16.0, 12.0) | ('1990-01-12 00:00:00', 17.0, 11.0) | ('1990-01-16 00:00:00', 22.0, 18.0) | ('1990-02-01 00:00:00', 21.0, 19.0) | ('1990-02-08 00:00:00', 18.0, 11.0) | ('1990-04-19 00:00:00', 17.0, 12.0) | ('1990-11-21 00:00:00', 20.0, 12.0) | ('1990-12-05 00:00:00', 16.0, 10.0) | ('1990-12-11 00:00:00', 18.0, 15.0) | ('1991-01-16 00:00:00', 16.0, 10.0) | ('1991-01-29 00:00:00', 22.0, 11.0) | ('1991-02-19 00:00:00', 16.0, 14.0) | ('1991-03-07 00:00:00', 18.0, 11.0) | ('1991-11-06 00:00:00', 18.0, 14.0) | ('1991-11-16 00:00:00', 20.0, 16.0) | ('1991-11-21 00:00:00', 25.0, 13.0) | ('1991-12-05 00:00:00', 18.0, 12.0) | ('1991-12-08 00:00:00', 18.0, 19.0) | ('1992-01-03 00:00:00', 16.0, 10.0) | ('1992-01-11 00:00:00', 21.0, 12.0) | ('1992-01-19 00:00:00', 22.0, 12.0) | ('1992-02-02 00:00:00', 16.0, 15.0) | ('1992-03-01 00:00:00', 18.0, 12.0) | ('1992-03-06 00:00:00', 21.0, 24.0) | ('1992-03-14 00:00:00', 17.0, 13.0) | ('1992-03-17 00:00:00', 20.0, 12.0) | ('1992-03-22 00:00:00', 16.0, 11.0) | ('1992-04-01 00:00:00', 20.0, 12.0) | ('1992-04-05 00:00:00', 16.0, 10.0) | ('1992-04-14 00:00:00', 17.0, 11.0) | ('1992-11-13 00:00:00', 17.0, 10.0) | ('1992-11-15 00:00:00', 16.0, 13.0) | ('1992-11-25 00:00:00', 20.0, 12.0) | ('1992-12-22 00:00:00', 21.0, 10.0) | ('1993-01-23 00:00:00', 20.0, 12.0) | ('1993-03-02 00:00:00', 17.0, 14.0) | ('1993-03-20 00:00:00', 19.0, 10.0) | ('1993-04-15 00:00:00', 17.0, 10.0) | ('1993-11-10 00:00:00', 17.0, 11.0) | ('1993-11-24 00:00:00', 16.0, 14.0) | ('1993-11-27 00:00:00', 16.0, 10.0) | ('1993-12-08 00:00:00', 21.0, 19.0) | ('1994-02-16 00:00:00', 19.0, 16.0) | ('1994-02-22 00:00:00', 17.0, 13.0) | ('1994-02-26 00:00:00', 16.0, 11.0) | ('1994-03-05 00:00:00', 16.0, 15.0) | ('1994-03-29 00:00:00', 16.0, 11.0) | ('1994-12-01 00:00:00', 16.0, 12.0) | ('1995-04-11 00:00:00', 21.0, 10.0) | ('1996-02-13 00:00:00', 19.0, 10.0) | ('1996-02-21 00:00:00', 19.0, 10.0) | ('1996-12-08 00:00:00', 17.0, 10.0) | ('1996-12-18 00:00:00', 17.0, 13.0) | ('1997-02-01 00:00:00', 16.0, 13.0) | ('1997-11-06 00:00:00', 19.0, 11.0) | ('1998-03-05 00:00:00', 17.0, 10.0) | ('1999-03-05 00:00:00', 19.0, 10.0) | ('2000-12-03 00:00:00', 16.0, 13.0) | ('2001-01-03 00:00:00', 18.0, 17.0) | ('2001-01-27 00:00:00', 16.0, 10.0) | ('2001-03-03 00:00:00', 20.0, 10.0) | ('2002-11-02 00:00:00', 16.0, 11.0) | ('2003-03-08 00:00:00', 20.0, 11.0) | ('2003-04-02 00:00:00', 16.0, 10.0) | ('2004-01-07 00:00:00', 16.0, 13.0) | ('2005-03-05 00:00:00', 17.0, 13.0) | ('2005-04-01 00:00:00', 17.0, 11.0) | ('2006-02-24 00:00:00', 16.0, 10.0) | ('2007-01-17 00:00:00', 16.0, 10.0) | ('2007-04-07 00:00:00', 20.0, 16.0) | ('2008-01-27 00:00:00', 16.0, 12.0) | ('2008-11-21 00:00:00', 17.0, 10.0) | ('2009-03-15 00:00:00', 21.0, 11.0) | ('2009-10-31 00:00:00', 16.0, 10.0) | ('2011-01-22 00:00:00', 16.0, 10.0) | ('2011-12-27 00:00:00', 16.0, 13.0) | ('2012-02-28 00:00:00', 20.0, 11.0) | ('2012-03-07 00:00:00', 16.0, 12.0) | ('2012-03-14 00:00:00', 16.0, 10.0) | ('2013-12-28 00:00:00', 16.0, 12.0) | ('2014-11-05 00:00:00', 18.0, 10.0) | ('2015-04-01 00:00:00', 20.0, 11.0) | ('2015-04-23 00:00:00', 17.0, 11.0) | ('2016-11-05 00:00:00', 17.0, 12.0) | ('2018-03-04 00:00:00', 16.0, 15.0) | ('2019-12-22 00:00:00', 16.0, 10.0) | ('2021-04-24 00:00:00', 16.0, 10.0) | ('2021-05-11 00:00:00', 17.0, 10.0) | ('2021-06-25 00:00:00', 16.0, 14.0) | ('2021-07-14 00:00:00', 17.0, 11.0) | ('2022-10-01 00:00:00', 17.0, 10.0) True +How many matches were between two left-handed players? SELECT COUNT(*) FROM matches WHERE winner_hand = 'L' AND loser_hand = 'L'; False +Which team had the largest lead in a single game in the 2001 season? SELECT g.team_name_home AS team, os.largest_lead_home AS lead FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '22001' ORDER BY os.largest_lead_home DESC LIMIT 1; Portland Trail Blazers|47 True +What is the average age of winners in the year 2021? SELECT AVG(winner_age) FROM matches WHERE tourney_date BETWEEN 20210101 AND 20211231; 24.6910463323964 False +How many matches were played in 2022? SELECT COUNT(*) FROM matches WHERE tourney_date BETWEEN 20220101 AND 20221231; False +What country has the most players? SELECT ioc, COUNT() FROM players GROUP BY ioc ORDER BY COUNT() DESC LIMIT 1; False +How many times have the Brooklyn Nets won a game by 30 or more points? SELECT COUNT(*) FROM game WHERE (team_abbreviation_home = 'BKN' AND (pts_home - pts_away) >= 30 AND wl_home = 'W') OR (team_abbreviation_away = 'BKN' AND (pts_away - pts_home) >= 30 AND wl_away = 'W'); 17 True +How many times has Roger Federer defeated Rafael Nadal? SELECT COUNT(*) FROM matches WHERE winner_name = 'Roger Federer' AND loser_name = 'Rafael Nadal'; 17 False +What was the average free throw percentage for the Washington Wizards in games where they attempted at least 25 free throws? SELECT AVG(ft_pct) AS avg_ft_percentage FROM ( SELECT ft_pct_home AS ft_pct FROM game WHERE team_name_home = 'Washington Wizards' AND fta_home >= 25 UNION ALL SELECT ft_pct_away AS ft_pct FROM game WHERE team_name_away = 'Washington Wizards' AND fta_away >= 25 ); 0.7497743491 True +Which season had the most games decided by exactly 1 point? SELECT season_id FROM game WHERE ABS(pts_home - pts_away) = 1 GROUP BY season_id ORDER BY COUNT(*) DESC LIMIT 1; 22004 True +How many home games did the Detroit Pistons play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Detroit Pistons' AND season_id = '22018'; 41 True +What is the most offensive rebounds the Miami Heat have had in a single game in the 2011 season? SELECT MAX(oreb) AS max_offensive_rebounds FROM ( SELECT oreb_home AS oreb FROM game WHERE team_abbreviation_home = 'MIA' AND season_id = '22011' UNION ALL SELECT oreb_away AS oreb FROM game WHERE team_abbreviation_away = 'MIA' AND season_id = '22011' ); 18 True +Who is the tallest player? SELECT name, height FROM players ORDER BY height DESC LIMIT 1; Reilly Opelka|211.0 False +How many victories does Rafael Nadal have over Alexander Zverev? SELECT COUNT(*) FROM matches WHERE winner_name = 'Rafael Nadal' AND loser_name = 'Alexander Zverev'; 7 False +How many steals did the Denver Nuggets make away in 1996? SELECT SUM(stl_away) as total_steals FROM game WHERE team_name_away = 'Denver Nuggets' AND season_id = '21996'; 253 True +Which matches were completed in under one hour? SELECT tourney_id FROM matches WHERE minutes < 60; False +How many home games did the Brooklyn Nets play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Brooklyn Nets' AND season_id = '22018'; 41 True +How many games did the Boston Celtics win at home with more than 15 fast break points in the 1996 season? SELECT COUNT(*) as wins FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Boston Celtics' AND g.wl_home = 'W' AND os.pts_fb_home > 15 AND g.season_id = '21996'; 4 True +What is the average height of Wimbledon losers? SELECT AVG(loser_ht) FROM matches WHERE tourney_name = 'Wimbledon'; 184.666780045351 False +How many times have the Memphis Grizzlies won a game by 30 or more points? SELECT COUNT(*) FROM game WHERE (team_abbreviation_home = 'MEM' AND (pts_home - pts_away) >= 30 AND wl_home = 'W') OR (team_abbreviation_away = 'MEM' AND (pts_away - pts_home) >= 30 AND wl_away = 'W'); 31 True +How many matches were played between left-handed and right-handed players? SELECT COUNT(*) FROM matches WHERE winner_hand <> loser_hand; False +Which away team had the lowest free throw percentage in a game with more than 20 attempts? SELECT team_abbreviation_away FROM game WHERE fta_away > 20 ORDER BY ft_pct_away ASC LIMIT 1; CHI True +Find the average height of all players from USA. SELECT AVG(height) FROM players WHERE ioc = 'USA'; False +Which teams were founded in the same state as the Brooklyn Nets? SELECT full_name FROM team WHERE state = (SELECT state FROM team WHERE full_name = 'Brooklyn Nets'); ('Brooklyn Nets',) | ('New York Knicks',) True +Which season had the most games where home teams scored zero fast break points? SELECT season_id FROM other_stats JOIN game USING(game_id) WHERE pts_fb_home = 0 GROUP BY season_id ORDER BY COUNT(*) DESC LIMIT 1; 22001 True +List all tournaments where Roger Federer played. SELECT DISTINCT tourney_name FROM matches WHERE winner_name = 'Roger Federer' OR loser_name = 'Roger Federer'; False +Which player won matches in every month of 2022? SELECT winner_name FROM (SELECT winner_name, COUNT(DISTINCT STRFTIME('%m',tourney_date)) as months FROM matches WHERE tourney_date BETWEEN 20220101 AND 20221231 GROUP BY winner_name) WHERE months=12; False +What is the highest number of personal fouls committed by the New Orleans Pelicans away? SELECT MAX(pf_away) as max_pf FROM game WHERE team_name_away = 'New Orleans Pelicans'; 35 True +List tournaments with more than 10 different nationalities among winners. SELECT tourney_name FROM (SELECT tourney_name, COUNT(DISTINCT winner_ioc) as countries FROM matches GROUP BY tourney_name) WHERE countries > 10; False +Show the youngest winner in any match SELECT winner_name, winner_age, tourney_name FROM matches WHERE winner_age IS NOT NULL ORDER BY winner_age ASC LIMIT 1; Nelio Mattos|14.0|Brazil F9 False +How many singles matches were in 2022? SELECT COUNT(*) FROM matches WHERE winner1_id IS NULL AND tourney_date BETWEEN 20220101 AND 20221231; False +List all players with their name and date of birth. SELECT name, dob FROM players; False +How many matches was the winner’s age was greater than 30 SELECT COUNT(*) FROM matches WHERE winner_age > 30; 72400 False +How many assists did the Charlotte Hornets have at home in 1996? SELECT SUM(ast_home) as total_assists FROM game WHERE team_name_home = 'Charlotte Hornets' AND season_id = '21996'; 1141 True +What is the average number of fast break points the New York Knicks scored per game in the 2018 season? SELECT AVG(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'NYK' AND game_id IN (SELECT game_id FROM game WHERE season_id = '22018'); 11.8648648648649 True +What is the average points scored by the Detroit Pistons at home? SELECT AVG(pts_home) as avg_points FROM game WHERE team_name_home = 'Detroit Pistons'; 104.4078585 True +Which country has the most match winners at the US Open? SELECT winner_ioc, COUNT(*) AS wins FROM matches WHERE tourney_name = 'US Open' GROUP BY winner_ioc ORDER BY wins DESC LIMIT 1; USA|8527 False +Find all players who are taller than 185cm and are ambidextrous. SELECT name FROM players WHERE height > 185 AND hand = 'A'; Luke Jensen False +What is the highest points scored by the Miami Heat at home? SELECT MAX(pts_home) as max_points FROM game WHERE team_name_home = 'Miami Heat'; 149 True +How many matches were in the year 2019? SELECT COUNT(*) FROM matches WHERE tourney_date BETWEEN 20190101 AND 20191231; False +What is the total second chance points by the Portland Trail Blazers at home? SELECT SUM(pts_2nd_chance_home) as total_2nd_chance FROM other_stats WHERE team_abbreviation_home = 'POR'; 12293 True +What state are the Miami Heat based in according to the team table? SELECT state FROM team WHERE full_name = 'Miami Heat'; Florida True +What is the highest-scoring game (combined points) the Utah Jazz played in the 1998 season, home or away? SELECT game_id, (pts_home + pts_away) AS total_points FROM game WHERE (team_abbreviation_home = 'UTA' OR team_abbreviation_away = 'UTA') AND season_id = '21998' ORDER BY total_points DESC LIMIT 1; 0029800077|232.0 True +Find the oldest player to win a match SELECT winner_name, winner_age, tourney_name FROM matches WHERE winner_age IS NOT NULL ORDER BY winner_age DESC LIMIT 1; Tom Brown|101.5|M15 Santiago False +What was the average rebounding margin for the Chicago Bulls in home games where they shot above 50% from the field? SELECT AVG(reb_home - reb_away) AS avg_rebound_margin FROM game WHERE team_name_home = 'Chicago Bulls' AND fg_pct_home > 0.5; 5.482546201 True +What is the highest field goal percentage the Minnesota Timberwolves have recorded at home? SELECT MAX(fg_pct_home) FROM game WHERE team_name_home = 'Minnesota Timberwolves'; 0.684 True +How many matches did Stan Wawrinka win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Stan Wawrinka'; False +What is the average number of points in the paint allowed by the Golden State Warriors when playing at home in the 2001 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'GSW' AND g.season_id = '22001' AND o.lead_changes > 15; 52 True +How many away games did the Los Angeles Lakers play in the 2019 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Los Angeles Lakers' AND season_id = '22019'; 36.0 True +How many players were born in 1995? SELECT COUNT(*) FROM players WHERE dob BETWEEN 19950101 AND 19951231; 1781 False +What is the highest-scoring game in Oklahoma City Thunder history (considering both home and away games)? SELECT game_id, pts_home, pts_away, game_date FROM game WHERE team_abbreviation_home = 'OKC' OR team_abbreviation_away = 'OKC' ORDER BY (pts_home + pts_away) DESC LIMIT 1; 0021800619 | 154.0 | 147.0 | 2019-01-10 00:00:00 True +How many away games did the Los Angeles Lakers play in the 1999 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Los Angeles Lakers' AND season_id = '21999'; 41 True +How many matches did Alexander Zverev win in 2022? SELECT COUNT(*) FROM matches WHERE winner_name = 'Alexander Zverev' AND tourney_date BETWEEN 20220101 AND 20221231; 29 False +What is the rank of the player 'Casper Ruud' on 2023-09-11? SELECT rank FROM rankings r JOIN players p ON r.player = p.player_id WHERE p.name = 'Casper Ruud' AND r.ranking_date = 20230911; 9 False +How many players are from Germany? SELECT COUNT(*) FROM players WHERE ioc = 'GER'; False +What is the tallest player height? SELECT MAX(height) FROM players; False +List countries with players in top 5 SELECT DISTINCT p.ioc FROM players p JOIN rankings r ON p.player_id = r.player WHERE r.rank <= 5 AND r.ranking_date = (SELECT MAX(ranking_date) FROM rankings); SRB ITA ESP GER RUS False +What is the maximum number of ranking points John McEnroe ever had? SELECT MAX(points) FROM rankings r JOIN players p ON r.player = p.player_id WHERE p.name = 'John McEnroe'; 1506.0 False +What is the oldest match date recorded? SELECT MIN(tourney_date) FROM matches WHERE tourney_date IS NOT NULL AND matches.tourney_date > 18000000; 18770709.0 False +How many away games did the New York Knicks play in the 2001 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'New York Knicks' AND season_id = '22001'; 41 True +How many games did the Portland Trail Blazers play at home in the 2010 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'POR' AND season_id = '22010'; 41 True +What is the total fast break points by the New York Knicks at home in games they lost? SELECT SUM(os.pts_fb_home) as total_fb_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'New York Knicks' AND g.wl_home = 'L'; 4270.0 True +What is the win percentage for the Washington Wizards in home games where they scored more than 100 points? SELECT COUNT(CASE WHEN wl_home = 'W' THEN 1 END) * 100.0 / COUNT(*) AS win_percentage FROM game WHERE team_name_home = 'Washington Wizards' AND pts_home > 100; 68.37748344 True +How many left-handed players won more than 10 matches? SELECT COUNT(DISTINCT winner_name) FROM matches WHERE winner_hand = 'L' GROUP BY winner_name HAVING COUNT(*) > 10; False +How many tournaments were held in 2022? SELECT COUNT(DISTINCT tourney_name) FROM matches WHERE tourney_date BETWEEN 20220101 AND 20221231; False +List the names of all players who have lost a match to 'Carlos Alcaraz' and are shorter than him. SELECT DISTINCT T1.name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.loser_name = 'Carlos Alcaraz' AND T1.height < T2.loser_ht; Federico Coria Marco Trungelliti Hugo Gaston Mikael Ymer Thiago Monteiro Jaume Munar Zsombor Piros Filip Horansky Lorenzo Giustino Inigo Cervantes Huegun Pedro Sousa Frederico Ferreira Silva David Goffin False +What is the average ranking of the opponent defeated by Carlos Alcaraz in 2023? SELECT AVG(r.rank) FROM matches m JOIN rankings r ON m.loser_id = r.player AND m.tourney_date = r.ranking_date WHERE m.winner_name = 'Carlos Alcaraz' AND m.tourney_date BETWEEN 20230000 AND 20231231; 62.1290322580645 False +What is the minimum age of any match winner at Wimbledon? SELECT MIN(winner_age) AS min_age FROM matches WHERE tourney_name = 'Wimbledon'; 14.13552361 False +How many times did a team score 100 or more points but still lose the game in the 2020 season? SELECT COUNT(*) AS high_scoring_losses FROM ( SELECT game_id FROM game WHERE season_id = '22020' AND ((pts_home >= 100 AND wl_home = 'L') OR (pts_away >= 100 AND wl_away = 'L')) ) AS games 769 True +How many games did the Milwaukee Bucks win away with more than 20 points in the paint in 1996? SELECT COUNT(*) as wins FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Milwaukee Bucks' AND g.wl_away = 'W' AND os.pts_paint_away > 20 AND g.season_id = '21996'; 11 True +List the distribution of player heights in 10cm ranges SELECT CAST(height/10 AS INTEGER)*10 as height_range, COUNT(*) as count FROM players WHERE height IS NOT NULL GROUP BY height_range ORDER BY height_range; 140|1 160|23 170|609 180|1624 190|536 200|25 210|1 False +Which team had the most points off turnovers in a single game during the 2020 season? SELECT CASE WHEN o.pts_off_to_home > o.pts_off_to_away THEN g.team_name_home ELSE g.team_name_away END AS team_name, CASE WHEN o.pts_off_to_home > o.pts_off_to_away THEN o.pts_off_to_home ELSE o.pts_off_to_away END AS points_off_turnovers, g.game_date FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.season_id = '22020' ORDER BY points_off_turnovers DESC LIMIT 1; Denver Nuggets | 39 | 2021-04-19 00:00:00 True +What is the average height of match winners? SELECT AVG(winner_ht) FROM matches WHERE winner_ht IS NOT NULL; 184.204154531561 False +List all players from France. SELECT name FROM players WHERE ioc = 'FRA'; False +Which opponent gave up the most points in the paint to the Orlando Magic in a home game during the 2019 season? SELECT g.team_name_away, o.pts_paint_home FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Orlando Magic' AND g.season_id = '22019' ORDER BY o.pts_paint_home DESC LIMIT 1; Atlanta Hawks | 58 True +Which home team had the most wins when playing against the Los Angeles Lakers? SELECT team_name_home FROM game WHERE team_name_away = 'Los Angeles Lakers' AND wl_home = 'W' GROUP BY team_name_home ORDER BY COUNT(*) DESC LIMIT 1; Phoenix Suns True +What is the lowest points scored by the Denver Nuggets at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Denver Nuggets'; 56 True +What is the average number of ft_pct in away games by the Milwaukee Bucks? SELECT AVG(ft_pct_away) FROM game WHERE team_name_away = 'Milwaukee Bucks'; 0.7545688967656173 True +What is the most common Best of format for matches in the database? SELECT best_of FROM matches GROUP BY best_of ORDER BY COUNT(*) DESC LIMIT 1; 3 False +How many steals did the Dallas Mavericks have away in 1996? SELECT SUM(stl_away) as total_steals FROM game WHERE team_name_away = 'Dallas Mavericks' AND season_id = '21996'; 332 True +In which season did the Memphis Grizzlies have the highest ratio of assists to turnovers in home games? SELECT season_id, SUM(ast_home) * 1.0 / NULLIF(SUM(tov_home), 0) AS assist_to_turnover_ratio FROM game WHERE team_name_home = 'Memphis Grizzlies' GROUP BY season_id ORDER BY assist_to_turnover_ratio DESC LIMIT 1; 42020 | 2.7222222222222223 True +What was the average number of rebounds grabbed by the Toronto Raptors in games where they scored at least 40 points from fast breaks? SELECT AVG(rebounds) AS avg_rebounds FROM ( SELECT g.game_id, g.reb_home AS rebounds FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Toronto Raptors' AND o.pts_fb_home >= 40 UNION ALL SELECT g.game_id, g.reb_away AS rebounds FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_away = 'Toronto Raptors' AND o.pts_fb_away >= 40 ); 43.9 True +Show players whose birth date is after 20000101. SELECT name, dob FROM players WHERE dob > 20000101; False +Who has defeated Novak Djokovic the most at the US Open? SELECT winner_name, COUNT(*) AS wins FROM matches WHERE loser_name = 'Novak Djokovic' AND tourney_name = 'US Open' GROUP BY winner_name ORDER BY wins DESC LIMIT 1; Roger Federer|3 False +Which player has the most match wins in the history of Wimbledon? SELECT winner_name, COUNT(*) AS wins FROM matches WHERE tourney_name = 'Wimbledon' GROUP BY winner_name ORDER BY wins DESC LIMIT 1; Roger Federer|106 False +What is the highest combined fg_pct in any game involving the Detroit Pistons? SELECT MAX(fg_pct_home + fg_pct_away) FROM game WHERE team_name_home = 'Detroit Pistons' OR team_name_away = 'Detroit Pistons'; 1.217 True +Which player defeated Nick Kyrgios the most times? SELECT winner_name, COUNT(*) AS wins FROM matches WHERE loser_name = 'Nick Kyrgios' GROUP BY winner_name ORDER BY wins DESC LIMIT 1; Roger Federer|7 False +What is the average points scored by the San Antonio Spurs away when they had more than 10 assists? SELECT AVG(pts_away) as avg_points FROM game WHERE team_name_away = 'San Antonio Spurs' AND ast_away > 10; 101.3749307 True +Show matches where both winner and loser share the same first letter of their name. SELECT tourney_name, winner_name, loser_name FROM matches WHERE SUBSTR(winner_name,1,1)=SUBSTR(loser_name,1,1); False +Find the average match duration for all tournaments in 2022 SELECT AVG(minutes) FROM matches WHERE tourney_date BETWEEN 20220101 AND 20221231; 104.704628353733 False +Who has the most wins at Wimbledon? SELECT winner_name, COUNT(*) AS win_count FROM matches WHERE tourney_name = 'Wimbledon' GROUP BY winner_name ORDER BY win_count DESC LIMIT 1; Roger Federer|106 False +List all matches where the loser scored a 'bagel' set (lost a set 0-6). SELECT * FROM matches WHERE score LIKE '%0-6%' OR score LIKE '%6-0%'; False +Find the name and date of birth of the youngest player to be ranked number 1. SELECT T1.name, T1.dob FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player WHERE T2.rank = 1 ORDER BY T1.dob DESC LIMIT 1; Carlos Alcaraz|20030505.0 False +Which player has defeated Pete Sampras the most? SELECT winner_name, COUNT(*) AS wins FROM matches WHERE loser_name = 'Pete Sampras' GROUP BY winner_name ORDER BY wins DESC LIMIT 1; Andre Agassi|14 False +How many away games did the Detroit Pistons play in the 1999 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Detroit Pistons' AND season_id = '21999'; 41 True +What is the average plus-minus for home teams that made more three-pointers than two-pointers? SELECT AVG(plus_minus_home) FROM game WHERE fg3m_home > (fgm_home - fg3m_home); 5.007518796992481 True +What is the average field goal percentage for the Sacramento Kings at home? SELECT AVG(fg_pct_home) as avg_fg_pct FROM game WHERE team_name_home = 'Sacramento Kings'; 0.465625 True +List all matches longer than 3 hours. SELECT tourney_name, minutes FROM matches WHERE minutes > 180; False +What is the highest number of times the Orlando Magic have tied a game in the 2008 season? SELECT MAX(other_stats.times_tied) FROM other_stats JOIN game ON other_stats.game_id = game.game_id WHERE game.team_abbreviation_home = 'ORL' AND game.season_id = '22008'; 15 True +Who is the youngest player in the database? SELECT name, dob FROM players ORDER BY dob DESC LIMIT 1; Vito Antonio Darderi|20080113.0 False +What is the highest combined pts in any game involving the Boston Celtics? SELECT MAX(pts_home + pts_away) FROM game WHERE team_name_home = 'Boston Celtics' OR team_name_away = 'Boston Celtics'; 312 True +Retrieve the names of tournaments played in 2021 SELECT DISTINCT tourney_name FROM matches WHERE tourney_date BETWEEN 20210101 AND 20211231; Delray Beach Antalya Doha Aus Open Qualies Cordoba Singapore Montpellier Buenos Aires Rotterdam Doha Santiago Marseille Acapulco Dubai Miami Masters Cagliari Marbella Monte Carlo Masters Barcelona Belgrade Estoril Munich Madrid Masters Rome Masters Geneva Lyon Belgrade 2 Parma Roland Garros Stuttgart Halle Queen's Club Eastbourne Mallorca Wimbledon Bastad Hamburg Newport Gstaad Los Cabos Umag Atlanta Kitzbuhel Washington Canada Masters Cincinnati Masters Winston-Salem Us Open Metz Nur-Sultan San Diego Sofia Indian Wells Masters Moscow Antwerp Vienna St. Petersburg Paris Masters Stockholm Istanbul 1 CH Antalya 1 CH Quimper 1 CH Antalya 2 CH Quimper 2 CH Biella 1 CH Cherbourg CH Potchefstroom 1 CH Biella 2 CH Concepcion CH Potchefstroom 2 CH Las Palmas 1 CH Nur-Sultan 1 CH Las Palmas 2 CH Nur-Sultan 2 CH St. Petersburg 1 CH Biella 3 CH St. Petersburg 2 CH Biella 4 CH Cleveland CH Santiago CH Lille CH Lugano CH Zadar CH Marbella CH Oeiras 1 CH Oeiras 2 CH Split 1 CH Belgrade CH Orlando 1 CH Split 2 CH Rome 1 CH Salinas 1 CH Tallahassee CH Ostrava CH Rome 2 CH Salinas 2 CH Biella 5 CH Prague 1 CH Heilbronn CH Zagreb CH Biella 6 CH Oeiras 3 CH Oeiras 4 CH Biella 7 CH Little Rock CH Almaty 1 CH Bratislava 1 CH Lyon CH Nottingham 1 CH Orlando 2 CH Aix-En-Provence CH Almaty 2 CH Forli CH Nottingham 2 CH Prostejov CH Milan CH Porto CH Braunschweig CH Perugia CH Salzburg CH Amersfoort CH Iasi CH Nur-Sultan 3 CH Todi CH Cary 1 CH Nur-Sultan 4 CH Pozoblanco CH Tampere CH Lexington CH Poznan CH Segovia CH Trieste CH Cordenons CH Liberec CH Meerbusch CH Prague 2 CH San Marino CH Luedenscheid CH Verona CH Barletta CH Prague 3 CH Warsaw CH Como CH St. Tropez CH Manacor CH Banja Luka CH Cassis CH Kyiv CH Seville CH Tulln CH Cary 2 CH Istanbul 2 CH Quito CH Rennes CH Szczecin CH Columbus CH Ambato CH Biel CH Braga CH Bucharest CH Lima 1 CH Lisboa CH Murcia CH Orleans CH Sibiu CH Barcelona CH Mouilleron-Le-Captif CH Napoli CH Santiago 1 CH Ercolano CH Santiago 2 CH Villena CH Bogota CH Buenos Aires CH Losinj CH Brest CH Ismaning CH Las Vegas CH Lima 2 CH Bergamo CH Charlottesville CH Eckental CH Guayaquil CH Tenerife CH Bratislava 2 CH Knoxville CH Montevideo CH Ortisei CH Roanne CH Campinas CH Champaign CH Helsinki CH Pau CH Bari CH Brasilia CH Manama CH Puerto Vallarta CH Antalya 3 CH Forli 2 CH Sao Paulo CH Antalya 4 CH Florianopolis CH Forli 3 CH Maia 1 CH Maia 2 CH Rio De Janeiro CH Tokyo Olympics Tour Finals Australian Open NextGen Finals Atp Cup Great Ocean Road Open Murray River Open Davis Cup Finals RR: ESP vs ECU Davis Cup Finals RR: ESP vs RTF Davis Cup Finals RR: RTF vs ECU Davis Cup Finals RR: CAN vs KAZ Davis Cup Finals RR: CAN vs SWE Davis Cup Finals RR: KAZ vs SWE Davis Cup Finals RR: FRA vs CZE Davis Cup Finals RR: FRA vs GBR Davis Cup Finals RR: GBR vs CZE Davis Cup Finals RR: AUS vs HUN Davis Cup Finals RR: CRO vs AUS Davis Cup Finals RR: CRO vs HUN Davis Cup Finals RR: ITA vs COL Davis Cup Finals RR: USA vs COL Davis Cup Finals RR: USA vs ITA Davis Cup Finals RR: GER vs AUT Davis Cup Finals RR: SRB vs AUT Davis Cup Finals RR: SRB vs GER Davis Cup Finals SF: CRO vs SRB Davis Cup Finals QF: GBR vs GER Davis Cup Finals QF: ITA vs CRO Davis Cup Finals F: RTF vs CRO Davis Cup Finals SF: RTF vs GER Davis Cup Finals QF: RTF vs SWE Davis Cup Finals QF: SRB vs KAZ Davis Cup WG1 PO: UKR vs NOR Davis Cup WG1 R1: ARG vs BLR Davis Cup WG1 R1: BEL vs BOL Davis Cup WG1 R1: BIH vs PER Davis Cup WG1 R1: BRA vs LBN Davis Cup WG1 R1: CHI vs SVK Davis Cup WG1 R1: IND vs FIN Davis Cup WG1 R1: ISR vs UKR Davis Cup WG1 R1: JPN vs PAK Davis Cup WG1 R1: KOR vs NZL Davis Cup WG1 R1: NED vs URU Davis Cup WG1 R1: POR vs ROU Davis Cup WG1 R1: UZB vs NOR Davis Cup WG2 PO: TUN vs ZIM Davis Cup WG2 R1: BAR vs INA Davis Cup WG2 R1: DOM vs TUN Davis Cup WG2 R1: LTU vs GRE Davis Cup WG2 R1: MEX vs BUL Davis Cup WG2 R1: POL vs ESA Davis Cup WG2 R1: RSA vs VEN Davis Cup WG2 R1: SLO vs PAR Davis Cup WG2 R1: SUI vs EST Davis Cup WG2 R1: THA vs DEN Davis Cup WG2 R1: TUR vs LAT Laver Cup M15 Cairo M15 Manacor M15 Monastir M15 Antalya M15 Villa Maria M15 Cordoba M25 Villa Allende M25 Rio Cuarto M15 Bad Waltersdorf M25 Telfs M25 Kottingbrunn M15 Warmbad-Villach M15 Huy M25 Koksijde M25 Eupen M15 Brcko M25 Kiseljak M15 Sarajevo M15 Prijedor M15 Doboj M15 Cochabamba M15 Recife M15 Brasilia M25 Rio do Sul M25 Aparecida de Goiania M15 Sofia M15 Sozopol M15 Ibague M25 Medellin M15 Cundinamarca M15 Porec M15 Rovinj M15 Opatija M15 Sibenik M25 Most M25 Prague M25 Jablonec nad Nisou M25 Prostejov M25 Ricany M25 Pardubice M15 Opava M15 Ostrava M15 Vejle M15 Frederiksberg M25 Santo Domingo M15 Santo Domingo M25 Portoviejo M25 Guayaquil M15 Sharm El Sheikh M25 Villena M15 La Nucia M25 La Nucia M25 Reus M15 Valldoreix M25 Bakio M15 Marbella M15 Majadahonda (Madrid) M15 Las Palmas de Gran Canaria M15 Platja D'Aro M25 Denia M25 Vic M25 Gandia M15 Xativa M15 Girona M25 Santander M25 Oviedo M15 Melilla M25 Madrid M15 Madrid M15 Torello M15 Nules M15 Benicarlo M15 Parnu M15 Helsinki M15 Kouvola M15+H Bressuire M15 Grenoble M15 Poitiers M25 Angers M25 Montauban M25 Grasse M25 Bourg-en-Bresse M25+H Ajaccio M25 Uriage M25 Bagneres-De-Bigorre M25+H Plaisir M15 Forbach M25 Nevers M25+H Rodez M25 Toulouse M25 Sarreguemines M25 Villers Les Nancy M25 Saint Dizier M15 Tbilisi M25 Telavi M15 Telavi M25 Meerbusch M15 Troisdorf M25 Frankfurt am Main M25 Wetzlar M25 Marburg M25 Trier M25 Ueberlingen M15 Allershausen M25 Hamburg M15 Heraklion M15 Guatemala M25 Budapest M15 Indore M15 Lucknow M15 Pune M15 New Delhi M15 Gurugram M15 Ramat Hasharon M15 Jerusalem M25 Meitar M25 Afula M15 L'Aquila M15 Gaiba M15 Bergamo M15 Genova M25 Casinalbo M15 Perugia M25+H Lesa M25 Bolzano M15 Pescara M15 Selva Gardena M15 Nur-Sultan M15 Shymkent M25 Nur-Sultan M15 EschAlzette M15 Cancun M15 Skopje M25 Skopje M15 Ulcinj M25 The Hague M25 Alkmaar M15 Oldenzaal M15 Lambare M25 Lima M25 Wroclaw M25 Grodzisk Mazowiecki M25 Poznan M15 Gdynia M15 Lodz M25 Vale do Lobo M25 Faro M25 Idanha-a-Nova M15 Castelo Branco M15 Almada M25 Sintra M25 Setubal M25 Loule M25 Quinta Do Lago M25 Portimao M15 Doha M15 Bucharest M15 Curtea de Arges M25 Pitesti M25+H Bacau M25 Johannesburg Markspark M25 Johannesburg Ellispark M25 Pretoria M15 St. Petersburg M15 Kazan M25 Velenje M25 Belgrade M15 Novi Sad M15 Zlatibor M15 Pirot M25 Trimbach M25 Biel M25 Klosters M25 Sierre M25 Muttenz M25 Caslano M15 Bratislava M15 Poprad M15 Zilina M25 Jonkoping M25 Falun M15 Novomoskovsk M15 Chornomorsk M15 Vyshkovo M25 Naples FL M25 Pensacola FL M15 Weston FL M25 Tulsa OK M15 Champaign IL M25 Wichita KS M15 Edwardsville IL M25 Champaign IL M25 Decatur IL M15 Fayetteville AR M15 Lubbock TX M15 Ithaca NY M15 Vero Beach FL M25 Calabasas CA M15 Tallahassee FL M15 Naples FL M25 Harlingen TX M25 Austin TX M25 Columbus OH M15 East Lansing MI False +Show the average points difference between consecutive ranks for the top 10 ranks SELECT rank, AVG(Points - next_rank_points) as avg_diff FROM ( SELECT rank, Points, LEAD(Points) OVER (PARTITION BY ranking_date ORDER BY rank) as next_rank_points FROM rankings ) subquery WHERE next_rank_points IS NOT NULL GROUP BY rank ORDER BY rank LIMIT 10; 1|1636.20721271394 2|1143.42665036675 3|708.344743276284 4|536.484107579462 5|383.051344743276 6|307.098410757946 7|286.148533007335 8|240.486552567237 9|159.284841075795 10|128.124694376528 False +What is the average number of points in the paint allowed by the Utah Jazz when playing at home in the 2007 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'UTA' AND g.season_id = '22007' AND o.lead_changes > 15; 44 True +Who has beaten Rafael Nadal the most at the US Open? SELECT winner_name, COUNT(*) AS wins FROM matches WHERE loser_name = 'Rafael Nadal' AND tourney_name = 'US Open' GROUP BY winner_name ORDER BY wins DESC LIMIT 1; Juan Martin del Potro|2 False +What is the average number of reb in home games by the Washington Wizards? SELECT AVG(reb_home) FROM game WHERE team_name_home = 'Washington Wizards'; 42.70577105 True +Which team had the most offensive rebounds in the 2009 season? SELECT team_name, SUM(oreb) AS total_offensive_rebounds FROM ( SELECT team_name_home AS team_name, oreb_home AS oreb FROM game WHERE season_id = '22009' UNION ALL SELECT team_name_away AS team_name, oreb_away AS oreb FROM game WHERE season_id = '22009' ) AS all_teams GROUP BY team_name ORDER BY total_offensive_rebounds DESC LIMIT 1 Memphis Grizzlies | 1070.0 True +In the 2006 season, how many games did the Miami Heat lose at home despite having fewer turnovers than their opponent? SELECT COUNT(*) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'MIA' AND g.wl_home = 'L' AND o.total_turnovers_home < o.total_turnovers_away AND g.season_id = '22006'; 6 True +What is the total second chance points by the Dallas Mavericks at home in games they lost? SELECT SUM(os.pts_2nd_chance_home) as total_2nd_chance FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Dallas Mavericks' AND g.wl_home = 'L'; 4478.0 True +Which teams were founded before 1979? SELECT full_name FROM team WHERE year_founded < 1979; Atlanta Hawks, Boston Celtics, Cleveland Cavaliers, Chicago Bulls, Denver Nuggets, Golden State Warriors, Houston Rockets, Los Angeles Clippers, Los Angeles Lakers, Milwaukee Bucks, Brooklyn Nets, New York Knicks, Indiana Pacers, Philadelphia 76ers, Phoenix Suns, Portland Trail Blazers, Sacramento Kings, San Antonio Spurs, Oklahoma City Thunder, Utah Jazz, Washington Wizards, Detroit Pistons True +What is the average number of assists by the Minnesota Timberwolves in home wins? SELECT AVG(ast_home) FROM game WHERE team_abbreviation_home = 'MIN' AND wl_home = 'W'; 25.92228739 True +Show the average winner age by year between 1990 and 1995 SELECT CAST(tourney_date/10000 AS INTEGER) as year, AVG(winner_age) as avg_age FROM matches WHERE winner_age IS NOT NULL AND tourney_date >= 19900000 AND tourney_date <= 19951231 GROUP BY year ORDER BY year; 1990|23.740600162206 1991|22.8081504917807 1992|22.8424242424242 1993|22.852455520351 1994|22.9313226277372 1995|22.9975207977522 False +What was the largest deficit overcome by the Los Angeles Lakers in any home victory? SELECT o.largest_lead_away AS max_deficit_overcome FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Los Angeles Lakers' AND g.wl_home = 'W' ORDER BY o.largest_lead_away DESC LIMIT 1; 56 True +Find all players from Monaco SELECT name, ioc FROM players WHERE ioc IN ('MON'); Emmanuel Heussner|MON Sebastien Graeff|MON Guillaume Couillard|MON Jean Rene Lisnard|MON Thomas Oger|MON Benjamin Balleret|MON Clement Morel|MON Hugo Nys|MON Bernard Balleret|MON Gilles Ganancia|MON Luis Borfiga|MON Christophe Boggetti|MON Thomas Drouet|MON Jerome Seguin|MON Albert Viviani|MON Jacques Vincileoni|MON Eric Carlier|MON Andres Vatrican|MON Francisco Truchi|MON Alain Manigley|MON Michel Borfiga|MON Christian Collange|MON Patrick Landau|MON Rene Ruzic|MON Adrien Viviani|MON Emile Petit|MON Georges Pasquier|MON Roland Borghini|MON Vladimir M Landau|MON Rene Galeppe|MON Gaston Medecin|MON Aleco Noghes|MON Gaston Medecin|MON Aleco Noghes|MON Rene Gallepe|MON Roland Borghini|MON Arnaud Dalbergue|MON Marc Stillitano|MON Nicolas Klingelschmitt|MON Yvan Medecin|MON Emmanuel Van Der Pol|MON Edmund Michel Gastaud|MON Maurice Landau|MON Lucas Catarina|MON Olivier Peyret|MON False +How many matches were won by players aged 25? SELECT COUNT(*) FROM matches WHERE winner_age = 25; False +Which Los Angeles Lakers home game had the most lead changes? SELECT g.game_date, os.lead_changes FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_home = 'Los Angeles Lakers' ORDER BY os.lead_changes DESC LIMIT 1; (2021-11-10 00:00:00, 33) True +How many matches has Rafael Nadal lost? SELECT COUNT(*) FROM matches WHERE loser_name = 'Rafael Nadal'; 255 False +What was the highest number of lead changes in a game where the Atlanta Hawks won and committed more fouls than their opponent? SELECT MAX(o.lead_changes) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE (g.team_abbreviation_home = 'ATL' AND g.wl_home = 'W' AND g.pf_home > g.pf_away) OR (g.team_abbreviation_away = 'ATL' AND g.wl_away = 'W' AND g.pf_away > g.pf_home) AND g.season_id = '22007'; 27 True +What was the largest lead the Golden State Warriors had in a game during the 2018 season? SELECT MAX(other_stats.largest_lead_home) FROM other_stats JOIN game ON other_stats.game_id = game.game_id WHERE game.team_name_home = 'Golden State Warriors' AND game.season_id = '22018'; 44 True +What is the average number of points in the paint allowed by the Orlando Magic when playing at home in the 2017 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'ORL' AND g.season_id = '22017' AND o.lead_changes > 15; 40 True +What was the largest lead held by the Toronto Raptors in any game where they eventually lost at home? SELECT o.largest_lead_home AS largest_lead, g.game_date FROM other_stats o JOIN game g ON o.game_id = g.game_id WHERE g.team_name_home = 'Toronto Raptors' AND g.wl_home = 'L' ORDER BY o.largest_lead_home DESC LIMIT 1; 40 | 2020-08-07 00:00:00 True +How many games have the Boston Celtics won, both home and away, in the 2006 season? SELECT COUNT(*) FROM game WHERE season_id = '22006' AND ((team_abbreviation_home = 'BOS' AND wl_home = 'W') OR (team_abbreviation_away = 'BOS' AND wl_away = 'W')); 24 True +How many away games did the Utah Jazz play in the 2022 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Utah Jazz' AND season_id = '22022'; 41 True +How many matches were won by right-handed players? SELECT COUNT(*) FROM matches WHERE winner_hand = 'R'; False +List all tournaments in 2023. SELECT DISTINCT tourney_name FROM matches WHERE tourney_date BETWEEN 20230101 AND 20231231; False +What was the highest number of assists recorded by the Los Angeles Lakers in a single game during the 2015 season? SELECT MAX(ast) AS max_assists FROM ( SELECT ast_home AS ast FROM game WHERE team_abbreviation_home = 'LAL' AND season_id = '22015' UNION ALL SELECT ast_away AS ast FROM game WHERE team_abbreviation_away = 'LAL' AND season_id = '22015' ); 26 True +What is the average height of losers at the US Open? SELECT AVG(loser_ht) AS avg_height FROM matches WHERE tourney_name = 'US Open'; 184.506371723972 False +What is the average number of minutes in matches that Rafael Nadal won at the US Open? SELECT AVG(minutes) FROM matches WHERE winner_name = 'Rafael Nadal' AND tourney_name = 'US Open'; 150.225806451613 False +Count how many matches ended with the score “6-0 6-0”. SELECT COUNT(*) FROM matches WHERE score = '6-0 6-0'; 4197 False +How many matches did Lleyton Hewitt lose? SELECT COUNT(*) FROM matches WHERE loser_name = 'Lleyton Hewitt'; False +List all tournaments in alphabetical order. SELECT DISTINCT tourney_name FROM matches ORDER BY tourney_name ASC; False +Find the name and height of the player who won the 'US Open' in 2016. SELECT T1.name, T1.height FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'US Open' AND T2.tourney_date >= 20160000 AND T2.tourney_date < 20170000 AND round='F'; Stan Wawrinka|183.0 False +List the top 3 tournaments by average match length SELECT tourney_name, AVG(minutes) AS avg_duration FROM matches GROUP BY tourney_name ORDER BY avg_duration DESC LIMIT 3; Davis Cup WG R1: ITA vs JPN|230.666666666667 Davis Cup WG R1: ARG vs ITA|208.0 Davis Cup WG F: ARG vs CRO|207.5 False +How many matches did Tommy Haas win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Tommy Haas'; False +Get the win-loss record for Carlos Alcaraz SELECT 'Wins' as result, COUNT(*) as count FROM matches WHERE winner_name = 'Carlos Alcaraz' UNION ALL SELECT 'Losses' as result, COUNT(*) as count FROM matches WHERE loser_name = 'Carlos Alcaraz'; Wins|247 Losses|67 False +Find the player with the highest total points over all ranking dates. SELECT player, SUM(Points) AS total_points FROM rankings GROUP BY player ORDER BY total_points DESC LIMIT 1; 104925|7563461.0 False +What was the lowest field goal percentage by an away team in a game? SELECT MIN(fg_pct_away) FROM game; 0.156 True +What was the highest-scoring combined total of any game the Milwaukee Bucks played in during the 2007 season? SELECT MAX(pts_home + pts_away) FROM game WHERE team_abbreviation_home = 'MIL' OR team_abbreviation_away = 'MIL' AND season_id = '22007'; 309 True +What were the total points in a game where both teams shot over 50% from the field? SELECT (pts_home + pts_away) FROM game WHERE fg_pct_home > 0.5 AND fg_pct_away > 0.5 ORDER BY (pts_home + pts_away) DESC LIMIT 1; 374.0 True +Show ranking history for player 'Stan Wawrinka'. SELECT ranking_date, rank, Points FROM rankings JOIN players ON player = player_id WHERE name = 'Stan Wawrinka'; False +How many right-handed players from Italy are in the database? SELECT COUNT(*) FROM players WHERE hand = 'R' AND ioc = 'ITA'; False +What is the average points scored by the Charlotte Hornets away? SELECT AVG(pts_away) as avg_points FROM game WHERE team_name_away = 'Charlotte Hornets'; 101.855359 True +What is the average difference in points in the paint between the Chicago Bulls and their opponents in home games? SELECT AVG(o.pts_paint_home - o.pts_paint_away) AS avg_paint_diff FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Chicago Bulls'; 0.5323741007 True +In 2003, what was the average number of fast break points scored by opponents of the Toronto Raptors when the home team had more than 10 steals? SELECT AVG(o.pts_fb_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'TOR' AND g.stl_home > 10 AND g.season_id = '22003'; 11.375 True +What was the lowest-scoring game the Toronto Raptors played in during the 2002 season? SELECT MIN(pts_home + pts_away) FROM game WHERE team_abbreviation_home = 'TOR' OR team_abbreviation_away = 'TOR' AND season_id = '22002'; 138 True +What is the total number of points scored by the Los Angeles Lakers in games where they made more than 20 three-pointers? SELECT SUM(points) AS total_points FROM ( SELECT pts_home AS points FROM game WHERE team_name_home = 'Los Angeles Lakers' AND fg3m_home > 20 UNION ALL SELECT pts_away AS points FROM game WHERE team_name_away = 'Los Angeles Lakers' AND fg3m_away > 20 ); 129 True +What is the average height of left-handed players? SELECT AVG(height) FROM players WHERE hand = 'L' AND height IS NOT NULL; 183.606060606061 False +List left-handed players from Australia. SELECT name FROM players WHERE hand = 'L' AND ioc = 'AUS'; False +Count the number of matches that lasted exactly 5 sets. SELECT COUNT(*) FROM matches WHERE best_of = '5' AND score LIKE '% % % %'; 30219 False +How many players have a height less than 180 cm? SELECT COUNT(*) FROM players WHERE height < 180; False +Count the number of tournaments Roger Federer has participated in since 2015. SELECT COUNT(DISTINCT tourney_id) FROM matches WHERE (winner_name = 'Roger Federer' OR loser_name = 'Roger Federer') AND tourney_date >= 20150101; 73 False +What is the earliest tournament date in the database? SELECT MIN(tourney_date) FROM matches; 163.0 False +What is Taylor Fritz’s total number of wins at the US Open? SELECT COUNT(*) FROM matches WHERE winner_name = 'Taylor Fritz' AND tourney_name = 'US Open'; 3 False +Show all right-handed players. SELECT name FROM players WHERE hand = 'R'; False +List all matches where Andre Agassi lost. SELECT tourney_name FROM matches WHERE loser_name = 'Andre Agassi'; False +Find the country with the tallest average player height. SELECT ioc, AVG(height) AS avg_height FROM players GROUP BY ioc ORDER BY avg_height DESC LIMIT 1; YUG|194.0 False +Find the most common score in matches SELECT score, COUNT(*) as frequency FROM matches WHERE score IS NOT NULL GROUP BY score ORDER BY frequency DESC LIMIT 1; 6-4 6-4|30324 False +Show all matches between 100 and 150 minutes. SELECT tourney_name FROM matches WHERE minutes BETWEEN 100 AND 150; False +Find the name of the player with the most losses in 2022. SELECT loser_name, COUNT(*) as losses FROM matches WHERE tourney_date BETWEEN 20220000 AND 20221231 GROUP BY loser_name ORDER BY losses DESC LIMIT 1; Matthew Dellavedova|39 False +What is the total free throws made by the Brooklyn Nets at home? SELECT SUM(ftm_home) as total_ftm FROM game WHERE team_name_home = 'Brooklyn Nets'; 8127 True +What is the height of player 'Roger Federer'? SELECT height FROM players WHERE name = 'Roger Federer'; False +How many matches did Igor Andreev win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Igor Andreev'; False +Which team had the lowest average turnovers per game at home during the 2019 season? SELECT team_name_home, AVG(tov_home) AS avg_turnovers FROM game WHERE season_id = '22019' GROUP BY team_name_home ORDER BY avg_turnovers ASC LIMIT 1; Dallas Mavericks | 12.8421052631579 True +What is the total points off turnovers by the Atlanta Hawks at home? SELECT SUM(pts_off_to_home) as total_pts_off_to FROM other_stats WHERE team_abbreviation_home = 'ATL'; 13503.0 True +What was the total number of points in the only game where both teams had fewer than 3 offensive rebounds? SELECT pts_home + pts_away FROM game WHERE oreb_home < 3 AND oreb_away < 3 ORDER BY game_date DESC LIMIT 1; 211.0 True +List all doubles match winner pairs where both winners were left-handed. SELECT DISTINCT winner1_name, winner2_name FROM matches WHERE winner1_hand = 'L' AND winner2_hand = 'L'; Julian Knowle|Jurgen Melzer Rafael Nadal|Fernando Verdasco Feliciano Lopez|Rafael Nadal Feliciano Lopez|Fernando Verdasco Mariano Hood|Julian Knowle Rick Leach|Brian Macphie Ellis Ferreira|Brian Macphie Stefan Koubek|Jurgen Melzer Chris Haggard|Brian Macphie Donald Johnson|Rick Leach Chris Haggard|Donald Johnson Ellis Ferreira|David Rikl Ellis Ferreira|Rick Leach Juan Ignacio Carrasco|Mariano Hood Rick Leach|David Macpherson Ellis Ferreira|Jeff Tarango Stefan Koubek|Jarkko Nieminen Karsten Braasch|Jeff Tarango Eric Butorac|Jamie Murray Rafael Nadal|Bartolome Salva Vidal Johan Brunstrom|Michael Ryderstedt Wayne Arthurs|Fernando Verdasco Karsten Braasch|Mariusz Fyrstenberg Karsten Braasch|Jurgen Melzer Juan Ignacio Carrasco|Jason Weir Smith Barry Cowan|Irakli Labadze Chris Haggard|Jan Siemerink Ellis Ferreira|Donald Johnson Mose Navarra|Vincenzo Santopadre Sander Groen|Jan Siemerink Wayne Arthurs|Scott Draper Barry Cowan|Mose Navarra Wayne Arthurs|Goran Ivanisevic Patrick Galbraith|Brian Macphie Chris Haggard|Daniel Orsanic Patrick Galbraith|David Macpherson Mariano Puerta|Marcelo Rios Michael Llodra|Diego Nargiso Michael Berrer|Mischa Zverev Chris Haggard|Jurgen Melzer Eric Butorac|James Cerretani Johan Brunstrom|James Cerretani Jurgen Melzer|Andreas Vinciguerra Fernando Verdasco|Mischa Zverev Carsten Ball|Chris Guccione Eric Butorac|Thomaz Bellucci James Cerretani|Dick Norman Jurgen Melzer|Fernando Verdasco Carsten Ball|Andrew Coelho Michael Berrer|Kenneth Carlsen False +Which opponent did the Sacramento Kings have the most lead changes against in a single home game? SELECT o.team_city_away AS opponent, o.lead_changes FROM other_stats o JOIN game g ON o.game_id = g.game_id WHERE g.team_name_home = 'Sacramento Kings' ORDER BY o.lead_changes DESC LIMIT 1; Los Angeles | 27 True +How many away games did the San Antonio Spurs play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'San Antonio Spurs' AND season_id = '22018'; 41.0 True +In which season did the Dallas Mavericks have the highest average pts at home? SELECT season_id, AVG(pts_home) as avg_stat FROM game WHERE team_name_home = 'Dallas Mavericks' GROUP BY season_id ORDER BY avg_stat DESC LIMIT 1; 41986 | 130.5 True +Which player has Carlos Alcaraz lost to the most? SELECT winner_name, COUNT(*) AS losses FROM matches WHERE loser_name = 'Carlos Alcaraz' GROUP BY winner_name ORDER BY losses DESC LIMIT 1; Alexander Zverev|5 False +What were the top 5 players and their points on 2024-01-01? SELECT p.name, r.points FROM players AS p JOIN rankings as r ON p.player_id = r.player WHERE ranking_date = 20240101 ORDER BY rank ASC LIMIT 5; Novak Djokovic|11245.0 Carlos Alcaraz|8855.0 Daniil Medvedev|7600.0 Jannik Sinner|6490.0 Andrey Rublev|4805.0 False +What is the total points in the paint by the Los Angeles Lakers at home? SELECT SUM(pts_paint_home) as total_pts_paint FROM other_stats WHERE team_abbreviation_home = 'LAL'; 45320 True +What is the most three-pointers the Dallas Mavericks have made in a single game? SELECT MAX(fg3m_home) AS max_three_pointers FROM game WHERE team_name_home = 'Dallas Mavericks'; 25.0 True +How many matches did Tommy Paul win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Tommy Paul'; False +What is the highest fast break points by the New York Knicks away? SELECT MAX(pts_fb_away) as max_fb_points FROM other_stats WHERE team_abbreviation_away = 'NYK'; 38.0 True +How many times did the Boston Celtics score more than 120 points but still lose the game? SELECT COUNT(*) AS high_scoring_losses FROM game WHERE ((team_name_home = 'Boston Celtics' AND pts_home > 120 AND wl_home = 'L') OR (team_name_away = 'Boston Celtics' AND pts_away > 120 AND wl_away = 'L')); 92 True +How many matches were won by left-handed players? SELECT COUNT(*) FROM matches WHERE winner_hand = 'L'; False +How many matches did Novak Djokovic win at Wimbledon? SELECT COUNT(*) FROM matches WHERE winner_name = 'Novak Djokovic' AND tourney_name = 'Wimbledon'; 95 False +What was the largest win margin for the Denver Nuggets in an away game during the 1985 season? SELECT MAX(pts_away - pts_home) FROM game WHERE team_abbreviation_away = 'DEN' AND season_id = '21985' AND wl_away = 'W'; 18.0 True +What are the details of the doubles winners for tournament 'Indian Wells'? SELECT winner1_name, winner2_name, winner1_ioc, winner2_ioc FROM matches WHERE tourney_name = 'Indian Wells'; False +How many matches did Nick Kyrgios win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Nick Kyrgios'; False +Find all matches that lasted longer than 1000 minutes. SELECT tourney_name, winner_name, loser_name, minutes FROM matches WHERE minutes > 1000; Sydney|Gilles Muller|Jeremy Chardy|1146.0 Piracicaba CH|Federico Agustin Gomez|Igor Gimenez|1274.0 Vicenza CH|Federico Gaio|Joris De Loore|1241.0 Guayaquil CH|Federico Coria|Tomas Lipovsek Puches|4756.0 Samarkand CH|Dmitry Popko|Aleksandre Metreveli|1237.0 Santiago CH|Juan Pablo Paz|Cristopher Kohl|1392.0 Luedenscheid CH|Camilo Ugo Carabelli|Timofey Skatov|1531.0 False +What is the highest number of rebounds recorded by the Portland Trail Blazers in a home game? SELECT MAX(reb_home) FROM game WHERE team_name_home = 'Portland Trail Blazers'; 70 True +List all rankings from 2023. SELECT * FROM rankings WHERE ranking_date BETWEEN 20230101 AND 20231231; False +What was the total number of three-pointers made by both teams in all games during the 2019 season? SELECT SUM(fg3m_home + fg3m_away) FROM game WHERE season_id = '22019'; 25862.0 True +How many matches were played in best of 5 format? SELECT COUNT(*) FROM matches WHERE best_of = '5'; 67502 False +What is the average number of points in the paint allowed by the New York Knicks when playing at home in the 2021 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'NYK' AND g.season_id = '22021' AND o.lead_changes > 15; 42.0 True +How many total three-pointers did the Charlotte Hornets make in away games during the 2016 season? SELECT SUM(fg3m_away) FROM game WHERE team_abbreviation_away = 'CHA' AND season_id = '22016'; 415 True +How many times was Nick Kyrgios ranked? SELECT COUNT(*) FROM rankings r JOIN players p ON r.player = p.player_id WHERE p.name = 'Nick Kyrgios'; 512 False +In how many away games did the Golden State Warriors score more fast-break points than their opponent? SELECT COUNT(*) FROM other_stats WHERE team_abbreviation_away = 'GSW' AND pts_fb_away > pts_fb_home; 497 True +List all players whose name starts with 'Z' and are from 'SUI'. SELECT name FROM players WHERE name LIKE 'Z%' AND ioc = 'SUI'; Zigmund Zorny False +What is the second-highest number of points the Brooklyn Nets have ever scored in a single home game? SELECT pts_home FROM game WHERE team_name_home = 'Brooklyn Nets' ORDER BY pts_home DESC LIMIT 1 OFFSET 1; 144 True +List all player names and their countries. SELECT name, ioc FROM players; False +Show how many wins Andy Murray has on each surface SELECT surface, COUNT(*) AS wins FROM matches WHERE winner_name = 'Andy Murray' GROUP BY surface; Carpet|10 Clay|143 Grass|135 Hard|553 False +What is the highest combined pts in any game involving the Miami Heat? SELECT MAX(pts_home + pts_away) FROM game WHERE team_name_home = 'Miami Heat' OR team_name_away = 'Miami Heat'; 290 True +Show matches where the height difference was more than 50cm SELECT tourney_name, winner_name, winner_ht, loser_name, loser_ht FROM matches WHERE ABS(winner_ht - loser_ht) > 50 AND winner_ht IS NOT NULL AND loser_ht IS NOT NULL; Egypt F14|Danilo Petrovic|203.0|Ilija Vucic|145.0 Nigeria F3|Ilija Vucic|145.0|Tucker Vorster|196.0 Nigeria F4|Tucker Vorster|196.0|Ilija Vucic|145.0 Serbia F5|Ilija Vucic|145.0|Nikola Ciric|201.0 Bosnia & Herzegovina F1|Danilo Petrovic|203.0|Ilija Vucic|145.0 Serbia F3|Danilo Petrovic|203.0|Ilija Vucic|145.0 False +Show match count by month for 2023 SELECT CAST((tourney_date % 10000) / 100 AS INTEGER) as month, COUNT(*) as matches FROM matches WHERE tourney_date >= 20230000 AND tourney_date < 20240000 GROUP BY month ORDER BY month; 1|2303 2|2179 3|2347 4|2581 5|2891 6|3061 7|3761 8|2904 9|2841 10|3323 11|2499 12|585 False +Which game had the largest margin of victory in the 2001 season? SELECT game_id, team_abbreviation_home, team_abbreviation_away, ABS(pts_home - pts_away) AS margin FROM game WHERE season_id = '22001' ORDER BY margin DESC LIMIT 1; 0020100073|MIN|CHI|53.0 True +Show all matches lost by Taylor Fritz. SELECT tourney_name FROM matches WHERE loser_name = 'Taylor Fritz'; False +Find the number of times the Phoenix Suns played a game on January 10, 2015. SELECT COUNT(*) FROM game WHERE (team_abbreviation_home = 'PHX' OR team_abbreviation_away = 'PHX') AND DATE(game_date) = '2015-01-10'; 0 True +How many total rebounds did the Charlotte Hornets get in games where they scored at least 110 points? SELECT SUM(rebounds) AS total_rebounds FROM ( SELECT reb_home AS rebounds FROM game WHERE team_name_home = 'Charlotte Hornets' AND pts_home >= 110 UNION ALL SELECT reb_away AS rebounds FROM game WHERE team_name_away = 'Charlotte Hornets' AND pts_away >= 110 ) AS combined_games 25073 True +How many games did the Chicago Bulls win during their 1992 championship season? SELECT COUNT(*) AS total_wins FROM ( SELECT game_id FROM game WHERE team_name_home = 'Chicago Bulls' AND wl_home = 'W' AND season_id = '21992' UNION ALL SELECT game_id FROM game WHERE team_name_away = 'Chicago Bulls' AND wl_away = 'W' AND season_id = '21992' ) AS winning_games 57 True +What is the average number of points for players who are right-handed vs left-handed? SELECT T1.hand, avg(T2.points) FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player WHERE T1.hand IS NOT NULL GROUP BY T1.hand; A|30.056 L|181.794778139621 R|146.788578611675 U|12.6757269988693 False +What was the highest number of points scored by the Washington Wizards in any home game during the 2019 season? SELECT MAX(pts_home) AS max_points FROM game WHERE team_name_home = 'Washington Wizards' AND season_id = '22019'; 158 True +List tournaments with more than 3000 matches SELECT tourney_name, COUNT(*) as match_count FROM matches GROUP BY tourney_name HAVING COUNT(*) > 3000; Australian Open|10990 Barcelona|3741 Indian Wells Masters|3579 M15 Antalya|4318 M15 Monastir|6477 Miami Masters|4200 Queen's Club|3154 Roland Garros|13772 US Open|17246 Washington|3258 Wimbledon|17457 False +What is the lowest points scored by the Washington Wizards away? SELECT MIN(pts_away) as min_points FROM game WHERE team_name_away = 'Washington Wizards'; 64 True +What is the second-highest number of points the Los Angeles Lakers have ever scored in a single home game? SELECT pts_home FROM game WHERE team_name_home = 'Los Angeles Lakers' ORDER BY pts_home DESC LIMIT 1 OFFSET 1; 156 True +List all losses by Novak Djokovic. SELECT loser_name FROM matches WHERE loser_name = 'Novak Djokovic'; False +Show the shortest right-handed player. SELECT name, height FROM players WHERE hand = 'R' ORDER BY height ASC LIMIT 1; False +How many home games did the New York Knicks play in the 2011 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'New York Knicks' AND season_id = '22011'; 33 True +Find the 5 players with the highest average match duration as winners. SELECT winner_name, AVG(minutes) as avg_time FROM matches GROUP BY winner_name ORDER BY avg_time DESC LIMIT 5; False +What is the highest points in the paint by the Sacramento Kings away in games they won? SELECT MAX(os.pts_paint_away) as max_pts_paint FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Sacramento Kings' AND g.wl_away = 'W'; 78.0 True +What was the lowest-scoring home game for the Milwaukee Bucks? SELECT game_date, pts_home FROM game WHERE team_abbreviation_home = 'MIL' ORDER BY pts_home ASC LIMIT 1; 1996-11-21 00:00:00 | 65.0 True +Show all matches won by Gael Monfils. SELECT tourney_name FROM matches WHERE winner_name = 'Gael Monfils'; False +Which team located in Cleveland has an abbreviation that includes the letter 'C'? SELECT full_name FROM team WHERE city = 'Cleveland' AND abbreviation LIKE '%C%'; Cleveland Cavaliers True +How many matches did Adrian Mannarino lose? SELECT COUNT(*) FROM matches WHERE loser_name = 'Adrian Mannarino'; False +What is the average match duration for matches between 2010 and 2020 at the US Open? SELECT AVG(minutes) FROM matches WHERE tourney_name = 'US Open' AND tourney_date BETWEEN 20100101 AND 20201231; 130.184703433923 False +Who was the youngest match winner in 'Roland Garros'? SELECT winner_name FROM matches WHERE tourney_name = 'Roland Garros' ORDER BY winner_age ASC LIMIT 1; False +What is John McEnroe’s total number of wins at the US Open? SELECT COUNT(*) FROM matches WHERE winner_name = 'John McEnroe' AND tourney_name = 'US Open'; 66 False +What is the total number of matches Rafael Nadal played at Wimbledon? SELECT COUNT(*) FROM matches WHERE (winner_name = 'Rafael Nadal' OR loser_name = 'Rafael Nadal') AND tourney_name = 'Wimbledon'; 71 False +What is the average points scored by the Orlando Magic at home when they had more than 10 second chance points in 1996? SELECT AVG(g.pts_home) as avg_points FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_home = 'Orlando Magic' AND os.pts_2nd_chance_home > 10 AND g.season_id = '21996'; 97.77777778 True +What is the largest lead the Detroit Pistons have ever had in a game? SELECT MAX(largest_lead_home) FROM other_stats WHERE team_abbreviation_home = 'DET'; 60 True +Show all Australian players. SELECT name FROM players WHERE ioc = 'AUS'; False +Which teams share the same city as the Dallas Mavericks? SELECT full_name FROM team WHERE city = (SELECT city FROM team WHERE full_name = 'Dallas Mavericks'); Dallas Mavericks True +Show the shortest 5 players. SELECT name, height FROM players ORDER BY height ASC LIMIT 5; False +List tournaments and winners for matches longer than 200 minutes. SELECT tourney_name, winner_name FROM matches WHERE minutes > 200; False +What is the highest points scored by the Brooklyn Nets away when they had more than 5 lead changes? SELECT MAX(g.pts_away) as max_points FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_away = 'Brooklyn Nets' AND os.lead_changes > 5; 148 True +What was the average margin of victory for the Minnesota Timberwolves in home wins during the 2021 season? SELECT AVG(plus_minus_home) AS avg_victory_margin FROM game WHERE team_name_home = 'Minnesota Timberwolves' AND wl_home = 'W' AND season_id = '22021'; 15.84615385 True +How many lead changes were there in the closest away game the Phoenix Suns played in the 2005 season? SELECT lead_changes FROM other_stats WHERE game_id IN ( SELECT game_id FROM game WHERE season_id = '22005' AND team_abbreviation_away = 'PHX' ORDER BY ABS(pts_home - pts_away) ASC LIMIT 1 ); 32 True +How many matches did Pete Sampras win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Pete Sampras'; False +Find the average age of all doubles winners. SELECT avg(T1.age) FROM (SELECT winner1_age AS age FROM matches WHERE winner1_id IS NOT NULL UNION ALL SELECT winner2_age AS age FROM matches WHERE winner2_id IS NOT NULL) AS T1; 345.696638675076 False +How many matches did Roger Federer win at Wimbledon after 2010? SELECT COUNT(*) FROM matches WHERE winner_name = 'Roger Federer' AND tourney_name = 'Wimbledon' AND tourney_date >= 20100101; 54 False +How many games did the Boston Celtics win at home in the 2018 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'BOS' AND season_id = '22018' AND wl_home = 'W'; 28 True +How many games did the Miami Heat win away in 1996? SELECT COUNT(*) as away_wins FROM game WHERE team_name_away = 'Miami Heat' AND wl_away = 'W' AND season_id = '21996'; 32.0 True +How many times have the Los Angeles Clippers won a game by 30 or more points? SELECT COUNT(*) FROM game WHERE (team_abbreviation_home = 'LAC' AND (pts_home - pts_away) >= 30 AND wl_home = 'W') OR (team_abbreviation_away = 'LAC' AND (pts_away - pts_home) >= 30 AND wl_away = 'W'); 48 True +What was the average free throw percentage for the Detroit Pistons in games where they attempted at least 25 free throws? SELECT AVG(ft_pct) AS avg_ft_percentage FROM ( SELECT ft_pct_home AS ft_pct FROM game WHERE team_name_home = 'Detroit Pistons' AND fta_home >= 25 UNION ALL SELECT ft_pct_away AS ft_pct FROM game WHERE team_name_away = 'Detroit Pistons' AND fta_away >= 25 ); 0.7426415293 True +List the first names of players born after the year 2008. SELECT name_first FROM players WHERE dob > 20080101; Vito Antonio False +What is the average, min, and max number of points for players? SELECT avg(points), min(points), max(points) FROM rankings; 117.12910941862|1.0|16950.0 False +How many finals were played between Nadal and Djokovic? SELECT COUNT(*) FROM matches WHERE ((winner_name = 'Rafael Nadal' AND loser_name = 'Novak Djokovic') OR (winner_name = 'Novak Djokovic' AND loser_name = 'Rafael Nadal')) AND round = 'F'; 29 False +How many games did the Boston Celtics play that went to overtime in the 2016 season? SELECT COUNT(*) AS overtime_games FROM game WHERE (team_name_home = 'Boston Celtics' OR team_name_away = 'Boston Celtics') AND min > 240 AND season_id = '22016'; 3 True +What is the total second chance points by the Memphis Grizzlies away in games they lost? SELECT SUM(os.pts_2nd_chance_away) as total_2nd_chance FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Memphis Grizzlies' AND g.wl_away = 'L'; 6366 True +What was the average free throw percentage for the Boston Celtics in games where they scored more than 100 points at home during the 2018 season? SELECT AVG(ft_pct_home) AS avg_ft_percentage FROM game WHERE team_name_home = 'Boston Celtics' AND pts_home > 100 AND season_id = '22018'; 0.8231351351 True +What is the average number of pts in home games by the Charlotte Hornets? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'Charlotte Hornets'; 103.8556375 True +How many matches did Andre Agassi lose in the US Open? SELECT COUNT(*) FROM matches WHERE tourney_name = 'US Open' AND loser_name = 'Andre Agassi'; 19 False +How many players born in the 1990s are in the database? SELECT count(*) FROM players WHERE dob >= 19900101 AND dob <= 19991231; 14658 False +In games where the Miami Heat scored more than 110 points at home, what was their average rebounding advantage over opponents? SELECT AVG(reb_home - reb_away) AS avg_rebound_advantage FROM game WHERE team_name_home = 'Miami Heat' AND pts_home > 110; 4.68079096 True +What is Roger Federer’s average age when winning matches at Wimbledon? SELECT AVG(winner_age) FROM matches WHERE winner_name = 'Roger Federer' AND tourney_name = 'Wimbledon'; 29.3160377358491 False +List all matches where Richard Gasquet lost. SELECT tourney_name FROM matches WHERE loser_name = 'Richard Gasquet'; False +What is the highest match duration in any match involving Nick Kyrgios? SELECT MAX(minutes) FROM matches WHERE (winner_name = 'Nick Kyrgios' OR loser_name = 'Nick Kyrgios'); 266.0 False +Which players made their debut in 2005? SELECT name FROM players WHERE dob > 19870101 AND player_id IN (SELECT winner_id FROM matches WHERE tourney_date BETWEEN 20050101 AND 20051231 UNION SELECT loser_id FROM matches WHERE tourney_date BETWEEN 20050101 AND 20051231); False +What is the lowest number of points scored by the Milwaukee Bucks at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Milwaukee Bucks'; 65 True +What are the names and points of all players from 'ITA' ranked in the top 10? WITH RankedData AS ( SELECT T1.name, T2.rank, T2.points, T2.ranking_date, -- 1. Partition the data by player ROW_NUMBER() OVER( PARTITION BY T1.player_id -- 2. Order their ranks from best (1) to worst (50) ORDER BY T2.rank ASC ) AS rn FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player WHERE T1.ioc = 'ITA' AND T2.rank <= 10 ) -- 3. Select only the #1 row (the best rank) for each player SELECT name, rank AS highest_rank, points, ranking_date AS date_of_rank FROM RankedData WHERE rn = 1; Adriano Panatta|6||19760614 Corrado Barazzutti|7||19780821 Fabio Fognini|9|2785.0|20190715 Matteo Berrettini|6|5278.0|20220131 Jannik Sinner|2|8710.0|20240401 False +What is the most recent ranking for player 126207? SELECT rank, points FROM rankings WHERE player = 126207 ORDER BY ranking_date DESC LIMIT 1; 26|1630.0 False +Which season had the most total blocks recorded? SELECT season_id FROM game GROUP BY season_id ORDER BY SUM(blk_home + blk_away) DESC LIMIT 1; 22000 True +What is the highest combined tov in any game involving the Golden State Warriors? SELECT MAX(tov_home + tov_away) FROM game WHERE team_name_home = 'Golden State Warriors' OR team_name_away = 'Golden State Warriors'; 60.0 True +What is the average age of all winners? SELECT AVG(winner_age) FROM matches; False +What is the most fast break points the Portland Trail Blazers have scored in a single game? SELECT MAX(pts_fb_home) AS max_fast_break_points FROM other_stats WHERE team_abbreviation_home = 'POR'; 34 True +Who has the highest win count in matches lasting over 200 minutes? SELECT winner_name, COUNT(*) as wins FROM matches WHERE minutes > 200 GROUP BY winner_name ORDER BY wins DESC LIMIT 1; Novak Djokovic|63 False +Find tournaments never won by players under 25. SELECT DISTINCT tourney_name FROM matches WHERE tourney_name NOT IN (SELECT tourney_name FROM matches WHERE winner_age < 25); False +Who was the opponent in the match where Novak Djokovic won in the shortest amount of time? SELECT loser_name FROM matches WHERE winner_name = 'Novak Djokovic' AND minutes IS NOT NULL ORDER BY minutes ASC LIMIT 1; Gael Monfils False +Find the game where the Brooklyn Nets had the largest lead at home in the 2013 season. SELECT game_id, largest_lead_home FROM other_stats WHERE team_abbreviation_home = 'BKN' AND game_id IN (SELECT game_id FROM game WHERE season_id = '22013') ORDER BY largest_lead_home DESC LIMIT 1; 0021300866|38 True +How many ranking records are there? SELECT COUNT(*) FROM rankings; 3235639 False +How many matches were played where both the winner and loser were from the same country? SELECT count(*) FROM matches WHERE winner_ioc = loser_ioc; 185838 False +Find the player with the most consistent ranking (lowest variance) SELECT p.name, AVG(r.rank) as avg_rank, COUNT(*) as appearances FROM rankings r JOIN players p ON r.player = p.player_id GROUP BY r.player, p.name HAVING COUNT(*) > 10 ORDER BY AVG(r.rank) ASC LIMIT 1; Stefan Edberg|16.3657817109145|678 False +What is the total points scored by the Cleveland Cavaliers at home? SELECT SUM(pts_home) as total_points FROM game WHERE team_name_home = 'Cleveland Cavaliers'; 220683.0 True +What's the total number of blocks the Memphis Grizzlies recorded at home in the 2019 season compared to the 2020 season? SELECT (SELECT SUM(blk_home) FROM game WHERE team_name_home = 'Memphis Grizzlies' AND season_id = '22019') AS blocks_2019, (SELECT SUM(blk_home) FROM game WHERE team_name_home = 'Memphis Grizzlies' AND season_id = '22020') AS blocks_2020, (SELECT SUM(blk_home) FROM game WHERE team_name_home = 'Memphis Grizzlies' AND season_id = '22020') - (SELECT SUM(blk_home) FROM game WHERE team_name_home = 'Memphis Grizzlies' AND season_id = '22019') AS blocks_difference FROM game LIMIT 1; 214.0 | 189.0 | -25.0 True +What is Taylor Fritz’s height and nationality? SELECT height, ioc FROM players WHERE name = 'Taylor Fritz'; 193.0|USA False +List all matches lost by players under 170 cm. SELECT tourney_name FROM matches WHERE loser_ht < 170; False +How many games did the San Antonio Spurs win at home in 1996? SELECT COUNT(*) as home_wins FROM game WHERE team_name_home = 'San Antonio Spurs' AND wl_home = 'W' AND season_id = '21996'; 12 True +What is the oldest player in the database? SELECT name FROM players ORDER BY dob ASC LIMIT 1; False +How many Golden State Warriors home games were there where they scored more paint points than their opponents? SELECT COUNT(*) FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_abbreviation_home = 'GSW' AND os.pts_paint_home > os.pts_paint_away; 484 True +List all right-handed players sorted by height. SELECT name, height FROM players WHERE hand = 'R' ORDER BY height ASC; False +Which team had the most total rebounds at home in a single game in the 1999 season? SELECT team_name_home, MAX(reb_home) FROM game WHERE season_id = '21999' GROUP BY team_name_home ORDER BY MAX(reb_home) DESC LIMIT 1; Miami Heat|66.0 True +Which Milwaukee Bucks home game had the most lead changes? SELECT g.game_date, os.lead_changes FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_home = 'Milwaukee Bucks' ORDER BY os.lead_changes DESC LIMIT 1; 2013-12-18 00:00:00 | 30 True +How many lead changes occurred in games where the New York Knicks played at home? SELECT SUM(lead_changes) as total_lead_changes FROM other_stats WHERE team_abbreviation_home = 'NYK'; 5382 True +Find the date of the match between Federer and Nadal where the score was '6-4 6-4'. SELECT tourney_date FROM matches WHERE (winner_name = 'Roger Federer' AND loser_name = 'Rafael Nadal' OR winner_name = 'Rafael Nadal' AND loser_name = 'Roger Federer') AND score = '6-4 6-4'; 20090510.0 20070415.0 False +What is the most points the Dallas Mavericks have scored in a single home game? SELECT pts_home FROM game WHERE team_name_home = 'Dallas Mavericks' ORDER BY pts_home DESC LIMIT 1; 151 True +What country is Carlos Alcaraz from? SELECT ioc FROM players WHERE name = 'Carlos Alcaraz'; ESP False +Which player has the highest average ranking points overall? SELECT p.name, AVG(r.points) AS avg_points FROM rankings r JOIN players p ON r.player = p.player_id GROUP BY p.name ORDER BY avg_points DESC LIMIT 1; Novak Djokovic|7655.32489878542 False +List all players whose name contains 'Williams' SELECT name, ioc FROM players WHERE name LIKE '%Williams%'; James Williams|USA Ian Williams|USA Gareth Williams|RSA Jeff Williams|USA Rhyne Williams|USA Carl Williams|USA Phillip Williamson|USA R Williams|AUS Rald Williams|AUS Ted Williams|USA Duane Williams|BAR Seanon Williams|BAR John Williams|GBR Tom Williams|GBR Gavaskar Williams|ECA Jerry Williams|ECA Mark Williams|AUS Lachlan Williams|AUS Jamie Williams|GBR G Williams|AUS Owen Williams|RSA K Williams|AUS Dick Williams|USA E Ulysses Williams|GBR Eliot Crawshay Williams|GBR Lucien E Williams|USA David H Williams|GBR Llewelyn Williams|ARG Jorge Williams|ARG Richard O Williams|GBR Ec Williams|GBR Teddy Williams|GBR Sc Williams|USA J A Williams|USA Fp Williams|USA William Williams|USA Tp Williams|USA Hl Williamson|USA Joe Williams|USA X Williams|USA Richard Norris Williams|USA Dougal Williams|USA Jorge Williams Lopez|MEX Thomas Williams|GBR Rohan Williams|AUS Stefan Williams|NZL Wkwesi Williams|BAR Timmy Williams|AUS Yohansey Williams|TRI Dylan Williams|GBR Chris Williams|RSA Michael Williams|USA Nick Williams|USA Glenn Williams|USA Mark Williams W303|USA Francis Williams|USA Phillip Williamson|USA Paul Williams|USA John Paul Williams|USA Austin Williams|USA Carlos Williams|MEX Runeld Williams|USA Mark Gino Williams|RSA Steven Williams|USA Jack Williams|USA Lee Williams|USA Adam Williams|USA Earl Williams|USA Ashton Williams|USA Shane Williams|TRI Phillip Williams|JAM Narada Williams|JAM Justin Williams|USA Ellis Williamson|USA Gus Williams|USA Dick Williams|USA Blackwell Williams|USA Don Williams|USA Peter Williams|USA Charles Williams|USA Richard Williams|USA Scott Mcwilliams|USA Walter Williams|USA R N Williams|GBR Jeff Williams|USA Guy Williams|AUS A Williams|AUS T Williams|USA L K Williams|USA George Williams|USA J H A Williams|USA G M Williams|USA E T Williams|USA R G Williams|USA B C Williams|USA G Williamson|USA Adrian Williams|GBR David Williams|USA Brian Williams|AUS Logan Williams|USA Scott Williams|USA Brad Williams|AUS Bradwin Williams|RSA Nicholas Williams|AUS M Williams| P D R Williams|GBR J Williamson|IRL R E Williams|GBR Cooper Williams|USA Bill Williams|USA Aaron James Williams|GER False +What is the average number of reb in home games by the Orlando Magic? SELECT AVG(reb_home) FROM game WHERE team_name_home = 'Orlando Magic'; 43.46391030133147 True +Which home team had the most games with a perfect free throw percentage? SELECT team_name_home FROM game WHERE ft_pct_home = 1.0 GROUP BY team_name_home ORDER BY COUNT(*) DESC LIMIT 1; New York Knicks True +What is the highest combined fg_pct in any game involving the Indiana Pacers? SELECT MAX(fg_pct_home + fg_pct_away) FROM game WHERE team_name_home = 'Indiana Pacers' OR team_name_away = 'Indiana Pacers'; 1.234 True +How many fast break points did the Brooklyn Nets score at home? SELECT SUM(pts_fb_home) as total_fb_points FROM other_stats WHERE team_abbreviation_home = 'BKN'; 4453 True +Show all matches won by Carlos Alcaraz. SELECT tourney_name FROM matches WHERE winner_name = 'Carlos Alcaraz'; False +How many away games did the Chicago Bulls play in the 2014 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Chicago Bulls' AND season_id = '22014'; 41.0 True +What was the score of the 'US Open' final in 2018? SELECT score FROM matches WHERE tourney_name = 'US Open' AND tourney_date LIKE '2018%' AND round = 'F'; 6-3 7-6(4) 6-3 False +What is the total number of matches played by Andy Murray in the US Open? SELECT COUNT(*) FROM matches WHERE winner_name = 'Andy Murray' OR loser_name = 'Andy Murray' AND tourney_name = 'US Open'; 853 False +List all tournaments where the winner's age was under 16. SELECT DISTINCT tourney_name FROM matches WHERE winner_age < 16 and round='F'; Spain 7 Masters 4 Spain 3 2 Great Britain F3 Germany F4 Las Vegas CH Croatia F2 False +Which home team scored the most points in a game where they had more turnovers than assists? SELECT team_name_home FROM game WHERE tov_home > ast_home ORDER BY pts_home DESC LIMIT 1; Seattle SuperSonics True +Show all matches where Roger Federer won. SELECT tourney_name FROM matches WHERE winner_name = 'Roger Federer'; False +In which season did the Atlanta Hawks have the best home court free throw shooting percentage in games they lost? SELECT season_id, AVG(ft_pct_home) AS avg_ft_pct FROM game WHERE team_name_home = 'Atlanta Hawks' AND wl_home = 'L' GROUP BY season_id ORDER BY avg_ft_pct DESC LIMIT 1; 42013 | 0.9375 True +What is the lowest number of points scored by the Boston Celtics at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Boston Celtics'; 36.0 True +How many matches did Mardy Fish win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Mardy Fish'; False +Which team had the best home record in the 2010 season? SELECT team_name_home AS team FROM game WHERE season_id = '22010' GROUP BY team_name_home ORDER BY CAST(SUM(CASE WHEN wl_home = 'W' THEN 1 ELSE 0 END) AS FLOAT) / COUNT(*) DESC LIMIT 1 San Antonio Spurs | 36 | 5 | 0.878048780487805 True +What is the total points in the paint by the Detroit Pistons at home? SELECT SUM(pts_paint_home) as total_pts_paint FROM other_stats WHERE team_abbreviation_home = 'DET'; 35436 True +How many times has Andy Murray defeated Roger Federer? SELECT COUNT(*) FROM matches WHERE winner_name = 'Andy Murray' AND loser_name = 'Roger Federer'; 11 False +How many times did the Minnesota Timberwolves lose at home in the 2004 season despite recording more steals and blocks than their opponent? SELECT COUNT(*) FROM game g WHERE g.team_abbreviation_home = 'MIN' AND g.wl_home = 'L' AND g.stl_home > g.stl_away AND g.blk_home > g.blk_away AND g.season_id = '22004'; 0 True +How many fast break points did the Orlando Magic score away? SELECT SUM(pts_fb_away) as total_fb_points FROM other_stats WHERE team_abbreviation_away = 'ORL'; 11743.0 True +What is the average height of all players? SELECT AVG(height) FROM players WHERE height IS NOT NULL; 183.74813763746 False +How many total rebounds did the Atlanta Hawks grab in away games during the 1995 season? SELECT SUM(reb_away) FROM game WHERE team_abbreviation_away = 'ATL' AND season_id = '21995'; 1683 True +List all left-handed players. SELECT name FROM players WHERE hand = 'L'; False +In which season did the New York Knicks have the highest average pts at home? SELECT season_id, AVG(pts_home) as avg_stat FROM game WHERE team_name_home = 'New York Knicks' GROUP BY season_id ORDER BY avg_stat DESC LIMIT 1; 21965 | 120.13157894736842 True +What is the maximum age at which Roger Federer won a match? SELECT MAX(winner_age) FROM matches WHERE winner_name = 'Roger Federer'; 39.8 False +List all Italian players. SELECT name FROM players WHERE ioc = 'ITA'; False +What is the highest-scoring game in New York Knicks history (considering both home and away games)? SELECT game_id, pts_home, pts_away, game_date FROM game WHERE team_abbreviation_home = 'NYK' OR team_abbreviation_away = 'NYK' ORDER BY (pts_home + pts_away) DESC LIMIT 1; 0027700297 | 152.0 | 150.0 | 1977-12-16 00:00:00 True +How many matches were between a left-handed and right-handed player? SELECT COUNT(*) FROM matches WHERE (winner_hand = 'L' AND loser_hand = 'R') OR (winner_hand = 'R' AND loser_hand = 'L'); False +In which season did the Cleveland Cavaliers have the highest average points in the paint at home? SELECT g.season_id, AVG(o.pts_paint_home) AS avg_paint_points FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Cleveland Cavaliers' GROUP BY g.season_id ORDER BY avg_paint_points DESC LIMIT 1; 22020 | 54.13793103448276 True +On how many ranking dates was Novak Djokovic ranked number 1? SELECT COUNT(*) FROM rankings r JOIN players p ON r.player = p.player_id WHERE p.name = 'Novak Djokovic' AND r.rank = 1; 377 False +What is the name of the player with ID 100001? SELECT name FROM players WHERE player_id = 100001; Gardnar Mulloy False +What is the highest points scored by the Cleveland Cavaliers away when they had more than 5 blocks? SELECT MAX(pts_away) as max_points FROM game WHERE team_name_away = 'Cleveland Cavaliers' AND blk_away > 5; 132 True +What is the highest combined pts in any game involving the Philadelphia 76ers? SELECT MAX(pts_home + pts_away) FROM game WHERE team_name_home = 'Philadelphia 76ers' OR team_name_away = 'Philadelphia 76ers'; 290 True +How many doubles matches are in the database? SELECT COUNT(*) FROM matches WHERE winner1_id IS NOT NULL; 26399 False +What is the largest lead the Phoenix Suns had at home? SELECT MAX(largest_lead_home) as max_lead FROM other_stats WHERE team_abbreviation_home = 'PHX'; 52.0 True +How many home games did the Los Angeles Lakers play in the 2020 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Los Angeles Lakers' AND season_id = '22020'; 36.0 True +How many total team rebounds did the Phoenix Suns have in away games where they scored over 15 fast break points? SELECT SUM(os.team_rebounds_away) FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_abbreviation_away = 'PHX' AND os.pts_fb_away > 15; 2849 True +List all players whose height is between 180 and 200 cm. SELECT name FROM players WHERE height BETWEEN 180 AND 200; False +Which Chicago Bulls home game had the most lead changes? SELECT g.game_date, os.lead_changes FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_home = 'Chicago Bulls' ORDER BY os.lead_changes DESC LIMIT 1; 4/26/2009 0:00:00 | 28 True +List the winner and loser of tourney_id '2018-M020'. SELECT winner_name, loser_name FROM matches WHERE tourney_id = '2018-M020' AND round='F'; Nick Kyrgios|Ryan Harrison False +What is the average height of players Nick Kyrgios defeated? SELECT AVG(loser_ht) FROM matches WHERE winner_name = 'Nick Kyrgios'; 186.636363636364 False +What is the win percentage for the Atlanta Hawks in home games where they scored more than 100 points? SELECT COUNT(CASE WHEN wl_home = 'W' THEN 1 END) * 100.0 / COUNT(*) AS win_percentage FROM game WHERE team_name_home = 'Atlanta Hawks' AND pts_home > 100; 74.29805616 True +What is the average points of players ranked exactly 50? SELECT AVG(Points) FROM rankings WHERE rank = 50; 831.880733944954 False +How many matches in 2021 were won by left-handed players? SELECT COUNT(*) FROM matches WHERE winner_hand = 'L' AND tourney_date BETWEEN 20210101 AND 20211231; False +What is the average age of Novak Djokovic when he won his matches? SELECT AVG(winner_age) FROM matches WHERE winner_name = 'Novak Djokovic'; 26.5260390161154 False +What is the average height of right-handed players? SELECT AVG(height) FROM players WHERE hand = 'R'; False +How many away games did the Minnesota Timberwolves play in the 2022 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Minnesota Timberwolves' AND season_id = '22022'; 41 True +What is the average number of ft_pct in away games by the San Antonio Spurs? SELECT AVG(ft_pct_away) FROM game WHERE team_name_away = 'San Antonio Spurs'; 0.7538615611 True +How many away games did the Boston Celtics play in the 2009 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Boston Celtics' AND season_id = '22009'; 41 True +What is the lowest rank a player has held while winning a match in a Grand Slam (US/Aus/French/Wimbledon)? SELECT MAX(r.rank) FROM matches m JOIN rankings r ON m.winner_id = r.player AND m.tourney_date = r.ranking_date WHERE m.tourney_name IN ('US Open', 'Australian Open', 'Roland Garros', 'Wimbledon'); 1917 False +How many total three-pointers did the Cleveland Cavaliers make in away games during the 2016 season? SELECT SUM(fg3m_away) FROM game WHERE team_abbreviation_away = 'CLE' AND season_id = '22016'; 530.0 True +How many times has a team lost while shooting over 55% from the field? SELECT COUNT(*) FROM game WHERE (fg_pct_home > 0.55 AND wl_home = 'L') OR (fg_pct_away > 0.55 AND wl_away = 'L'); 714 True +How many matches were played in Japan? SELECT COUNT(*) FROM matches WHERE winner_ioc = 'JPN' OR loser_ioc = 'JPN'; False +How many matches at the US Open lasted more than 240 minutes? SELECT COUNT(*) FROM matches WHERE tourney_name = 'US Open' AND minutes > 240; 94 False +How many total games did the Boston Celtics play in the 2015 season? SELECT COUNT(*) FROM game WHERE (team_abbreviation_home = 'BOS' OR team_abbreviation_away = 'BOS') AND season_id = '22015'; 82 True +Show all matches where a right-handed player won. SELECT tourney_name, winner_name FROM matches WHERE winner_hand = 'R'; False +How many times has Andy Murray beaten Novak Djokovic? SELECT COUNT(*) FROM matches WHERE winner_name = 'Andy Murray' AND loser_name = 'Novak Djokovic'; 11 False +What is the average number of lead changes in games where the Chicago Bulls won at home by less than 10 points? SELECT AVG(o.lead_changes) AS avg_lead_changes FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Chicago Bulls' AND g.wl_home = 'W' AND (g.pts_home - g.pts_away) < 10; 7.84469697 True +What is the average height of Alexander Zverev when winning matches? SELECT AVG(winner_ht) FROM matches WHERE winner_name = 'Alexander Zverev'; 198.0 False +Which home team committed the most turnovers in a game they won? SELECT team_name_home FROM game WHERE wl_home = 'W' ORDER BY tov_home DESC LIMIT 1; Los Angeles Lakers True +List tournaments played by exactly two players from France. SELECT tourney_name FROM (SELECT tourney_name, COUNT(DISTINCT winner_name) as f_wins, COUNT(DISTINCT loser_name) as f_losses FROM matches WHERE winner_ioc='FRA' OR loser_ioc='FRA' GROUP BY tourney_name HAVING f_wins + f_losses = 2); False +What is the most points the Golden State Warriors have scored at home? SELECT MAX(pts_home) FROM game WHERE team_name_home = 'Golden State Warriors'; 155 True +What is the average number of reb in away games by the Charlotte Hornets? SELECT AVG(reb_away) FROM game WHERE team_name_away = 'Charlotte Hornets'; 41.99271592 True +How many total rebounds did the Utah Jazz have in away games during the 2013 season? SELECT SUM(reb_away) AS total_rebounds FROM game WHERE season_id = '22013' AND team_name_away = 'Utah Jazz'; 1672 True +How many home games did the Minnesota Timberwolves play in the 2020 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Minnesota Timberwolves' AND season_id = '22020'; 36 True +What is the minimum points needed to be in top 100? SELECT MIN(Points) FROM rankings WHERE rank <= 100 AND ranking_date = (SELECT MAX(ranking_date) FROM rankings); 623.0 False +Which team committed the fewest total turnovers in an away game that resulted in a win? SELECT team_abbreviation_away FROM other_stats WHERE game_id IN (SELECT game_id FROM game WHERE wl_away = 'W') ORDER BY total_turnovers_away ASC LIMIT 1; PHX True +What is Jannik Sinner’s average age during matches at the Australian Open? SELECT AVG(CASE WHEN winner_name = 'Jannik Sinner' THEN winner_age ELSE loser_age END) FROM matches WHERE (winner_name = 'Jannik Sinner' OR loser_name = 'Jannik Sinner') AND tourney_name = 'Australian Open'; 21.0842105263158 False +Which home team had the most wins when playing against the Orlando Magic? SELECT team_name_home FROM game WHERE team_name_away = 'Orlando Magic' AND wl_home = 'W' GROUP BY team_name_home ORDER BY COUNT(*) DESC LIMIT 1; Detroit Pistons True +What is the total points scored by the Minnesota Timberwolves at home? SELECT SUM(pts_home) as total_points FROM game WHERE team_name_home = 'Minnesota Timberwolves'; 140713 True +Which country has the most players? SELECT ioc, COUNT(*) AS num_players FROM players GROUP BY ioc ORDER BY num_players DESC LIMIT 1; USA|13102 False +What is the highest-scoring game in Boston Celtics history (considering both home and away games)? SELECT game_id, pts_home, pts_away, game_date FROM game WHERE team_abbreviation_home = 'BOS' OR team_abbreviation_away = 'BOS' ORDER BY (pts_home + pts_away) DESC LIMIT 1; 0025800258 | 173.0 | 139.0 | 1959-02-27 00:00:00 True +What is the average age of players named 'David'? SELECT AVG(2024 - (dob/10000)) FROM players WHERE name LIKE 'David %'; 42.7836746478873 False +Which season had the most total points scored across all games? SELECT season_id FROM game GROUP BY season_id ORDER BY SUM(pts_home + pts_away) DESC LIMIT 1; 22022 True +Which hand does Pete Sampras use? SELECT hand FROM players WHERE name = 'Pete Sampras'; R False +How many away games did the Denver Nuggets play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Denver Nuggets' AND season_id = '22018'; 41 True +Show all matches in 2021. SELECT * FROM matches WHERE tourney_date BETWEEN 20210101 AND 20211231; False +What is the shortest match ever? SELECT MIN(minutes) FROM matches; False +What is the average number of assists by the Sacramento Kings in home wins? SELECT AVG(ast_home) FROM game WHERE team_abbreviation_home = 'SAC' AND wl_home = 'W'; 24.74970344 True +What is Nick Kyrgios’ height and dominant hand? SELECT height, hand FROM players WHERE name = 'Nick Kyrgios'; 193.0|R False +What was the average margin of victory for the Cleveland Cavaliers in home games where they had more assists than their opponent? SELECT AVG(pts_home - pts_away) AS avg_margin FROM game WHERE team_name_home = 'Cleveland Cavaliers' AND wl_home = 'W' AND ast_home > ast_away; 14.04697987 True +List all British players. SELECT name FROM players WHERE ioc = 'GBR'; False +Which player defeated Andy Murray the most? SELECT winner_name, COUNT(*) AS wins FROM matches WHERE loser_name = 'Andy Murray' GROUP BY winner_name ORDER BY wins DESC LIMIT 1; Novak Djokovic|26 False +How many matches ended in exactly 120 minutes? SELECT COUNT(*) FROM matches WHERE minutes = 120; False +What was the largest lead the Phoenix Suns have ever had in a home game? SELECT MAX(largest_lead_home) FROM other_stats WHERE team_abbreviation_home = 'PHX'; 52 True +List matches where either the winner or loser is from 'JPN'. SELECT tourney_name, winner_name, loser_name FROM matches WHERE winner_ioc = 'JPN' OR loser_ioc = 'JPN'; False +List all matches in Wimbledon. SELECT * FROM matches WHERE tourney_name LIKE '%Wimbledon%'; False +List all players ranked in the top 10 SELECT r.rank, p.name, r.Points FROM rankings r JOIN players p ON r.player = p.player_id WHERE r.rank <= 10 AND r.ranking_date = (SELECT MAX(ranking_date) FROM rankings); 1|Novak Djokovic|9960.0 2|Jannik Sinner|8770.0 3|Carlos Alcaraz|7300.0 4|Alexander Zverev|6305.0 5|Daniil Medvedev|6295.0 6|Andrey Rublev|4700.0 7|Casper Ruud|4425.0 8|Hubert Hurkacz|3885.0 9|Stefanos Tsitsipas|3700.0 10|Grigor Dimitrov|3555.0 False +Show all players taller than 200cm SELECT name, height FROM players WHERE height > 200; Victor Amaya|201.0 Michiel Schapers|201.0 Greg Neuhart|206.0 Milan Srejber|203.0 Marc Rosset|201.0 Dick Norman|203.0 Andrew Richardson|201.0 Brian Dunn|201.0 Alexander Popp|201.0 Dario Pizzato|201.0 Ivo Karlovic|208.0 Nikola Ciric|201.0 Marcelo Melo|203.0 John Isner|206.0 Chris Guccione|201.0 Philipp Oswald|201.0 Kevin Anderson|203.0 Kenny De Schepper|203.0 Alexander Bury|203.0 Thomas Schoorel|203.0 Jerzy Janowicz|203.0 Albano Olivetti|203.0 Danilo Petrovic|203.0 Christopher Eubanks|201.0 Reilly Opelka|211.0 Louis Wessels|201.0 False +What is the highest combined pts in any game involving the Detroit Pistons? SELECT MAX(pts_home + pts_away) FROM game WHERE team_name_home = 'Detroit Pistons' OR team_name_away = 'Detroit Pistons'; 370 True +How many turnovers did the New York Knicks commit at home during the 1998 season? SELECT SUM(tov_home) FROM game WHERE team_name_home = 'New York Knicks' AND season_id = '21998'; 384.0 True +What was the average margin of victory for the Portland Trail Blazers in home games where they had more assists than their opponent? SELECT AVG(pts_home - pts_away) AS avg_margin FROM game WHERE team_name_home = 'Portland Trail Blazers' AND wl_home = 'W' AND ast_home > ast_away; 14.5455665 True +What is the largest lead the Minnesota Timberwolves had at home? SELECT MAX(largest_lead_home) as max_lead FROM other_stats WHERE team_abbreviation_home = 'MIN'; 48.0 True +What is the average number of points scored in the paint by the Milwaukee Bucks at home in games they won versus games they lost? SELECT (SELECT AVG(o.pts_paint_home) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Milwaukee Bucks' AND g.wl_home = 'W') AS avg_paint_points_wins, (SELECT AVG(o.pts_paint_home) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Milwaukee Bucks' AND g.wl_home = 'L') AS avg_paint_points_losses FROM game LIMIT 1; 41.95454545454545 | 40.8578811369509 True +How many games did the Milwaukee Bucks lose at home with more than 5 lead changes in 1996? SELECT COUNT(*) as losses FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Milwaukee Bucks' AND g.wl_home = 'L' AND os.lead_changes > 5 AND g.season_id = '21996'; 8.0 True +What is the average field goal percentage for the Detroit Pistons at home? SELECT AVG(fg_pct_home) as avg_fg_pct FROM game WHERE team_name_home = 'Detroit Pistons'; 0.4611972067 True +How many home games did the Orlando Magic play in the 2019 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Orlando Magic' AND season_id = '22019'; 35 True +List all matches won by Alexander Zverev. SELECT tourney_name FROM matches WHERE winner_name = 'Alexander Zverev'; False +How many total losses does Andre Agassi have at the Australian Open? SELECT COUNT(*) FROM matches WHERE loser_name = 'Andre Agassi' AND tourney_name = 'Australian Open'; 5 False +What was the difference in points per field goal attempt between the Memphis Grizzlies and their opponents in home games during the 2018 season? SELECT AVG((pts_home / NULLIF(fga_home, 0)) - (pts_away / NULLIF(fga_away, 0))) AS ppfga_diff FROM game WHERE team_name_home = 'Memphis Grizzlies' AND season_id = '22018'; -0.0221110495 True +How many away games did the Milwaukee Bucks play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Milwaukee Bucks' AND season_id = '22018'; 41 True +How many times have the Phoenix Suns won an away game while scoring at least 110 points? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'PHX' AND pts_away >= 110 AND wl_away = 'W'; 521 True +Which country has the most players born after the year 2000? SELECT ioc, COUNT(*) as cnt FROM players WHERE dob >= 20000101 GROUP BY ioc ORDER BY cnt DESC LIMIT 1; USA|202 False +How many American (USA) players are in the database? SELECT COUNT(*) FROM players WHERE ioc = 'USA'; 13102 False +In which season did the Atlanta Hawks have the highest average pts at home? SELECT season_id, AVG(pts_home) as avg_stat FROM game WHERE team_name_home = 'Atlanta Hawks' GROUP BY season_id ORDER BY avg_stat DESC LIMIT 1; 42022 | 123.66666666666667 True +How many matches did Stefanos Tsitsipas lose? SELECT COUNT(*) FROM matches WHERE loser_name = 'Stefanos Tsitsipas'; False +List all doubles match winners in 'Wimbledon'. SELECT winner1_name, winner2_name FROM matches WHERE tourney_name = 'Wimbledon'; False +How many times have the Charlotte Hornets won at home in the 2021 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'CHA' AND wl_home = 'W' AND season_id = '22021'; 22 True +Find the number of times the Houston Rockets played a game on January 10, 2015. SELECT COUNT(*) FROM game WHERE (team_abbreviation_home = 'HOU' OR team_abbreviation_away = 'HOU') AND DATE(game_date) = '2015-01-10'; 1 True +What is the sum of ranking points for the top 10 players on 2024-01-01? SELECT SUM(Points) FROM rankings WHERE rank <= 10 AND ranking_date = 20240101; 57220.0 False +Find the name of the player who has played the most matches in the database (win or lose). SELECT name FROM (SELECT winner_name as name FROM matches UNION ALL SELECT loser_name FROM matches) t WHERE name IS NOT NULL GROUP BY name ORDER BY COUNT(*) DESC LIMIT 1; Roger Federer False +How many times have the Boston Celtics won an away game while scoring at least 110 points? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'BOS' AND pts_away >= 110 AND wl_away = 'W'; 690 True +List all countries represented. SELECT DISTINCT ioc FROM players; False +How many points did the Boston Celtics score in their last home game? SELECT pts_home FROM game WHERE team_abbreviation_home = 'BOS' ORDER BY game_date DESC LIMIT 1; 84 True +What is the average number of minutes per match in 2023? SELECT AVG(minutes) FROM matches WHERE tourney_date BETWEEN 20230101 AND 20231231; 106.879613289342 False +What is the win rate of right-handed players against left-handed players in 2022? SELECT CAST(SUM(CASE WHEN winner_hand = 'R' AND loser_hand = 'L' THEN 1 ELSE 0 END) AS FLOAT) / SUM(CASE WHEN (winner_hand = 'R' AND loser_hand = 'L') OR (winner_hand = 'L' AND loser_hand = 'R') THEN 1 ELSE 0 END) FROM matches WHERE tourney_date BETWEEN 20220000 AND 20221231; 0.500155811779371 False +How many games did the Houston Rockets win at home with more than 15 assists in 1996? SELECT COUNT(*) as wins FROM game WHERE team_name_home = 'Houston Rockets' AND wl_home = 'W' AND ast_home > 15 AND season_id = '21996'; 30 True +What is the abbreviation for the Miami Heat in the team table? SELECT abbreviation FROM team WHERE full_name = 'Miami Heat'; MIA True +Show players taller than 190 cm. SELECT name FROM players WHERE height > 190; False +How many games did the Detroit Pistons win away in 1996? SELECT COUNT(*) as away_wins FROM game WHERE team_name_away = 'Detroit Pistons' AND wl_away = 'W' AND season_id = '21996'; 24 True +Show all match results where 'Maria Sharapova' was the loser. SELECT * FROM matches WHERE loser_name = 'Andre Agassi'; False +What is the highest points in the paint by the Detroit Pistons away in games they won? SELECT MAX(os.pts_paint_away) as max_pts_paint FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Detroit Pistons' AND g.wl_away = 'W'; 70 True +Which season saw the Los Angeles Lakers record their highest average number of steals per game at home? SELECT season_id, AVG(stl_home) AS avg_steals FROM game WHERE team_name_home = 'Los Angeles Lakers' GROUP BY season_id ORDER BY avg_steals DESC LIMIT 1; 41981 | 12.333333333333334 True +What is the average height of players from Argentina? SELECT AVG(height) FROM players WHERE ioc = 'ARG'; 181.592920353982 False +What is the average points in the paint by the Indiana Pacers at home in games they won? SELECT AVG(os.pts_paint_home) as avg_pts_paint FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Indiana Pacers' AND g.wl_home = 'W'; 39.1107438 True +What is the highest rank 'Andy Murray' has ever achieved? SELECT min(T1.rank) FROM rankings AS T1 JOIN players AS T2 ON T1.player = T2.player_id WHERE T2.name = 'Andy Murray'; 1 False +What nationality is Alexander Zverev? SELECT ioc FROM players WHERE name = 'Alexander Zverev'; GER False +List 10 random matches. SELECT * FROM matches LIMIT 10; False +What is the highest combined pts in any game involving the Houston Rockets? SELECT MAX(pts_home + pts_away) FROM game WHERE team_name_home = 'Houston Rockets' OR team_name_away = 'Houston Rockets'; 317.0 True +How many total team rebounds did the Los Angeles Clippers have in away games where they scored over 15 fast break points? SELECT SUM(os.team_rebounds_away) FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_abbreviation_away = 'LAC' AND os.pts_fb_away > 15; 2279.0 True +What is the largest lead the Orlando Magic had away? SELECT MAX(largest_lead_away) as max_lead FROM other_stats WHERE team_abbreviation_away = 'ORL'; 55 True +List the top 5 countries by number of match wins SELECT winner_ioc, COUNT(*) as wins FROM matches GROUP BY winner_ioc ORDER BY wins DESC LIMIT 5; USA|99510 FRA|66714 ESP|63701 ITA|53514 ARG|50769 False +How many players are under 170 cm tall? SELECT COUNT(*) FROM players WHERE height < 170; False +What is the average points for players ranked 1-10? SELECT AVG(Points) FROM rankings WHERE rank <= 10; 4127.61760391198 False +How many players have a recorded height over 210cm? SELECT COUNT(*) FROM players WHERE height > 210; 1 False +How many away games did the Charlotte Hornets play in the 2002 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Charlotte Hornets' AND season_id = '22002'; 0 True +What is the highest-scoring game (combined points) the Denver Nuggets played in the 1998 season, home or away? SELECT game_id, (pts_home + pts_away) AS total_points FROM game WHERE (team_abbreviation_home = 'DEN' OR team_abbreviation_away = 'DEN') AND season_id = '21998' ORDER BY total_points DESC LIMIT 1; 0029800135 | 230.0 True +Which opponent did the Orlando Magic score the most points against in a single home game? SELECT team_name_away, MAX(pts_home) AS max_points FROM game WHERE team_name_home = 'Orlando Magic' GROUP BY team_name_away ORDER BY max_points DESC LIMIT 1; Denver Nuggets | 155.0 True +How many matches has Taylor Fritz lost at Wimbledon? SELECT COUNT(*) FROM matches WHERE loser_name = 'Taylor Fritz' AND tourney_name = 'Wimbledon'; 7 False +What is the lowest points scored by the Detroit Pistons away? SELECT MIN(pts_away) as min_points FROM game WHERE team_name_away = 'Detroit Pistons'; 64.0 True +Count matches won by left-handed players. SELECT COUNT(*) FROM matches WHERE winner_hand = 'L; False +How many home games did the Milwaukee Bucks play in the 2011 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Milwaukee Bucks' AND season_id = '22011'; 33.0 True +Retrieve the DOB of the player 'Holger Rune'. SELECT dob FROM players WHERE name = 'Holger Rune'; 20030429.0 False +What hand does Roger Federer play with? SELECT hand FROM players WHERE name = 'Roger Federer'; R False +How many matches has Roger Federer lost to Andy Murray? SELECT COUNT(*) FROM matches WHERE loser_name = 'Roger Federer' AND winner_name = 'Andy Murray'; 11 False +How many left-handed players ranked in the top 30 in 2024? SELECT COUNT(DISTINCT players.player_id) FROM rankings JOIN players ON rankings.player=players.player_id WHERE ranking_date BETWEEN 20240101 AND 20241231 AND rank<=30 AND hand='left'; False +What is the largest lead the Philadelphia 76ers have ever had in an away game? SELECT MAX(largest_lead_away) FROM other_stats WHERE team_abbreviation_away = 'PHI'; 47 True +Who has John McEnroe defeated the most? SELECT loser_name, COUNT(*) AS wins FROM matches WHERE winner_name = 'John McEnroe' GROUP BY loser_name ORDER BY wins DESC LIMIT 1; Jimmy Connors|21 False +List all players who never lost to 'Rafael Nadal'. SELECT name FROM players WHERE name NOT IN (SELECT loser_name FROM matches WHERE winner_name='Rafael Nadal'); False +How many matches did Roger Federer win in 2019? SELECT COUNT(*) FROM matches WHERE winner_name = 'Roger Federer' AND tourney_date BETWEEN 20190101 AND 20191231; 55 False +What was the total number of points scored by the Orlando Magic in the 2014 season? SELECT SUM(points) AS total_points FROM ( SELECT pts_home AS points FROM game WHERE team_name_home = 'Orlando Magic' AND season_id = '22014' UNION ALL SELECT pts_away AS points FROM game WHERE team_name_away = 'Orlando Magic' AND season_id = '22014' ) AS season_games 7847 True +In games where the Phoenix Suns outscored their opponents in fastbreak points at home, what was their win percentage? SELECT COUNT(CASE WHEN g.wl_home = 'W' THEN 1 END) * 100.0 / COUNT(*) AS win_percentage FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Phoenix Suns' AND o.pts_fb_home > o.pts_fb_away; 62.12121212 True +How many points did the Detroit Pistons score in their lowest-scoring game at home? SELECT MIN(pts_home) FROM game WHERE team_abbreviation_home = 'DET'; 64 True +What is the total points in the paint by the Atlanta Hawks at home? SELECT SUM(pts_paint_home) as total_pts_paint FROM other_stats WHERE team_abbreviation_home = 'ATL'; 39440 True +What was the difference in points per field goal attempt between the Denver Nuggets and their opponents in home games during the 2018 season? SELECT AVG((pts_home / NULLIF(fga_home, 0)) - (pts_away / NULLIF(fga_away, 0))) AS ppfga_diff FROM game WHERE team_name_home = 'Denver Nuggets' AND season_id = '22018'; 0.07093616668 True +What was the highest field goal percentage achieved by the Phoenix Suns in a single game in the 2003 season? SELECT MAX(fg_pct) AS highest_fg_percentage FROM ( SELECT fg_pct_home AS fg_pct FROM game WHERE team_abbreviation_home = 'PHX' AND season_id = '22003' UNION ALL SELECT fg_pct_away AS fg_pct FROM game WHERE team_abbreviation_away = 'PHX' AND season_id = '22003' ); 0.57 True +What is the total number of wins by Novak Djokovic against Rafael Nadal? SELECT COUNT(*) FROM matches WHERE winner_name = 'Novak Djokovic' AND loser_name = 'Rafael Nadal'; 30 False +Which opponent did the Washington Wizards have the most lead changes against in a single home game? SELECT o.team_city_away AS opponent, o.lead_changes FROM other_stats o JOIN game g ON o.game_id = g.game_id WHERE g.team_name_home = 'Washington Wizards' ORDER BY o.lead_changes DESC LIMIT 1; Washington | 26 True +How many games did the Denver Nuggets play that went to overtime in the 2016 season? SELECT COUNT(*) AS overtime_games FROM game WHERE (team_name_home = 'Denver Nuggets' OR team_name_away = 'Denver Nuggets') AND min > 240 AND season_id = '22016'; 3 True +Which player has beaten Roger Federer the most times? SELECT winner_name, COUNT(*) AS wins_against FROM matches WHERE loser_name = 'Roger Federer' GROUP BY winner_name ORDER BY wins_against DESC LIMIT 1; Novak Djokovic|28 False +Get the names and countries of all players taller than 190 cm. SELECT name, ioc FROM players WHERE height > 190; False +How many matches did Bjorn Borg win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Bjorn Borg'; False +How many times have the Los Angeles Lakers won at home in the 2021 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'LAL' AND wl_home = 'W' AND season_id = '22021'; 21 True +How many distinct players have appeared in matches as winners? SELECT COUNT(DISTINCT winner_id) FROM matches; 18648 False +How many times has Nick Kyrgios beaten Rafael Nadal? SELECT COUNT(*) FROM matches WHERE winner_name = 'Nick Kyrgios' AND loser_name = 'Rafael Nadal'; 4 False +What is the average height of players who won a match at Wimbledon? SELECT AVG(winner_ht) AS avg_height FROM matches WHERE tourney_name = 'Wimbledon'; 185.318105616094 False +How many matches did Andy Murray lose at the US Open after 2015? SELECT COUNT(*) FROM matches WHERE loser_name = 'Andy Murray' AND tourney_name = 'US Open' AND tourney_date > 20150101; 3 False +How many home games did the Golden State Warriors play in the 2001 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Golden State Warriors' AND season_id = '22001'; 41.0 True +How many matches were played in the 'Wimbledon' tournament? SELECT count(*) FROM matches WHERE tourney_name = 'Wimbledon'; 17457 False +What is the highest points scored by the Atlanta Hawks away? SELECT MAX(pts_away) as max_points FROM game WHERE team_name_away = 'Atlanta Hawks'; 155 True +What is the highest points scored by the Chicago Bulls away when they had more than 5 lead changes? SELECT MAX(g.pts_away) as max_points FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_away = 'Chicago Bulls' AND os.lead_changes > 5; 168.0 True +How many games did the Atlanta Hawks win on the road in the 1999 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'ATL' AND season_id = '21999' AND wl_away = 'W'; 7 True +Show all matches from 2020. SELECT * FROM matches WHERE tourney_date BETWEEN 20200101 AND 20201231; False +Get player details for Rafael Nadal SELECT * FROM players WHERE name = 'Rafael Nadal'; 104745|L|19860603.0|ESP|185.0|Rafael Nadal False +How many players are over 190 cm tall? SELECT COUNT(*) FROM players WHERE height > 190; False +Show the tallest 5 players. SELECT name, height FROM players ORDER BY height DESC LIMIT 5; False +Which Cleveland Cavaliers home game had the most lead changes? SELECT g.game_date, os.lead_changes FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_home = 'Cleveland Cavaliers' ORDER BY os.lead_changes DESC LIMIT 1; 2010-04-09 00:00:00 | 31 True +What is the lowest plus-minus score for the New York Knicks at home? SELECT MIN(plus_minus_home) as min_plus_minus FROM game WHERE team_name_home = 'New York Knicks'; -50.0 True +How many wins does Jannik Sinner have against Carlos Alcaraz? SELECT COUNT(*) FROM matches WHERE winner_name = 'Jannik Sinner' AND loser_name = 'Carlos Alcaraz'; 4 False +How many matches lasted longer than 200 minutes at the US Open? SELECT COUNT(*) FROM matches WHERE tourney_name = 'US Open' AND minutes > 200; 404 False +What is the highest points in the paint by the Orlando Magic away in games they won? SELECT MAX(os.pts_paint_away) as max_pts_paint FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Orlando Magic' AND g.wl_away = 'W'; 70 True +What is the highest-scoring game played by the Golden State Warriors at home? SELECT game_date, pts_home FROM game WHERE team_abbreviation_home = 'GSW' ORDER BY pts_home DESC LIMIT 1; 2016-11-23 00:00:00 | 149.0 True +What is the total points scored by the Indiana Pacers away? SELECT SUM(pts_away) as total_points FROM game WHERE team_name_away = 'Indiana Pacers'; 198377 True +How many times did the Detroit Pistons win an away game while holding their opponent to under 90 points in the 1990 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'DET' AND season_id = '21990' AND wl_away = 'W' AND pts_home < 90; 6 True +What is the average number of points scored by the Houston Rockets on the road during the 2015 season? SELECT AVG(pts_away) FROM game WHERE team_abbreviation_away = 'HOU' AND season_id = '22015'; 106.8292683 True +What was the average number of rebounds per game for the Indiana Pacers in 1989? SELECT AVG(rebounds) AS avg_rebounds FROM ( SELECT reb_home AS rebounds FROM game WHERE team_name_home = 'Indiana Pacers' AND season_id = '21989' UNION ALL SELECT reb_away AS rebounds FROM game WHERE team_name_away = 'Indiana Pacers' AND season_id = '21989' ) AS all_games 40.58536585 True +How many times did the Houston Rockets score over 120 points at home? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'HOU' AND pts_home > 120; 298 True +What is the average height difference between winners and losers? SELECT AVG(winner_ht - loser_ht) AS avg_height_diff FROM matches; 0.23040674261838 False +Show all right-handed players shorter than 170 cm. SELECT name FROM players WHERE hand = 'R' AND height < 170; False +What was the average number of rebounds grabbed by the San Antonio Spurs in games where they scored at least 40 points from fast breaks? SELECT AVG(rebounds) AS avg_rebounds FROM ( SELECT g.game_id, g.reb_home AS rebounds FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'San Antonio Spurs' AND o.pts_fb_home >= 40 UNION ALL SELECT g.game_id, g.reb_away AS rebounds FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_away = 'San Antonio Spurs' AND o.pts_fb_away >= 40 ); 46 True +What is the average height of all Wimbledon winners? SELECT AVG(winner_ht) FROM matches WHERE tourney_name = 'Wimbledon'; 185.318105616094 False +How many losses does Pete Sampras have at Wimbledon? SELECT COUNT(*) FROM matches WHERE loser_name = 'Pete Sampras' AND tourney_name = 'Wimbledon'; 7 False +How many matches were lost by left-handed players? SELECT COUNT(*) FROM matches WHERE loser_hand = 'L'; False +What state are the Washington Wizards based in according to the team table? SELECT state FROM team WHERE full_name = 'Washington Wizards'; District of Columbia True +Show all tournaments. SELECT DISTINCT tourney_name FROM matches; False +How many away games did the Chicago Bulls play in the 2019 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Chicago Bulls' AND season_id = '22019'; 31.0 True +Which opponent did the Detroit Pistons score the most points against in a single home game? SELECT team_name_away, MAX(pts_home) AS max_points FROM game WHERE team_name_home = 'Detroit Pistons' GROUP BY team_name_away ORDER BY max_points DESC LIMIT 1; Boston Celtics | 160.0 True +What is the total turnovers by the Milwaukee Bucks at home? SELECT SUM(tov_home) as total_turnovers FROM game WHERE team_name_home = 'Milwaukee Bucks'; 24065 True +What is the highest points scored by the Milwaukee Bucks at home? SELECT MAX(pts_home) as max_points FROM game WHERE team_name_home = 'Milwaukee Bucks'; 158 True +Who has Carlos Alcaraz defeated the most? SELECT loser_name, COUNT(*) AS wins FROM matches WHERE winner_name = 'Carlos Alcaraz' GROUP BY loser_name ORDER BY wins DESC LIMIT 1; Stefanos Tsitsipas|5 False +Show all left-handed players taller than 190 cm. SELECT name FROM players WHERE hand = 'L' AND height > 190; False +How many matches did Novak Djokovic win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Novak Djokovic'; False +What is the total points scored by the Memphis Grizzlies away? SELECT SUM(pts_away) as total_points FROM game WHERE team_name_away = 'Memphis Grizzlies'; 93388 True +How many away games did the Miami Heat play in the 2019 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Miami Heat' AND season_id = '22019'; 37.0 True +What is the average number of pts in home games by the Washington Wizards? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'Washington Wizards'; 102.9063387 True +What is the average number of points in the paint allowed by the Washington Wizards when playing at home in the 2001 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'WAS' AND g.season_id = '22001' AND o.lead_changes > 15; 44.0 True +Find the total number of distinct winners at Wimbledon. SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'Wimbledon'; 2706 False +Which team scored the most points off turnovers in the 2017 season and how many points did they score? SELECT team_name, SUM(pts_off_turnovers) AS total_pts_off_turnovers FROM ( SELECT g.team_name_home AS team_name, os.pts_off_to_home AS pts_off_turnovers FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.season_id = '22017' UNION ALL SELECT g.team_name_away AS team_name, os.pts_off_to_away AS pts_off_turnovers FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.season_id = '22017' ) AS all_games GROUP BY team_name ORDER BY total_pts_off_turnovers DESC LIMIT 1 Atlanta Hawks | 1309 True +How many Wimbledon matches did Andy Murray play after 2015? SELECT COUNT(*) FROM matches WHERE tourney_name = 'Wimbledon' AND tourney_date > 20150101 AND (winner_name = 'Andy Murray' OR loser_name = 'Andy Murray'); 25 False +What's the highest number of team turnovers the Philadelphia 76ers had in any home game during the 2018 season? SELECT MAX(os.team_turnovers_home) FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Philadelphia 76ers' AND g.season_id = '22018'; 2 True +What is the average number of points in the paint allowed by the Washington Wizards when playing at home in the 2002 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'WAS' AND g.season_id = '22002' AND o.lead_changes > 15; True +How many different partners did Bob Bryan have in doubles matches? SELECT COUNT(DISTINCT partner) FROM (SELECT winner2_name as partner FROM matches WHERE winner1_name = 'Bob Bryan' UNION SELECT winner1_name FROM matches WHERE winner2_name = 'Bob Bryan' UNION SELECT loser2_name FROM matches WHERE loser1_name = 'Bob Bryan' UNION SELECT loser1_name FROM matches WHERE loser2_name = 'Bob Bryan') t; 1 False +What is the total number of minutes played by the Houston Rockets at home? SELECT SUM(min) as total_minutes FROM game WHERE team_name_home = 'Houston Rockets'; 524340 True +How many times has Novak Djokovic defeated Andy Murray? SELECT COUNT(*) FROM matches WHERE winner_name = 'Novak Djokovic' AND loser_name = 'Andy Murray'; 26 False +How many away games did the Orlando Magic play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Orlando Magic' AND season_id = '22018'; 41 True +How many matches did Dominic Thiem win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Dominic Thiem'; False +What is the total number of assists by the Milwaukee Bucks at home? SELECT SUM(ast_home) as total_assists FROM game WHERE team_name_home = 'Milwaukee Bucks'; 43290 True +What is the highest combined tov in any game involving the Denver Nuggets? SELECT MAX(tov_home + tov_away) FROM game WHERE team_name_home = 'Denver Nuggets' OR team_name_away = 'Denver Nuggets'; 69 True +How many total rebounds did the Milwaukee Bucks have in away games during the 2013 season? SELECT SUM(reb_away) AS total_rebounds FROM game WHERE season_id = '22013' AND team_name_away = 'Milwaukee Bucks'; 1656.0 True +In 2013, what was the average number of rebounds by the Boston Celtics in games with at least 10 ties and fewer than 10 lead changes? SELECT AVG(g.reb_home) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'BOS' AND o.times_tied >= 10 AND o.lead_changes < 10 AND g.season_id = '22013'; 40.25 True +What is the highest points scored by the Chicago Bulls away? SELECT MAX(pts_away) as max_points FROM game WHERE team_name_away = 'Chicago Bulls'; 168 True +What is the total number of wins Jannik Sinner has at the Roland Garros? SELECT COUNT(*) FROM matches WHERE winner_name = 'Jannik Sinner' AND tourney_name = 'Roland Garros'; 11 False +What is the most turnovers the Utah Jazz have committed in an away game? SELECT MAX(total_turnovers_away) FROM other_stats WHERE team_abbreviation_away = 'UTA'; 31 True +What's the combined assist-to-turnover ratio for the Boston Celtics in home games during their best winning streak? WITH streaks AS ( SELECT g.game_id, g.ast_home, o.total_turnovers_home, ROW_NUMBER() OVER (ORDER BY g.game_date) - ROW_NUMBER() OVER (PARTITION BY g.wl_home ORDER BY g.game_date) AS streak_id FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Boston Celtics' AND g.wl_home = 'W' ) SELECT SUM(ast_home) / CASE WHEN SUM(total_turnovers_home) = 0 THEN 1 ELSE SUM(total_turnovers_home) END AS assist_turnover_ratio FROM streaks GROUP BY streak_id ORDER BY COUNT(*) DESC, assist_turnover_ratio DESC LIMIT 1; 1.662931224 True +What is the average winner age at Wimbledon? SELECT AVG(winner_age) FROM matches WHERE tourney_name = 'Wimbledon'; 26.7238638689215 False +What is the total fast break points by the Sacramento Kings away in games they lost? SELECT SUM(os.pts_fb_away) as total_fb_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Sacramento Kings' AND g.wl_away = 'L'; 8458 True +How many blocks did the Charlotte Hornets make at home in 1996? SELECT SUM(blk_home) as total_blocks FROM game WHERE team_name_home = 'Charlotte Hornets' AND season_id = '21996'; 188 True +What is the highest combined tov in any game involving the Los Angeles Lakers? SELECT MAX(tov_home + tov_away) FROM game WHERE team_name_home = 'Los Angeles Lakers' OR team_name_away = 'Los Angeles Lakers'; 66.0 True +What is the average number of points in the paint allowed by the Orlando Magic when playing at home in the 2001 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'ORL' AND g.season_id = '22001' AND o.lead_changes > 15; 42.0 True +How many matches were played between two players from the same country in 2023? SELECT COUNT(*) FROM matches WHERE winner_ioc = loser_ioc AND tourney_date BETWEEN 20230000 AND 20231231; 5374 False +Find the player with the most points who is left-handed. SELECT T1.name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player WHERE T1.hand = 'L' ORDER BY T2.points DESC LIMIT 1; Rafael Nadal False +What is the average age of players who have been ranked in the top 10? SELECT avg(T1.winner_age) FROM matches AS T1 WHERE T1.winner_id IN ( SELECT DISTINCT T2.player FROM rankings AS T2 WHERE T2.rank <= 10 ); 24.943456266323 False +Find the average height of players who participated in Wimbledon. SELECT AVG(height) FROM players WHERE player_id IN ( SELECT winner_id FROM matches WHERE tourney_name = 'Wimbledon' UNION SELECT loser_id FROM matches WHERE tourney_name = 'Wimbledon' ); 184.329136690647 False +How many turnovers did the Houston Rockets have at home in 1996? SELECT SUM(tov_home) as total_turnovers FROM game WHERE team_name_home = 'Houston Rockets' AND season_id = '21996'; 657 True +Show all matches won by Marin Cilic. SELECT tourney_name FROM matches WHERE winner_name = 'Marin Cilic'; False +How many home games did the Miami Heat win in the 2020 season when the away team committed fewer personal fouls but had a higher plus-minus? SELECT COUNT(*) FROM game g WHERE g.team_abbreviation_home = 'MIA' AND g.wl_home = 'W' AND g.pf_away < g.pf_home AND g.plus_minus_away > g.plus_minus_home AND g.season_id = '22020'; 0 True +How many players have a height of 180 cm or more? SELECT COUNT(*) FROM players WHERE height >= 180; False +How many points did the home team score in the game with the fewest total rebounds? SELECT pts_home FROM game ORDER BY (reb_home + reb_away) ASC LIMIT 1; 66.0 True +What is the total number of matches Novak Djokovic lost at the US Open? SELECT COUNT(*) FROM matches WHERE loser_name = 'Novak Djokovic' AND tourney_name = 'US Open'; 11 False +What was the total number of points scored by teams from Brooklyn as home teams in games with more than 10 lead changes during the 2001 season? SELECT SUM(g.pts_home) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home IN ( SELECT full_name FROM team WHERE city = 'Brooklyn' ) AND o.lead_changes > 10 AND g.season_id = '22001'; True +What is the average age difference in matches won by the younger player? SELECT AVG(loser_age - winner_age) FROM matches WHERE winner_age < loser_age; 4.00363596060453 False +How many games did the New Orleans Pelicans play at home in the 2010 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'NOP' AND season_id = '22010'; 0 True +What is the average number of ft_pct in away games by the Atlanta Hawks? SELECT AVG(ft_pct_away) FROM game WHERE team_name_away = 'Atlanta Hawks'; 0.7592745186 True +How many games were decided by more than 40 points? SELECT COUNT(*) FROM game WHERE ABS(pts_home - pts_away) > 40; 307 True +List all matches won by Andrey Rublev. SELECT tourney_name FROM matches WHERE winner_name = 'Andrey Rublev'; False +Which team had the highest field goal percentage at home in the 2005 season? SELECT team_name_home, MAX(fg_pct_home) FROM game WHERE season_id = '22005' GROUP BY team_name_home ORDER BY MAX(fg_pct_home) DESC LIMIT 1; Denver Nuggets|0.64 True +What is Roger Federer’s average match duration? SELECT AVG(minutes) FROM matches WHERE winner_name = 'Roger Federer' OR loser_name = 'Roger Federer'; 101.931882022472 False +Which city had the most total fast break points in the 2016 season? SELECT team_city_home FROM other_stats WHERE game_id IN (SELECT game_id FROM game WHERE season_id = '22016') GROUP BY team_city_home ORDER BY SUM(pts_fb_home) DESC LIMIT 1; Golden State True +What is the average number of turnovers committed by the Toronto Raptors in games they won at home? SELECT AVG(tov_home) AS avg_turnovers FROM game WHERE team_name_home = 'Toronto Raptors' AND wl_home = 'W'; 13.61777778 True +List all matches where a right-handed player lost. SELECT tourney_name, loser_name FROM matches WHERE loser_hand = 'R'; False +Find the year with the most matches played. SELECT CAST(tourney_date/10000 AS INT) as year, COUNT(*) as cnt FROM matches GROUP BY year ORDER BY cnt DESC LIMIT 1; 2016|32640 False +What is the total rebounds by the San Antonio Spurs away? SELECT SUM(reb_away) as total_rebounds FROM game WHERE team_name_away = 'San Antonio Spurs'; 77571 True +Find the player who has the biggest difference between their highest and lowest rank. SELECT T1.name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player GROUP BY T1.name ORDER BY (max(T2.rank) - min(T2.rank)) DESC LIMIT 1; Stefanos Tsitsipas False +List all players shorter than 165cm SELECT name, height FROM players WHERE height < 165 AND height IS NOT NULL; Angel Gimenez|163.0 Eduardo Osta|160.0 Choon Ho Kim|163.0 Ramayah Ramachandran|160.0 Ilija Vucic|145.0 Yuta Shimizu|163.0 False +What was the highest number of lead changes in a game where the Detroit Pistons won and committed more fouls than their opponent? SELECT MAX(o.lead_changes) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE (g.team_abbreviation_home = 'DET' AND g.wl_home = 'W' AND g.pf_home > g.pf_away) OR (g.team_abbreviation_away = 'DET' AND g.wl_away = 'W' AND g.pf_away > g.pf_home) AND g.season_id = '22000'; 30 True +What is the name of the player who has the most ranking entries? SELECT T1.name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player GROUP BY T1.name ORDER BY count(*) DESC LIMIT 1; Feliciano Lopez False +List matches with more than five sets played. SELECT * FROM matches WHERE LENGTH(score) - LENGTH(REPLACE(score, ' ', '')) + 1 > 5; False +What is the total points scored by the Charlotte Hornets at home? SELECT SUM(pts_home) as total_points FROM game WHERE team_name_home = 'Charlotte Hornets'; 98559.0 True +How many matches were between two right-handed players? SELECT COUNT(*) FROM matches WHERE winner_hand = 'R' AND loser_hand = 'R'; False +What is the average age of Wimbledon winners? SELECT AVG(winner_age) FROM matches WHERE tourney_name = 'Wimbledon'; 26.7238638689215 False +What is the largest lead the Portland Trail Blazers have ever had in an away game? SELECT MAX(largest_lead_away) FROM other_stats WHERE team_abbreviation_away = 'POR'; 58 True +What is the date of birth of the player ranked #3 on 2023-11-20? SELECT T1.dob FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player WHERE T2.rank = 3 AND T2.ranking_date = 20231120; 19960211.0 False +How many matches did David Ferrer win? SELECT COUNT(*) FROM matches WHERE winner_name = 'David Ferrer'; False +What is the total points scored by the Los Angeles Clippers at home when they had more than 5 times tied? SELECT SUM(g.pts_home) as total_points FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_home = 'Los Angeles Clippers' AND os.times_tied > 5; 26047.0 True +How many matches did Andre Agassi win in less than 100 minutes? SELECT COUNT(*) FROM matches WHERE winner_name = 'Andre Agassi' AND minutes < 100; 417 False +What is the total number of points scored by the Boston Celtics at home? SELECT SUM(pts_home) as total_points FROM game WHERE team_name_home = 'Boston Celtics'; 332014 True +How many matches has 'Novak Djokovic' won? SELECT count(*) FROM matches WHERE winner_name = 'Novak Djokovic'; 1179 False +Which team has the abbreviation 'NYK'? SELECT full_name FROM team WHERE abbreviation = 'NYK'; New York Knicks True +How many home games did the Indiana Pacers play in the 2020 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Indiana Pacers' AND season_id = '22020'; 36 True +What is the youngest player in the database? SELECT name FROM players ORDER BY dob DESC LIMIT 1; False +In 2018, which team has the most home wins and how many home wins did they have? SELECT team_abbreviation_home, COUNT(*) FROM game WHERE wl_home = 'W' AND season_id = '22018' GROUP BY team_abbreviation_home ORDER BY COUNT(*) DESC LIMIT 1; DEN | 34 True +What is the average height of left-handed players? SELECT AVG(height) FROM players WHERE hand = 'L'; False +How many games did the Denver Nuggets play at home in 1996? SELECT COUNT(*) as home_games FROM game WHERE team_name_home = 'Denver Nuggets' AND season_id = '21996'; 41 True +Find the winner and loser names for matches held in 'Paris'. SELECT winner_name, loser_name FROM matches WHERE tourney_name = 'Paris'; False +List all matches in the Australian Open. SELECT * FROM matches WHERE tourney_name LIKE '%Australian%'; False +How many field goals attempted did the Boston Celtics have away in 1996? SELECT SUM(fga_away) as total_fga FROM game WHERE team_name_away = 'Boston Celtics' AND season_id = '21996'; 3448.0 True +Which player has defeated Jannik Sinner the most times? SELECT winner_name, COUNT(*) AS wins FROM matches WHERE loser_name = 'Jannik Sinner' GROUP BY winner_name ORDER BY wins DESC LIMIT 1; Stefanos Tsitsipas|6 False +How many home games did the Milwaukee Bucks play in the 2019 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Milwaukee Bucks' AND season_id = '22019'; 35.0 True +List players who have won doubles and singles matches in the same tournament. SELECT DISTINCT winner_name FROM matches WHERE tourney_name IN (SELECT tourney_name FROM matches WHERE winner1_id IS NOT NULL) AND tourney_name IN (SELECT tourney_name FROM matches WHERE winner1_id IS NULL); False +How many games did the Golden State Warriors win by 20 or more points during their 73-win season? SELECT COUNT(*) AS blowout_wins FROM ( SELECT game_id FROM game WHERE season_id = '22016' AND ((team_name_home = 'Golden State Warriors' AND wl_home = 'W' AND plus_minus_home >= 20) OR (team_name_away = 'Golden State Warriors' AND wl_away = 'W' AND plus_minus_away >= 20)) ) AS big_wins 23 True +List all opponents 'Carlos Alcaraz' lost to in 2023. SELECT DISTINCT winner_name FROM matches WHERE loser_name = 'Carlos Alcaraz' AND tourney_date >= 20230000 AND tourney_date < 20240000; Cameron Norrie Jannik Sinner Fabian Marozsan Novak Djokovic Tommy Paul Daniil Medvedev Grigor Dimitrov Roman Safiullin Alexander Zverev False +What is the total points in the paint by the Atlanta Hawks away when they lost? SELECT SUM(os.pts_paint_away) as total_pts_paint FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Atlanta Hawks' AND g.wl_away = 'L'; 26324 True +What is the average number of reb in home games by the Dallas Mavericks? SELECT AVG(reb_home) FROM game WHERE team_name_home = 'Dallas Mavericks'; 44.11028571 True +What is the most points the Miami Heat have scored in an away game in the 2004 season? SELECT MAX(pts_away) FROM game WHERE team_abbreviation_away = 'MIA' AND season_id = '22004'; 119 True +What is the highest rank achieved by player id 104925? SELECT MIN(rank) FROM rankings WHERE player = 104925; 1 False +How many tournaments were played in 2023? SELECT count(DISTINCT tourney_id) FROM matches WHERE tourney_date >= 20230000 AND tourney_date < 20240000; 909 False +List all left-handed players sorted by height. SELECT name, height FROM players WHERE hand = 'L' ORDER BY height DESC; False +How many games did the Los Angeles Lakers play at home in 1996? SELECT COUNT(*) as home_games FROM game WHERE team_name_home = 'Los Angeles Lakers' AND season_id = '21996'; 41 True +What is the average height of players who won a tournament on a hard court (e.g., 'US Open' or 'Australian Open')? SELECT avg(T1.height) FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name IN ('US Open', 'Australian Open'); 184.760615653313 False +How many total turnovers did the San Antonio Spurs commit in away games during the 2014 season? SELECT SUM(os.total_turnovers_away) AS total_turnovers FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '22014' AND g.team_abbreviation_away = 'SAS'; 462 True +What is the largest lead the Miami Heat have had in any game? SELECT MAX(largest_lead_home) AS largest_lead FROM other_stats WHERE team_abbreviation_home = 'MIA'; 46 True +How many points did the Los Angeles Clippers score as visitors in their most turnover-heavy game? SELECT pts_away FROM game WHERE team_abbreviation_away = 'LAC' ORDER BY tov_away DESC LIMIT 1; 107.0 True +How many times have the Houston Rockets won an away game while scoring at least 110 points? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'HOU' AND pts_away >= 110 AND wl_away = 'W'; 425 True +How many matches were lost by right-handed players? SELECT COUNT(*) FROM matches WHERE loser_hand = 'R'; False +What is the average age difference between winners and losers at Wimbledon? SELECT AVG(winner_age - loser_age) FROM matches WHERE tourney_name = 'Wimbledon'; -0.234355556006958 False +What was the average margin of victory for the Toronto Raptors in home games where they had more assists than their opponent? SELECT AVG(pts_home - pts_away) AS avg_margin FROM game WHERE team_name_home = 'Toronto Raptors' AND wl_home = 'W' AND ast_home > ast_away; 12.98398169 True +Which season saw the Philadelphia 76ers record their highest average number of steals per game at home? SELECT season_id, AVG(stl_home) AS avg_steals FROM game WHERE team_name_home = 'Philadelphia 76ers' GROUP BY season_id ORDER BY avg_steals DESC LIMIT 1; 12021 | 17.0 True +How many matches did Pete Sampras win in the Australian Open? SELECT COUNT(*) FROM matches WHERE winner_name = 'Pete Sampras' AND tourney_name = 'Australian Open'; 45 False +Which player has the most match wins at the US Open since 2010? SELECT winner_name, COUNT(*) AS wins FROM matches WHERE tourney_name = 'US Open' AND tourney_date >= 20100101 GROUP BY winner_name ORDER BY wins DESC LIMIT 1; Novak Djokovic|53 False +What is the total points scored by the Denver Nuggets at home? SELECT SUM(pts_home) as total_points FROM game WHERE team_name_home = 'Denver Nuggets'; 217457 True +What is the highest-scoring away game for the Houston Rockets? SELECT game_id, game_date, pts_away FROM game WHERE team_name_away = 'Houston Rockets' ORDER BY pts_away DESC LIMIT 1; 0021900061 | 2019-10-30 00:00:00 | 159.0 True +How many games did the Toronto Raptors play at home in 1996? SELECT COUNT(*) as home_games FROM game WHERE team_name_home = 'Toronto Raptors' AND season_id = '21996'; 41 True +How many games did the Indiana Pacers win on the road during the 2018 season? SELECT COUNT(*) AS away_wins FROM game WHERE team_name_away = 'Indiana Pacers' AND wl_away = 'W' AND season_id = '22018'; 19 True +Show all matches lost by Tomas Berdych. SELECT tourney_name FROM matches WHERE loser_name = 'Tomas Berdych'; False +What is the highest combined pts in any game involving the Chicago Bulls? SELECT MAX(pts_home + pts_away) FROM game WHERE team_name_home = 'Chicago Bulls' OR team_name_away = 'Chicago Bulls'; 329 True +List the players who have never had a rank better (lower) than 100. SELECT p.name FROM players p JOIN rankings r ON p.player_id = r.player GROUP BY p.player_id HAVING MIN(r.rank) > 100 LIMIT 10; Gardnar Mulloy Pancho Segura Frank Sedgman Giuseppe Merlo Richard Gonzalez Grant Golden Abe Segal Kurt Nielsen Istvan Gulyas Luis Ayala False +What is the largest lead the Portland Trail Blazers have had in a game at home? SELECT MAX(largest_lead_home) FROM other_stats WHERE team_abbreviation_home = 'POR'; 52 True +How many times did the Denver Nuggets lose at home in the 2015 season despite recording more steals and blocks than their opponent? SELECT COUNT(*) FROM game g WHERE g.team_abbreviation_home = 'DEN' AND g.wl_home = 'L' AND g.stl_home > g.stl_away AND g.blk_home > g.blk_away AND g.season_id = '22015'; 2 True +How many away games did the Atlanta Hawks play in the 2022 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Atlanta Hawks' AND season_id = '22022'; 41 True +What is the average number of games played in matches won by Roger Federer? SELECT AVG(minutes) FROM matches WHERE winner_name = 'Roger Federer'; 96.8959587274291 False +What is the highest field goal percentage recorded by the Toronto Raptors in a home game? SELECT MAX(fg_pct_home) FROM game WHERE team_name_home = 'Toronto Raptors'; 0.65 True +What is the maximum number of ranking points held by any player on any date? SELECT MAX(points) AS max_points FROM rankings; 16950.0 False +Show all matches lost by Milos Raonic. SELECT tourney_name FROM matches WHERE loser_name = 'Milos Raonic'; False +What is the total number of points held by all players from Spain on 2024-01-01? SELECT sum(T1.points) FROM rankings AS T1 JOIN players AS T2 ON T1.player = T2.player_id WHERE T2.ioc = 'ESP' AND T1.ranking_date = 20240101; 18971.0 False +In games where the Oklahoma City Thunder outscored their opponents in fastbreak points at home, what was their win percentage? SELECT COUNT(CASE WHEN g.wl_home = 'W' THEN 1 END) * 100.0 / COUNT(*) AS win_percentage FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Oklahoma City Thunder' AND o.pts_fb_home > o.pts_fb_away; 63.33333333 True +How many matches did Roger Federer lose? SELECT COUNT(*) FROM matches WHERE loser_name = 'Roger Federer'; False +What is the average points scored by the Los Angeles Lakers away? SELECT AVG(pts_away) as avg_points FROM game WHERE team_name_away = 'Los Angeles Lakers'; 105.7537372 True +How many fast-break points did the Miami Heat score in away games during the 2015 season? SELECT SUM(os.pts_fb_away) AS total_fast_break_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '22015' AND g.team_abbreviation_away = 'MIA'; 472 True +What is the average number of points in the paint allowed by the Orlando Magic when playing at home in the 2021 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'ORL' AND g.season_id = '22021' AND o.lead_changes > 15; 45 True +List all matches won by Albert Montanes. SELECT tourney_name FROM matches WHERE winner_name = 'Albert Montanes'; False +In games from the 2003 season, how often did the Detroit Pistons win despite committing more turnovers and having fewer rebounds than their opponent? SELECT COUNT(*) FROM game g WHERE ((g.team_abbreviation_home = 'DET' AND g.wl_home = 'W' AND g.tov_home > g.tov_away AND g.reb_home < g.reb_away) OR (g.team_abbreviation_away = 'DET' AND g.wl_away = 'W' AND g.tov_away > g.tov_home AND g.reb_away < g.reb_home)) AND g.season_id = '22003'; 4 True +What is the total number of matches Nick Kyrgios played at the Australian Open? SELECT COUNT(*) FROM matches WHERE (winner_name = 'Nick Kyrgios' OR loser_name = 'Nick Kyrgios') AND tourney_name = 'Australian Open'; 28 False +What is the average number of pts in home games by the Boston Celtics? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'Boston Celtics'; 106.27848911651728 True +How many steals did the Phoenix Suns have away in 1996? SELECT SUM(stl_away) as total_steals FROM game WHERE team_name_away = 'Phoenix Suns' AND season_id = '21996'; 316 True +How many matches did Grigor Dimitrov win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Grigor Dimitrov'; False +In what year was the Toronto Raptors founded? SELECT year_founded FROM team WHERE full_name = 'Toronto Raptors'; 1995 True +What is the name of the player with ID 104925? SELECT name FROM players WHERE player_id = 104925; Novak Djokovic False +What was the average margin of victory for the Detroit Pistons in home games where they scored more than 100 points and allowed fewer than 90 points? SELECT AVG(pts_home - pts_away) AS avg_victory_margin FROM game WHERE team_name_home = 'Detroit Pistons' AND pts_home > 100 AND pts_away < 90; 23.5 True +What is the highest points scored by the Washington Wizards away when they had more than 5 lead changes? SELECT MAX(g.pts_away) as max_points FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_away = 'Washington Wizards' AND os.lead_changes > 5; 147 True +Which player had the most ranking points on 2021-12-27? SELECT p.name FROM rankings r JOIN players p ON r.player = p.player_id WHERE r.ranking_date = 20211227 ORDER BY r.Points DESC LIMIT 1; Novak Djokovic False +How many players are in the database? SELECT COUNT(*) FROM players; 65019 False +What is the most turnovers the Washington Wizards have committed in a home game? SELECT MAX(total_turnovers_home) FROM other_stats WHERE team_abbreviation_home = 'WAS'; 28 True +How many games did the Charlotte Hornets play away with more than 20 points in the paint in 1996? SELECT COUNT(*) as games FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Charlotte Hornets' AND os.pts_paint_away > 20 AND g.season_id = '21996'; 32 True +Show matches where both players were right-handed. SELECT tourney_name FROM matches WHERE winner_hand = 'R' AND loser_hand = 'R'; False +How many matches were decided in 5 sets? SELECT count(*) FROM matches WHERE score LIKE '%-% %-% %-% %-%'; 30494 False +List all matches won by Robby Ginepri. SELECT tourney_name FROM matches WHERE winner_name = 'Robby Ginepri'; False +How many matches did Rafael Nadal win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Rafael Nadal'; False +Get matches with the 'best_of' field equal to 5. SELECT * FROM matches WHERE best_of = '5'; False +Who has Andre Agassi defeated the most times? SELECT loser_name, COUNT(*) AS wins FROM matches WHERE winner_name = 'Andre Agassi' GROUP BY loser_name ORDER BY wins DESC LIMIT 1; Michael Chang|15 False +Which team was involved in the most games with more than 15 lead changes? SELECT team FROM (SELECT team_abbreviation_home AS team FROM other_stats WHERE lead_changes > 15 UNION ALL SELECT team_abbreviation_away FROM other_stats WHERE lead_changes > 15) GROUP BY team ORDER BY COUNT(*) DESC LIMIT 1; LAL True +What is the total second chance points by the Chicago Bulls at home in games they lost? SELECT SUM(os.pts_2nd_chance_home) as total_2nd_chance FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Chicago Bulls' AND g.wl_home = 'L'; 5346 True +In the 2004 season, what was the average number of second chance points scored by the opponents when the Toronto Raptors played at home and lost? SELECT AVG(o.pts_2nd_chance_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'TOR' AND g.wl_home = 'L' AND g.season_id = '22004'; 10.61538462 True +How many matches in the database were won by a player from Japan? SELECT COUNT(*) FROM matches WHERE winner_ioc = 'JPN'; 18724 False +What is the average number of pts in home games by the Orlando Magic? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'Orlando Magic'; 102.53608969866852 True +List all matches where Rafael Nadal lost. SELECT tourney_name FROM matches WHERE loser_name = 'Rafael Nadal'; False +What is the total number of matches Roger Federer played at the Australian Open? SELECT COUNT(*) FROM matches WHERE (winner_name = 'Roger Federer' OR loser_name = 'Roger Federer') AND tourney_name = 'Australian Open'; 118 False +How many total games did the San Antonio Spurs play in the 2015 season? SELECT COUNT(*) AS total_games FROM game WHERE season_id = '22015' AND (team_name_home = 'San Antonio Spurs' OR team_name_away = 'San Antonio Spurs'); 82 True +What is the average height of players that lost to Roger Federer? SELECT AVG(loser_ht) FROM matches WHERE winner_name = 'Roger Federer'; 186.174961119751 False +What is the highest ranking ever achieved? SELECT MIN(rank) FROM rankings; False +How many left-handed players from Canada are in the database? SELECT COUNT(*) FROM players WHERE hand = 'L' AND ioc = 'CAN'; False +Give all tournaments and dates where Rafael Nadal defeated Novak Djokovic. SELECT tourney_name, tourney_date FROM matches WHERE winner_name='Rafael Nadal' AND loser_name='Novak Djokovic'; False +How many total offensive rebounds did the Oklahoma City Thunder collect in the 2012 season? SELECT SUM(oreb) AS total_offensive_rebounds FROM ( SELECT oreb_home AS oreb FROM game WHERE team_abbreviation_home = 'OKC' AND season_id = '22012' UNION ALL SELECT oreb_away AS oreb FROM game WHERE team_abbreviation_away = 'OKC' AND season_id = '22012' ); True +When did the Golden State Warriors score the most points in the paint in an away game? SELECT g.game_date, o.pts_paint_away FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_away = 'Golden State Warriors' ORDER BY o.pts_paint_away DESC LIMIT 1; 2010-03-19 00:00:00 | 90 True +What is the total points in the paint by the Los Angeles Clippers at home? SELECT SUM(pts_paint_home) as total_pts_paint FROM other_stats WHERE team_abbreviation_home = 'LAC'; 40334.0 True +What is the highest number of minutes Rafael Nadal has played in a single US Open match? SELECT MAX(minutes) FROM matches WHERE (winner_name = 'Rafael Nadal' OR loser_name = 'Rafael Nadal') AND tourney_name = 'US Open'; 290.0 False +How many home games did the Philadelphia 76ers play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Philadelphia 76ers' AND season_id = '22018'; 41 True +What is the highest-scoring home game for the Minnesota Timberwolves? SELECT game_date, pts_home FROM game WHERE team_abbreviation_home = 'MIN' ORDER BY pts_home DESC LIMIT 1; 2022-12-18 00:00:00 | 150.0 True +Show all matches lost by Jimmy Connors. SELECT tourney_name FROM matches WHERE loser_name = 'Jimmy Connors'; False +Find all players who have won at least 500 matches and are over 200cm tall. SELECT T1.name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T1.height > 200 GROUP BY T1.name HAVING count(*) >= 500; Ivo Karlovic John Isner Kevin Anderson Marc Rosset False +What is the average rank of players named 'John'? SELECT AVG(r.rank) FROM rankings r JOIN players p ON r.player = p.player_id WHERE p.name LIKE 'John %'; 575.942671051783 False +Who has the most wins in the 'Miami Masters' tournament? SELECT winner_name, COUNT(*) as wins FROM matches WHERE tourney_name = 'Miami Masters' AND winner_name IS NOT NULL GROUP BY winner_name ORDER BY wins DESC LIMIT 1; Andre Agassi|60 False +Find all players who have won a match against an opponent more than 50 years older than them. SELECT DISTINCT winner_name FROM matches WHERE winner_age < (loser_age - 50); Jaimee Floyd Angele Ezekiel Clark Tyler Stice Taha Baadi Toby D Boyer Zachary Svajda Sekou Bangoura Dan Martin Govind Nanda Emile Hudd Damien Salvestre Ignacio Monzon Samir Banerjee Karlis Ozolins Ricardo Rodriguez Guy Den Ouden Amador Salazar Andres Andrade Facundo Bermejo False +Show all matches where the winner was older than 30. SELECT tourney_name, winner_name, winner_age FROM matches WHERE winner_age > 30; False +Which team had the most rebounds in a single game at home during the 2010 season? SELECT team_name_home, MAX(reb_home) AS max_rebounds FROM game WHERE season_id = '22010' GROUP BY team_name_home ORDER BY max_rebounds DESC LIMIT 1; Minnesota Timberwolves|66.0 True +What is the total second chance points by the Milwaukee Bucks away in games they lost? SELECT SUM(os.pts_2nd_chance_away) as total_2nd_chance FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Milwaukee Bucks' AND g.wl_away = 'L'; 7460 True +How many away games did the Milwaukee Bucks play in the 2017 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Milwaukee Bucks' AND season_id = '22017'; 41 True +How many matches did Tommy Robredo win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Tommy Robredo'; False +How many games in the 2008 season had a final score difference of exactly 1 point? SELECT COUNT(*) FROM game WHERE season_id = '22008' AND ABS(pts_home - pts_away) = 1; 43 True +What is the name of the player who won the most matches as a 'loser' (i.e. was a doubles partner)? SELECT 'N/A'; False +What is the total number of losses Alexander Zverev has at the Roland Garros? SELECT COUNT(*) FROM matches WHERE loser_name = 'Alexander Zverev' AND tourney_name = 'Roland Garros'; 9 False +Find the number of matches that lasted more than 180 minutes SELECT COUNT(*) FROM matches WHERE minutes > 180; 5425 False +What is the average match duration for Rafael Nadal at Wimbledon? SELECT AVG(minutes) FROM matches WHERE tourney_name = 'Wimbledon' AND (winner_name = 'Rafael Nadal' OR loser_name = 'Rafael Nadal'); 159.455882352941 False +List all matches over 200 minutes. SELECT tourney_name FROM matches WHERE minutes > 200; False +What is the highest combined fg_pct in any game involving the Atlanta Hawks? SELECT MAX(fg_pct_home + fg_pct_away) FROM game WHERE team_name_home = 'Atlanta Hawks' OR team_name_away = 'Atlanta Hawks'; 1.179 True +What is the minimum height recorded among all players? SELECT MIN(height) FROM players; 145.0 False +Show all left-handed players from USA. SELECT name FROM players WHERE hand = 'L' AND ioc = 'USA'; False +What is the highest points in the paint by the Dallas Mavericks away in games they won? SELECT MAX(os.pts_paint_away) as max_pts_paint FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Dallas Mavericks' AND g.wl_away = 'W'; 72 True +How tall is John McEnroe? SELECT height FROM players WHERE name = 'John McEnroe'; 180.0 False +What is the highest points scored by the Los Angeles Lakers away? SELECT MAX(pts_away) as max_points FROM game WHERE team_name_away = 'Los Angeles Lakers'; 153.0 True +What is the average number of reb in away games by the New Orleans Pelicans? SELECT AVG(reb_away) FROM game WHERE team_name_away = 'New Orleans Pelicans'; 44.15172414 True +How many players have a height recorded as exactly 185 cm? SELECT COUNT(*) FROM players WHERE height = 185; 424 False +Which players lost all their matches in 2021? SELECT name FROM players WHERE player_id IN (SELECT loser_id FROM matches WHERE tourney_date BETWEEN 20210101 AND 20211231) AND player_id NOT IN (SELECT winner_id FROM matches WHERE tourney_date BETWEEN 20210101 AND 20211231); False +In the 2000 season, what was the average number of second chance points scored by the opponents when the Milwaukee Bucks played at home and lost? SELECT AVG(o.pts_2nd_chance_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'MIL' AND g.wl_home = 'L' AND g.season_id = '22000'; 13.88888889 True +How many games did the Toronto Raptors win away in 1996? SELECT COUNT(*) as away_wins FROM game WHERE team_name_away = 'Toronto Raptors' AND wl_away = 'W' AND season_id = '21996'; 12 True +What is the lowest plus-minus score for the Los Angeles Lakers at home? SELECT MIN(plus_minus_home) as min_plus_minus FROM game WHERE team_name_home = 'Los Angeles Lakers'; -48.0 True +How many Houston Rockets home games had over 15 offensive rebounds and 10+ steals? SELECT game_date, oreb_home, stl_home FROM game WHERE team_name_home = 'Houston Rockets' AND oreb_home > 15 AND stl_home >= 10; ('1985-04-21 00:00:00', 20.0, 10.0) | ('1985-11-14 00:00:00', 17.0, 10.0) | ('1985-12-03 00:00:00', 23.0, 11.0) | ('1985-12-10 00:00:00', 23.0, 14.0) | ('1985-12-12 00:00:00', 17.0, 10.0) | ('1986-01-09 00:00:00', 18.0, 12.0) | ('1986-01-25 00:00:00', 18.0, 10.0) | ('1986-02-03 00:00:00', 16.0, 10.0) | ('1986-03-08 00:00:00', 30.0, 12.0) | ('1986-03-15 00:00:00', 16.0, 14.0) | ('1986-04-01 00:00:00', 21.0, 11.0) | ('1986-11-16 00:00:00', 16.0, 21.0) | ('1986-11-18 00:00:00', 19.0, 12.0) | ('1987-01-03 00:00:00', 17.0, 11.0) | ('1987-03-10 00:00:00', 26.0, 14.0) | ('1987-03-28 00:00:00', 20.0, 12.0) | ('1987-11-14 00:00:00', 29.0, 13.0) | ('1987-11-28 00:00:00', 16.0, 11.0) | ('1988-01-04 00:00:00', 23.0, 10.0) | ('1988-01-09 00:00:00', 20.0, 12.0) | ('1988-01-21 00:00:00', 17.0, 10.0) | ('1988-02-16 00:00:00', 22.0, 11.0) | ('1988-02-28 00:00:00', 16.0, 11.0) | ('1988-05-03 00:00:00', 24.0, 13.0) | ('1988-11-05 00:00:00', 17.0, 13.0) | ('1988-11-08 00:00:00', 17.0, 16.0) | ('1988-11-17 00:00:00', 16.0, 12.0) | ('1988-12-15 00:00:00', 26.0, 12.0) | ('1988-12-18 00:00:00', 16.0, 11.0) | ('1989-01-03 00:00:00', 23.0, 13.0) | ('1989-01-26 00:00:00', 21.0, 14.0) | ('1989-03-11 00:00:00', 22.0, 10.0) | ('1989-03-25 00:00:00', 17.0, 15.0) | ('1989-11-07 00:00:00', 19.0, 10.0) | ('1989-11-16 00:00:00', 20.0, 10.0) | ('1989-11-19 00:00:00', 16.0, 15.0) | ('1989-12-12 00:00:00', 16.0, 14.0) | ('1990-01-03 00:00:00', 17.0, 11.0) | ('1990-01-27 00:00:00', 16.0, 10.0) | ('1990-02-17 00:00:00', 25.0, 14.0) | ('1990-03-03 00:00:00', 17.0, 17.0) | ('1990-03-29 00:00:00', 16.0, 10.0) | ('1990-03-31 00:00:00', 17.0, 10.0) | ('1990-04-17 00:00:00', 16.0, 15.0) | ('1990-04-22 00:00:00', 21.0, 13.0) | ('1990-11-17 00:00:00', 19.0, 11.0) | ('1990-12-06 00:00:00', 18.0, 10.0) | ('1990-12-20 00:00:00', 22.0, 11.0) | ('1991-01-05 00:00:00', 21.0, 13.0) | ('1991-02-03 00:00:00', 16.0, 15.0) | ('1991-02-21 00:00:00', 21.0, 11.0) | ('1991-03-05 00:00:00', 17.0, 10.0) | ('1991-03-09 00:00:00', 25.0, 12.0) | ('1991-03-12 00:00:00', 16.0, 11.0) | ('1991-03-21 00:00:00', 18.0, 13.0) | ('1991-04-03 00:00:00', 18.0, 11.0) | ('1991-04-18 00:00:00', 16.0, 10.0) | ('1991-11-01 00:00:00', 19.0, 12.0) | ('1992-04-11 00:00:00', 16.0, 13.0) | ('1992-11-11 00:00:00', 18.0, 15.0) | ('1993-02-25 00:00:00', 17.0, 10.0) | ('1993-05-08 00:00:00', 19.0, 12.0) | ('1993-11-20 00:00:00', 16.0, 10.0) | ('1995-03-16 00:00:00', 18.0, 11.0) | ('1995-04-15 00:00:00', 16.0, 14.0) | ('1995-11-07 00:00:00', 16.0, 11.0) | ('1996-01-09 00:00:00', 21.0, 14.0) | ('1996-01-21 00:00:00', 16.0, 12.0) | ('1996-04-13 00:00:00', 16.0, 11.0) | ('1996-11-01 00:00:00', 17.0, 20.0) | ('1996-12-28 00:00:00', 17.0, 10.0) | ('1997-05-07 00:00:00', 16.0, 10.0) | ('1997-11-20 00:00:00', 18.0, 14.0) | ('1998-02-10 00:00:00', 19.0, 10.0) | ('2001-11-01 00:00:00', 17.0, 10.0) | ('2002-02-12 00:00:00', 16.0, 12.0) | ('2002-02-23 00:00:00', 17.0, 11.0) | ('2002-04-14 00:00:00', 17.0, 15.0) | ('2003-03-26 00:00:00', 17.0, 10.0) | ('2004-03-07 00:00:00', 16.0, 10.0) | ('2006-03-05 00:00:00', 17.0, 11.0) | ('2006-04-12 00:00:00', 17.0, 11.0) | ('2007-11-14 00:00:00', 20.0, 12.0) | ('2007-11-24 00:00:00', 19.0, 10.0) | ('2007-12-19 00:00:00', 17.0, 10.0) | ('2008-03-26 00:00:00', 20.0, 11.0) | ('2007-10-23 00:00:00', 16.0, 12.0) | ('2008-12-05 00:00:00', 16.0, 10.0) | ('2010-01-13 00:00:00', 17.0, 11.0) | ('2010-01-31 00:00:00', 18.0, 11.0) | ('2010-12-29 00:00:00', 16.0, 11.0) | ('2011-02-12 00:00:00', 16.0, 10.0) | ('2011-04-11 00:00:00', 17.0, 11.0) | ('2012-01-17 00:00:00', 17.0, 11.0) | ('2012-01-27 00:00:00', 19.0, 12.0) | ('2014-01-08 00:00:00', 16.0, 12.0) | ('2014-03-27 00:00:00', 17.0, 13.0) | ('2013-10-21 00:00:00', 16.0, 13.0) | ('2014-11-08 00:00:00', 16.0, 14.0) | ('2014-12-03 00:00:00', 23.0, 14.0) | ('2015-01-03 00:00:00', 17.0, 13.0) | ('2015-02-23 00:00:00', 22.0, 11.0) | ('2014-10-09 00:00:00', 16.0, 10.0) | ('2016-04-03 00:00:00', 22.0, 11.0) | ('2016-04-10 00:00:00', 16.0, 11.0) | ('2015-10-17 00:00:00', 17.0, 13.0) | ('2016-12-20 00:00:00', 20.0, 10.0) | ('2017-03-12 00:00:00', 20.0, 10.0) | ('2017-04-12 00:00:00', 16.0, 11.0) | ('2017-11-09 00:00:00', 17.0, 11.0) | ('2018-05-28 00:00:00', 17.0, 13.0) | ('2018-10-26 00:00:00', 16.0, 11.0) | ('2020-01-22 00:00:00', 18.0, 10.0) | ('2021-04-14 00:00:00', 16.0, 12.0) | ('2022-12-15 00:00:00', 18.0, 10.0) | ('2022-12-19 00:00:00', 16.0, 13.0) | ('2023-04-04 00:00:00', 20.0, 12.0) True +What is the average duration (in minutes) of matches won by Rafael Nadal? SELECT AVG(minutes) FROM matches WHERE winner_name = 'Rafael Nadal'; 116.695992179863 False +What is the average free throw percentage for the Miami Heat away? SELECT AVG(ft_pct_away) as avg_ft_pct FROM game WHERE team_name_away = 'Miami Heat'; 0.74 True +What is the average free throw percentage for the Brooklyn Nets away? SELECT AVG(ft_pct_away) as avg_ft_pct FROM game WHERE team_name_away = 'Brooklyn Nets'; 0.7734608501 True +Which game had the smallest difference between offensive and defensive rebounds for the home team? SELECT game_id FROM game ORDER BY ABS(oreb_home - dreb_home) ASC LIMIT 1; 0024600001 True +What is the average match duration at Wimbledon? SELECT AVG(minutes) AS avg_duration FROM matches WHERE tourney_name = 'Wimbledon'; 130.965458422175 False +Which player is the tallest? SELECT name, height FROM players ORDER BY height DESC LIMIT 1; Reilly Opelka|211.0 False +How many matches were won by players over 200 cm? SELECT COUNT(*) FROM matches WHERE winner_ht > 200; False +Count how many matches were won by players over 35 years old. SELECT COUNT(*) FROM matches WHERE winner_age > 35; 9305 False +How many players are from Switzerland? SELECT COUNT(*) FROM players WHERE ioc = 'SUI'; False +In the 2019 season, how many total points off turnovers did the Miami Heat score in home games? SELECT SUM(os.pts_off_to_home) AS total_points_off_turnovers FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '22019' AND g.team_abbreviation_home = 'MIA'; 450 True +How many times have the Chicago Bulls won at home in the 2021 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'CHI' AND wl_home = 'W' AND season_id = '22021'; 27 True +Which tournament had the longest average match duration? SELECT tourney_name, AVG(minutes) AS avg_duration FROM matches GROUP BY tourney_name ORDER BY avg_duration DESC LIMIT 1; Davis Cup WG R1: ITA vs JPN|230.666666666667 False +List all Czech players. SELECT name FROM players WHERE ioc = 'CZE'; False +How many matches did Andre Agassi win at Wimbledon? SELECT COUNT(*) FROM matches WHERE winner_name = 'Andre Agassi' AND tourney_name = 'Wimbledon'; 46 False +How many doubles matches were won by the team of Mike Bryan and Bob Bryan? SELECT COUNT(*) FROM matches WHERE (winner1_name = 'Mike Bryan' AND winner2_name = 'Bob Bryan') OR (winner1_name = 'Bob Bryan' AND winner2_name = 'Mike Bryan'); 553 False +What was the score of the final match at Indian Wells in 2018? SELECT score FROM matches WHERE tourney_name = 'Indian Wells Masters' AND tourney_date LIKE '2018%' AND round = 'F'; 6-4 6-7(8) 7-6(2) False +What is the highest-scoring home game for the Washington Wizards? SELECT game_date, pts_home FROM game WHERE team_abbreviation_home = 'WAS' ORDER BY pts_home DESC LIMIT 1; 1990-12-29 00:00:00 | 161.0 True +What is the average number of points in the paint allowed by the Chicago Bulls when playing at home in the 2007 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'CHI' AND g.season_id = '22007' AND o.lead_changes > 15; 20 True +What is the difference in free throw percentage between the Philadelphia 76ers and their opponents in home games? SELECT AVG(ft_pct_home - ft_pct_away) AS ft_pct_diff FROM game WHERE team_name_home = 'Philadelphia 76ers'; -0.0004981519507 True +What is the total turnovers by the Golden State Warriors at home? SELECT SUM(tov_home) as total_turnovers FROM game WHERE team_name_home = 'Golden State Warriors'; 25223 True +Show the first 5 players alphabetically. SELECT name FROM players ORDER BY name ASC LIMIT 5; False +What was the largest point differential in any game between the Boston Celtics and the Los Angeles Lakers? SELECT ABS(pts_home - pts_away) AS point_differential FROM game WHERE (team_name_home = 'Boston Celtics' AND team_name_away = 'Los Angeles Lakers') OR (team_name_home = 'Los Angeles Lakers' AND team_name_away = 'Boston Celtics') ORDER BY point_differential DESC LIMIT 1; 39 True +How many matches were won by a player whose name is the same as the loser's name (e.g., in doubles)? SELECT count(*) FROM matches WHERE winner1_name = loser1_name OR winner1_name = loser2_name OR winner2_name = loser1_name OR winner2_name = loser2_name; 68 False +Find the 10 latest matches between Nadal and Federer SELECT tourney_name, tourney_date, winner_name, loser_name, score FROM matches WHERE (winner_name = 'Rafael Nadal' AND loser_name = 'Roger Federer') OR (winner_name = 'Roger Federer' AND loser_name = 'Rafael Nadal') ORDER BY tourney_date DESC LIMIT 10; Wimbledon|20190701.0|Roger Federer|Rafael Nadal|7-6(3) 1-6 6-3 6-4 Roland Garros|20190527.0|Rafael Nadal|Roger Federer|6-3 6-4 6-2 Indian Wells Masters|20190304.0|Roger Federer|Rafael Nadal|W/O Shanghai Masters|20171009.0|Roger Federer|Rafael Nadal|6-4 6-3 Miami Masters|20170320.0|Roger Federer|Rafael Nadal|6-3 6-4 Indian Wells Masters|20170306.0|Roger Federer|Rafael Nadal|6-2 6-3 Australian Open|20170116.0|Roger Federer|Rafael Nadal|6-4 3-6 6-1 3-6 6-3 Basel|20151026.0|Roger Federer|Rafael Nadal|6-3 5-7 6-3 Australian Open|20140113.0|Rafael Nadal|Roger Federer|7-6(4) 6-3 6-3 Tour Finals|20131104.0|Rafael Nadal|Roger Federer|7-5 6-3 False +How many games did the San Antonio Spurs win at home in 1996? SELECT COUNT(*) as home_wins FROM game WHERE team_name_home = 'San Antonio Spurs' AND wl_home = 'W' AND season_id = '21996'; 12.0 True +What was the highest field goal percentage the Boston Celtics achieved in a single game in the 1999 season? SELECT MAX(fg_pct_home) FROM game WHERE team_abbreviation_home = 'BOS' AND season_id = '21999'; 0.539 True +How many left-handed players are from France? SELECT COUNT(*) FROM players WHERE hand = 'L' AND ioc = 'FRA'; False +Show all matches from January 2023. SELECT * FROM matches WHERE tourney_date BETWEEN 20230101 AND 20230131; False +Show all matches lost by Matteo Berrettini. SELECT tourney_name FROM matches WHERE loser_name = 'Matteo Berrettini'; False +How many matches did 'Nick Kyrgios' win in Australia? SELECT COUNT(*) FROM matches WHERE winner_name = 'Nick Kyrgios' AND (tourney_name LIKE 'Australian%' OR tourney_name IN ('Brisbane', 'Sydney', 'Adelaide')); 22 False +What is the average plus-minus for the Dallas Mavericks in games where they allowed more second chance points than they scored? SELECT AVG(g.plus_minus_home) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'DAL' AND o.pts_2nd_chance_away > o.pts_2nd_chance_home AND g.season_id = '22002'; 16.05882353 True +How many players were born before 1980? SELECT COUNT(*) FROM players WHERE dob < 19800101; 15041 False +What is the total number of turnovers committed by the Miami Heat in home games during the 1998 season? SELECT SUM(tov_home) FROM game WHERE team_abbreviation_home = 'MIA' AND season_id = '21998'; 348 True +What is the most points the New Orleans Pelicans have scored in a single home game? SELECT pts_home FROM game WHERE team_name_home = 'New Orleans Pelicans' ORDER BY pts_home DESC LIMIT 1; 149 True +List all matches with a best_of value of 3. SELECT * FROM matches WHERE best_of = '3'; False +Which tournament (Wimbledon or US Open) has longer matches on average? SELECT tourney_name, AVG(minutes) AS avg_minutes FROM matches WHERE tourney_name IN ('Wimbledon', 'US Open') GROUP BY tourney_name ORDER BY avg_minutes DESC; US Open|135.031421838178 Wimbledon|130.965458422175 False +What is the total number of points the Phoenix Suns scored in the paint during the 2020 season? SELECT SUM(paint_points) AS total_paint_points FROM ( SELECT os.pts_paint_home AS paint_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Phoenix Suns' AND g.season_id = '22020' UNION ALL SELECT os.pts_paint_away AS paint_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Phoenix Suns' AND g.season_id = '22020' ) AS all_games 2960 True +Which team was founded in the same year as the Golden State Warriors? SELECT full_name FROM team WHERE year_founded = (SELECT year_founded FROM team WHERE full_name = 'Golden State Warriors'); ('Boston Celtics',) | ('Golden State Warriors',) | ('New York Knicks',) True +What's the total number of blocks the Milwaukee Bucks recorded at home in the 2019 season compared to the 2020 season? SELECT (SELECT SUM(blk_home) FROM game WHERE team_name_home = 'Milwaukee Bucks' AND season_id = '22019') AS blocks_2019, (SELECT SUM(blk_home) FROM game WHERE team_name_home = 'Milwaukee Bucks' AND season_id = '22020') AS blocks_2020, (SELECT SUM(blk_home) FROM game WHERE team_name_home = 'Milwaukee Bucks' AND season_id = '22020') - (SELECT SUM(blk_home) FROM game WHERE team_name_home = 'Milwaukee Bucks' AND season_id = '22019') AS blocks_difference FROM game LIMIT 1; 207.0 | 171.0 | -36.0 True +How many matches has 'Carlos Alcaraz' won against left-handed players? SELECT count(*) FROM matches WHERE winner_name = 'Carlos Alcaraz' AND loser_hand = 'L'; 31 False +How many matches have incomplete scores? SELECT COUNT(*) FROM matches WHERE score IS NULL; 1338 False +What is the lowest points scored by the Detroit Pistons at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Detroit Pistons'; 64.0 True +What is the average age of winners at Wimbledon? SELECT AVG(winner_age) AS avg_winner_age FROM matches WHERE tourney_name = 'Wimbledon'; 26.7238638689215 False +How many matches did Matteo Berrettini win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Matteo Berrettini'; False +Which tournament had the most matches played in 2022? SELECT tourney_name FROM matches WHERE tourney_date BETWEEN 20220000 AND 20221231 GROUP BY tourney_name ORDER BY COUNT(*) DESC LIMIT 1; M15 Monastir False +Show all top 5 ranked players. SELECT DISTINCT player FROM rankings WHERE rank <= 5; False +How many home games did the Indiana Pacers Lakers play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Indiana Pacers' AND season_id = '22018'; 41 True +How many distinct players won at least once in 2020? SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_date BETWEEN 20200101 AND 20201231; False +What is the highest combined tov in any game involving the Los Angeles Lakers? SELECT MAX(tov_home + tov_away) FROM game WHERE team_name_home = 'Los Angeles Lakers' OR team_name_away = 'Los Angeles Lakers'; 66 True +What is the highest points scored by the Dallas Mavericks away? SELECT MAX(pts_away) as max_points FROM game WHERE team_name_away = 'Dallas Mavericks'; 156 True +Show latest rankings for player ID 104925 SELECT ranking_date, rank, Points FROM rankings WHERE player = 104925 ORDER BY ranking_date DESC LIMIT 1; 20240527|1|9960.0 False +What is the name of the oldest match winner in the database who is from the USA? SELECT winner_name FROM matches WHERE winner_ioc = 'USA' ORDER BY winner_age DESC LIMIT 1; Tom Brown False +List all player names. SELECT name FROM players; False +List all matches shorter than 30 minutes. SELECT tourney_name, minutes FROM matches WHERE minutes < 30; False +What is the highest points scored by the Brooklyn Nets away? SELECT MAX(pts_away) as max_points FROM game WHERE team_name_away = 'Brooklyn Nets'; 150 True +What was the average margin of victory for the Philadelphia 76ers in home wins during the 2021 season? SELECT AVG(plus_minus_home) AS avg_victory_margin FROM game WHERE team_name_home = 'Philadelphia 76ers' AND wl_home = 'W' AND season_id = '22021'; 12.20833333 True +How many matches did players under 18 win in 2020? SELECT COUNT(*) FROM matches WHERE winner_age < 18 AND tourney_date BETWEEN 20200000 AND 20201231; 210 False +What is the date of birth of 'Roger Federer'? SELECT dob FROM players WHERE name = 'Roger Federer'; 19810808.0 False +What is the average duration of matches at the US Open? SELECT AVG(minutes) FROM matches WHERE tourney_name = 'US Open'; 135.031421838178 False +What is the total second chance points by the Washington Wizards at home in games they lost? SELECT SUM(os.pts_2nd_chance_home) as total_2nd_chance FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Washington Wizards' AND g.wl_home = 'L'; 5562 True +How many matches at the US Open lasted less than 90 minutes? SELECT COUNT(*) FROM matches WHERE tourney_name = 'US Open' AND minutes < 90; 649 False +What is the total assists by the Orlando Magic at home? SELECT SUM(ast_home) as total_assists FROM game WHERE team_name_home = 'Orlando Magic'; 31603 True +List all matches where Andy Murray lost. SELECT tourney_name FROM matches WHERE loser_name = 'Andy Murray'; False +What is the largest lead the Toronto Raptors had away? SELECT MAX(largest_lead_away) as max_lead FROM other_stats WHERE team_abbreviation_away = 'TOR'; 49.0 True +How many points did the Cleveland Cavaliers score in their lowest-scoring game at home? SELECT MIN(pts_home) FROM game WHERE team_abbreviation_home = 'CLE'; 62 True +What is the total points scored by the New Orleans Pelicans at home when they had more than 5 times tied? SELECT SUM(g.pts_home) as total_points FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_home = 'New Orleans Pelicans' AND os.times_tied > 5; 17514 True +When did the Phoenix Suns and San Antonio Spurs have their closest game in terms of final score difference? SELECT g.game_date, ABS(g.pts_home - g.pts_away) AS score_difference FROM game g WHERE (g.team_name_home = 'Phoenix Suns' AND g.team_name_away = 'San Antonio Spurs') OR (g.team_name_home = 'San Antonio Spurs' AND g.team_name_away = 'Phoenix Suns') ORDER BY score_difference ASC LIMIT 1; 1982-11-07 00:00:00 | 1.0 True +Count the number of matches played in 2023 by Rafael Nadal. SELECT COUNT(*) FROM matches WHERE (winner_name = 'Rafael Nadal' OR loser_name = 'Rafael Nadal') AND tourney_date BETWEEN 20230101 AND 20231231; 4 False +Show all matches won by players from France in 2022. SELECT tourney_name FROM matches WHERE winner_ioc = 'FRA' AND tourney_date BETWEEN 20220101 AND 20221231; False +What is the average number of reb in home games by the Orlando Magic? SELECT AVG(reb_home) FROM game WHERE team_name_home = 'Miami Heat'; 42.2 True +What is the total second chance points by the Denver Nuggets away in games they lost? SELECT SUM(os.pts_2nd_chance_away) as total_2nd_chance FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Denver Nuggets' AND g.wl_away = 'L'; 8510 True +Find all games where the Los Angeles Clippers played against teams founded before 1970. SELECT g.game_id, g.game_date, g.team_name_home, g.team_name_away FROM game g JOIN team t ON g.team_id_away = t.id WHERE g.team_name_home = 'LA Clippers' AND t.year_founded < 1970 UNION SELECT g.game_id, g.game_date, g.team_name_home, g.team_name_away FROM game g JOIN team t ON g.team_id_home = t.id WHERE g.team_name_away = 'LA Clippers' AND t.year_founded < 1970 LIMIT 1; 0011500091 | 2015-10-20 00:00:00 | LA Clippers | Golden State Warriors True +Who has defeated Alexander Zverev the most at the Australian Open? SELECT winner_name, COUNT(*) AS wins FROM matches WHERE loser_name = 'Alexander Zverev' AND tourney_name = 'Australian Open' GROUP BY winner_name ORDER BY wins DESC LIMIT 1; Rafael Nadal|1 False +What is the average number of pts in home games by the Utah Jazz? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'Utah Jazz'; 105.4084656 True +Which player had the highest number of different doubles partners? SELECT name, COUNT(DISTINCT partner) as partners FROM (SELECT winner1_name as name, winner2_name as partner FROM matches WHERE winner1_id IS NOT NULL UNION ALL SELECT winner2_name as name, winner1_name as partner FROM matches WHERE winner2_id IS NOT NULL) GROUP BY name ORDER BY partners DESC LIMIT 1; False +List all matches where Gilles Simon lost. SELECT tourney_name FROM matches WHERE loser_name = 'Gilles Simon'; False +How many matches did Carlos Alcaraz lose at the US Open? SELECT COUNT(*) FROM matches WHERE loser_name = 'Carlos Alcaraz' AND tourney_name = 'US Open'; 0 False +How many tie-breaks (7-6 or 6-7) occurred in the 2018 US Open final? SELECT (LENGTH(score) - LENGTH(REPLACE(score, '7-6', ''))) / 3 + (LENGTH(score) - LENGTH(REPLACE(score, '6-7', ''))) / 3 FROM matches WHERE tourney_name = 'US Open' AND tourney_date LIKE '2018%' AND round = 'F'; 1 False +What is the average points scored by the Milwaukee Bucks at home? SELECT AVG(pts_home) as avg_points FROM game WHERE team_name_home = 'Milwaukee Bucks'; 106.2445628 True +Show all tournaments with exactly 10 matches. SELECT tourney_name FROM matches GROUP BY tourney_name HAVING COUNT(*) = 10; False +What is the average age of winners in matches that lasted less than 90 minutes? SELECT avg(winner_age) FROM matches WHERE minutes < 90; 25.7141327552797 False +How many matches did Daniil Medvedev win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Daniil Medvedev'; False +List all matches where Juan Martin del Potro lost. SELECT tourney_name FROM matches WHERE loser_name = 'Juan Martin del Potro'; False +What was the highest number of lead changes in a game where the Orlando Magic won and committed more fouls than their opponent? SELECT MAX(o.lead_changes) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE (g.team_abbreviation_home = 'ORL' AND g.wl_home = 'W' AND g.pf_home > g.pf_away) OR (g.team_abbreviation_away = 'ORL' AND g.wl_away = 'W' AND g.pf_away > g.pf_home) AND g.season_id = '22007'; 27 True +What is the name of the oldest player to win a match in 2023? SELECT winner_name FROM matches WHERE tourney_date >= 20230000 AND tourney_date < 20240000 ORDER BY winner_age DESC LIMIT 1; Tom Brown False +What is the total points in the paint by the Sacramento Kings at home? SELECT SUM(pts_paint_home) as total_pts_paint FROM other_stats WHERE team_abbreviation_home = 'SAC'; 38278.0 True +Find the average age of losers in all matches SELECT AVG(loser_age) FROM matches; 23.6776674381365 False +How many points did the away team score in a game where both teams made the same number of three-pointers? SELECT pts_away FROM game WHERE fg3m_home = fg3m_away ORDER BY game_date DESC LIMIT 1; 101.0 True +What is the highest combined tov in any game involving the Boston Celtics? SELECT MAX(tov_home + tov_away) FROM game WHERE team_name_home = 'Boston Celtics' OR team_name_away = 'Boston Celtics'; 66 True +How many fast break points did the New Orleans Pelicans score at home? SELECT SUM(pts_fb_home) as total_fb_points FROM other_stats WHERE team_abbreviation_home = 'NOP'; 5720 True +How many steals did the Toronto Raptors make away in 1996? SELECT SUM(stl_away) as total_steals FROM game WHERE team_name_away = 'Toronto Raptors' AND season_id = '21996'; 384 True +What is the best rank ever achieved by Roger Federer? SELECT MIN(rank) FROM rankings r JOIN players p ON r.player = p.player_id WHERE p.name = 'Roger Federer'; 1 False +List matches won by right-handed players in 2022. SELECT tourney_name FROM matches WHERE winner_hand = 'R' AND tourney_date BETWEEN 20220101 AND 20221231; False +How many matches did Rafael Nadal win at Wimbledon after 2015? SELECT COUNT(*) FROM matches WHERE winner_name = 'Rafael Nadal' AND tourney_name = 'Wimbledon' AND tourney_date >= 20150101; 19 False +What is the most second-chance points the Indiana Pacers have scored in a home game? SELECT MAX(pts_2nd_chance_home) FROM other_stats WHERE team_abbreviation_home = 'IND'; 32 True +What is the total fast break points by the Indiana Pacers at home in games they won? SELECT SUM(os.pts_fb_home) as total_fb_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Indiana Pacers' AND g.wl_home = 'W'; 7906 True +In how many away games did the Indiana Pacers score more fast-break points than their opponent? SELECT COUNT(*) FROM other_stats WHERE team_abbreviation_away = 'IND' AND pts_fb_away > pts_fb_home; 454 True +Show all winners whose opponent was ranked in the top 10 at the match date. SELECT matches.winner_name FROM matches JOIN rankings ON matches.tourney_date=rankings.ranking_date AND matches.loser_id=rankings.player WHERE rank <= 10; False +How many left-handed players are taller than 185 cm? SELECT COUNT(*) FROM players WHERE hand = 'L' AND height > 185; False +What is the average height of all Wimbledon winners? SELECT AVG(winner_ht) FROM matches WHERE tourney_name = 'Wimbledon'; 185.318105616094 False +Show all matches won by Gaston Gaudio. SELECT tourney_name FROM matches WHERE winner_name = 'Gaston Gaudio'; False +How many times have the Memphis Grizzlies scored more than 120 points in a game but still lost? SELECT COUNT(*) AS high_scoring_losses FROM ( SELECT game_id FROM game WHERE (team_name_home = 'Memphis Grizzlies' AND pts_home > 120 AND wl_home = 'L') OR (team_name_away = 'Memphis Grizzlies' AND pts_away > 120 AND wl_away = 'L') ) AS games 25 True +How many matches did Arthur Ashe win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Arthur Ashe'; False +What is the largest lead the Boston Celtics had at home? SELECT MAX(largest_lead_home) as max_lead FROM other_stats WHERE team_abbreviation_home = 'BOS'; 60 True +Which team had the highest average combined offensive and defensive rebounds in home games during the 2017 season? SELECT team_name_home, AVG(oreb_home + dreb_home) AS avg_total_rebounds FROM game WHERE season_id = '22017' GROUP BY team_name_home ORDER BY avg_total_rebounds DESC LIMIT 1; Philadelphia 76ers | 48.9512195121951 True +How many total rebounds did the Boston Celtics grab in away games during the 1995 season? SELECT SUM(reb_away) FROM game WHERE team_abbreviation_away = 'BOS' AND season_id = '21995'; 1672 True +What is the score of the longest match? SELECT score FROM matches ORDER BY minutes DESC LIMIT 1; False +How many times have the Dallas Mavericks won an away game by at least 25 points? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'DAL' AND (pts_away - pts_home) >= 25 AND wl_away = 'W'; 35 True +Find the number of times the New Orleans Pelicans played a game on January 10, 2015. SELECT COUNT(*) FROM game WHERE (team_abbreviation_home = 'NOP' OR team_abbreviation_away = 'NOP') AND DATE(game_date) = '2015-01-10'; 0 True +How many times did the Houston Rockets score over 120 points at home? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'HOU' AND pts_home > 120; 298 True +How many games did the Washington Wizards play in the 2010 season where both teams scored more than 100 points? SELECT COUNT(*) AS high_scoring_games FROM game WHERE (team_name_home = 'Washington Wizards' OR team_name_away = 'Washington Wizards') AND pts_home > 100 AND pts_away > 100 AND season_id = '22010'; 23 True +How many right-handed players lost more than 10 matches? SELECT COUNT(DISTINCT loser_name) FROM matches WHERE loser_hand = 'R' GROUP BY loser_name HAVING COUNT(*) > 10; False +What is the most points the Brooklyn Nets have scored in a single home game? SELECT pts_home FROM game WHERE team_name_home = 'Brooklyn Nets' ORDER BY pts_home DESC LIMIT 1; 145 True +How many times has Alexander Zverev been ranked inside the top 10? SELECT COUNT(*) FROM rankings r JOIN players p ON r.player = p.player_id WHERE p.name = 'Alexander Zverev' AND r.rank <= 10; 261 False +What was the largest lead the Golden State Warriors had in any game in the 2018 season? SELECT MAX(other_stats.largest_lead_home) FROM other_stats JOIN game ON other_stats.game_id = game.game_id WHERE game.team_abbreviation_home = 'GSW' AND game.season_id = '22018'; 44 True +Show all right-handed players from Spain. SELECT name FROM players WHERE hand = 'R' AND ioc = 'ESP'; False +How many matches did players from the USA win? SELECT COUNT(*) FROM matches WHERE winner_ioc = 'USA'; 99510 False +How many matches has each player lost? Show the top 10. SELECT loser_name, count(*) FROM matches GROUP BY loser_name ORDER BY count(*) DESC LIMIT 10; Feliciano Lopez|627 Paolo Lorenzi|622 Andreas Seppi|577 Teymuraz Gabashvili|575 Andrea Arnaboldi|561 Fernando Verdasco|550 Ruben Ramirez Hidalgo|543 Sergiy Stakhovsky|534 Lukas Rosol|530 False +How many away games did the Golden State Warriors play in the 2007 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Golden State Warriors' AND season_id = '22007'; 41.0 True +List matches won by left-handed players in 2023. SELECT tourney_name FROM matches WHERE winner_hand = 'L' AND tourney_date BETWEEN 20230101 AND 20231231; False +What was the most common final score in NBA games during the 2000s and how many times did it happen? SELECT pts_home || '-' || pts_away AS score, COUNT(*) AS frequency FROM game WHERE CAST(SUBSTR(season_id, 2) AS INTEGER) BETWEEN 2000 AND 2009 GROUP BY score ORDER BY frequency DESC LIMIT 1 97.0-92.0 | 29 True +What was the highest combined total of second chance points in any game involving the Charlotte Hornets during the 2017 season? SELECT MAX(o.pts_2nd_chance_home + o.pts_2nd_chance_away) AS max_combined_second_chance FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE (g.team_name_home = 'Charlotte Hornets' OR g.team_name_away = 'Charlotte Hornets') AND g.season_id = '22017'; 40 True +How many finals has Roger Federer lost? SELECT COUNT(*) FROM matches WHERE loser_name = 'Roger Federer' AND round = 'F'; 55 False +How many games did the Minnesota Timberwolves lose at home with more than 15 fast break points in 1996? SELECT COUNT(*) as losses FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Minnesota Timberwolves' AND g.wl_home = 'L' AND os.pts_fb_home > 15 AND g.season_id = '21996'; 1 True +What is the highest number of offensive rebounds recorded by the Memphis Grizzlies in a single game? SELECT game_id, game_date, team_name_home, oreb_home AS offensive_rebounds FROM game WHERE team_name_home = 'Memphis Grizzlies' UNION ALL SELECT game_id, game_date, team_name_away, oreb_away AS offensive_rebounds FROM game WHERE team_name_away = 'Memphis Grizzlies' ORDER BY offensive_rebounds DESC LIMIT 1; 0020300281 | 2003-12-07 00:00:00 | Memphis Grizzlies | 28.0 True +How many matches did Diego Schwartzman lose? SELECT COUNT(*) FROM matches WHERE loser_name = 'Diego Schwartzman'; False +What is the most points the Philadelphia 76ers have scored at home? SELECT MAX(pts_home) FROM game WHERE team_name_home = 'Philadelphia 76ers'; 159 True +Which home team had the most blocks in a game where the away team was the Utah Jazz? SELECT team_name_home FROM game WHERE team_name_away = 'Utah Jazz' ORDER BY blk_home DESC LIMIT 1; New Orleans Pelicans True +Show matches where both players were left-handed. SELECT tourney_name FROM matches WHERE winner_hand = 'L' AND loser_hand = 'L'; False +Calculate the average number of matches per tournament. SELECT AVG(match_count) FROM ( SELECT tourney_id, COUNT(*) AS match_count FROM matches GROUP BY tourney_id ); 30.672535439187 False +What is the total number of wins John McEnroe has at Wimbledon? SELECT COUNT(*) FROM matches WHERE winner_name = 'John McEnroe' AND tourney_name = 'Wimbledon'; 59 False +How many players are ranked number 1? SELECT COUNT(DISTINCT player) FROM rankings WHERE rank = 1; False +What is the total points in the paint by the Dallas Mavericks away when they won? SELECT SUM(os.pts_paint_away) as total_pts_paint FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Dallas Mavericks' AND g.wl_away = 'W'; 18640 True +How many away games did the New Orleans Pelicans play in the 2022 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'New Orleans Pelicans' AND season_id = '22022'; 41 True +List the names and heights of all players taller than 205 cm. SELECT name, height FROM players WHERE height > 205; Greg Neuhart|206.0 Ivo Karlovic|208.0 John Isner|206.0 Reilly Opelka|211.0 False +Find the team that had the most assists in a single game during the 2017 season. SELECT team, assists FROM ( SELECT team_abbreviation_home AS team, ast_home AS assists FROM game WHERE season_id = '22017' UNION ALL SELECT team_abbreviation_away AS team, ast_away AS assists FROM game WHERE season_id = '22017' ) AS assist_data ORDER BY assists DESC LIMIT 1; GSW|46.0 True +Which teams are located in the state of California? SELECT full_name FROM team WHERE state = 'California'; Golden State Warriors, Los Angeles Clippers, Los Angeles Lakers, Sacramento Kings True +How many players are there from each country? SELECT ioc, COUNT(*) FROM players GROUP BY ioc; False +Show all matches won by John McEnroe. SELECT tourney_name FROM matches WHERE winner_name = 'John McEnroe'; False +What is the most total rebounds the Miami Heat have recorded in a game? SELECT MAX(reb_home) AS max_rebounds FROM game WHERE team_name_home = 'Miami Heat'; 69 True +Which matches lasted more than 180 minutes? SELECT tourney_id, tourney_name, minutes FROM matches WHERE minutes > 180; False +In which season did the Houston Rockets have the highest average pts at home? SELECT season_id, AVG(pts_home) as avg_stat FROM game WHERE team_name_home = 'Houston Rockets' GROUP BY season_id ORDER BY avg_stat DESC LIMIT 1; 12016 | 127.25 True +How many games did the Los Angeles Lakers win away with more than 20 points in the paint in 1996? SELECT COUNT(*) as wins FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Los Angeles Lakers' AND g.wl_away = 'W' AND os.pts_paint_away > 20 AND g.season_id = '21996'; 21.0 True +How many games in the 2018 season had a total combined score of 250 points or more? SELECT COUNT(*) FROM game WHERE season_id = '22018' AND (pts_home + pts_away) >= 250; 114 True +What is the win percentage for the Milwaukee Bucks in home games where they made fewer three-pointers than their opponent? SELECT COUNT(CASE WHEN wl_home = 'W' THEN 1 END) * 100.0 / COUNT(*) AS win_percentage FROM game WHERE team_name_home = 'Milwaukee Bucks' AND fg3m_home < fg3m_away; 51.80878553 True +Which game had the most combined points in the 1987 season? SELECT game_id, game_date, team_name_home, team_name_away, (pts_home + pts_away) AS total_points FROM game WHERE season_id = '21987' ORDER BY total_points DESC LIMIT 1; 0028700084|1987-11-20 00:00:00|Denver Nuggets|San Antonio Spurs|298.0 True +What is the lowest points scored by the Portland Trail Blazers away? SELECT MIN(pts_away) as min_points FROM game WHERE team_name_away = 'Portland Trail Blazers'; 58 True +What is the average number of points in the paint allowed by the Golden State Warriors when playing at home in the 2015 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'GSW' AND g.season_id = '22015' AND o.lead_changes > 15; 42.66666667 True +Which season had the most total turnovers across all games? SELECT season_id FROM other_stats JOIN game USING(game_id) GROUP BY season_id ORDER BY SUM(total_turnovers_home + total_turnovers_away) DESC LIMIT 1; 21999 True +List all matches where a left-handed player lost. SELECT tourney_name, loser_name FROM matches WHERE loser_hand = 'L'; False +What is the most common match duration (in minutes)? SELECT minutes, COUNT(*) AS freq FROM matches GROUP BY minutes ORDER BY freq DESC LIMIT 1; |748394 False +What is the highest combined pts in any game involving the San Antonio Spurs? SELECT MAX(pts_home + pts_away) FROM game WHERE team_name_home = 'San Antonio Spurs' OR team_name_away = 'San Antonio Spurs'; 337 True +Which teams based in Northern states were founded after 1975? SELECT full_name FROM team WHERE state IN ('Illinois', 'Ohio', 'Wisconsin', 'Michigan', 'Indiana', 'Minnesota') AND year_founded > 1975; Minnesota Timberwolves, Indiana Pacers True +How many singles matches are there? SELECT COUNT(*) FROM matches WHERE winner1_id IS NULL; False +How many matches did Kei Nishikori win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Kei Nishikori'; False +What is the highest number of points any player has achieved? SELECT MAX(Points) FROM rankings; 16950.0 False +Find the total number of rebounds in all games in the 2018 season. SELECT SUM(reb_home + reb_away) FROM game WHERE season_id = '22018'; 111107.0 True +What was the average margin of victory for the New York Knicks in home games where they scored more than 100 points and allowed fewer than 90 points? SELECT AVG(pts_home - pts_away) AS avg_victory_margin FROM game WHERE team_name_home = 'New York Knicks' AND pts_home > 100 AND pts_away < 90; 24.33793103 True +List the countries with more than 2000 players. SELECT ioc, count(*) FROM players GROUP BY ioc HAVING count(*) > 50; AUS|3266 BRA|2092 ESP|3026 FRA|2582 GBR|3200 GER|2675 ITA|2656 USA|13102 False +What is the total second chance points by the San Antonio Spurs at home in games they lost? SELECT SUM(os.pts_2nd_chance_home) as total_2nd_chance FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'San Antonio Spurs' AND g.wl_home = 'L'; 3507 True +How many times have the Indiana Pacers scored exactly 100 points in an away game? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'IND' AND pts_away = 100; 69 True +What is the win percentage for the Brooklyn Nets in home games where they made fewer three-pointers than their opponent? SELECT COUNT(CASE WHEN wl_home = 'W' THEN 1 END) * 100.0 / COUNT(*) AS win_percentage FROM game WHERE team_name_home = 'Brooklyn Nets' AND fg3m_home < fg3m_away; 34.83146067 True +What was the largest lead the New York Knicks had in a game during the 2018 season? SELECT MAX(other_stats.largest_lead_home) FROM other_stats JOIN game ON other_stats.game_id = game.game_id WHERE game.team_name_home = 'New York Knicks' AND game.season_id = '22018'; 34 True +What is the average number of assists by the Atlanta Hawks in home wins? SELECT AVG(ast_home) FROM game WHERE team_abbreviation_home = 'ATL' AND wl_home = 'W'; 25.0786309 True +Display matches where the score included a tiebreak. SELECT * FROM matches WHERE score LIKE '%7-6%'; False +List the three youngest players. SELECT name, dob FROM players ORDER BY dob DESC LIMIT 3; Vito Antonio|20080113.0 Linus|20071210.0 Jerry Christopher|20071203.0 False +How many steals did the Los Angeles Lakers have away in 1996? SELECT SUM(stl_away) as total_steals FROM game WHERE team_name_away = 'Los Angeles Lakers' AND season_id = '21996'; 366 True +What is the total second chance points by the Philadelphia 76ers away in games they won? SELECT SUM(os.pts_2nd_chance_away) as total_2nd_chance FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Philadelphia 76ers' AND g.wl_away = 'W'; 5252 True +What is the average number of pts in home games by the New Orleans Pelicans? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'New Orleans Pelicans'; 110.0351288 True +How many games did the Indiana Pacers win at home with more than 15 fast break points in 1996? SELECT COUNT(*) as wins FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Indiana Pacers' AND g.wl_home = 'W' AND os.pts_fb_home > 15 AND g.season_id = '21996'; 7.0 True +What was Rafael Nadal’s average ranking? SELECT AVG(rank) FROM rankings r JOIN players p ON r.player = p.player_id WHERE p.name = 'Rafael Nadal'; 63.1526364477336 False +What is the highest combined tov in any game involving the Milwaukee Bucks? SELECT MAX(tov_home + tov_away) FROM game WHERE team_name_home = 'Milwaukee Bucks' OR team_name_away = 'Milwaukee Bucks'; 60.0 True +What was the total number of assists made by the Toronto Raptors in games where they scored more than 110 points at home? SELECT SUM(ast_home) AS total_assists FROM game WHERE team_name_home = 'Toronto Raptors' AND pts_home > 110; 8125 True +Who has the most losses at the US Open? SELECT loser_name, COUNT(*) AS losses FROM matches WHERE tourney_name = 'US Open' GROUP BY loser_name ORDER BY losses DESC LIMIT 1; Sidney Burr Wood Jr|27 False +How many matches has Roger Federer won? SELECT COUNT(*) FROM matches WHERE winner_name = 'Roger Federer'; 1305 False +What was the average margin of victory for the Cleveland Cavaliers during the 2013 NBA season? SELECT AVG(victory_margin) AS avg_victory_margin FROM ( SELECT plus_minus_home AS victory_margin FROM game WHERE team_name_home = 'Cleveland Cavaliers' AND wl_home = 'W' AND season_id = '22013' UNION ALL SELECT plus_minus_away AS victory_margin FROM game WHERE team_name_away = 'Cleveland Cavaliers' AND wl_away = 'W' AND season_id = '22013' ) AS victories 9.848484848 True +What is the lowest points scored by the Houston Rockets at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Houston Rockets'; 66 True +Show tournaments where players from more than 70 countries have won SELECT tourney_name, COUNT(DISTINCT winner_ioc) as country_count FROM matches GROUP BY tourney_name HAVING COUNT(DISTINCT winner_ioc) > 70; Australian Open|85 M15 Monastir|79 Miami Masters|71 Roland Garros|85 US Open|90 Washington|74 Wimbledon|91 False +How many times have the Brooklyn Nets won a home game while scoring at least 120 points? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'BKN' AND pts_home >= 120 AND wl_home = 'W'; 67 True +How many players in the 'players' table have no matches recorded? SELECT count(*) FROM players WHERE player_id NOT IN (SELECT winner_id FROM matches UNION SELECT loser_id FROM matches); 0 False +How many right-handed players are there? SELECT COUNT(*) FROM players WHERE hand = 'R'; 15666 False +Who are the 10 tallest players? Show their name and height. SELECT name, height FROM players ORDER BY height DESC LIMIT 10; Reilly Opelka|211.0 Ivo Karlovic|208.0 Greg Neuhart|206.0 John Isner|206.0 Milan Srejber|203.0 Dick Norman|203.0 Marcelo Melo|203.0 Kevin Anderson|203.0 Kenny De Schepper|203.0 Alexander Bury|203.0 False +What is the most turnovers the Denver Nuggets have committed in a home game? SELECT MAX(total_turnovers_home) FROM other_stats WHERE team_abbreviation_home = 'DEN'; 33 True +What is the average number of assists by the New York Knicks in home wins? SELECT AVG(ast_home) FROM game WHERE team_abbreviation_home = 'NYK' AND wl_home = 'W'; 24.16334661 True +How many points did the away team score in games where the home team had more rebounds? SELECT SUM(pts_away) FROM game WHERE reb_home > reb_away; 2702764.0 True +What is the average number of minutes for matches in the Roland Garros tournament? SELECT avg(minutes) FROM matches WHERE tourney_name = 'Roland Garros'; 138.685630004214 False +Which player had the most consecutive match wins in 2021? SELECT winner_name, MAX(streak) FROM (SELECT winner_name, COUNT(*) as streak FROM matches WHERE tourney_date BETWEEN 20210101 AND 20211231 GROUP BY winner_name, tourney_date ORDER BY tourney_date) GROUP BY winner_name ORDER BY streak DESC LIMIT 1; False +In the 2006 season, how many games did the Chicago Bulls lose at home despite having fewer turnovers than their opponent? SELECT COUNT(*) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'CHI' AND g.wl_home = 'L' AND o.total_turnovers_home < o.total_turnovers_away AND g.season_id = '22006'; 3 True +List the names and countries of all players who have a rank in the top 1. SELECT DISTINCT T1.name, T1.ioc FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player WHERE T2.rank <= 1; Andre Agassi|USA Pete Sampras|USA Marat Safin|RUS Gustavo Kuerten|BRA Lleyton Hewitt|AUS Juan Carlos Ferrero|ESP Andy Roddick|USA Roger Federer|SUI Rafael Nadal|ESP Bjorn Borg|SWE John McEnroe|USA Ivan Lendl|USA Mats Wilander|SWE Jimmy Connors|USA Novak Djokovic|SRB Daniil Medvedev|RUS Carlos Alcaraz|ESP Stefan Edberg|SWE Boris Becker|GER Jim Courier|USA Thomas Muster|AUT Marcelo Rios|CHI Carlos Moya|ESP Yevgeny Kafelnikov|RUS Patrick Rafter|AUS Andy Murray|GBR Ilie Nastase|ROU John Newcombe|AUS False +How many matches did Felix Auger-Aliassime win? SELECT COUNT(*) FROM matches WHERE winner_name = 'Felix Auger-Aliassime'; False +How many matches lasted exactly 100 minutes? SELECT COUNT(*) FROM matches WHERE minutes = 100; False +Which opponent has the Phoenix Suns lost to the most in away games? SELECT team_abbreviation_home, COUNT(*) AS losses FROM game WHERE team_abbreviation_away = 'PHX' AND wl_away = 'L' GROUP BY team_abbreviation_home ORDER BY losses DESC LIMIT 1; LAL | 112 True +What is the lowest points scored by the Phoenix Suns away? SELECT MIN(pts_away) as min_points FROM game WHERE team_name_away = 'Phoenix Suns'; 68.0 True +What was the highest number of assists recorded by the Indiana Pacers in a single game during the 2015 season? SELECT MAX(ast) AS max_assists FROM ( SELECT ast_home AS ast FROM game WHERE team_abbreviation_home = 'IND' AND season_id = '22015' UNION ALL SELECT ast_away AS ast FROM game WHERE team_abbreviation_away = 'IND' AND season_id = '22015' ); 34 True +How many matches had no duration recorded? SELECT COUNT(*) FROM matches WHERE minutes IS NULL; 748394 False +What is the highest number of three-pointers made by the Brooklyn Nets in a single game during the 2017 season? SELECT MAX(fg3m) AS max_three_pointers FROM ( SELECT fg3m_home AS fg3m FROM game WHERE team_abbreviation_home = 'BKN' AND season_id = '22017' UNION ALL SELECT fg3m_away AS fg3m FROM game WHERE team_abbreviation_away = 'BKN' AND season_id = '22017' ); 24 True +What is the average number of reb in away games by the Detroit Pistons? SELECT AVG(reb_away) FROM game WHERE team_name_away = 'Detroit Pistons'; 42.10948081264108 True +How many matches did Roger Federer and Rafael Nadal play against each other? SELECT COUNT(*) FROM matches WHERE (winner_name = 'Roger Federer' AND loser_name = 'Rafael Nadal') OR (winner_name = 'Rafael Nadal' AND loser_name = 'Roger Federer'); 41 False +What is the total free throws made by the Indiana Pacers at home? SELECT SUM(ftm_home) as total_ftm FROM game WHERE team_name_home = 'Indiana Pacers'; 39545.0 True +How many total games did the Indiana Pacers play in the 2015 season? SELECT COUNT(*) FROM game WHERE (team_abbreviation_home = 'IND' OR team_abbreviation_away = 'IND') AND season_id = '22015'; 82 True +How many Dallas Mavericks home games had over 15 offensive rebounds and 10+ steals? SELECT game_date, oreb_home, stl_home FROM game WHERE team_name_home = 'Dallas Mavericks' AND oreb_home > 15 AND stl_home >= 10; ('1985-04-18 00:00:00', 24.0, 11.0) | ('1985-11-09 00:00:00', 22.0, 17.0) | ('1986-01-04 00:00:00', 16.0, 15.0) | ('1986-01-31 00:00:00', 16.0, 10.0) | ('1986-11-04 00:00:00', 18.0, 11.0) | ('1986-11-15 00:00:00', 23.0, 17.0) | ('1987-01-21 00:00:00', 18.0, 12.0) | ('1987-02-14 00:00:00', 16.0, 11.0) | ('1987-03-11 00:00:00', 20.0, 12.0) | ('1987-03-31 00:00:00', 20.0, 12.0) | ('1987-04-03 00:00:00', 23.0, 14.0) | ('1987-04-18 00:00:00', 19.0, 15.0) | ('1987-11-18 00:00:00', 22.0, 10.0) | ('1987-12-05 00:00:00', 18.0, 12.0) | ('1987-12-09 00:00:00', 19.0, 13.0) | ('1987-12-29 00:00:00', 16.0, 10.0) | ('1988-01-22 00:00:00', 17.0, 11.0) | ('1988-02-19 00:00:00', 18.0, 12.0) | ('1988-03-02 00:00:00', 28.0, 13.0) | ('1988-03-14 00:00:00', 26.0, 11.0) | ('1988-04-08 00:00:00', 23.0, 12.0) | ('1988-06-02 00:00:00', 18.0, 10.0) | ('1988-11-04 00:00:00', 19.0, 13.0) | ('1989-01-27 00:00:00', 18.0, 12.0) | ('1989-04-12 00:00:00', 20.0, 12.0) | ('1989-11-03 00:00:00', 16.0, 10.0) | ('1990-02-13 00:00:00', 16.0, 13.0) | ('1990-03-02 00:00:00', 17.0, 10.0) | ('1990-04-01 00:00:00', 24.0, 15.0) | ('1990-11-03 00:00:00', 18.0, 10.0) | ('1991-01-29 00:00:00', 17.0, 12.0) | ('1991-02-21 00:00:00', 22.0, 10.0) | ('1991-11-27 00:00:00', 20.0, 10.0) | ('1991-12-21 00:00:00', 21.0, 10.0) | ('1992-01-18 00:00:00', 24.0, 13.0) | ('1992-04-01 00:00:00', 20.0, 10.0) | ('1992-11-11 00:00:00', 19.0, 11.0) | ('1992-11-14 00:00:00', 18.0, 10.0) | ('1992-11-27 00:00:00', 17.0, 11.0) | ('1993-01-09 00:00:00', 17.0, 12.0) | ('1993-02-10 00:00:00', 19.0, 11.0) | ('1993-02-13 00:00:00', 16.0, 11.0) | ('1993-02-24 00:00:00', 23.0, 10.0) | ('1993-04-02 00:00:00', 23.0, 11.0) | ('1993-04-16 00:00:00', 17.0, 12.0) | ('1993-04-20 00:00:00', 22.0, 10.0) | ('1993-12-14 00:00:00', 23.0, 12.0) | ('1994-01-29 00:00:00', 18.0, 12.0) | ('1994-02-10 00:00:00', 21.0, 19.0) | ('1994-02-17 00:00:00', 23.0, 10.0) | ('1994-03-08 00:00:00', 17.0, 14.0) | ('1994-03-13 00:00:00', 30.0, 11.0) | ('1994-04-24 00:00:00', 17.0, 13.0) | ('1994-12-01 00:00:00', 25.0, 10.0) | ('1994-12-30 00:00:00', 24.0, 11.0) | ('1995-01-03 00:00:00', 28.0, 12.0) | ('1995-02-28 00:00:00', 21.0, 11.0) | ('1995-03-25 00:00:00', 17.0, 10.0) | ('1995-04-07 00:00:00', 28.0, 10.0) | ('1995-11-07 00:00:00', 21.0, 10.0) | ('1995-12-28 00:00:00', 37.0, 11.0) | ('1996-02-19 00:00:00', 16.0, 11.0) | ('1996-02-25 00:00:00', 20.0, 12.0) | ('1996-03-22 00:00:00', 30.0, 11.0) | ('1996-04-02 00:00:00', 23.0, 12.0) | ('1996-04-16 00:00:00', 24.0, 10.0) | ('1996-11-29 00:00:00', 17.0, 10.0) | ('1997-04-14 00:00:00', 23.0, 10.0) | ('1998-01-06 00:00:00', 17.0, 10.0) | ('1998-01-08 00:00:00', 17.0, 12.0) | ('1998-03-05 00:00:00', 19.0, 13.0) | ('1999-03-13 00:00:00', 16.0, 11.0) | ('2001-01-20 00:00:00', 23.0, 10.0) | ('2001-03-09 00:00:00', 18.0, 11.0) | ('2002-03-09 00:00:00', 16.0, 11.0) | ('2003-11-01 00:00:00', 16.0, 10.0) | ('2003-12-02 00:00:00', 22.0, 11.0) | ('2003-12-06 00:00:00', 21.0, 10.0) | ('2004-03-08 00:00:00', 24.0, 12.0) | ('2004-03-19 00:00:00', 16.0, 11.0) | ('2004-03-30 00:00:00', 17.0, 12.0) | ('2004-04-24 00:00:00', 23.0, 19.0) | ('2004-11-06 00:00:00', 16.0, 11.0) | ('2004-11-22 00:00:00', 16.0, 10.0) | ('2004-12-18 00:00:00', 16.0, 14.0) | ('2005-02-24 00:00:00', 23.0, 11.0) | ('2005-04-07 00:00:00', 16.0, 10.0) | ('2005-05-13 00:00:00', 24.0, 11.0) | ('2005-11-26 00:00:00', 17.0, 11.0) | ('2006-01-07 00:00:00', 19.0, 10.0) | ('2006-04-16 00:00:00', 18.0, 12.0) | ('2007-03-30 00:00:00', 16.0, 10.0) | ('2006-10-21 00:00:00', 17.0, 10.0) | ('2007-04-22 00:00:00', 19.0, 10.0) | ('2007-12-19 00:00:00', 19.0, 11.0) | ('2008-04-02 00:00:00', 17.0, 10.0) | ('2008-11-11 00:00:00', 20.0, 10.0) | ('2008-11-14 00:00:00', 16.0, 11.0) | ('2009-11-20 00:00:00', 17.0, 10.0) | ('2009-12-12 00:00:00', 20.0, 14.0) | ('2010-02-17 00:00:00', 16.0, 11.0) | ('2010-11-12 00:00:00', 16.0, 10.0) | ('2010-12-07 00:00:00', 16.0, 12.0) | ('2012-01-04 00:00:00', 19.0, 10.0) | ('2012-02-22 00:00:00', 21.0, 10.0) | ('2012-02-28 00:00:00', 17.0, 13.0) | ('2014-11-26 00:00:00', 20.0, 12.0) | ('2014-12-13 00:00:00', 17.0, 11.0) | ('2015-02-07 00:00:00', 20.0, 11.0) | ('2015-12-26 00:00:00', 16.0, 10.0) True +What was the combined steals total for the Houston Rockets and Oklahoma City Thunder in their highest scoring matchup? SELECT g.stl_home + g.stl_away AS total_steals, g.pts_home + g.pts_away AS total_points FROM game g WHERE (g.team_name_home = 'Houston Rockets' AND g.team_name_away = 'Oklahoma City Thunder') OR (g.team_name_home = 'Oklahoma City Thunder' AND g.team_name_away = 'Houston Rockets') ORDER BY total_points DESC LIMIT 1; 15.0 | 274.0 True +How many fast break points did the Minnesota Timberwolves score on the road in total during the 2002 season? SELECT SUM(pts_fb_away) FROM other_stats WHERE game_id IN ( SELECT game_id FROM game WHERE team_abbreviation_away = 'MIN' AND season_id = '22002' ); 408 True +How many five-set matches has Novak Djokovic played at Wimbledon? SELECT COUNT(*) FROM matches WHERE (winner_name = 'Novak Djokovic' OR loser_name = 'Novak Djokovic') AND tourney_name = 'Wimbledon' AND best_of = 5; 104 False +Show matches where winner's age is more than 34. SELECT tourney_id, winner_name FROM matches WHERE winner_age > 34; False +How many matches did Novak Djokovic and Rafael Nadal play against each other? SELECT COUNT(*) FROM matches WHERE (winner_name = 'Novak Djokovic' AND loser_name = 'Rafael Nadal') OR (winner_name = 'Rafael Nadal' AND loser_name = 'Novak Djokovic'); False +What is Alexander Zverev’s total number of wins at the US Open? SELECT COUNT(*) FROM matches WHERE winner_name = 'Alexander Zverev' AND tourney_name = 'US Open'; 11 False +Which player has the highest average minutes per match at Wimbledon? SELECT winner_name, AVG(minutes) AS avg_minutes FROM matches WHERE tourney_name = 'Wimbledon' GROUP BY winner_name ORDER BY avg_minutes DESC LIMIT 1; Pablo Andujar|302.0 False +List all matches where the loser had a higher average match time than the winner in 2021. SELECT m1.tourney_name, m1.winner_name, m1.loser_name FROM matches m1 JOIN (SELECT loser_name, AVG(minutes) as avg_time FROM matches WHERE tourney_date BETWEEN 20210101 AND 20211231 GROUP BY loser_name) l ON m1.loser_name=l.loser_name JOIN (SELECT winner_name, AVG(minutes) as avg_time FROM matches WHERE tourney_date BETWEEN 20210101 AND 20211231 GROUP BY winner_name) w ON m1.winner_name=w.winner_name WHERE l.avg_time > w.avg_time; False +What was the final score in the match where 'Rafael Nadal' was the winner? SELECT score FROM matches WHERE winner_name = 'Rafael Nadal'; False +What is the average rank of all players from 'SRB'? SELECT avg(T1.rank) FROM rankings AS T1 JOIN players AS T2 ON T1.player = T2.player_id WHERE T2.ioc = 'SRB'; 871.267699994322 False +How many times has Nick Kyrgios beaten Novak Djokovic? SELECT COUNT(*) FROM matches WHERE winner_name = 'Nick Kyrgios' AND loser_name = 'Novak Djokovic'; 2 False +What is the lowest ranking in the database? SELECT MAX(rank) FROM rankings; False +How many matches did Jannik Sinner lose? SELECT COUNT(*) FROM matches WHERE loser_name = 'Jannik Sinner'; False +How many times did the Denver Nuggets win an away game by 20 or more points in the 1983 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'DEN' AND season_id = '21983' AND wl_away = 'W' AND (pts_away - pts_home) >= 20; 1 True +Show all matches lost by Philipp Petzschner. SELECT tourney_name FROM matches WHERE loser_name = 'Philipp Petzschner'; False +Show me matches where the winner was under 15 years old SELECT tourney_name, winner_name, winner_age FROM matches WHERE winner_age < 15; Davis Cup G2 R2: EGY vs DEN|Holger Rune|14.9 Fergana CH|Aziz Dadabaev|14.7 Fergana CH|Olimjon Nabiev|14.9 Iran F2|Nicolas Merzetti|14.3 Guam F1|Kody Pearson|14.8 Hilton Head CH|Ali Madani|14.5 Hilton Head CH|Ali Madani|14.5 Spain 8 Masters 3|Feliciano Lopez|14.9 Brisbane|David Carter|14.5 Pakistan 1 1|Cheong Eui Kim|14.3 Pakistan 1 2|Cheong Eui Kim|14.3 Pakistan 1 4|Cheong Eui Kim|14.3 Pakistan 1 4|Cheong Eui Kim|14.3 Pakistan 1 4|Cheong Eui Kim|14.3 Croatia 2 Masters 1|Roko Karanusic|14.6 Croatia 2 Masters 4|Roko Karanusic|14.6 Israel 2 Masters 4|Mosche Levy|14.6 Pakistan F1|Shahzeb Niazi|14.7 Davis Cup G2 PO: JOR vs SIN|Laith Azzouni|14.3 Itu-Sao Paulo CH|Marcelo Saliola|14.3 Brazil F9|Nelio Mattos|14.0 Brazil F13|Nelio Mattos|14.1 USA F21|Stefan Kozlov|14.4 USA F21|Stefan Kozlov|14.4 France F14|Rayane Roumane|14.8 France F14|Rayane Roumane|14.8 France F14|Rayane Roumane|14.8 France F15|Rayane Roumane|14.8 Switzerland F4|Rayane Roumane|14.9 France F17|Rayane Roumane|14.9 Spain F28|Nicolas Alvarez Varona|14.2 Croatia F2|Mario Ancic|14.8 Croatia F2|Mario Ancic|14.8 M15 Villena|Darwin Blanch|14.3 Latvia F1|Ivan Puchkarov|14.0 Russia F2|Ivan Puchkarov|14.0 Ukraine F2|Ivan Puchkarov|14.1 Ukraine F2|Ivan Puchkarov|14.1 Spain 6 Masters 1|Alberto Martin|14.9 Spain 6 Masters 2|Alberto Martin|14.9 Spain 6 Masters 2|Alberto Martin|14.9 Spain 6 Masters 4|Alberto Martin|14.9 USA F4|Stefan Kozlov|14.9 Japan F4|Duck Hee Lee|14.8 Guatemala F1|Ryan Alexander Mueller|14.7 Korea F2|Duck Hee Lee|14.9 China F5|Duck Hee Lee|14.9 China F5|Duck Hee Lee|14.9 China F5|Duck Hee Lee|14.9 Turkey F21|Mert Naci Turker|14.7 Malaysia 1 Masters 1|Mitsuru Takada|14.5 Brazil F2|Silas Araujo De Cerqueira|14.9 Colombia F1|Mateo Andres Ruiz Naranjo|14.5 Australia F4|Thanasi Kokkinakis|14.9 Argentina F21|Francisco Bahamonde|14.9 Argentina F21|Francisco Bahamonde|14.9 Bangalore CH|Amirben Barua|14.7 Granby CH|Felix Auger Aliassime|14.9 Granby CH|Felix Auger Aliassime|14.9 Czechoslovakia Masters 1|David Skoch|14.8 Ecuador Masters 3|Luis Horna|14.8 Peru Bolivia Masters 1|Luis Horna|14.9 Peru Bolivia Masters 3|Luis Horna|14.9 Peru Bolivia Masters 4|Luis Horna|14.9 Spain F5|Carlos Alcaraz|14.7 Spain F5|Carlos Alcaraz|14.7 Italy F15|Luca Nardi|14.8 Italy F15|Luca Nardi|14.8 Nigeria F5|Mukhtar Andu|14.1 Wimbledon|Clement Haughton Langston Cazalet|14.98151951 Wimbledon|Curt Bergmann|14.13552361 False +What is the total free throws made by the Milwaukee Bucks at home? SELECT SUM(ftm_home) as total_ftm FROM game WHERE team_name_home = 'Milwaukee Bucks'; 44088 True +What is the highest loser age ever recorded in a US Open match? SELECT MAX(loser_age) AS max_age FROM matches WHERE tourney_name = 'US Open'; 69.83983573 False +How many matches has Alexander Zverev played that lasted more than 200 minutes? SELECT COUNT(*) FROM matches WHERE (winner_name = 'Alexander Zverev' OR loser_name = 'Alexander Zverev') AND minutes > 200; 34 False +What is the total rebounds by the Houston Rockets away? SELECT SUM(reb_away) as total_rebounds FROM game WHERE team_name_away = 'Houston Rockets'; 75490 True +What is the name of the doubles pair Simon Aspelin and Julian Knowle? SELECT DISTINCT winner1_name, winner2_name FROM matches WHERE (winner1_name = 'Simon Aspelin' AND winner2_name = 'Julian Knowle') OR (winner1_name = 'Julian Knowle' AND winner2_name = 'Simon Aspelin');; Simon Aspelin|Julian Knowle False +Which away team committed the most turnovers in a game where they still won? SELECT team_abbreviation_away FROM game WHERE wl_away = 'W' ORDER BY tov_away DESC LIMIT 1; NJN True +How many matches are recorded in total? SELECT COUNT(*) FROM matches; 947720 False +Show all matches where the winner was younger than 20. SELECT tourney_name, winner_name, winner_age FROM matches WHERE winner_age < 20; False +How many points did the Chicago Bulls score from fastbreaks and points off turnovers combined in their highest scoring home game of the 2017 season? SELECT (o.pts_fb_home + o.pts_off_to_home) AS transition_points, g.pts_home FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Chicago Bulls' AND g.season_id = '22017' ORDER BY g.pts_home DESC LIMIT 1; 28 | 123.0 True +Find the game where the Milwaukee Bucks had the largest lead at home in the 2013 season. SELECT game_id, largest_lead_home FROM other_stats WHERE team_abbreviation_home = 'MIL' AND game_id IN (SELECT game_id FROM game WHERE season_id = '22013') ORDER BY largest_lead_home DESC LIMIT 1; 0021300894 | 33 True +List all Belgian players. SELECT name FROM players WHERE ioc = 'BEL'; False +What was the highest field goal percentage the Milwaukee Bucks achieved in a single game in the 1999 season? SELECT MAX(fg_pct_home) FROM game WHERE team_abbreviation_home = 'MIL' AND season_id = '21999'; 0.64 True +Who is the youngest player to win a match in the US Open? SELECT winner_name FROM matches WHERE tourney_name = 'US Open' AND winner_age IS NOT NULL ORDER BY winner_age ASC LIMIT 1; Wallace Ford Johnson False +List all Canadian players. SELECT name FROM players WHERE ioc = 'CAN'; False +Show all matches won by players from Sweden. SELECT tourney_name FROM matches WHERE winner_ioc = 'SWE'; False +Who has the most match losses at Wimbledon? SELECT loser_name, COUNT(*) AS losses FROM matches WHERE tourney_name = 'Wimbledon' GROUP BY loser_name ORDER BY losses DESC LIMIT 1; Wentworth Gore|28 False +In the 2007 season, how many games did the San Antonio Spurs lose at home despite having fewer turnovers than their opponent? SELECT COUNT(*) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'SAS' AND g.wl_home = 'L' AND o.total_turnovers_home < o.total_turnovers_away AND g.season_id = '22007'; 1 True +How many fast break points did the Toronto Raptors score on the road in total during the 2002 season? SELECT SUM(pts_fb_away) FROM other_stats WHERE game_id IN ( SELECT game_id FROM game WHERE team_abbreviation_away = 'TOR' AND season_id = '22002' ); 465 True +How many matches in 2021 were won by right-handed players? SELECT COUNT(*) FROM matches WHERE winner_hand = 'R' AND tourney_date BETWEEN 20210101 AND 20211231; False +What is the highest ranking achieved by Carlos Alcaraz before 2022? SELECT MIN(rank) FROM rankings r JOIN players p ON r.player = p.player_id WHERE p.name = 'Carlos Alcaraz' AND r.ranking_date < 20220101; 32 False +In which season did the Golden State Warriors have the highest average pts at home? SELECT season_id, AVG(pts_home) as avg_stat FROM game WHERE team_name_home = 'Golden State Warriors' GROUP BY season_id ORDER BY avg_stat DESC LIMIT 1; 21989 | 121.36585365853658 True +What is the highest second chance points by the Boston Celtics at home? SELECT MAX(pts_2nd_chance_home) as max_2nd_chance FROM other_stats WHERE team_abbreviation_home = 'BOS'; 35 True +How many matches did winner have height > 200 and loser height < 170? SELECT COUNT(*) FROM matches WHERE winner_ht > 200 AND loser_ht < 170; 25 False +What is the highest second chance points by the Dallas Mavericks at home? SELECT MAX(pts_2nd_chance_home) as max_2nd_chance FROM other_stats WHERE team_abbreviation_home = 'DAL'; 30 True +How many matches did Novak Djokovic win in 2015? SELECT COUNT(*) FROM matches WHERE winner_name = 'Novak Djokovic' AND tourney_date BETWEEN 20150000 AND 20151231; 83 False +How many games did the Brooklyn Nets win at home with a plus-minus greater than 15 in 1996? SELECT COUNT(*) as wins FROM game WHERE team_name_home = 'Brooklyn Nets' AND wl_home = 'W' AND plus_minus_home > 15 AND season_id = '21996'; 0 True +Which team had the best away record in the 2018 season? SELECT team_name_away AS team FROM game WHERE season_id = '22018' GROUP BY team_name_away ORDER BY CAST(SUM(CASE WHEN wl_away = 'W' THEN 1 ELSE 0 END) AS FLOAT) / COUNT(*) DESC LIMIT 1 True +How many players are left-handed? SELECT COUNT(*) FROM players WHERE hand = 'L'; 1435 False +How many unique losers are there? SELECT COUNT(DISTINCT loser_name) FROM matches; False +What was the highest field goal percentage the Denver Nuggets achieved in a single game in the 1999 season? SELECT MAX(fg_pct_home) FROM game WHERE team_abbreviation_home = 'DEN' AND season_id = '21999'; 0.631 True +How many matches has Novak Djokovic lost at Wimbledon? SELECT COUNT(*) FROM matches WHERE loser_name = 'Novak Djokovic' AND tourney_name = 'Wimbledon'; 11 False +Which team has the same nickname as the team located in Charlotte? SELECT nickname FROM team WHERE city = 'Charlotte'; Hornets True +What is the average number of ft_pct in away games by the Miami Heat? SELECT AVG(ft_pct_away) FROM game WHERE team_name_away = 'Miami Heat'; 0.7408833552 True +What is the average age of players who reached the final of the US Open in 2006? SELECT AVG(age) FROM (SELECT winner_age as age FROM matches WHERE tourney_name = 'US Open' AND tourney_date LIKE '2006%' AND round = 'F' UNION ALL SELECT loser_age FROM matches WHERE tourney_name = 'US Open' AND tourney_date LIKE '2006%' AND round = 'F') t; 24.45 False +List tournaments with the most five-set matches. SELECT tourney_name, COUNT(*) as five_set FROM matches WHERE LENGTH(score) - LENGTH(REPLACE(score,' ',''))+1 = 5 GROUP BY tourney_name ORDER BY five_set DESC LIMIT 1; False +What is the highest number of offensive rebounds recorded by the Atlanta Hawks in a single game? SELECT game_id, game_date, team_name_home, oreb_home AS offensive_rebounds FROM game WHERE team_name_home = 'Atlanta Hawks' UNION ALL SELECT game_id, game_date, team_name_away, oreb_away AS offensive_rebounds FROM game WHERE team_name_away = 'Atlanta Hawks' ORDER BY offensive_rebounds DESC LIMIT 1; 0028500744 | 1986-03-11 00:00:00 | Atlanta Hawks | 31.0 True