natural_query sql_query result is_nba How many matches did Pete Sampras play at Wimbledon? SELECT COUNT(*) FROM matches WHERE tourney_name = 'Wimbledon' AND (winner_name = 'Pete Sampras' OR loser_name = 'Pete Sampras'); 70 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 What is the highest number of offensive rebounds recorded by the Portland Trail Blazers in a single game? SELECT game_id, game_date, team_name_home, oreb_home AS offensive_rebounds FROM game WHERE team_name_home = 'Portland Trail Blazers' UNION ALL SELECT game_id, game_date, team_name_away, oreb_away AS offensive_rebounds FROM game WHERE team_name_away = 'Portland Trail Blazers' ORDER BY offensive_rebounds DESC LIMIT 1; 0028500868 | 1986-04-01 00:00:00 | Portland Trail Blazers | 31.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 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 How many times did the New York Knicks win an away game by 20 or more points in the 1983 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'NYK' AND season_id = '21983' AND wl_away = 'W' AND (pts_away - pts_home) >= 20; 1 True 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 away games did the Detroit Pistons play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Detroit Pistons' AND season_id = '22018'; 41 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 average margin of victory for the Phoenix Suns 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 = 'Phoenix Suns' AND wl_home = 'W' AND season_id = '22013' UNION ALL SELECT plus_minus_away AS victory_margin FROM game WHERE team_name_away = 'Phoenix Suns' AND wl_away = 'W' AND season_id = '22013' ) AS victories 10.25 True What state are the Los Angeles Clippers based in according to the team table? SELECT state FROM team WHERE full_name = 'Los Angeles Clippers'; California True What is the total points off turnovers by the New Orleans Pelicans at home? SELECT SUM(pts_off_to_home) as total_pts_off_to FROM other_stats WHERE team_abbreviation_home = 'NOP'; 6819 True How many games did the Boston Celtics lose at home in the 1996 season? SELECT COUNT(*) as losses FROM game WHERE team_name_home = 'Boston Celtics' AND wl_home = 'L' AND season_id = '21996'; 30.0 True In which season did the Oklahoma City Thunder win the most games? SELECT season_id, COUNT(*) AS win_count FROM game WHERE (team_name_home = 'Oklahoma City Thunder' AND wl_home = 'W') OR (team_name_away = 'Oklahoma City Thunder' AND wl_away = 'W') GROUP BY season_id ORDER BY win_count DESC LIMIT 1; 22013 | 59 True What is the highest number of offensive rebounds recorded by the New York Knicks in a single game? SELECT game_id, game_date, team_name_home, oreb_home AS offensive_rebounds FROM game WHERE team_name_home = 'New York Knicks' UNION ALL SELECT game_id, game_date, team_name_away, oreb_away AS offensive_rebounds FROM game WHERE team_name_away = 'New York Knicks' ORDER BY offensive_rebounds DESC LIMIT 1; 0020500024|2005-11-04 00:00:00|New York Knicks|29.0 True What is the average number of points in the paint allowed by the Detroit Pistons 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 = 'DET' AND g.season_id = '22017' AND o.lead_changes > 15; 47.333333333333336 True 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 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 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 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 How many matches did Novak Djokovic win at Wimbledon? SELECT COUNT(*) FROM matches WHERE winner_name = 'Novak Djokovic' AND tourney_name = 'Wimbledon'; 95 False Which player had the most match wins? SELECT winner_name, COUNT(*) AS wins FROM matches GROUP BY winner_name ORDER BY wins DESC LIMIT 1; |26399 False 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 games did the Detroit Pistons win when they scored fewer points in the paint than their opponents? SELECT COUNT(*) AS wins_with_fewer_paint_points FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE ((g.team_name_home = 'Detroit Pistons' AND g.wl_home = 'W' AND o.pts_paint_home < o.pts_paint_away) OR (g.team_name_away = 'Detroit Pistons' AND g.wl_away = 'W' AND o.pts_paint_away < o.pts_paint_home)); 431 True In how many different tournaments did Pete Sampras play? SELECT COUNT(DISTINCT tourney_name) FROM matches WHERE winner_name = 'Pete Sampras' OR loser_name = 'Pete Sampras'; 82 False What is the maximum number of minutes John McEnroe played at Wimbledon? SELECT MAX(minutes) FROM matches WHERE (winner_name = 'John McEnroe' OR loser_name = 'John McEnroe') AND tourney_name = 'Wimbledon'; 249.0 False How many home games did the Miami Heat win in the 1946 season? SELECT COUNT(*) as wins FROM game WHERE team_name_home = 'Miami Heat' AND wl_home = 'W' AND season_id = '21946'; 0 True What is the total assists by the Atlanta Hawks at home? SELECT SUM(ast_home) as total_assists FROM game WHERE team_name_home = 'Atlanta Hawks'; 41509 True What was the average points per game the Milwaukee Bucks scored at home in games where they grabbed more offensive rebounds than their opponents during the 2018 season? SELECT AVG(pts_home) AS avg_points FROM game WHERE team_name_home = 'Milwaukee Bucks' AND oreb_home > oreb_away AND season_id = '22018'; 118.7142857 True What was the highest combined total of second chance points in any game involving the Golden State Warriors 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 = 'Golden State Warriors' OR g.team_name_away = 'Golden State Warriors') AND g.season_id = '22017'; 40 True What's the total second-chance points the Utah Jazz scored in away losses during the 2019 season? SELECT SUM(os.pts_2nd_chance_away) FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Utah Jazz' AND g.wl_away = 'L' AND g.season_id = '22019'; 182 True How many matches has Carlos Alcaraz won at Wimbledon? SELECT COUNT(*) FROM matches WHERE winner_name = 'Carlos Alcaraz' AND tourney_name = 'Wimbledon'; 11 False How many games did the Philadelphia 76ers win when they scored fewer points in the paint than their opponents? SELECT COUNT(*) AS wins_with_fewer_paint_points FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE ((g.team_name_home = 'Philadelphia 76ers' AND g.wl_home = 'W' AND o.pts_paint_home < o.pts_paint_away) OR (g.team_name_away = 'Philadelphia 76ers' AND g.wl_away = 'W' AND o.pts_paint_away < o.pts_paint_home)); 415 True 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 What is the total number of losses Jannik Sinner has at the Roland Garros? SELECT COUNT(*) FROM matches WHERE loser_name = 'Jannik Sinner' AND tourney_name = 'Roland Garros'; 4 False What's the highest number of blocks recorded by the Minnesota Timberwolves in any game? SELECT MAX(blocks) AS max_blocks FROM ( SELECT blk_home AS blocks FROM game WHERE team_name_home = 'Minnesota Timberwolves' UNION ALL SELECT blk_away AS blocks FROM game WHERE team_name_away = 'Minnesota Timberwolves' ); 16 True What is the total second chance points by the Milwaukee Bucks 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 = 'Milwaukee Bucks' AND g.wl_away = 'W'; 4952 True What is the highest points scored by the Chicago Bulls at home? SELECT MAX(pts_home) as max_points FROM game WHERE team_name_home = 'Chicago Bulls'; 155 True List the cities of all teams founded before 1965. SELECT city FROM team WHERE year_founded < 1965; Atlanta, Boston, Golden State, Los Angeles, New York, Philadelphia, Sacramento, Washington, Detroit True What state are the Denver Nuggets based in according to the team table? SELECT state FROM team WHERE full_name = 'Denver Nuggets'; Colorado True In 2003, what was the average number of fast break points scored by opponents of the Atlanta Hawks 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 = 'ATL' AND g.stl_home > 10 AND g.season_id = '22003'; 17.4 True 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 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 most offensive rebounds the Houston Rockets 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 = 'HOU' AND season_id = '22011' UNION ALL SELECT oreb_away AS oreb FROM game WHERE team_abbreviation_away = 'HOU' AND season_id = '22011' ); 19 True 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 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 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 Get the total number of matches Rafael Nadal has played on or after 2021. SELECT COUNT(*) FROM matches WHERE (winner_name = 'Rafael Nadal' OR loser_name = 'Rafael Nadal') AND tourney_date >= 20210101; 93 False 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 What is the average number of pts in home games by the Los Angeles Lakers? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'Los Angeles Lakers'; 109.7147689 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 What is the highest free throws attempted by the Houston Rockets away? SELECT MAX(fta_away) as max_fta FROM game WHERE team_name_away = 'Houston Rockets'; 57.0 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 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 What is the highest-scoring away game played by the Portland Trail Blazers? SELECT game_date, pts_away FROM game WHERE team_abbreviation_away = 'POR' ORDER BY pts_away DESC LIMIT 1; 1992-05-11 00:00:00 | 153.0 True Which team had the most games where they committed fewer than 5 turnovers at home? SELECT team_name_home FROM game WHERE tov_home < 5 GROUP BY team_name_home ORDER BY COUNT(*) DESC LIMIT 1; Dallas Mavericks True What is the lowest points scored by the San Antonio Spurs at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'San Antonio Spurs'; 64.0 True How many home games did the Miami Heat play in the 2020 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Miami Heat' AND season_id = '22020'; 36.0 True How many home games did the Miami Heat play in the 2021 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Miami Heat' AND season_id = '22021'; 41.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 What was the average number of fast break points scored by the Phoenix Suns in games they lost during the 2017 season? SELECT AVG(fastbreak_points) AS avg_fastbreak_points FROM ( SELECT os.pts_fb_home AS fastbreak_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Phoenix Suns' AND g.wl_home = 'L' AND g.season_id = '22017' UNION ALL SELECT os.pts_fb_away AS fastbreak_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Phoenix Suns' AND g.wl_away = 'L' AND g.season_id = '22017' ) AS losing_games 14.02 True 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 How many games were decided by more than 40 points? SELECT COUNT(*) FROM game WHERE ABS(pts_home - pts_away) > 40; 307 True 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 What is the average number of reb in away games by the Atlanta Hawks? SELECT AVG(reb_away) FROM game WHERE team_name_away = 'Atlanta Hawks'; 41.72979084 True What is the highest number of points scored by the Minnesota Timberwolves 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 = 'Minnesota Timberwolves' AND os.pts_2nd_chance_away > 10; 151 True How many games did the Denver Nuggets 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 = 'Denver Nuggets' AND g.wl_home = 'W' AND os.pts_fb_home > 15 AND g.season_id = '21996'; 4 True 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 was the field goal percentage difference between the Minnesota Timberwolves and San Antonio Spurs in their highest combined scoring game? SELECT CASE WHEN team_name_home = 'Minnesota Timberwolves' THEN fg_pct_home - fg_pct_away ELSE fg_pct_away - fg_pct_home END AS twolves_fg_pct_advantage FROM game WHERE (team_name_home = 'Minnesota Timberwolves' AND team_name_away = 'San Antonio Spurs') OR (team_name_home = 'San Antonio Spurs' AND team_name_away = 'Minnesota Timberwolves') ORDER BY (pts_home + pts_away) DESC LIMIT 1; 0.042 True What is the highest points scored by the Chicago Bulls away when they had more than 15 points in the paint? 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.pts_paint_away > 15; 168 True 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 home games did the Denver Nuggets play in the 2003 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Denver Nuggets' AND season_id = '22003'; 41 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 Find the average age of losers in all matches SELECT AVG(loser_age) FROM matches; 23.6776674381365 False What is the lowest points scored by the Miami Heat at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Miami Heat'; 56 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 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 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 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 How many steals did the Miami Heat have away in 1996? SELECT SUM(stl_away) as total_steals FROM game WHERE team_name_away = 'Miami Heat' AND season_id = '21996'; 320 True What is the most total rebounds the Orlando Magic have had in a home game? SELECT MAX(reb_home) FROM game WHERE team_abbreviation_home = 'ORL'; 69 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 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 What is the total second chance points by the Utah Jazz 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 = 'Utah Jazz' AND g.wl_home = 'W'; 8769 True What is the highest points scored by the Los Angeles Clippers away when they had more than 5 blocks? SELECT MAX(pts_away) as max_points FROM game WHERE team_name_away = 'Los Angeles Clippers' AND blk_away > 5; 131.0 True What was the highest number of lead changes in any game between the Los Angeles Lakers and Boston Celtics? SELECT MAX(o.lead_changes) AS max_lead_changes FROM other_stats o JOIN game g ON o.game_id = g.game_id WHERE (g.team_name_home = 'Los Angeles Lakers' AND g.team_name_away = 'Boston Celtics') OR (g.team_name_home = 'Boston Celtics' AND g.team_name_away = 'Los Angeles Lakers'); 22 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 How many games did the Indiana Pacers play at home in 1996? SELECT COUNT(*) as home_games FROM game WHERE team_name_home = 'Indiana Pacers' AND season_id = '21996'; 41.0 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 What was the average points per game for the Indiana Pacers in home games where they attempted more three-pointers than their season average? WITH season_avg AS ( SELECT AVG(fg3a_home) AS avg_3pa FROM game WHERE team_name_home = 'Indiana Pacers' AND season_id = '22018' ) SELECT AVG(g.pts_home) AS avg_points FROM game g, season_avg s WHERE g.team_name_home = 'Indiana Pacers' AND g.season_id = '22018' AND g.fg3a_home > s.avg_3pa; 106.7894737 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 When did the Utah Jazz 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 = 'Utah Jazz' ORDER BY o.pts_paint_away DESC LIMIT 1; 2019-04-10 00:00:00 | 76 True What is the total number of losses Nick Kyrgios has at the Roland Garros? SELECT COUNT(*) FROM matches WHERE loser_name = 'Nick Kyrgios' AND tourney_name = 'Roland Garros'; 5 False How many away games did the Boston Celtics play in the 2002 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Boston Celtics' AND season_id = '22002'; 41.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 What is the highest number of personal fouls committed by the Philadelphia 76ers away? SELECT MAX(pf_away) as max_pf FROM game WHERE team_name_away = 'Philadelphia 76ers'; 39 True How many games did the Cleveland Cavaliers play at home in the 1996 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'CLE' AND season_id = '21996'; 41 True Count how many matches ended with the score “6-0 6-0”. SELECT COUNT(*) FROM matches WHERE score = '6-0 6-0'; 4197 False 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 True 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 How many times did the Boston Celtics score over 120 points at home? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'BOS' AND pts_home > 120; 561 True How many assists did the Minnesota Timberwolves have at home in 1996? SELECT SUM(ast_home) as total_assists FROM game WHERE team_name_home = 'Minnesota Timberwolves' AND season_id = '21996'; 962 True How many matches has Roger Federer won? SELECT COUNT(*) FROM matches WHERE winner_name = 'Roger Federer'; 1305 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 average field goal percentage for the Milwaukee Bucks at home? SELECT AVG(fg_pct_home) as avg_fg_pct FROM game WHERE team_name_home = 'Milwaukee Bucks'; 0.4708141892 True How many lead changes occurred in games where the San Antonio Spurs played at home? SELECT SUM(lead_changes) as total_lead_changes FROM other_stats WHERE team_abbreviation_home = 'SAS'; 5666.0 True What is the average number of points scored by the Oklahoma City Thunder in games where they had at least 15 second-chance points? SELECT AVG(pts) AS avg_points FROM ( SELECT g.pts_home AS pts 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_2nd_chance_home >= 15 UNION ALL SELECT g.pts_away AS pts FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_away = 'Oklahoma City Thunder' AND o.pts_2nd_chance_away >= 15 ); 107.3780761 True Which game had the most lead changes in the 2020 season? SELECT game_id, lead_changes FROM other_stats WHERE game_id IN ( SELECT game_id FROM game WHERE season_id = '22020' ) ORDER BY lead_changes DESC LIMIT 1; 0022000890|26 True In how many away games did the Denver Nuggets score more fast-break points than their opponent? SELECT COUNT(*) FROM other_stats WHERE team_abbreviation_away = 'DEN' AND pts_fb_away > pts_fb_home; 478 True What is the lowest points scored by the Chicago Bulls away? SELECT MIN(pts_away) as min_points FROM game WHERE team_name_away = 'Chicago Bulls'; 63.0 True What is the total number of points scored by the Houston Rockets in games where they made more than 15 three-pointers? SELECT SUM(points) AS total_points FROM ( SELECT pts_home AS points FROM game WHERE team_name_home = 'Houston Rockets' AND fg3m_home > 15 UNION ALL SELECT pts_away AS points FROM game WHERE team_name_away = 'Houston Rockets' AND fg3m_away > 15 ) AS combined_games 32793 True How tall is John McEnroe? SELECT height FROM players WHERE name = 'John McEnroe'; 180.0 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 points scored by the Memphis Grizzlies at home? SELECT MAX(pts_home) as max_points FROM game WHERE team_name_home = 'Memphis Grizzlies'; 152 True 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 Which team had the most second-chance points in the 2015 season? SELECT team_name, SUM(second_chance_pts) AS total_second_chance_pts FROM ( SELECT g.team_name_home AS team_name, os.pts_2nd_chance_home AS second_chance_pts FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.season_id = '22015' UNION ALL SELECT g.team_name_away AS team_name, os.pts_2nd_chance_away AS second_chance_pts FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.season_id = '22015' ) AS all_teams GROUP BY team_name ORDER BY total_second_chance_pts DESC LIMIT 1 Houston Rockets | 1085 True How many times has Carlos Alcaraz defeated Novak Djokovic? SELECT COUNT(*) FROM matches WHERE winner_name = 'Carlos Alcaraz' AND loser_name = 'Novak Djokovic'; 2 False 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 When did the Washington Wizards 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 = 'Washington Wizards' ORDER BY o.pts_paint_away DESC LIMIT 1; 2014-02-27 00:00:00 | 80 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 Which home team won a game with the fewest minutes recorded? SELECT team_name_home FROM game WHERE wl_home = 'W' ORDER BY min ASC LIMIT 1; St. Louis Bombers True Find the tournament with the fewest matches overall. SELECT tourney_name, COUNT(*) AS match_count FROM matches GROUP BY tourney_name ORDER BY match_count ASC LIMIT 1; Cannes Chps|1 False 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.7408833551769328 True What is the year the Milwaukee team was founded? SELECT year_founded FROM team WHERE city = 'Milwaukee'; 1968.0 True 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 What is the average points scored by the Orlando Magic away? SELECT AVG(pts_away) as avg_points FROM game WHERE team_name_away = 'Orlando Magic'; 99.26172148 True How many assists did the Boston Celtics have at home in 1996? SELECT SUM(ast_home) as total_assists FROM game WHERE team_name_home = 'Boston Celtics' AND season_id = '21996'; 927 True What is the highest-scoring home game for the Denver Nuggets? SELECT game_date, pts_home FROM game WHERE team_abbreviation_home = 'DEN' ORDER BY pts_home DESC LIMIT 1; 1983-12-13 00:00:00 | 184.0 True 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 What is the average winner age at Wimbledon? SELECT AVG(winner_age) FROM matches WHERE tourney_name = 'Wimbledon'; 26.7238638689215 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 highest number of turnovers the Toronto Raptors committed in a single away game during the 2016 season? SELECT MAX(tov_away) FROM game WHERE team_abbreviation_away = 'TOR' AND season_id = '22016'; 19 True What is the average height of Wimbledon losers? SELECT AVG(loser_ht) FROM matches WHERE tourney_name = 'Wimbledon'; 184.666780045351 False How many away games did the Cleveland Cavaliers play in the 2009 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Cleveland Cavaliers' AND season_id = '22009'; 41 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 What was the average points in the paint for the Minnesota Timberwolves in games they won versus games they lost at home? SELECT AVG(CASE WHEN g.wl_home = 'W' THEN o.pts_paint_home END) AS avg_paint_pts_wins, AVG(CASE WHEN g.wl_home = 'L' THEN o.pts_paint_home END) AS avg_paint_pts_losses FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Minnesota Timberwolves'; 40.809034907597535 | 41.574074074074076 True What is the highest free throws attempted by the Phoenix Suns away? SELECT MAX(fta_away) as max_fta FROM game WHERE team_name_away = 'Phoenix Suns'; 67 True How many games ended with a total combined score of exactly 200 points in the 2014 season? SELECT COUNT(*) FROM game WHERE season_id = '22014' AND (pts_home + pts_away) = 200; 33 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 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 What is the total number of minutes played by the Orlando Magic at home? SELECT SUM(min) as total_minutes FROM game WHERE team_name_home = 'Orlando Magic'; 344830 True What is the abbreviation for the Sacramento Kings in the team table? SELECT abbreviation FROM team WHERE full_name = 'Sacramento Kings'; SAC True 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 total points off turnovers by the Toronto Raptors away? SELECT SUM(pts_off_to_away) as total_pts_off_to FROM other_stats WHERE team_abbreviation_away = 'TOR'; 13577 True What is the highest-scoring game in Detroit Pistons history (considering both home and away games)? SELECT game_id, pts_home, pts_away, game_date FROM game WHERE team_abbreviation_home = 'DET' OR team_abbreviation_away = 'DET' ORDER BY (pts_home + pts_away) DESC LIMIT 1; 0028300255 | 184.0 | 186.0 | 1983-12-13 00:00:00 True What is the total number of games the Dallas Mavericks played at home where they had more offensive rebounds than the away team and still lost? SELECT COUNT(*) 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.oreb_home > g.oreb_away AND g.season_id = '22008'; 3 True How many total games did the Houston Rockets play in the 2015 season? SELECT COUNT(*) AS total_games FROM game WHERE season_id = '22015' AND (team_name_home = 'Houston Rockets' OR team_name_away = 'Houston Rockets'); 82 True Which teams played on Christmas Day in 2021? SELECT team_abbreviation_home, team_abbreviation_away FROM game WHERE DATE(game_date) = '2021-12-25'; PHX|GSW MIL|BOS UTA|DAL NYK|ATL LAL|BKN True How many times has the Charlotte Hornets won an away game by at least 20 points? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'CHA' AND wl_away = 'W' AND (pts_away - pts_home) >= 20; 26 True 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; 2009-04-26 00:00:00 | 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 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 What is the average ranking of players defeated by Novak Djokovic? SELECT AVG(r.rank) FROM matches m JOIN rankings r ON m.loser_id = r.player WHERE m.winner_name = 'Novak Djokovic'; 212.317855446654 False 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 How many times have the New York Knicks won an away game by at least 25 points? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'NYK' AND (pts_away - pts_home) >= 25 AND wl_away = 'W'; 52 True Find the total number of distinct winners at Wimbledon. SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'Wimbledon'; 2706 False What is the total number of games the Washington Wizards played at home where they had more offensive rebounds than the away team and still lost? SELECT COUNT(*) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'WAS' AND g.wl_home = 'L' AND g.oreb_home > g.oreb_away AND g.season_id = '22008'; 14 True Which team was founded first? SELECT full_name FROM team ORDER BY year_founded ASC LIMIT 1; Boston Celtics True What is the total points in the paint by the Golden State Warriors 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 = 'Golden State Warriors' AND g.wl_away = 'L'; 26444 True What is the all-time head-to-head record between the Los Angeles Lakers and Boston Celtics? SELECT SUM(CASE WHEN (team_name_home = 'Los Angeles Lakers' AND wl_home = 'W') OR (team_name_away = 'Los Angeles Lakers' AND wl_away = 'W') THEN 1 ELSE 0 END) AS lakers_wins, SUM(CASE WHEN (team_name_home = 'Boston Celtics' AND wl_home = 'W') OR (team_name_away = 'Boston Celtics' AND wl_away = 'W') THEN 1 ELSE 0 END) AS celtics_wins FROM game WHERE (team_name_home = 'Los Angeles Lakers' AND team_name_away = 'Boston Celtics') OR (team_name_home = 'Boston Celtics' AND team_name_away = 'Los Angeles Lakers') 110 | 113 True In what year was the New York Knicks founded? SELECT year_founded FROM team WHERE full_name = 'New York Knicks'; 1946 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 is the highest number of three-pointers made by the Oklahoma City Thunder 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 = 'OKC' AND season_id = '22017' UNION ALL SELECT fg3m_away AS fg3m FROM game WHERE team_abbreviation_away = 'OKC' AND season_id = '22017' ); 20 True 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 highest-scoring home game for the Chicago Bulls? SELECT game_date, pts_home FROM game WHERE team_abbreviation_home = 'CHI' ORDER BY pts_home DESC LIMIT 1; 1990-12-04 00:00:00|155.0 True What is the highest plus-minus recorded by an away team with fewer than 10 personal fouls? SELECT MAX(plus_minus_away) FROM game WHERE pf_away < 10; 35 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 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 How many total rebounds did the Miami Heat 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 = 'Miami Heat'; 1494 True How many times did the Milwaukee Bucks win an away game by 20 or more points in the 1983 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'MIL' AND season_id = '21983' AND wl_away = 'W' AND (pts_away - pts_home) >= 20; 3 True 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 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 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 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 What is the total number of three-point field goals made by the Detroit Pistons at home? SELECT SUM(fg3m_home) as total_fg3m FROM game WHERE team_name_home = 'Detroit Pistons'; 9533 True 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 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 How many home games did the Golden State Warriors play in the 1999 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Golden State Warriors' AND season_id = '21999'; 41.0 True What is the average loser age in Wimbledon finals (best of 5)? SELECT AVG(loser_age) FROM matches WHERE tourney_name = 'Wimbledon' AND best_of = '5'; 26.8972819437329 False What is the highest points scored by the Washington Wizards at home? SELECT MAX(pts_home) as max_points FROM game WHERE team_name_home = 'Washington Wizards'; 158 True What is the most points the Minnesota Timberwolves have scored at home? SELECT MAX(pts_home) FROM game WHERE team_name_home = 'Minnesota Timberwolves'; 150 True What was the largest lead the New York Knicks 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 = 'NYK' AND game.season_id = '22018'; 34 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 What is the earliest ranking date recorded in the rankings table? SELECT MIN(ranking_date) FROM rankings; 19730827 False What was the highest number of lead changes in a game where the Charlotte Hornets 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 = 'CHA' AND g.wl_home = 'W' AND g.pf_home > g.pf_away) OR (g.team_abbreviation_away = 'CHA' AND g.wl_away = 'W' AND g.pf_away > g.pf_home) AND g.season_id = '22008'; 29 True What is the highest combined fg_pct in any game involving the Chicago Bulls? SELECT MAX(fg_pct_home + fg_pct_away) FROM game WHERE team_name_home = 'Chicago Bulls' OR team_name_away = 'Chicago Bulls'; 1.245 True How many away games did the San Antonio Spurs play in the 2014 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'San Antonio Spurs' AND season_id = '22014'; 41 True What is the average number of points scored in the paint by the Dallas Mavericks 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 = 'Dallas Mavericks' 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 = 'Dallas Mavericks' AND g.wl_home = 'L') AS avg_paint_points_losses FROM game LIMIT 1; 40.436708860759495 | 41.01457725947522 True 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 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 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 What is the highest number of fast break points the Cleveland Cavaliers have scored in a home game? SELECT MAX(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'CLE'; 39 True 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 What is the highest points scored by the Toronto Raptors away? SELECT MAX(pts_away) as max_points FROM game WHERE team_name_away = 'Toronto Raptors'; 150 True List the nicknames of teams based in cities that start with the letter 'C'. SELECT nickname FROM team WHERE city LIKE 'C%'; Cavaliers, Bulls, Hornets True 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 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 What is the total number of points scored by the Houston Rockets 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 = 'Houston Rockets' AND fg3m_home > 20 UNION ALL SELECT pts_away AS points FROM game WHERE team_name_away = 'Houston Rockets' AND fg3m_away > 20 ); 6435 True What was the total number of points scored by teams from New York as home teams in games with more than 10 lead changes during the 2020 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 = 'New York' ) AND o.lead_changes > 10 AND g.season_id = '22020'; 685.0 True How many games did the Chicago Bulls win away in the 1996 season? SELECT COUNT(*) as away_wins FROM game WHERE team_name_away = 'Chicago Bulls' AND wl_away = 'W' AND season_id = '21996'; 30 True What is the most fast break points the New Orleans Pelicans have scored at home in a game? SELECT MAX(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'NOP'; 39 True 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 games did the Los Angeles Lakers lose at home with more than 10 second chance 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 = 'Los Angeles Lakers' AND g.wl_home = 'L' AND os.pts_2nd_chance_home > 10 AND g.season_id = '21996'; 4.0 True What is the highest field goals made by the Houston Rockets at home? SELECT MAX(fgm_home) as max_fgm FROM game WHERE team_name_home = 'Houston Rockets'; 64 True How many fast break points did the Chicago Bulls score at home? SELECT SUM(pts_fb_home) as total_fb_points FROM other_stats WHERE team_abbreviation_home = 'CHI'; 11524 True Find the average number of assists the Houston Rockets had per game at home in the 2016 season. SELECT AVG(ast_home) FROM game WHERE team_abbreviation_home = 'HOU' AND season_id = '22016'; 26.24390244 True What is the lowest number of points scored by the Detroit Pistons at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Detroit Pistons'; 64 True Find the number of matches that lasted more than 180 minutes SELECT COUNT(*) FROM matches WHERE minutes > 180; 5425 False What is the total number of points scored by the Atlanta Hawks at home? SELECT SUM(pts_home) as total_points FROM game WHERE team_name_home = 'Atlanta Hawks'; 233546.0 True What is the average height of all US Open winners? SELECT AVG(winner_ht) FROM matches WHERE tourney_name = 'US Open'; 184.635440803266 False How many points did the Detroit Pistons score in their first home game of the 2015 season? SELECT pts_home FROM game WHERE team_abbreviation_home = 'DET' AND season_id = '22015' ORDER BY game_date ASC LIMIT 1; 92 True What is the shortest match played by Novak Djokovic? SELECT MIN(minutes) FROM matches WHERE winner_name = 'Novak Djokovic' OR loser_name = 'Novak Djokovic'; 0.0 False What is the average difference in points in the paint between the New York Knicks 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 = 'New York Knicks'; -0.3610810811 True What was the average three-point shooting percentage for the Milwaukee Bucks in games where they scored over 110 points at home? SELECT AVG(fg3_pct_home) AS avg_3pt_percentage FROM game WHERE team_name_home = 'Milwaukee Bucks' AND pts_home > 110; 0.3933064833 True Get the full names of all players taller than 210 cm. SELECT name FROM players WHERE height > 210; Reilly|Opelka False 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 Which season had the highest total points scored by the Minnesota Timberwolves at home? SELECT season_id, SUM(pts_home) AS total_points FROM game WHERE team_abbreviation_home = 'MIN' GROUP BY season_id ORDER BY total_points DESC LIMIT 1; 22022 | 4753.0 True 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 In the 2004 season, what was the average number of second chance points scored by the opponents when the Charlotte Hornets 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 = 'CHA' AND g.wl_home = 'L' AND g.season_id = '22004'; 15.318181818181818 True 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 What is the average points scored by the Milwaukee Bucks away when they had more than 10 assists? SELECT AVG(pts_away) as avg_points FROM game WHERE team_name_away = 'Milwaukee Bucks' AND ast_away > 10; 101.5644344 True How many lead changes occurred in games where the Minnesota Timberwolves played at home? SELECT SUM(lead_changes) as total_lead_changes FROM other_stats WHERE team_abbreviation_home = 'MIN'; 5688 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 times did the New York Knicks lose at home in the 2015 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'NYK' AND wl_home = 'L' AND season_id = '22015'; 23 True What was the total number of assists made by the Los Angeles Lakers in games where they scored more than 110 points at home? SELECT SUM(ast_home) AS total_assists FROM game WHERE team_name_home = 'Los Angeles Lakers' AND pts_home > 110; 23837 True How many games did the Phoenix Suns 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 = 'Phoenix Suns' AND g.wl_home = 'W' AND os.pts_fb_home > 15 AND g.season_id = '21996'; 6 True 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 away games did the Phoenix Suns play in the 2007 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Phoenix Suns' AND season_id = '22007'; 41 True What is the total fast break points by the Dallas Mavericks 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 = 'Dallas Mavericks' AND g.wl_away = 'L'; 6057 True What is the highest number of fast break points the Philadelphia 76ers have scored in a home game? SELECT MAX(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'PHI'; 42 True What is the highest number of rebounds recorded by the Orlando Magic in a home game? SELECT MAX(reb_home) FROM game WHERE team_name_home = 'Orlando Magic'; 69 True Which city had teams that scored the most total points during the 2010 season? SELECT team_city_home FROM other_stats WHERE game_id IN (SELECT game_id FROM game WHERE season_id = '22010') GROUP BY team_city_home ORDER BY SUM(pts_paint_home + pts_2nd_chance_home + pts_fb_home + pts_off_to_home) DESC LIMIT 1; Los Angeles True What is the highest field goal percentage the Memphis Grizzlies have recorded at home? SELECT MAX(fg_pct_home) FROM game WHERE team_name_home = 'Memphis Grizzlies'; 0.625 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 How many away games did the Brooklyn Nets play in the 2017 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Brooklyn Nets' AND season_id = '22017'; 41 True 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 home games did the Utah Jazz play in the 2019 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Utah Jazz' AND season_id = '22019'; 35 True How many times has the Detroit Pistons won an away game by at least 20 points? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'DET' AND wl_away = 'W' AND (pts_away - pts_home) >= 20; 98 True What is the lowest points scored by the New Orleans Pelicans at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'New Orleans Pelicans'; 72 True What is the highest combined pts in any game involving the Utah Jazz? SELECT MAX(pts_home + pts_away) FROM game WHERE team_name_home = 'Utah Jazz' OR team_name_away = 'Utah Jazz'; 299 True What is the total second chance points by the San Antonio Spurs 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 = 'San Antonio Spurs' AND g.wl_away = 'L'; 5810.0 True What is the average number of reb in home games by the Detroit Pistons? SELECT AVG(reb_home) FROM game WHERE team_name_home = 'Detroit Pistons'; 44.08547486 True How many matches has Rafael Nadal lost? SELECT COUNT(*) FROM matches WHERE loser_name = 'Rafael Nadal'; 255 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.0 True What's the highest number of points the Brooklyn Nets scored in the paint in any game during the 2020 season? SELECT MAX(pts_paint) AS max_paint_points FROM ( SELECT o.pts_paint_home AS pts_paint FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Brooklyn Nets' AND g.season_id = '22020' UNION ALL SELECT o.pts_paint_away AS pts_paint FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_away = 'Brooklyn Nets' AND g.season_id = '22020' ); 74 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 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 What is the difference in free throw percentage between the Los Angeles Lakers and their opponents in home games? SELECT AVG(ft_pct_home - ft_pct_away) AS ft_pct_diff FROM game WHERE team_name_home = 'Los Angeles Lakers'; 0.002106870229 True 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 In which season did the Portland Trail Blazers 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 = 'Portland Trail Blazers' AND wl_home = 'L' GROUP BY season_id ORDER BY avg_ft_pct DESC LIMIT 1; 42000 | 0.923 True 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 What was the lowest field goal percentage recorded by the New York Knicks in any game of the 2005 season? SELECT MIN(fg_pct) AS lowest_fg_percentage FROM ( SELECT fg_pct_home AS fg_pct FROM game WHERE team_abbreviation_home = 'NYK' AND season_id = '22005' UNION ALL SELECT fg_pct_away FROM game WHERE team_abbreviation_away = 'NYK' AND season_id = '22005' ); 0.329 True 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 How many matches did Novak Djokovic win at the Rolland Garros? SELECT COUNT(*) FROM matches WHERE winner_name = 'Novak Djokovic' AND tourney_name = 'Roland Garros'; 96 False What is Jannik Sinner’s date of birth? SELECT dob FROM players WHERE name = 'Jannik Sinner'; 20010816.0 False Which season saw the Boston Celtics 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 = 'Boston Celtics' GROUP BY season_id ORDER BY avg_steals DESC LIMIT 1; 12020 | 13.0 True How many times did the Golden State Warriors lose at home in the 2012 season despite recording more steals and blocks than their opponent? SELECT COUNT(*) FROM game g WHERE g.team_abbreviation_home = 'GSW' AND g.wl_home = 'L' AND g.stl_home > g.stl_away AND g.blk_home > g.blk_away AND g.season_id = '22012'; 0 True 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 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 rebounds in all games in the 2018 season. SELECT SUM(reb_home + reb_away) FROM game WHERE season_id = '22018'; 111107.0 True 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 How many home games did the Portland Trail Blazers play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Portland Trail Blazers' AND season_id = '22018'; 41.0 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 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 What is the highest field goal percentage the Miami Heat have recorded at home? SELECT MAX(fg_pct_home) FROM game WHERE team_name_home = 'Miami Heat'; 0.675 True How many times did the Detroit Pistons win an away game by 20 or more points in the 1983 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'DET' AND season_id = '21983' AND wl_away = 'W' AND (pts_away - pts_home) >= 20; 1 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 How many away games did the Golden State Warriors play in the 2019 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Golden State Warriors' AND season_id = '22019'; 31.0 True How many home games did the Utah Jazz play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Utah Jazz' AND season_id = '22018'; 41 True What is the highest number of personal fouls committed by the Denver Nuggets away? SELECT MAX(pf_away) as max_pf FROM game WHERE team_name_away = 'Denver Nuggets'; 44.0 True What is the average number of pts in home games by the Los Angeles Lakers? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'Los Angeles Lakers'; 109.71476888387824 True How many total assists did the Miami Heat have in the 1999 season? SELECT SUM(ast) AS total_assists FROM ( SELECT ast_home AS ast FROM game WHERE team_abbreviation_home = 'MIA' AND season_id = '21999' UNION ALL SELECT ast_away AS ast FROM game WHERE team_abbreviation_away = 'MIA' AND season_id = '21999' ); 1931.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 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 highest points scored by the Los Angeles Clippers at home? SELECT MAX(pts_home) as max_points FROM game WHERE team_name_home = 'Los Angeles Clippers'; 152.0 True How many times did the Golden State Warriors score more than 120 points but still lose the game? SELECT COUNT(*) AS high_scoring_losses FROM game WHERE ((team_name_home = 'Golden State Warriors' AND pts_home > 120 AND wl_home = 'L') OR (team_name_away = 'Golden State Warriors' AND pts_away > 120 AND wl_away = 'L')); 123 True How many times did the Milwaukee Bucks lose at home in the 2016 season despite recording more steals and blocks than their opponent? SELECT COUNT(*) FROM game g WHERE g.team_abbreviation_home = 'MIL' AND g.wl_home = 'L' AND g.stl_home > g.stl_away AND g.blk_home > g.blk_away AND g.season_id = '22016'; 4 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 away games did the Memphis Grizzlies play in the 2019 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Memphis Grizzlies' AND season_id = '22019'; 36 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 What is the most points in the paint the Philadelphia 76ers have ever scored in an away game? SELECT MAX(pts_paint_away) FROM other_stats WHERE team_abbreviation_away = 'PHI'; 82 True How many points did the Orlando Magic score as a home team in the game where they had the most blocks? SELECT pts_home FROM game WHERE team_abbreviation_home = 'ORL' ORDER BY blk_home DESC LIMIT 1; 90 True What is the total points in the paint by the Washington Wizards at home? SELECT SUM(pts_paint_home) as total_pts_paint FROM other_stats WHERE team_abbreviation_home = 'WAS'; 36720 True How many turnovers did the Cleveland Cavaliers have at home in 1996? SELECT SUM(tov_home) as total_turnovers FROM game WHERE team_name_home = 'Cleveland Cavaliers' AND season_id = '21996'; 605 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 Which team located in Chicago has a nickname that starts with the letter 'B'? SELECT full_name FROM team WHERE city = 'Chicago' AND nickname LIKE 'B%'; Chicago Bulls True Which game had the biggest difference between total turnovers and team turnovers for the away team? SELECT game_id FROM other_stats ORDER BY ABS(total_turnovers_away - team_turnovers_away) DESC LIMIT 1; 29600522 True What was the highest field goal percentage the Golden State Warriors achieved in a single game in the 1999 season? SELECT MAX(fg_pct_home) FROM game WHERE team_abbreviation_home = 'GSW' AND season_id = '21999'; 0.524 True 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 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 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 highest number of assists recorded by the Portland Trail Blazers at home in a single game? SELECT MAX(ast_home) FROM game WHERE team_abbreviation_home = 'POR'; 49 True What is the total second chance points by the Milwaukee Bucks at home? SELECT SUM(pts_2nd_chance_home) as total_2nd_chance FROM other_stats WHERE team_abbreviation_home = 'MIL'; 12640 True What is the total points scored by the New York Knicks away? SELECT SUM(pts_away) as total_points FROM game WHERE team_name_away = 'New York Knicks'; 292706 True 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 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 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 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 Which team had the most rebounds in a single home game during the 2015 season? SELECT team_abbreviation_home AS team, reb_home AS rebounds, game_date FROM game WHERE season_id = '22015' ORDER BY reb_home DESC LIMIT 1; MIA|67.0|2016-02-20 00:00:00 True 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 What is the abbreviation for the Dallas Mavericks in the team table? SELECT abbreviation FROM team WHERE full_name = 'Dallas Mavericks'; DAL 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 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 highest number of points the Charlotte Hornets have scored in a single game during the 2016 season? SELECT MAX(pts) AS max_points FROM ( SELECT pts_home AS pts FROM game WHERE team_abbreviation_home = 'CHA' AND season_id = '22016' UNION ALL SELECT pts_away AS pts FROM game WHERE team_abbreviation_away = 'CHA' AND season_id = '22016' ); 123 True What was the shooting percentage from the field for the New York Knicks in their highest scoring home game of the 2019 season? SELECT fg_pct_home AS shooting_percentage FROM game WHERE team_name_home = 'New York Knicks' AND season_id = '22019' ORDER BY pts_home DESC LIMIT 1; 0.558 True How many distinct players appear in the rankings table? SELECT COUNT(DISTINCT player) AS distinct_players FROM rankings; 16174 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.0 True How many games in NBA history have gone to overtime? SELECT COUNT(*) AS overtime_games FROM game WHERE min > 240 3414 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 What team has the abbreviation 'IND'? SELECT full_name FROM team WHERE abbreviation = 'IND'; Indiana Pacers True How many total rebounds did the Portland Trail Blazers collect in the 2010 season? SELECT SUM(reb) AS total_rebounds FROM ( SELECT reb_home AS reb FROM game WHERE team_abbreviation_home = 'POR' AND season_id = '22010' UNION ALL SELECT reb_away AS reb FROM game WHERE team_abbreviation_away = 'POR' AND season_id = '22010' ); 3226 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 How many games did the Brooklyn Nets win on the road in the 1999 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'BKN' AND season_id = '21999' AND wl_away = 'W'; 0 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 How many games have the Washington Wizards won, both home and away, in the 2006 season? SELECT COUNT(*) FROM game WHERE season_id = '22006' AND ((team_abbreviation_home = 'WAS' AND wl_home = 'W') OR (team_abbreviation_away = 'WAS' AND wl_away = 'W')); 41 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 Nick Kyrgios’ height and dominant hand? SELECT height, hand FROM players WHERE name = 'Nick Kyrgios'; 193.0|R 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 games did the Detroit Pistons win away with more than 10 field goals made in 1996? SELECT COUNT(*) as wins FROM game WHERE team_name_away = 'Detroit Pistons' AND wl_away = 'W' AND fgm_away > 10 AND season_id = '21996'; 24 True How many times have the Miami Heat won a home game while scoring at least 120 points? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'MIA' AND pts_home >= 120 AND wl_home = 'W'; 113 True Which opponent did the Miami Heat have their largest margin of victory against in a home game? SELECT team_name_away, MAX(pts_home - pts_away) AS victory_margin FROM game WHERE team_name_home = 'Miami Heat' AND wl_home = 'W' GROUP BY team_name_away ORDER BY victory_margin DESC LIMIT 1; Los Angeles Clippers | 43.0 True Which game had the highest number of free throw attempts by a home team that didn’t attempt any three-pointers? SELECT game_id FROM game WHERE fg3a_home = 0 ORDER BY fta_home DESC LIMIT 1; 0028700044 True How many games did the New York Knicks lose away with more than 5 times tied in 1996? SELECT COUNT(*) as losses FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'New York Knicks' AND g.wl_away = 'L' AND os.times_tied > 5 AND g.season_id = '21996'; 7 True What nationality is Alexander Zverev? SELECT ioc FROM players WHERE name = 'Alexander Zverev'; GER False What was the average number of fast break points scored by the Utah Jazz in games they lost during the 2017 season? SELECT AVG(fastbreak_points) AS avg_fastbreak_points FROM ( SELECT os.pts_fb_home AS fastbreak_points 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 g.season_id = '22017' UNION ALL SELECT os.pts_fb_away AS fastbreak_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Utah Jazz' AND g.wl_away = 'L' AND g.season_id = '22017' ) AS losing_games 8.678571429 True What is the highest field goal percentage the Sacramento Kings have recorded at home? SELECT MAX(fg_pct_home) FROM game WHERE team_name_home = 'Sacramento Kings'; 0.671 True What is the average number of three-pointers attempted by home teams that lost by more than 20 points? SELECT AVG(fg3a_home) FROM game WHERE wl_home = 'L' AND plus_minus_home < -20; 19.36683997689197 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 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 How many times did the Utah Jazz score over 120 points at home? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'UTA' AND pts_home > 120; 99 True What is the average points scored by the Cleveland Cavaliers away when they had more than 5 steals? SELECT AVG(pts_away) as avg_points FROM game WHERE team_name_away = 'Cleveland Cavaliers' AND stl_away > 5; 98.16787732 True What is the highest number of defensive rebounds recorded by a home team that didn’t make a single three-pointer? SELECT MAX(dreb_home) FROM game WHERE fg3m_home = 0; 50.0 True What is the average points scored by the Toronto Raptors away? SELECT AVG(pts_away) as avg_points FROM game WHERE team_name_away = 'Toronto Raptors'; 99.61 True 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 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 highest combined tov in any game involving the San Antonio Spurs? SELECT MAX(tov_home + tov_away) FROM game WHERE team_name_home = 'San Antonio Spurs' OR team_name_away = 'San Antonio Spurs'; 60 True 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 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 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 How many players were born before 1990? SELECT COUNT(*) FROM players WHERE dob < 19900101; 29388 False 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 points did the New York Knicks score as visitors in their most turnover-heavy game? SELECT pts_away FROM game WHERE team_abbreviation_away = 'NYK' ORDER BY tov_away DESC LIMIT 1; 80 True What was the largest margin of defeat for the Los Angeles Clippers in any home game during the 2018 season? SELECT MAX(pts_away - pts_home) AS largest_defeat_margin FROM game WHERE team_name_home = 'LA Clippers' AND pts_away > pts_home AND season_id = '22018'; 32 True 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 In games where the Chicago Bulls recorded more than 10 steals at home, what was their win percentage during the 1998 season? SELECT COUNT(CASE WHEN wl_home = 'W' THEN 1 END) * 100.0 / COUNT(*) AS win_percentage FROM game WHERE team_name_home = 'Chicago Bulls' AND stl_home > 10 AND season_id = '21998'; 42.85714286 True How many blocks did the Phoenix Suns make at home? SELECT SUM(blk_home) as total_blocks FROM game WHERE team_name_home = 'Phoenix Suns'; 8794 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 highest number of points the Miami Heat scored in an away game during the 1997 season? SELECT MAX(pts_away) FROM game WHERE team_abbreviation_away = 'MIA' AND season_id = '21997'; 117 True 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 matches did Andre Agassi win at Wimbledon? SELECT COUNT(*) FROM matches WHERE winner_name = 'Andre Agassi' AND tourney_name = 'Wimbledon'; 46 False Which team had the highest average number of assists per game across all seasons? SELECT team FROM (SELECT team_abbreviation_home AS team, ast_home AS ast FROM game UNION ALL SELECT team_abbreviation_away, ast_away FROM game) GROUP BY team ORDER BY AVG(ast) DESC LIMIT 1; DRT True Find the average number of assists the Chicago Bulls had per game at home in the 2016 season. SELECT AVG(ast_home) FROM game WHERE team_abbreviation_home = 'CHI' AND season_id = '22016'; 23.7317073170732 True 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 What was the average rebounding margin for the Brooklyn Nets 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 = 'Brooklyn Nets' AND fg_pct_home > 0.5; 1.87628866 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 In which season did the Indiana Pacers win the most games? SELECT season_id, COUNT(*) AS win_count FROM game WHERE (team_name_home = 'Indiana Pacers' AND wl_home = 'W') OR (team_name_away = 'Indiana Pacers' AND wl_away = 'W') GROUP BY season_id ORDER BY win_count DESC LIMIT 1; 22003 | 61 True How many total lead changes occurred in all New York Knicks games during the 2006 season? SELECT SUM(lead_changes) AS total_lead_changes FROM other_stats WHERE game_id IN ( SELECT game_id FROM game WHERE season_id = '22006' AND (team_abbreviation_home = 'NYK' OR team_abbreviation_away = 'NYK') ); 358 True 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 Which team had the worst overall record in the 2017 season? WITH home_records AS ( SELECT team_name_home AS team_name, SUM(CASE WHEN wl_home = 'W' THEN 1 ELSE 0 END) AS wins, COUNT(*) AS games_played FROM game WHERE season_id = '22017' GROUP BY team_name_home ), away_records AS ( SELECT team_name_away AS team_name, SUM(CASE WHEN wl_away = 'W' THEN 1 ELSE 0 END) AS wins, COUNT(*) AS games_played FROM game WHERE season_id = '22017' GROUP BY team_name_away ) SELECT h.team_name AS team, (h.wins + a.wins) AS total_wins, (h.games_played + a.games_played - h.wins - a.wins) AS total_losses, CAST((h.wins + a.wins) AS FLOAT) / (h.games_played + a.games_played) AS win_percentage FROM home_records h JOIN away_records a ON h.team_name = a.team_name ORDER BY win_percentage ASC LIMIT 1 Phoenix Suns | 21 | 61 | 0.25609756097561 True What is the highest combined pts in any game involving the Washington Wizards? SELECT MAX(pts_home + pts_away) FROM game WHERE team_name_home = 'Washington Wizards' OR team_name_away = 'Washington Wizards'; 317 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 Which country has the tallest average players? SELECT ioc, AVG(height) AS avg_height FROM players GROUP BY ioc ORDER BY avg_height DESC LIMIT 1; YUG|194.0 False 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 total free throws made by the Toronto Raptors at home? SELECT SUM(ftm_home) as total_ftm FROM game WHERE team_name_home = 'Toronto Raptors'; 22059 True 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 points did the Portland Trail Blazers score in their lowest-scoring game at home? SELECT MIN(pts_home) FROM game WHERE team_abbreviation_home = 'POR'; 60 True Which game had the highest combined total of turnovers and steals? SELECT game_id, (tov_home + tov_away + stl_home + stl_away) AS total FROM game ORDER BY total DESC LIMIT 1; 0028500026|102.0 True What is the average number of reb in away games by the Boston Celtics? SELECT AVG(reb_away) FROM game WHERE team_name_away = 'Boston Celtics'; 42.40882509303562 True 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 What is the average number of points scored by the Brooklyn Nets on the road during the 2015 season? SELECT AVG(pts_away) FROM game WHERE team_abbreviation_away = 'BKN' AND season_id = '22015'; 98.3658536585366 True What is the total number of points scored by the Denver Nuggets in fourth quarters during the 2021 season? SELECT SUM(points_off_turnovers) AS total_points_off_turnovers FROM ( SELECT os.pts_off_to_home AS points_off_turnovers FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Denver Nuggets' AND g.season_id = '22021' UNION ALL SELECT os.pts_off_to_away AS points_off_turnovers FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Denver Nuggets' AND g.season_id = '22021' ) AS all_games 1071 True 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 How many times did the Houston Rockets 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 = 'HOU' AND g.wl_home = 'L' AND g.stl_home > g.stl_away AND g.blk_home > g.blk_away AND g.season_id = '22004'; 3 True What is the average number of ft_pct in away games by the Charlotte Hornets? SELECT AVG(ft_pct_away) FROM game WHERE team_name_away = 'Charlotte Hornets'; 0.7677023933 True 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 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 home games did the Los Angeles Lakers play in the 2005 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Los Angeles Lakers' AND season_id = '22005'; 41.0 True 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 fast break points by the Sacramento Kings away? SELECT MAX(pts_fb_away) as max_fb_points FROM other_stats WHERE team_abbreviation_away = 'SAC'; 40 True 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 What was the average free throw percentage for the Indiana Pacers 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 = 'Indiana Pacers' AND fta_home >= 25 UNION ALL SELECT ft_pct_away AS ft_pct FROM game WHERE team_name_away = 'Indiana Pacers' AND fta_away >= 25 ); 0.7685965404 True How many times did the Boston Celtics and Los Angeles Lakers play against each other from 1980 to 1989? SELECT COUNT(*) AS total_matchups 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')) AND CAST(SUBSTR(season_id, 2) AS INTEGER) BETWEEN 1980 AND 1989 39 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 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 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 What is the total points scored by the San Antonio Spurs at home? SELECT SUM(pts_home) as total_points FROM game WHERE team_name_home = 'San Antonio Spurs'; 217613 True What was the largest comeback (overcoming a deficit) made by the Cleveland Cavaliers in the 2016 season? SELECT CASE WHEN g.team_name_home = 'Cleveland Cavaliers' THEN largest_lead_away ELSE largest_lead_home END AS opponent_largest_lead, g.game_date, CASE WHEN g.team_name_home = 'Cleveland Cavaliers' THEN g.team_name_away ELSE g.team_name_home END AS opponent FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE (g.team_name_home = 'Cleveland Cavaliers' AND g.wl_home = 'W') OR (g.team_name_away = 'Cleveland Cavaliers' AND g.wl_away = 'W') AND g.season_id = '22016' ORDER BY opponent_largest_lead DESC LIMIT 1; 49 | 2010-03-01 00:00:00 | New York Knicks True What is the total points in the paint by the Philadelphia 76ers at home? SELECT SUM(pts_paint_home) as total_pts_paint FROM other_stats WHERE team_abbreviation_home = 'PHI'; 41524 True 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 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 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 How many fast break points did the Portland Trail Blazers score at home? SELECT SUM(pts_fb_home) as total_fb_points FROM other_stats WHERE team_abbreviation_home = 'POR'; 9746 True How many total times were games tied in the 2006 season? SELECT SUM(os.times_tied) AS total_times_tied FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '22006'; 5352 True How many distinct players have appeared in matches as winners? SELECT COUNT(DISTINCT winner_id) FROM matches; 18648 False What is the average number of points in the paint allowed by the Chicago Bulls 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 = 'CHI' AND g.season_id = '22001' AND o.lead_changes > 15; 31.333333333333332 True In games where the Memphis Grizzlies 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 = 'Memphis Grizzlies' AND pts_home > 110; 4.561946903 True How many away games did the Philadelphia 76ers play in the 2007 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Philadelphia 76ers' AND season_id = '22007'; 41 True What is the largest lead the Dallas Mavericks had away? SELECT MAX(largest_lead_away) as max_lead FROM other_stats WHERE team_abbreviation_away = 'DAL'; 53 True How many games in the 2005 season had a combined score of at least 250 points? SELECT COUNT(*) FROM game WHERE (pts_home + pts_away) >= 250 AND season_id = '22005'; 6 True 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 total second chance points by the Toronto Raptors 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 = 'Toronto Raptors' AND g.wl_away = 'L'; 7535 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 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 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 matches included a score containing ""6-0""?" SELECT COUNT(*) FROM matches WHERE score LIKE '%6-0%'; 94269 False How many times have the Charlotte Hornets 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 = 'Charlotte Hornets' AND pts_home > 120 AND wl_home = 'L') OR (team_name_away = 'Charlotte Hornets' AND pts_away > 120 AND wl_away = 'L') ) AS games 33 True What is the average shooting percentage of the Houston Rockets in games where they scored at least 100 points during the 2019 season? SELECT AVG(fg_pct) AS avg_shooting_percentage FROM ( SELECT fg_pct_home AS fg_pct FROM game WHERE team_name_home = 'Houston Rockets' AND pts_home >= 100 AND season_id = '22019' UNION ALL SELECT fg_pct_away AS fg_pct FROM game WHERE team_name_away = 'Houston Rockets' AND pts_away >= 100 AND season_id = '22019' ) AS high_scoring_games 0.4548656716 True How many games did the Indiana Pacers win away in 1996? SELECT COUNT(*) as away_wins FROM game WHERE team_name_away = 'Indiana Pacers' AND wl_away = 'W' AND season_id = '21996'; 18.0 True How many times have the Portland Trail Blazers scored more than 120 points in a game? SELECT COUNT(*) AS high_scoring_games FROM game WHERE team_name_home = 'Portland Trail Blazers' AND pts_home > 120; 338 True How many different countries have players who won matches at the US Open? SELECT COUNT(DISTINCT winner_ioc) FROM matches WHERE tourney_name = 'US Open'; 90 False What is the lowest points scored by the Golden State Warriors away? SELECT MIN(pts_away) as min_points FROM game WHERE team_name_away = 'Golden State Warriors'; 65 True What was the average points scored by the Atlanta Hawks in games where they had a higher field goal percentage than their opponent but still lost at home? SELECT AVG(pts_home) AS avg_points FROM game WHERE team_name_home = 'Atlanta Hawks' AND fg_pct_home > fg_pct_away AND wl_home = 'L'; 101.3474576 True What is the longest match (in minutes) ever played at the US Open? SELECT MAX(minutes) FROM matches WHERE tourney_name = 'US Open'; 326.0 False Find the average points per game for the San Antonio Spurs in the 2006 season. SELECT AVG(points) FROM ( SELECT pts_home AS points FROM game WHERE team_abbreviation_home = 'SAS' AND season_id = '22006' UNION ALL SELECT pts_away AS points FROM game WHERE team_abbreviation_away = 'SAS' AND season_id = '22006' ) AS team_points; 98.5243902439024 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 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 was the total number of points off turnovers by away teams when they committed more than 20 total turnovers? SELECT SUM(pts_off_to_away) FROM other_stats WHERE total_turnovers_away > 20; 45727 True Count the number of matches where both players were from the same country at the US Open. SELECT COUNT(*) FROM matches WHERE tourney_name = 'US Open' AND winner_ioc = loser_ioc; 6604 False 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 How many total team rebounds did the Milwaukee Bucks 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 = 'MIL' AND os.pts_fb_away > 15; 2309 True What's the average number of three-pointers made by the Portland Trail Blazers in home games during the 2016 season? SELECT AVG(fg3m_home) FROM game WHERE team_name_home = 'Portland Trail Blazers' AND season_id = '22016'; 11.07317073 True What is the maximum height of any opponent Jannik Sinner has beaten? SELECT MAX(loser_ht) FROM matches WHERE winner_name = 'Jannik Sinner'; 211.0 False What is the highest combined tov in any game involving the Toronto Raptors? SELECT MAX(tov_home + tov_away) FROM game WHERE team_name_home = 'Toronto Raptors' OR team_name_away = 'Toronto Raptors'; 66 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 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 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 What is the earliest tournament date in the database? SELECT MIN(tourney_date) FROM matches; 163.0 False What is the total number of points scored by the Atlanta Hawks 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 = 'Atlanta Hawks' AND fg3m_home > 20 UNION ALL SELECT pts_away AS points FROM game WHERE team_name_away = 'Atlanta Hawks' AND fg3m_away > 20 ); 1189 True How many games did the San Antonio Spurs play where they had more than 25 assists and won? SELECT COUNT(*) AS total_games FROM ( SELECT game_id FROM game WHERE team_name_home = 'San Antonio Spurs' AND ast_home > 25 AND wl_home = 'W' UNION ALL SELECT game_id FROM game WHERE team_name_away = 'San Antonio Spurs' AND ast_away > 25 AND wl_away = 'W' ) AS winning_games_with_assists 950 True Which opponent did the Golden State Warriors have their largest margin of victory against in a home game? SELECT team_name_away, MAX(pts_home - pts_away) AS victory_margin FROM game WHERE team_name_home = 'Golden State Warriors' AND wl_home = 'W' GROUP BY team_name_away ORDER BY victory_margin DESC LIMIT 1; Sacramento Kings | 62.0 True 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 lowest points scored by the Atlanta Hawks at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Atlanta Hawks'; 59 True Find the average number of three-pointers made per game by the Golden State Warriors in the 2015 season. SELECT AVG(fg3m) FROM ( SELECT fg3m_home AS fg3m FROM game WHERE team_abbreviation_home = 'GSW' AND season_id = '22015' UNION ALL SELECT fg3m_away AS fg3m FROM game WHERE team_abbreviation_away = 'GSW' AND season_id = '22015' ) AS three_pointers; 13.1341463414634 True What was the largest lead the Houston Rockets 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 = 'HOU' AND game.season_id = '22018'; 44 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 spanish (ESP) players are there? SELECT COUNT(*) AS spanish_players FROM players WHERE ioc = 'ESP'; 3026 False Count how many matches were won by players over 35 years old. SELECT COUNT(*) FROM matches WHERE winner_age > 35; 9305 False What is the average points scored by the Toronto Raptors 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 = 'Toronto Raptors' AND os.pts_2nd_chance_home > 10 AND g.season_id = '21996'; 96.458 True What is the total number of losses Taylor Fritz has at the Roland Garros? SELECT COUNT(*) FROM matches WHERE loser_name = 'Taylor Fritz' AND tourney_name = 'Roland Garros'; 7 False How many home games did the Boston Celtics win in the 2022 season? SELECT COUNT(*) AS home_wins FROM game WHERE team_name_home = 'Boston Celtics' AND wl_home = 'W' AND season_id = '22022'; 32 True How many right handed players are there? SELECT COUNT(*) FROM players WHERE hand = 'R'; 15666 False What is the minimum height recorded among all players? SELECT MIN(height) FROM players; 145.0 False 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 fastbreak points did the Utah Jazz score at home in their highest scoring game of the 2019 season? SELECT o.pts_fb_home AS fastbreak_points, g.pts_home AS total_points FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Utah Jazz' AND g.season_id = '22019' ORDER BY g.pts_home DESC LIMIT 1; 5 | 129.0 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 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 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 What is the lowest points scored by the Indiana Pacers away? SELECT MIN(pts_away) as min_points FROM game WHERE team_name_away = 'Indiana Pacers'; 61 True What is the average height of players from ESP? SELECT AVG(height) FROM players WHERE ioc = 'ESP'; 180.697183098592 False How many total fast break points did the Chicago Bulls have during the 2015 season? SELECT SUM(pts_fb) AS total_fast_break_points FROM ( SELECT pts_fb_home AS pts_fb FROM other_stats WHERE team_abbreviation_home = 'CHI' AND game_id IN (SELECT game_id FROM game WHERE season_id = '22015') UNION ALL SELECT pts_fb_away AS pts_fb FROM other_stats WHERE team_abbreviation_away = 'CHI' AND game_id IN (SELECT game_id FROM game WHERE season_id = '22015') ); 697 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 What is the highest number of three-pointers the Portland Trail Blazers made in a single away game during the 2018 season? SELECT MAX(fg3m_away) FROM game WHERE team_abbreviation_away = 'POR' AND season_id = '22018'; 18 True How many times has the Sacramento Kings won an away game by at least 20 points? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'SAC' AND wl_away = 'W' AND (pts_away - pts_home) >= 20; 45 True What is the highest combined pts in any game involving the Indiana Pacers? SELECT MAX(pts_home + pts_away) FROM game WHERE team_name_home = 'Cleveland Cavaliers' OR team_name_away = 'Cleveland Cavaliers'; 307 True 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 What was the highest field goal percentage achieved by the San Antonio Spurs 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 = 'SAS' AND season_id = '22003' UNION ALL SELECT fg_pct_away AS fg_pct FROM game WHERE team_abbreviation_away = 'SAS' AND season_id = '22003' ); 0.575 True 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 Which home team attempted the most three-pointers in a game they lost? SELECT team_name_home FROM game WHERE wl_home = 'L' ORDER BY fg3a_home DESC LIMIT 1; Team Giannis 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 is the total points scored by the Miami Heat at home? SELECT SUM(pts_home) as total_points FROM game WHERE team_name_home = 'Miami Heat'; 155695 True What is the most points in the paint the Houston Rockets have ever scored in an away game? SELECT MAX(pts_paint_away) FROM other_stats WHERE team_abbreviation_away = 'HOU'; 82 True What is the average points scored by the Phoenix Suns away? SELECT AVG(pts_away) as avg_points FROM game WHERE team_name_away = 'Phoenix Suns'; 105.7063031 True What is the total fast break points by the San Antonio Spurs 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 = 'San Antonio Spurs' AND g.wl_away = 'L'; 5230 True What is the lowest points scored by the Miami Heat away? SELECT MIN(pts_away) as min_points FROM game WHERE team_name_away = 'Miami Heat'; 54 True What country is Carlos Alcaraz from? SELECT ioc FROM players WHERE name = 'Carlos Alcaraz'; ESP False 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 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 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 What is the most total rebounds the Sacramento Kings have had in a home game? SELECT MAX(reb_home) FROM game WHERE team_abbreviation_home = 'SAC'; 68 True What was the field goal percentage difference between the Cleveland Cavaliers and their opponents in home games they lost by less than 5 points? SELECT AVG(fg_pct_home - fg_pct_away) AS fg_pct_diff FROM game WHERE team_name_home = 'Cleveland Cavaliers' AND wl_home = 'L' AND (pts_away - pts_home) < 5; -0.01460119048 True 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 How many times has Jannik Sinner defeated Novak Djokovic? SELECT COUNT(*) FROM matches WHERE winner_name = 'Jannik Sinner' AND loser_name = 'Novak Djokovic'; 3 False Which team had the most steals in the 2004 season? SELECT team_name, SUM(steals) AS total_steals FROM ( SELECT team_name_home AS team_name, stl_home AS steals FROM game WHERE season_id = '22004' UNION ALL SELECT team_name_away AS team_name, stl_away AS steals FROM game WHERE season_id = '22004' ) AS all_teams GROUP BY team_name ORDER BY total_steals DESC LIMIT 1 Philadelphia 76ers | 756.0 True How many home games did the Los Angeles Lakers win in the 2017 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'LAL' AND wl_home = 'W' AND season_id = '22017'; 20 True How many times has a team won while scoring fewer than 80 points? SELECT COUNT(*) FROM game WHERE (pts_home < 80 AND wl_home = 'W') OR (pts_away < 80 AND wl_away = 'W'); 1364 True 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 times has a team won while shooting under 40% from the field (home or away)? SELECT COUNT(*) FROM game WHERE (fg_pct_home < 0.40 AND wl_home = 'W') OR (fg_pct_away < 0.40 AND wl_away = 'W'); 2437 True 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 was the average free throw attempt difference between the San Antonio Spurs and their opponents in home games they lost during the 2017 season? SELECT AVG(fta_home - fta_away) AS avg_fta_diff FROM game WHERE team_name_home = 'San Antonio Spurs' AND wl_home = 'L' AND season_id = '22017'; -3.375 True How many times did the Milwaukee Bucks score more than 120 points but still lose the game? SELECT COUNT(*) AS high_scoring_losses FROM game WHERE ((team_name_home = 'Milwaukee Bucks' AND pts_home > 120 AND wl_home = 'L') OR (team_name_away = 'Milwaukee Bucks' AND pts_away > 120 AND wl_away = 'L')); 78 True 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 average number of reb in home games by the Sacramento Kings? SELECT AVG(reb_home) FROM game WHERE team_name_home = 'Sacramento Kings'; 43.40463918 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 How many home games did the Milwaukee Bucks play in the 2001 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Milwaukee Bucks' AND season_id = '22001'; 41 True What is the most points in the paint the New York Knicks have ever scored in an away game? SELECT MAX(pts_paint_away) FROM other_stats WHERE team_abbreviation_away = 'NYK'; 76 True 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 What is the total points scored by the Portland Trail Blazers away? SELECT SUM(pts_away) as total_points FROM game WHERE team_name_away = 'Portland Trail Blazers'; 220939 True Which team had the highest free throw shooting percentage in away games during the 2018 season? SELECT team_name_away, AVG(ft_pct_away) AS avg_ft_pct FROM game WHERE season_id = '22018' GROUP BY team_name_away ORDER BY avg_ft_pct DESC LIMIT 1; San Antonio Spurs | 0.823804878048781 True 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 Which hand does Pete Sampras use? SELECT hand FROM players WHERE name = 'Pete Sampras'; R False How many total points were scored in a game where the away team committed twice as many turnovers as the home team? SELECT pts_home + pts_away FROM game WHERE tov_away = 2 * tov_home LIMIT 1; 205.0 True What is the total number of points scored by home teams in games where they committed fewer than 5 personal fouls? SELECT SUM(pts_home) FROM game WHERE pf_home < 5; 849.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 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 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 number of assists by the Utah Jazz at home? SELECT SUM(ast_home) as total_assists FROM game WHERE team_name_home = 'Utah Jazz'; 44165 True How many players are taller than the average height? SELECT COUNT(*) FROM players WHERE height > (SELECT AVG(height) FROM players); 1366 False 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 What is the highest fast break points by the Oklahoma City Thunder away? SELECT MAX(pts_fb_away) as max_fb_points FROM other_stats WHERE team_abbreviation_away = 'OKC'; 40 True What is the highest points scored by the Miami Heat away when they had more than 5 blocks? SELECT MAX(pts_away) as max_points FROM game WHERE team_name_away = 'Miami Heat' AND blk_away > 5; 130 True What is the highest combined tov in any game involving the Orlando Magic? SELECT MAX(tov_home + tov_away) FROM game WHERE team_name_home = 'Orlando Magic' OR team_name_away = 'Orlando Magic'; 57 True 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 How many games did the San Antonio Spurs win on the road in the 1999 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'SAS' AND season_id = '21999' AND wl_away = 'W'; 22 True 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 What is the highest second chance points by the Minnesota Timberwolves at home? SELECT MAX(pts_2nd_chance_home) as max_2nd_chance FROM other_stats WHERE team_abbreviation_home = 'MIN'; 35 True What is the most fast break points the Houston Rockets have scored in a single game? SELECT MAX(pts_fb_home) AS max_fast_break_points FROM other_stats WHERE team_abbreviation_home = 'HOU'; 37 True What is the win percentage of the Los Angeles Clippers in home games where they scored more than 110 points? SELECT COUNT(CASE WHEN wl_home = 'W' THEN 1 END) * 100.0 / COUNT(*) AS win_percentage FROM game WHERE team_name_home = 'LA Clippers' AND pts_home > 110; 83.24324324 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 How many games did the Boston Celtics 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 = 'Boston Celtics' AND g.wl_away = 'W' AND os.pts_paint_away > 20 AND g.season_id = '21996'; 4 True What is the ratio of team rebounds to total rebounds for the New York Knicks in their highest scoring home game? SELECT o.team_rebounds_home * 1.0 / NULLIF(g.reb_home, 0) AS team_to_total_reb_ratio FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'New York Knicks' ORDER BY g.pts_home DESC LIMIT 1; 0.3191489362 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 How many games did the Philadelphia 76ers win at home in 1996? SELECT COUNT(*) as home_wins FROM game WHERE team_name_home = 'Philadelphia 76ers' AND wl_home = 'W' AND season_id = '21996'; 11 True What is the average age of Wimbledon winners? SELECT AVG(winner_age) FROM matches WHERE tourney_name = 'Wimbledon'; 26.7238638689215 False What is the full name of the team with the abbreviation 'PHI'? SELECT full_name FROM team WHERE abbreviation = 'PHI'; Philadelphia 76ers True In games where the Atlanta Hawks recorded more than 10 steals at home, what was their win percentage during the 1998 season? 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 stl_home > 10 AND season_id = '21998'; 100 True How many matches went to “best of 5” at the US Open? SELECT COUNT(*) FROM matches WHERE tourney_name = 'US Open' AND best_of = '5'; 14144 False In games from the 2012 season, how often did the New Orleans Pelicans win despite committing more turnovers and having fewer rebounds than their opponent? SELECT COUNT(*) FROM game g WHERE ((g.team_abbreviation_home = 'NOP' AND g.wl_home = 'W' AND g.tov_home > g.tov_away AND g.reb_home < g.reb_away) OR (g.team_abbreviation_away = 'NOP' AND g.wl_away = 'W' AND g.tov_away > g.tov_home AND g.reb_away < g.reb_home)) AND g.season_id = '22012'; 0 True How many times have the Los Angeles Lakers scored exactly 100 points in an away game? SELECT COUNT(*) FROM game WHERE team_abbreviation_away = 'LAL' AND pts_away = 100; 69 True How many American (USA) players are in the database? SELECT COUNT(*) FROM players WHERE ioc = 'USA'; 13102 False What is the highest fast break points by the Washington Wizards away? SELECT MAX(pts_fb_away) as max_fb_points FROM other_stats WHERE team_abbreviation_away = 'WAS'; 39 True How many times has Pete Sampras been ranked in the top 5? SELECT COUNT(*) AS top5_count FROM rankings r JOIN players p ON r.player = p.player_id WHERE p.name = 'Pete Sampras' AND r.rank <= 5; 509 False How many games did the Los Angeles Lakers play at home in the 2010 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'LAL' AND season_id = '22010'; 41 True How many steals did the Charlotte Hornets have away in 1996? SELECT SUM(stl_away) as total_steals FROM game WHERE team_name_away = 'Charlotte Hornets' AND season_id = '21996'; 303 True What is the highest combined pts in any game involving the Golden State Warriors? SELECT MAX(pts_home + pts_away) FROM game WHERE team_name_home = 'Golden State Warriors' OR team_name_away = 'Golden State Warriors'; 320 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 points did the Milwaukee Bucks 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 = 'Milwaukee Bucks' AND g.season_id = '22017' ORDER BY g.pts_home DESC LIMIT 1; 34 | 123.0 True Which Denver Nuggets 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 = 'Denver Nuggets' ORDER BY os.lead_changes DESC LIMIT 1; 2006-01-10 00:00:00 | 32 True What is the most points the Dallas Mavericks have scored at home? SELECT MAX(pts_home) FROM game WHERE team_name_home = 'Dallas Mavericks'; 151 True 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 Which player defeated Andre Agassi the most at the US Open? SELECT winner_name, COUNT(*) AS wins FROM matches WHERE loser_name = 'Andre Agassi' AND tourney_name = 'US Open' GROUP BY winner_name ORDER BY wins DESC LIMIT 1; Pete Sampras|4 False What is the highest field goal percentage recorded by the Denver Nuggets in a home game? SELECT MAX(fg_pct_home) FROM game WHERE team_name_home = 'Denver Nuggets'; 0.659 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 How many home games did the Los Angeles Lakers play in the 2021 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Los Angeles Lakers' AND season_id = '22021'; 41.0 True Which player has defeated Rafael Nadal the most? SELECT winner_name, COUNT(*) AS wins_against FROM matches WHERE loser_name = 'Rafael Nadal' GROUP BY winner_name ORDER BY wins_against DESC LIMIT 1; Novak Djokovic|30 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 average height of players Nick Kyrgios defeated? SELECT AVG(loser_ht) FROM matches WHERE winner_name = 'Nick Kyrgios'; 186.636363636364 False How many points did the Indiana Pacers score as a home team in the game where they had the most blocks? SELECT pts_home FROM game WHERE team_abbreviation_home = 'IND' ORDER BY blk_home DESC LIMIT 1; 97 True 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 What is the average age of Alexander Zverev when losing matches? SELECT AVG(loser_age) FROM matches WHERE loser_name = 'Alexander Zverev'; 20.9510638297872 False What's the combined assist-to-turnover ratio for the Portland Trail Blazers 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 = 'Portland Trail Blazers' 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.73976718 True What is the most fast break points the Houston Rockets have scored at home in a game? SELECT MAX(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'HOU'; 37 True What is the maximum number of minutes played in a single match? SELECT MAX(minutes) FROM matches; 4756.0 False What is Novak Djokovic’s height? SELECT height FROM players WHERE name = 'Novak Djokovic'; 188.0 False 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 How many home games did the Boston Celtics play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Boston Celtics' AND season_id = '22018'; 41.0 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 is the highest points scored by the Miami Heat away when they had more than 15 points in the paint? 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 = 'Miami Heat' AND os.pts_paint_away > 15; 134 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 What is the average points scored by the Oklahoma City Thunder away? SELECT AVG(pts_away) as avg_points FROM game WHERE team_name_away = 'Oklahoma City Thunder'; 104.4814241 True How many total points were scored in the only game where both teams had identical stat lines for rebounds, assists, and turnovers? SELECT pts_home + pts_away FROM game WHERE reb_home = reb_away AND ast_home = ast_away AND tov_home = tov_away LIMIT 1; 209.0 True What is the highest points scored by the Boston Celtics away? SELECT MAX(pts_away) as max_points FROM game WHERE team_name_away = 'Boston Celtics'; 148 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 What is the highest-scoring game played by the Sacramento Kings at home? SELECT game_date, pts_home FROM game WHERE team_abbreviation_home = 'SAC' ORDER BY pts_home DESC LIMIT 1; 1993-01-02 00:00:00 | 154.0 True What is the total number of points scored by the Memphis Grizzlies in games where they made more than 15 three-pointers? SELECT SUM(points) AS total_points FROM ( SELECT pts_home AS points FROM game WHERE team_name_home = 'Memphis Grizzlies' AND fg3m_home > 15 UNION ALL SELECT pts_away AS points FROM game WHERE team_name_away = 'Memphis Grizzlies' AND fg3m_away > 15 ) AS combined_games 7559 True 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 was the average margin of victory for the Phoenix Suns 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 = 'Phoenix Suns' AND wl_home = 'W' AND ast_home > ast_away; 14.00434783 True What is the highest combined pts in any game involving the Toronto Raptors? SELECT MAX(pts_home + pts_away) FROM game WHERE team_name_home = 'Toronto Raptors' OR team_name_away = 'Toronto Raptors'; 278.0 True What is the highest field goals made by the New York Knicks at home? SELECT MAX(fgm_home) as max_fgm FROM game WHERE team_name_home = 'New York Knicks'; 62 True What is the total number of points scored by the Atlanta Hawks in fourth quarters during the 2021 season? SELECT SUM(points_off_turnovers) AS total_points_off_turnovers FROM ( SELECT os.pts_off_to_home AS points_off_turnovers FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Atlanta Hawks' AND g.season_id = '22021' UNION ALL SELECT os.pts_off_to_away AS points_off_turnovers FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Atlanta Hawks' AND g.season_id = '22021' ) AS all_games 1068 True 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 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 What is the total points scored by the Boston Celtics away? SELECT SUM(pts_away) as total_points FROM game WHERE team_name_away = 'Boston Celtics'; 315242 True What is the average number of points off turnovers scored by the Golden State Warriors at home in games with more than 20 lead changes during the 2019 season? SELECT AVG(o.pts_off_to_home) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'GSW' AND o.lead_changes > 20 AND g.season_id = '22019'; True How many points did Michael Jordan's Orlando Magic score in the paint during the 1997 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 = 'Orlando Magic' AND g.season_id = '21997' 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 = 'Orlando Magic' AND g.season_id = '21997' ) AS all_games 2808 True How many total team rebounds did the Washington Wizards 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 = 'WAS' AND os.pts_fb_away > 15; 2429 True What is the average number of pts in home games by the San Antonio Spurs? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'San Antonio Spurs'; 106.6730392 True How many times were games tied when the Charlotte Hornets played at home? SELECT SUM(times_tied) as total_times_tied FROM other_stats WHERE team_abbreviation_home = 'CHA'; 3332 True What is Taylor Fritz’s height and nationality? SELECT height, ioc FROM players WHERE name = 'Taylor Fritz'; 193.0|USA False How many points did the Brooklyn Nets score in their first away game in 2010? SELECT pts_away FROM game WHERE team_abbreviation_away = 'BKN' AND season_id = '22010' ORDER BY game_date ASC LIMIT 1; [] 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 in the paint allowed by the Golden State Warriors when playing at home in the 2009 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 = '22009' AND o.lead_changes > 15; 47 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 What is the most fast break points the Toronto Raptors have scored at home in a game? SELECT MAX(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'TOR'; 44 True How many times did Novak Djokovic beat Roger Federer at Wimbledon? SELECT COUNT(*) FROM matches WHERE winner_name = 'Novak Djokovic' AND loser_name = 'Roger Federer' AND tourney_name = 'Wimbledon'; 3 False What was the rebounding differential in games between the Toronto Raptors and Boston Celtics? SELECT AVG( CASE WHEN team_name_home = 'Toronto Raptors' THEN reb_home - reb_away ELSE reb_away - reb_home END ) AS avg_reb_diff FROM game WHERE (team_name_home = 'Toronto Raptors' AND team_name_away = 'Boston Celtics') OR (team_name_home = 'Boston Celtics' AND team_name_away = 'Toronto Raptors'); -0.9302325581 True How many total points did the Chicago Bulls score during the 1996 season? SELECT SUM(pts) AS total_points FROM ( SELECT pts_home AS pts FROM game WHERE team_abbreviation_home = 'CHI' AND season_id = '21996' UNION ALL SELECT pts_away AS pts FROM game WHERE team_abbreviation_away = 'CHI' AND season_id = '21996' ); 8458.0 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 number of lead changes in all games played by the Minnesota Timberwolves in the 2010 season? SELECT SUM(os.lead_changes) AS total_lead_changes FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '22010' AND (g.team_abbreviation_home = 'MIN' OR g.team_abbreviation_away = 'MIN'); 436 True Which opponent did the Minnesota Timberwolves 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 = 'Minnesota Timberwolves' GROUP BY team_name_away ORDER BY max_points DESC LIMIT 1; Chicago Bulls | 150.0 True What is the highest-scoring home game in NBA history? SELECT MAX(pts_home) FROM game; 192.0 True In 2013, what was the average number of rebounds by the Chicago Bulls 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 = 'CHI' AND o.times_tied >= 10 AND o.lead_changes < 10 AND g.season_id = '22013'; 40 True What hand does Roger Federer play with? SELECT hand FROM players WHERE name = 'Roger Federer'; R False What was the difference in average home winning margin between the Denver Nuggets and Utah Jazz in seasons where both teams made the playoffs? SELECT (SELECT AVG(pts_home - pts_away) FROM game WHERE team_name_home = 'Denver Nuggets' AND wl_home = 'W' AND season_id IN (SELECT DISTINCT season_id FROM game WHERE season_type = 'Playoffs' AND team_name_home = 'Denver Nuggets')) - (SELECT AVG(pts_home - pts_away) FROM game WHERE team_name_home = 'Utah Jazz' AND wl_home = 'W' AND season_id IN (SELECT DISTINCT season_id FROM game WHERE season_type = 'Playoffs' AND team_name_home = 'Utah Jazz')) AS margin_difference FROM game LIMIT 1; 1.549491596 True What is the most points the New York Knicks have scored at home? SELECT MAX(pts_home) FROM game WHERE team_name_home = 'New York Knicks'; 152 True List the full names of all teams founded in the 1980s. SELECT full_name FROM team WHERE year_founded BETWEEN 1980 AND 1989; Dallas Mavericks, Miami Heat, Minnesota Timberwolves, Orlando Magic, Charlotte Hornets True 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 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 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 Which home team had the highest shooting percentage in a game where they made fewer than 20 field goals? SELECT team_name_home FROM game WHERE fgm_home < 20 ORDER BY fg_pct_home DESC LIMIT 1; Boston Celtics True How many games did the Washington Wizards win at home in 1996? SELECT COUNT(*) as home_wins FROM game WHERE team_name_home = 'Washington Wizards' AND wl_home = 'W' AND season_id = '21996'; 0 True What is the average number of reb in away games by the Orlando Magic? SELECT AVG(reb_away) FROM game WHERE team_name_away = 'Orlando Magic'; 42.08327502 True How many away games did the Phoenix Suns play in the 2002 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Phoenix Suns' AND season_id = '22002'; 41 True 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 Find the game with the highest total combined score in the 2005 season. SELECT game_id, team_abbreviation_home, team_abbreviation_away, (pts_home + pts_away) AS total_score FROM game WHERE season_id = '22005' ORDER BY total_score DESC LIMIT 1; 0020500589|PHX|SEA|301.0 True What was Roger Federer’s average age when winning matches at Wimbledon? SELECT AVG(winner_age) FROM matches WHERE tourney_name = 'Wimbledon' AND winner_name = 'Roger Federer'; 29.3160377358491 False What is the most points the Miami Heat have scored in a single home game? SELECT pts_home FROM game WHERE team_name_home = 'Miami Heat' ORDER BY pts_home DESC LIMIT 1; 149.0 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 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 What's the highest number of team turnovers the Atlanta Hawks 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 = 'Atlanta Hawks' AND g.season_id = '22018'; 2 True Which cities host teams with abbreviations that start with 'C'? SELECT city FROM team WHERE abbreviation LIKE 'C%'; Cleveland, Chicago, Charlotte True Find the average points for Pete Sampras across all rankings. SELECT AVG(Points) FROM rankings r JOIN players p ON r.player = p.player_id WHERE p.name = 'Pete Sampras'; False How many matches was the winner’s age was greater than 30 SELECT COUNT(*) FROM matches WHERE winner_age > 30; 72400 False What is the average number of ft_pct in away games by the Utah Jazz? SELECT AVG(ft_pct_away) FROM game WHERE team_name_away = 'Utah Jazz'; 0.7584554974 True How many away games did the Portland Trail Blazers play in the 2002 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Portland Trail Blazers' AND season_id = '22002'; 41 True What is the lowest points scored by the Brooklyn Nets at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Brooklyn Nets'; 74 True How many times did the Milwaukee Bucks win at home in the 2017 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'MIL' AND season_id = '22017' AND pts_home > pts_away; 25 True What is the average number of reb in home games by the Los Angeles Lakers? SELECT AVG(reb_home) FROM game WHERE team_name_home = 'Los Angeles Lakers'; 44.57032854 True What is the total second chance points by the Portland Trail Blazers 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 = 'Portland Trail Blazers' AND g.wl_away = 'W'; 5309.0 True How many games did the Phoenix Suns 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 = 'Phoenix Suns' OR team_name_away = 'Phoenix Suns') AND pts_home > 100 AND pts_away > 100 AND season_id = '22010'; 36 True How many games did the Boston Celtics 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 = 'Boston Celtics' AND os.pts_paint_away > 20 AND g.season_id = '21996'; 30 True What is the lowest points scored by the Chicago Bulls at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Chicago Bulls'; 49 True 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 What is the average height of players who defeated Roger Federer? SELECT AVG(winner_ht) FROM matches WHERE loser_name = 'Roger Federer'; 186.934482758621 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 was the total number of points scored by the San Antonio Spurs in the 2014 season? SELECT SUM(points) AS total_points FROM ( SELECT pts_home AS points FROM game WHERE team_name_home = 'San Antonio Spurs' AND season_id = '22014' UNION ALL SELECT pts_away AS points FROM game WHERE team_name_away = 'San Antonio Spurs' AND season_id = '22014' ) AS season_games 8461 True What was the three-point shooting percentage for the Los Angeles Clippers in games against the Los Angeles Lakers? SELECT AVG( CASE WHEN team_name_home = 'LA Clippers' THEN fg3_pct_home ELSE fg3_pct_away END ) AS avg_3pt_percentage FROM game WHERE (team_name_home = 'LA Clippers' AND team_name_away = 'Los Angeles Lakers') OR (team_name_home = 'Los Angeles Lakers' AND team_name_away = 'LA Clippers'); 0.3734705882 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 What is the second-highest number of points the Golden State Warriors have ever scored in a single home game? SELECT pts_home FROM game WHERE team_name_home = 'Golden State Warriors' ORDER BY pts_home DESC LIMIT 1 OFFSET 1; 154.0 True How many games did the Denver Nuggets win at home in 1996? SELECT COUNT(*) as home_wins FROM game WHERE team_name_home = 'Denver Nuggets' AND wl_home = 'W' AND season_id = '21996'; 12.0 True What is the total assists by the Washington Wizards at home? SELECT SUM(ast_home) as total_assists FROM game WHERE team_name_home = 'Washington Wizards'; 23782 True What is the highest points scored by the Atlanta Hawks at home? SELECT MAX(pts_home) as max_points FROM game WHERE team_name_home = 'Atlanta Hawks'; 161 True What is the average points scored by the Indiana Pacers at home when they won in the 1996 season? SELECT AVG(pts_home) as avg_points FROM game WHERE team_name_home = 'Indiana Pacers' AND wl_home = 'W' AND season_id = '21996'; 102.2380952 True Which opponent did the Washington Wizards have the most fastbreak points against in a home game during the 2019 season? SELECT g.team_name_away, o.pts_fb_home AS fastbreak_points FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Washington Wizards' AND g.season_id = '22019' ORDER BY o.pts_fb_home DESC LIMIT 1; Houston Rockets | 21 True How many away games did the Golden State Warriors play in the 2022 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Golden State Warriors' AND season_id = '22022'; 41.0 True 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 What is the total second chance points by the Dallas Mavericks 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 = 'Dallas Mavericks' AND g.wl_away = 'L'; 6030 True Which opponent did the Oklahoma City Thunder have the most fastbreak points against in a home game during the 2019 season? SELECT g.team_name_away, o.pts_fb_home AS fastbreak_points FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Oklahoma City Thunder' AND g.season_id = '22019' ORDER BY o.pts_fb_home DESC LIMIT 1; Memphis Grizzlies | 23 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 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 What is the highest-scoring away game played by the Los Angeles Lakers? SELECT game_date, pts_away FROM game WHERE team_abbreviation_away = 'LAL' ORDER BY pts_away DESC LIMIT 1; 1980-01-29 00:00:00|153.0 True 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 highest number of three-pointers made by the Houston Rockets 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 = 'HOU' AND season_id = '22017' UNION ALL SELECT fg3m_away AS fg3m FROM game WHERE team_abbreviation_away = 'HOU' AND season_id = '22017' ); 23.0 True What was the highest-scoring game of the 2016 season? SELECT game_id, (pts_home + pts_away) AS total_points FROM game WHERE season_id = '22016' ORDER BY total_points DESC LIMIT 1; 0021600711|281.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 total points scored by the Denver Nuggets away? SELECT SUM(pts_away) as total_points FROM game WHERE team_name_away = 'Denver Nuggets'; 210741.0 True 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 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 maximum number of ranking points held by any player on any date? SELECT MAX(points) AS max_points FROM rankings; 16950.0 False What is the highest number of three-pointers the Houston Rockets made in a single away game during the 2018 season? SELECT MAX(fg3m_away) FROM game WHERE team_abbreviation_away = 'HOU' AND season_id = '22018'; 26.0 True What is Andre Agassi’s dominant playing hand? SELECT hand FROM players WHERE name = 'Andre Agassi'; R False 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'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 the highest combined tov in any game involving the Indiana Pacers? SELECT MAX(tov_home + tov_away) FROM game WHERE team_name_home = 'Indiana Pacers' OR team_name_away = 'Indiana Pacers'; 61 True What is the highest number of points scored by the Utah Jazz 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 = 'Utah Jazz' AND os.pts_2nd_chance_away > 10; 137.0 True 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 How many home games did the Washington Wizards play in the 2020 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Washington Wizards' AND season_id = '22020'; 36 True How many overtime games did the Denver Nuggets play in the 1994 season? SELECT COUNT(*) FROM game WHERE (team_abbreviation_home = 'DEN' OR team_abbreviation_away = 'DEN') AND season_id = '21994' AND min > 48; 82 True 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 games did the Indiana Pacers play at home in 1996? SELECT COUNT(*) as home_games FROM game WHERE team_name_home = 'Indiana Pacers' AND season_id = '21996'; 41 True How many points did the Minnesota Timberwolves score as visitors in their most turnover-heavy game? SELECT pts_away FROM game WHERE team_abbreviation_away = 'MIN' ORDER BY tov_away DESC LIMIT 1; 82 True In which season did the Boston Celtics have the highest average pts at home? SELECT season_id, AVG(pts_home) as avg_stat FROM game WHERE team_name_home = 'Boston Celtics' GROUP BY season_id ORDER BY avg_stat DESC LIMIT 1; 41989 | 129.0 True 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 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 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 How many points did the home team score in the game with the highest number of lead changes? SELECT pts_home FROM game WHERE game_id = (SELECT game_id FROM other_stats ORDER BY lead_changes DESC LIMIT 1); 122.0 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 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 How many players are left-handed? SELECT COUNT(*) FROM players WHERE hand = 'L'; 1435 False How many away games did the New Orleans Pelicans play in the 2009 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'New Orleans Pelicans' AND season_id = '22009'; 0 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 most total rebounds the Golden State Warriors have had in a home game? SELECT MAX(reb_home) FROM game WHERE team_abbreviation_home = 'GSW'; 72 True Find Los Angeles Lakers' largest home victory margin in the 2008 season. SELECT MAX(pts_home - pts_away) AS biggest_win FROM game WHERE team_abbreviation_home = 'LAL' AND season_id = '22008'; 29.0 True 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 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 nickname of the team founded in 1946? SELECT nickname FROM team WHERE year_founded = 1946; Celtics, Warriors, Knicks True What is the average number of fast break points the Portland Trail Blazers scored per game in the 2018 season? SELECT AVG(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'POR' AND game_id IN (SELECT game_id FROM game WHERE season_id = '22018'); 10.46153846 True How many games did the Houston Rockets play at home with more than 30 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_home = 'Houston Rockets' AND os.pts_paint_home > 30 AND g.season_id = '21996'; 28 True What is the lowest points scored by the Oklahoma City Thunder at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Oklahoma City Thunder'; 65 True What was the highest number of points scored by the Boston Celtics in a home game during the 2020 season? SELECT MAX(pts_home) AS max_points, team_name_home, season_id FROM game WHERE team_name_home = 'Boston Celtics' AND season_id = '22020' GROUP BY team_name_home, season_id; 145.0 | Boston Celtics | 22020 True What is the average number of points scored by the Los Angeles Clippers in home games during the 2019 season? SELECT AVG(pts_home) AS avg_points FROM game WHERE team_name_home = 'LA Clippers' AND season_id = '22019'; 117.5277778 True 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 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 How many times did the Chicago Bulls 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 = 'CHI' AND g.wl_home = 'L' AND g.stl_home > g.stl_away AND g.blk_home > g.blk_away AND g.season_id = '22015'; 0 True 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 True List the first names of players born after the year 2008. SELECT name_first FROM players WHERE dob > 20080101; Vito Antonio False What's the highest number of blocks recorded by the New York Knicks in any game? SELECT MAX(blocks) AS max_blocks FROM ( SELECT blk_home AS blocks FROM game WHERE team_name_home = 'New York Knicks' UNION ALL SELECT blk_away AS blocks FROM game WHERE team_name_away = 'New York Knicks' ); 15 True In the 2006 season, how many games did the Philadelphia 76ers 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 = 'PHI' AND g.wl_home = 'L' AND o.total_turnovers_home < o.total_turnovers_away AND g.season_id = '22006'; 7 True What is the abbreviation for the Atlanta Hawks in the team table? SELECT abbreviation FROM team WHERE full_name = 'Atlanta Hawks'; ATL 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 What is the average height of all Wimbledon winners? SELECT AVG(winner_ht) FROM matches WHERE tourney_name = 'Wimbledon'; 185.318105616094 False What is the average number of points in the paint allowed by the New York Knicks 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 = 'NYK' AND g.season_id = '22007' AND o.lead_changes > 15; 40.666666666666664 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 True What is the average number of ft_pct in away games by the New York Knicks? SELECT AVG(ft_pct_away) FROM game WHERE team_name_away = 'New York Knicks'; 0.7497584485 True What is the highest points scored by the Washington Wizards away? SELECT MAX(pts_away) as max_points FROM game WHERE team_name_away = 'Washington Wizards'; 147 True 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 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 What is the largest lead the New York Knicks have ever had in an away game? SELECT MAX(largest_lead_away) FROM other_stats WHERE team_abbreviation_away = 'NYK'; 48 True 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'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 What is the difference in free throw percentage between the Miami Heat and their opponents in home games? SELECT AVG(ft_pct_home - ft_pct_away) AS ft_pct_diff FROM game WHERE team_name_home = 'Miami Heat'; -0.009185760518 True What is the average number of points in the paint allowed by the Boston Celtics when playing at home in the 2016 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 = 'BOS' AND g.season_id = '22016' AND o.lead_changes > 15; 40.0 True What is the number of wins Rafael Nadal has at the Australian Open? SELECT COUNT(*) FROM matches WHERE winner_name = 'Rafael Nadal' AND tourney_name = 'Australian Open'; 77 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 times were games tied during the 1998 season in which the Boston Celtics played? SELECT SUM(os.times_tied) AS total_times_tied FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '21998' AND (g.team_abbreviation_home = 'BOS' OR g.team_abbreviation_away = 'BOS'); 172 True How many turnovers did the Boston Celtics commit at home during the 1998 season? SELECT SUM(tov_home) FROM game WHERE team_name_home = 'Boston Celtics' AND season_id = '21998'; 415 True 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 average points per game the Orlando Magic scored at home in games where they grabbed more offensive rebounds than their opponents during the 2018 season? SELECT AVG(pts_home) AS avg_points FROM game WHERE team_name_home = 'Orlando Magic' AND oreb_home > oreb_away AND season_id = '22018'; 108.2727273 True What was the average points scored by the Toronto Raptors in games where they had a higher field goal percentage than their opponent but still lost at home? SELECT AVG(pts_home) AS avg_points FROM game WHERE team_name_home = 'Toronto Raptors' AND fg_pct_home > fg_pct_away AND wl_home = 'L'; 99.39805825 True Which team forced the most turnovers in a single game during the 2016 season? SELECT game.team_name_home AS team, MAX(other_stats.total_turnovers_away) AS forced_turnovers FROM other_stats JOIN game ON other_stats.game_id = game.game_id WHERE game.season_id = '22016' UNION SELECT game.team_name_away AS team, MAX(other_stats.total_turnovers_home) AS forced_turnovers FROM other_stats JOIN game ON other_stats.game_id = game.game_id WHERE game.season_id = '22016' ORDER BY forced_turnovers DESC LIMIT 1; Houston Rockets|28 True What was the combined rebound total for the Toronto Raptors and Brooklyn Nets in their highest scoring game against each other? SELECT MAX(g.pts_home + g.pts_away) AS total_points, g.reb_home + g.reb_away AS total_rebounds FROM game g WHERE (g.team_name_home = 'Toronto Raptors' AND g.team_name_away = 'Brooklyn Nets') OR (g.team_name_home = 'Brooklyn Nets' AND g.team_name_away = 'Toronto Raptors') ORDER BY total_points DESC LIMIT 1; 272.0 | 101.0 True What is the date of birth of Andy Murray? SELECT dob FROM players WHERE name = 'Andy Murray'; 19870515 False Which teams share the same city as the Los Angeles Lakers? SELECT full_name FROM team WHERE city = (SELECT city FROM team WHERE full_name = 'Los Angeles Lakers'); Los Angeles Clippers, Los Angeles Lakers 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 Which New Orleans Pelicans 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 = 'New Orleans Pelicans' ORDER BY os.lead_changes DESC LIMIT 1; 2016-03-31 00:00:00 | 27 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 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 highest-scoring away game for the Orlando Magic? SELECT game_id, game_date, pts_away FROM game WHERE team_name_away = 'Orlando Magic' ORDER BY pts_away DESC LIMIT 1; 0029400678 | 1995-02-20 00:00:00 | 152.0 True What was the highest-scoring combined total of any game the San Antonio Spurs played in during the 2007 season? SELECT MAX(pts_home + pts_away) FROM game WHERE team_abbreviation_home = 'SAS' OR team_abbreviation_away = 'SAS' AND season_id = '22007'; 301.0 True What's the highest number of team turnovers the Detroit Pistons 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 = 'Detroit Pistons' AND g.season_id = '22018'; 3.0 True What is the lowest points scored by the Dallas Mavericks at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Dallas Mavericks'; 62.0 True 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 What country is Rafael Nadal from? SELECT ioc FROM players WHERE name = 'Rafael Nadal'; ESP False How many total games did the Portland Trail Blazers play in the 2015 season? SELECT COUNT(*) FROM game WHERE (team_abbreviation_home = 'POR' OR team_abbreviation_away = 'POR') AND season_id = '22015'; 82 True 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 times has Andy Murray beaten Novak Djokovic? SELECT COUNT(*) FROM matches WHERE winner_name = 'Andy Murray' AND loser_name = 'Novak Djokovic'; 11 False 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 was the highest field goal percentage the Phoenix Suns achieved in a single away game in the 2008 season? SELECT MAX(fg_pct_away) FROM game WHERE team_abbreviation_away = 'PHX' AND season_id = '22008'; 0.632 True How many fast break points did the Chicago Bulls score away? SELECT SUM(pts_fb_away) as total_fb_points FROM other_stats WHERE team_abbreviation_away = 'CHI'; 11183 True How many total blocks did the Indiana Pacers 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 = 'Indiana Pacers' AND tov_home > 10 UNION ALL SELECT blk_away AS blocks FROM game WHERE team_name_away = 'Indiana Pacers' AND tov_away > 10 ) AS turnover_games 14375 True 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 What is the highest points scored by the Atlanta Hawks at home? SELECT MAX(pts_home) as max_points FROM game WHERE team_name_home = 'Atlanta Hawks'; 161.0 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 is the average number of points scored by the Indiana Pacers on the road during the 2015 season? SELECT AVG(pts_away) FROM game WHERE team_abbreviation_away = 'IND' AND season_id = '22015'; 101.4146341 True How many games did the Portland Trail Blazers play at home in 1996? SELECT COUNT(*) as home_games FROM game WHERE team_name_home = 'Portland Trail Blazers' AND season_id = '21996'; 41 True What is the average number of assists per game for the Orlando Magic when playing at home versus away? SELECT (SELECT AVG(ast_home) FROM game WHERE team_name_home = 'Orlando Magic') AS avg_home_assists, (SELECT AVG(ast_away) FROM game WHERE team_name_away = 'Orlando Magic') AS avg_away_assists FROM game LIMIT 1; 22.146461107217938 | 21.407977606717985 True How many home games did the New Orleans Pelicans play in the 2021 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'New Orleans Pelicans' AND season_id = '22021'; 41 True How many home games did the Boston Celtics play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Boston Celtics' AND season_id = '22018'; 41 True 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 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 How many points were scored by the home team in the game with the most fast break points? SELECT pts_home FROM game WHERE game_id = (SELECT game_id FROM other_stats ORDER BY (pts_fb_home + pts_fb_away) DESC LIMIT 1); 192.0,192.0 True What is the total rebounds by the Oklahoma City Thunder away? SELECT SUM(reb_away) as total_rebounds FROM game WHERE team_name_away = 'Oklahoma City Thunder'; 28971 True In how many home games did the Dallas Mavericks score more fast-break points than their opponent? SELECT COUNT(*) FROM other_stats WHERE team_abbreviation_home = 'DAL' AND pts_fb_home > pts_fb_away; 429 True What was the highest number of points the Chicago Bulls scored in a game where they shot below their season average from three-point range? WITH season_avg AS ( SELECT AVG(fg3_pct_home) AS avg_3pt_pct FROM game WHERE team_name_home = 'Chicago Bulls' AND season_id = '22016' ) SELECT MAX(g.pts_home) AS max_points FROM game g, season_avg s WHERE g.team_name_home = 'Chicago Bulls' AND g.season_id = '22016' AND g.fg3_pct_home < s.avg_3pt_pct; 118 True Which matchup had the most field goals made by the home team in a loss? SELECT matchup_home FROM game WHERE wl_home = 'L' ORDER BY fgm_home DESC LIMIT 1; LBN vs. GNS True 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 scored by the Golden State Warriors away? SELECT MAX(pts_away) as max_points FROM game WHERE team_name_away = 'Golden State Warriors'; 162 True 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 What is the average number of points in the paint allowed by the Miami Heat when playing at home in the 2006 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 = 'MIA' AND g.season_id = '22006' AND o.lead_changes > 15; 50 True What is the average number of pts in home games by the Portland Trail Blazers? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'Portland Trail Blazers'; 106.8559441 True 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's the average number of three-pointers made by the Phoenix Suns in home games during the 2016 season? SELECT AVG(fg3m_home) FROM game WHERE team_name_home = 'Phoenix Suns' AND season_id = '22016'; 7.829268293 True How many times did the Charlotte Hornets win at home in the 2017 season? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'CHA' AND season_id = '22017' AND pts_home > pts_away; 21 True What was the total score of the first game ever where both teams shot over 90% from the free throw line? SELECT pts_home + pts_away FROM game WHERE ft_pct_home > 0.9 AND ft_pct_away > 0.9 ORDER BY game_date ASC LIMIT 1; 193.0 True What is the most points the Cleveland Cavaliers have scored at home? SELECT MAX(pts_home) FROM game WHERE team_name_home = 'Cleveland Cavaliers'; 154 True Which team scored the most second-chance points in a game during the 2019 season? SELECT CASE WHEN o.pts_2nd_chance_home > o.pts_2nd_chance_away THEN g.team_name_home ELSE g.team_name_away END AS team_name, CASE WHEN o.pts_2nd_chance_home > o.pts_2nd_chance_away THEN o.pts_2nd_chance_home ELSE o.pts_2nd_chance_away END AS second_chance_points, g.game_date FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.season_id = '22019' ORDER BY second_chance_points DESC LIMIT 1; Minnesota Timberwolves | 35 | 2019-11-08 00:00:00 True 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 What is the abbreviation of the team nicknamed 'Heat'? SELECT abbreviation FROM team WHERE nickname = 'Heat'; MIA True What is the average number of minutes played in home games with more than 15 steals? SELECT AVG(min) FROM game WHERE stl_home > 15; 242.13254593175853 True What was the total number of assists made by the Miami Heat in games where they scored more than 110 points at home? SELECT SUM(ast_home) AS total_assists FROM game WHERE team_name_home = 'Miami Heat' AND pts_home > 110; 9235 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 What is the total number of wins Pete Sampras has at the US Open? SELECT COUNT(*) FROM matches WHERE winner_name = 'Pete Sampras' AND tourney_name = 'US Open'; 71 False What is the most points the Washington Wizards have scored at home? SELECT MAX(pts_home) FROM game WHERE team_name_home = 'Washington Wizards'; 158 True What is the average number of lead changes in games where the Orlando Magic 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 = 'Orlando Magic' AND g.wl_home = 'W' AND (g.pts_home - g.pts_away) < 10; 7.601626016 True What's the total second-chance points the Toronto Raptors scored in away losses during the 2019 season? SELECT SUM(os.pts_2nd_chance_away) FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Toronto Raptors' AND g.wl_away = 'L' AND g.season_id = '22019'; 94.0 True Which player is the tallest? SELECT name, height FROM players ORDER BY height DESC LIMIT 1; Reilly Opelka|211.0 False How many matches did Taylor Fritz win on grass courts? SELECT COUNT(*) FROM matches WHERE winner_name = 'Taylor Fritz' AND surface = 'Grass'; 32 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 How many points in the paint did the San Antonio Spurs score at home in 1996? SELECT SUM(os.pts_paint_home) as total_pts_paint FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'San Antonio Spurs' AND g.season_id = '21996'; 1454 True What is the total points off turnovers by the Charlotte Hornets away? SELECT SUM(pts_off_to_away) as total_pts_off_to FROM other_stats WHERE team_abbreviation_away = 'CHA'; 10441.0 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 What is the average match duration at Wimbledon? SELECT AVG(minutes) AS avg_duration FROM matches WHERE tourney_name = 'Wimbledon'; 130.965458422175 False What is the average plus-minus for the Detroit Pistons 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 = 'DET' AND o.pts_2nd_chance_away > o.pts_2nd_chance_home AND g.season_id = '22003'; 9.9375 True What is the average points scored by the Washington Wizards at home? SELECT AVG(pts_home) as avg_points FROM game WHERE team_name_home = 'Washington Wizards'; 102.91 True What is the total number of lead changes in all games played by the Detroit Pistons in the 2010 season? SELECT SUM(os.lead_changes) AS total_lead_changes FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '22010' AND (g.team_abbreviation_home = 'DET' OR g.team_abbreviation_away = 'DET'); 474 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 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 What is the average number of points in the paint allowed by the Toronto Raptors when playing at home in the 2014 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 = 'TOR' AND g.season_id = '22014' AND o.lead_changes > 15; 42.0 True What is the most points the Cleveland Cavaliers have scored in an away game in the 2004 season? SELECT MAX(pts_away) FROM game WHERE team_abbreviation_away = 'CLE' AND season_id = '22004'; 114 True What is the second-highest number of points the Oklahoma City Thunder have ever scored in a single home game? SELECT pts_home FROM game WHERE team_name_home = 'Oklahoma City Thunder' ORDER BY pts_home DESC LIMIT 1 OFFSET 1; 150 True What is the average number of points in the paint allowed by the Detroit Pistons when playing at home in the 2019 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 = 'DET' AND g.season_id = '22019' AND o.lead_changes > 15; 52.0 True How many total turnovers did the Washington Wizards 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 = 'WAS'; 530 True What is the minimum age Rafael Nadal lost a match? SELECT MIN(loser_age) FROM matches WHERE loser_name = 'Rafael Nadal'; 15.2 False What is the average height of all players? SELECT AVG(height) FROM players; 183.74813763746 False What is the highest number of assists recorded by the New York Knicks at home in a single game? SELECT MAX(ast_home) FROM game WHERE team_abbreviation_home = 'NYK'; 43.0 True What is the total points scored by the Detroit Pistons at home when they had more than 10 steals? SELECT SUM(pts_home) as total_points FROM game WHERE team_name_home = 'Detroit Pistons' AND stl_home > 10; 22493.0 True Which opponent did the Toronto Raptors have the highest average point differential against in home games during the 2019 championship season? SELECT team_name_away, AVG(pts_home - pts_away) AS avg_point_diff FROM game WHERE team_name_home = 'Toronto Raptors' AND season_id = '22019' GROUP BY team_name_away ORDER BY avg_point_diff DESC LIMIT 1; New York Knicks | 28.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 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 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 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 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 How many home games did the New Orleans Pelicans play in the 2001 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'New Orleans Pelicans' AND season_id = '22001'; 0 True How many players were born before 1980? SELECT COUNT(*) FROM players WHERE dob < 19800101; 15041 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 most turnovers the Washington Wizards have committed in an away game? SELECT MAX(total_turnovers_away) FROM other_stats WHERE team_abbreviation_away = 'WAS'; 28 True What was the lowest-scoring home game for the Golden State Warriors? SELECT game_date, pts_home FROM game WHERE team_abbreviation_home = 'GSW' ORDER BY pts_home ASC LIMIT 1; 1997-12-03 00:00:00|67.0 True What is the number of matches Novak Djokovic played in 2019? SELECT COUNT(*) FROM matches WHERE (winner_name = 'Novak Djokovic' OR loser_name = 'Novak Djokovic') AND tourney_date BETWEEN 20190101 AND 20191231; 65 False How many total turnovers did the Houston Rockets 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 = 'HOU'; 623 True In the 2016 season, what was the average number of second chance points allowed by the New Orleans Pelicans in games they won by less than 5 points? 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 = 'NOP' AND g.wl_home = 'W' AND ABS(g.pts_home - g.pts_away) < 5) OR (g.team_abbreviation_away = 'NOP' AND g.wl_away = 'W' AND ABS(g.pts_home - g.pts_away) < 5)) AND g.season_id = '22016'; 14.222222222222221 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 scored by the Memphis Grizzlies away? SELECT SUM(pts_away) as total_points FROM game WHERE team_name_away = 'Memphis Grizzlies'; 93388 True What is the average number of points scored by the Memphis Grizzlies in games where they had at least 15 second-chance points? SELECT AVG(pts) AS avg_points FROM ( SELECT g.pts_home AS pts FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Memphis Grizzlies' AND o.pts_2nd_chance_home >= 15 UNION ALL SELECT g.pts_away AS pts FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_away = 'Memphis Grizzlies' AND o.pts_2nd_chance_away >= 15 ); 103.8890815 True What is the total points off turnovers by the Detroit Pistons at home? SELECT SUM(pts_off_to_home) as total_pts_off_to FROM other_stats WHERE team_abbreviation_home = 'DET'; 11805 True What was the largest lead the Oklahoma City Thunder have ever had in a home game? SELECT MAX(largest_lead_home) FROM other_stats WHERE team_abbreviation_home = 'OKC'; 43 True How many away games did the Chicago Bulls play in the 2011 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Chicago Bulls' AND season_id = '22011'; 33.0 True Which team had the most assists in a game where they also had fewer than 10 turnovers during the 2021 season? SELECT team_name, assists, turnovers, game_date FROM ( SELECT team_name_home AS team_name, ast_home AS assists, tov_home AS turnovers, game_date FROM game WHERE season_id = '22021' AND tov_home < 10 UNION ALL SELECT team_name_away AS team_name, ast_away AS assists, tov_away AS turnovers, game_date FROM game WHERE season_id = '22021' AND tov_away < 10 ) ORDER BY assists DESC LIMIT 1; Phoenix Suns | 40.0 | 7.0 | 2022-02-12 00:00:00 True What was the largest lead held by the Orlando Magic 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 = 'Orlando Magic' AND g.wl_home = 'L' ORDER BY o.largest_lead_home DESC LIMIT 1; 46 | 2017-11-18 00:00:00 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 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 points in the paint allowed by the Toronto Raptors 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 = 'TOR' AND g.season_id = '22017' AND o.lead_changes > 15; 44.4 True What is the highest combined tov in any game involving the Utah Jazz? SELECT MAX(tov_home + tov_away) FROM game WHERE team_name_home = 'Utah Jazz' OR team_name_away = 'Utah Jazz'; 60 True What is the total fast break points by the Chicago Bulls at home in games they won in 1996? 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 = 'Chicago Bulls' AND g.wl_home = 'W' AND g.season_id = '21996'; 487.0 True 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