|
natural_query sql_query result from_to_where after_froM after_from |
|
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 game g JOIN other_stats os ON g.game_id = os.game_id game game |
|
What is the average fast break points scored by the Philadelphia 76ers at home during the 2018 season? SELECT AVG(os.pts_fb_home) AS avg_fast_break FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_abbreviation_home = 'PHI' AND g.season_id = '22018'; 16.32352941 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many Golden State Warriors home games were there where they scored more paint points than their opponents? SELECT COUNT(*) FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_abbreviation_home = 'GSW' AND os.pts_paint_home > os.pts_paint_away; 484 game g JOIN other_stats os ON g.game_id = os.game_id game game |
|
What is the average second-chance points for Toronto Raptors home games between 2015-2020? SELECT AVG(os.pts_2nd_chance_home) AS avg_second_chance FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_abbreviation_home = 'TOR' AND g.season_id BETWEEN '22015' AND '22020'; 13.07653061 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
Which team had the largest lead in any game during the 2020 season? SELECT CASE WHEN o.largest_lead_home >= o.largest_lead_away THEN g.team_name_home ELSE g.team_name_away END AS team_name, CASE WHEN o.largest_lead_home >= o.largest_lead_away THEN o.largest_lead_home ELSE o.largest_lead_away END AS largest_lead, g.game_date FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.season_id = '22020' ORDER BY largest_lead DESC LIMIT 1; Indiana Pacers | 67 | 2021-05-01 00:00:00 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
How many games had more than 20 lead changes in the 2019 season? SELECT COUNT(*) AS high_lead_change_games FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.season_id = '22019' AND o.lead_changes > 20; 11 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the average number of rebounds grabbed by the Toronto Raptors in games where they scored at least 40 points from fast breaks? SELECT AVG(rebounds) AS avg_rebounds FROM ( SELECT g.game_id, g.reb_home AS rebounds FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Toronto Raptors' AND o.pts_fb_home >= 40 UNION ALL SELECT g.game_id, g.reb_away AS rebounds FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_away = 'Toronto Raptors' AND o.pts_fb_away >= 40 ); 43.9 ( SELECT g.game_id, g.reb_home AS rebounds FROM game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 ( SELECT o.pts_paint_home AS pts_paint FROM game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
How many games did the Oklahoma City Thunder score more than 30 points in the first quarter during the 2017 season? SELECT COUNT(*) AS high_scoring_first_quarters FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE (g.team_name_home = 'Oklahoma City Thunder' AND g.pts_home / 4 > 30) OR (g.team_name_away = 'Oklahoma City Thunder' AND g.pts_away / 4 > 30) AND g.season_id = '22017'; 83 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of points scored by the Portland Trail Blazers 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 = 'Portland Trail Blazers' 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 = 'Portland Trail Blazers' AND o.pts_2nd_chance_away >= 15 ); 102.9899497 ( SELECT g.pts_home AS pts FROM game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
How many games in the 2018 season had more than 15 lead changes and more than 10 ties? SELECT COUNT(*) AS competitive_games FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.season_id = '22018' AND o.lead_changes > 15 AND o.times_tied > 10; 54 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
Which team had the most points off turnovers in a single game during the 2020 season? SELECT CASE WHEN o.pts_off_to_home > o.pts_off_to_away THEN g.team_name_home ELSE g.team_name_away END AS team_name, CASE WHEN o.pts_off_to_home > o.pts_off_to_away THEN o.pts_off_to_home ELSE o.pts_off_to_away END AS points_off_turnovers, g.game_date FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.season_id = '22020' ORDER BY points_off_turnovers DESC LIMIT 1; Denver Nuggets | 39 | 2021-04-19 00:00:00 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What's the average number of fastbreak points scored by winning teams in the 2021 season? SELECT AVG(fastbreak_points) AS avg_fb_points_winners FROM ( SELECT o.pts_fb_home AS fastbreak_points FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.wl_home = 'W' AND g.season_id = '22021' UNION ALL SELECT o.pts_fb_away AS fastbreak_points FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.wl_away = 'W' AND g.season_id = '22021' ); 12.45038168 ( SELECT o.pts_fb_home AS fastbreak_points FROM game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the total number of points the Boston Celtics scored in the paint during the 2020 season? SELECT SUM(paint_points) AS total_paint_points FROM ( SELECT os.pts_paint_home AS paint_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Boston Celtics' AND g.season_id = '22020' UNION ALL SELECT os.pts_paint_away AS paint_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Boston Celtics' AND g.season_id = '22020' ) AS all_games 2884 ( SELECT os.pts_paint_home AS paint_points FROM other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What was the average number of fast break points scored by the Miami Heat 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 = 'Miami Heat' 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 = 'Miami Heat' AND g.wl_away = 'L' AND g.season_id = '22017' ) AS losing_games 11.29032258 ( SELECT os.pts_fb_home AS fastbreak_points FROM other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 ( SELECT os.pts_off_to_home AS points_off_turnovers FROM other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many points did Michael Jordan's Chicago Bulls 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 = 'Chicago Bulls' 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 = 'Chicago Bulls' AND g.season_id = '21997' ) AS all_games 2654 ( SELECT os.pts_paint_home AS paint_points FROM other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 ( 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 game game |
|
Which team scored the most points off turnovers in the 2017 season and how many points did they score? SELECT team_name, SUM(pts_off_turnovers) AS total_pts_off_turnovers FROM ( SELECT g.team_name_home AS team_name, os.pts_off_to_home AS pts_off_turnovers FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.season_id = '22017' UNION ALL SELECT g.team_name_away AS team_name, os.pts_off_to_away AS pts_off_turnovers FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.season_id = '22017' ) AS all_games GROUP BY team_name ORDER BY total_pts_off_turnovers DESC LIMIT 1 Atlanta Hawks | 1309 ( SELECT g.team_name_home AS team_name, os.pts_off_to_home AS pts_off_turnovers FROM game g JOIN other_stats os ON g.game_id = os.game_id game game |
|
What team had the highest average number of fast break points per game in the 2005 season and how many of those points did they score? SELECT team_name, AVG(fastbreak_pts) AS avg_fastbreak_pts FROM ( SELECT g.team_name_home AS team_name, os.pts_fb_home AS fastbreak_pts FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.season_id = '22005' UNION ALL SELECT g.team_name_away AS team_name, os.pts_fb_away AS fastbreak_pts FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.season_id = '22005' ) AS all_teams GROUP BY team_name ORDER BY avg_fastbreak_pts DESC LIMIT 1 Denver Nuggets | 16.1641791044776 ( SELECT g.team_name_home AS team_name, os.pts_fb_home AS fastbreak_pts FROM game g JOIN other_stats os ON g.game_id = os.game_id game game |
|
Which team had the best overall record in the 2010 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 = '22010' 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 = '22010' 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 DESC LIMIT 1 Chicago Bulls | 62 | 20 | 0.75609756097561 game game game |
|
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 game game game |
|
Which team had the largest home court lead in any game against the Los Angeles Lakers? SELECT team_city_home AS home_team, largest_lead_home AS max_lead FROM other_stats JOIN game ON other_stats.game_id = game.game_id WHERE team_name_away = 'Los Angeles Lakers' ORDER BY largest_lead_home DESC LIMIT 1; Utah | 53 other_stats JOIN game ON other_stats.game_id = game.game_id other_stats other_stats |
|
How many fastbreak points did the Miami Heat 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 = 'Miami Heat' AND g.season_id = '22019' ORDER BY g.pts_home DESC LIMIT 1; 8 | 137.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of points scored in the paint by the Philadelphia 76ers 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 = 'Philadelphia 76ers' 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 = 'Philadelphia 76ers' AND g.wl_home = 'L') AS avg_paint_points_losses FROM game LIMIT 1; 42.4105461393597 | 41.4549763033175 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
In which season did the Los Angeles Lakers have the highest average points in the paint at home? SELECT g.season_id, AVG(o.pts_paint_home) AS avg_paint_points FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Los Angeles Lakers' GROUP BY g.season_id ORDER BY avg_paint_points DESC LIMIT 1; 22018 | 54.4242424242424 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
Which opponent did the Golden State Warriors have the most lead changes against in a single home game? SELECT o.team_city_away AS opponent, o.lead_changes FROM other_stats o JOIN game g ON o.game_id = g.game_id WHERE g.team_name_home = 'Golden State Warriors' ORDER BY o.lead_changes DESC LIMIT 1; Seattle | 33 other_stats o JOIN game g ON o.game_id = g.game_id other_stats other_stats |
|
What was the date of the game with the most combined second-chance points between the Philadelphia 76ers and the Brooklyn Nets? SELECT g.game_date, (o.pts_2nd_chance_home + o.pts_2nd_chance_away) AS total_second_chance_pts FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE (g.team_name_home = 'Philadelphia 76ers' AND g.team_name_away = 'Brooklyn Nets') OR (g.team_name_home = 'Brooklyn Nets' AND g.team_name_away = 'Philadelphia 76ers') ORDER BY total_second_chance_pts DESC LIMIT 1; 2012-10-19 00:00:00 | 49 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
How many points did the Chicago Bulls score from fastbreaks and points off turnovers combined in their highest scoring home game of the 2017 season? SELECT (o.pts_fb_home + o.pts_off_to_home) AS transition_points, g.pts_home FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Chicago Bulls' AND g.season_id = '22017' ORDER BY g.pts_home DESC LIMIT 1; 28 | 123.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of points in the paint scored by the Sacramento Kings at home in the first half of the 2018 season compared to the second half? 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 = 'Sacramento Kings' AND g.season_id = '22018' AND CAST(strftime('%m', g.game_date) AS INTEGER) <= 6) AS first_half_avg, (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 = 'Sacramento Kings' AND g.season_id = '22018' AND CAST(strftime('%m', g.game_date) AS INTEGER) > 6) AS second_half_avg FROM game LIMIT 1; 51.3 | 49.5 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 other_stats o JOIN game g ON o.game_id = g.game_id other_stats other_stats |
|
What's the combined assist-to-turnover ratio for the Cleveland Cavaliers 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 = 'Cleveland Cavaliers' 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.731766124 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
In games where the Phoenix Suns outscored their opponents in fastbreak points at home, what was their win percentage? SELECT COUNT(CASE WHEN g.wl_home = 'W' THEN 1 END) * 100.0 / COUNT(*) AS win_percentage FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Phoenix Suns' AND o.pts_fb_home > o.pts_fb_away; 62.12121212 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
Which team had the highest average points from second chance opportunities in home games they won during the 2016 season? SELECT g.team_name_home, AVG(o.pts_2nd_chance_home) AS avg_second_chance_pts FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.wl_home = 'W' AND g.season_id = '22016' GROUP BY g.team_name_home ORDER BY avg_second_chance_pts DESC LIMIT 1; Los Angeles Lakers | 15.6153846153846 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the lowest number of combined turnovers in any game involving the San Antonio Spurs during the 2019 season? SELECT MIN(o.total_turnovers_home + o.total_turnovers_away) AS min_combined_turnovers FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE (g.team_name_home = 'San Antonio Spurs' OR g.team_name_away = 'San Antonio Spurs') AND g.season_id = '22019'; 13 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
In games where the Brooklyn Nets scored more than 50 points in the paint at home, what was their assist-to-field goal made ratio? SELECT SUM(g.ast_home) * 1.0 / SUM(g.fgm_home) AS assist_to_fgm_ratio FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Brooklyn Nets' AND o.pts_paint_home > 50; 0.588761175 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 other_stats o JOIN game g ON o.game_id = g.game_id other_stats other_stats |
|
Which team had the largest improvement in points off turnovers at home from the 2015 to 2016 season? SELECT g1.team_name_home, AVG(CASE WHEN g1.season_id = '22016' THEN o1.pts_off_to_home END) - AVG(CASE WHEN g1.season_id = '22015' THEN o1.pts_off_to_home END) AS improvement FROM game g1 JOIN other_stats o1 ON g1.game_id = o1.game_id WHERE g1.season_id IN ('22015', '22016') GROUP BY g1.team_name_home ORDER BY improvement DESC LIMIT 1; Los Angeles Lakers | 2.32432432432432 game g1 JOIN other_stats o1 ON g1.game_id = o1.game_id game game |
|
Which opponent did the Philadelphia 76ers have the most ties in a single game with during the 2019 season? SELECT g.team_name_away, o.times_tied FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Philadelphia 76ers' AND g.season_id = '22019' ORDER BY o.times_tied DESC LIMIT 1; Indiana Pacers | 14 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
Which opponent did the Orlando Magic 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 = 'Orlando Magic' AND g.season_id = '22019' ORDER BY o.pts_fb_home DESC LIMIT 1; New Orleans Pelicans | 21 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the average number of lead changes in games where the Milwaukee Bucks won at home by less than 5 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 = 'Milwaukee Bucks' AND g.wl_home = 'W' AND (g.pts_home - g.pts_away) < 5; 8.59375 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the points in the paint difference between the Los Angeles Lakers and their opponents in home games they won by double digits during the 2020 season? SELECT AVG(o.pts_paint_home - o.pts_paint_away) AS paint_points_diff FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Los Angeles Lakers' AND g.wl_home = 'W' AND (g.pts_home - g.pts_away) >= 10 AND g.season_id = '22020'; -0.5454545455 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the largest deficit overcome by the Miami Heat in any home victory? SELECT o.largest_lead_away AS max_deficit_overcome FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Miami Heat' AND g.wl_home = 'W' ORDER BY o.largest_lead_away DESC LIMIT 1; 46 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the difference in second-chance points between the Chicago Bulls and their opponents in their closest home game of the 2016 season? SELECT o.pts_2nd_chance_home - o.pts_2nd_chance_away AS second_chance_diff FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Chicago Bulls' AND g.season_id = '22016' ORDER BY ABS(g.pts_home - g.pts_away) ASC LIMIT 1; -5 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
Which opponent gave up the most points in the paint to the New York Knicks in a home game during the 2019 season? SELECT g.team_name_away, o.pts_paint_home FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'New York Knicks' AND g.season_id = '22019' ORDER BY o.pts_paint_home DESC LIMIT 1; New Orleans Pelicans | 66 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the ratio of team rebounds to total rebounds for the Portland Trail Blazers 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 = 'Portland Trail Blazers' ORDER BY g.pts_home DESC LIMIT 1; 0.3454545455 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the highest combined total of second chance points in any game involving the Miami Heat 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 = 'Miami Heat' OR g.team_name_away = 'Miami Heat') AND g.season_id = '22017'; 41 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
hat is the difference in average home winning percentage between teams founded before 1980 and teams founded after 1980? SELECT (SELECT COUNT(CASE WHEN g.wl_home = 'W' THEN 1 END) * 100.0 / COUNT(*) FROM game g JOIN team t ON g.team_id_home = t.id WHERE t.year_founded < 1980) - (SELECT COUNT(CASE WHEN g.wl_home = 'W' THEN 1 END) * 100.0 / COUNT(*) FROM game g JOIN team t ON g.team_id_home = t.id WHERE t.year_founded >= 1980) AS win_pct_diff FROM game LIMIT 1; 7.048616104 game g JOIN team t ON g.team_id_home = t.id game game |
|
What was the average number of fastbreak points scored by the Los Angeles Lakers in home wins during the 2020 season? SELECT AVG(o.pts_fb_home) AS avg_fastbreak_points FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Los Angeles Lakers' AND g.wl_home = 'W' AND g.season_id = '22020'; 13.64705882 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the average points in the paint for the Denver Nuggets 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 = 'Denver Nuggets'; 45.465034965035 | 42.1988950276243 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the winning percentage of teams that score more points off turnovers than their opponents in home games? 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 o.pts_off_to_home > o.pts_off_to_away; 59.39603106 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
Which team had the highest average second chance points in home games during the 2020 season? SELECT g.team_name_home, AVG(o.pts_2nd_chance_home) AS avg_second_chance_pts FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.season_id = '22020' GROUP BY g.team_name_home ORDER BY avg_second_chance_pts DESC LIMIT 1; Minnesota Timberwolves | 15.3793103448276 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the average number of fastbreak points scored by the Houston Rockets in games they won by more than 15 points at home? SELECT AVG(o.pts_fb_home) AS avg_fastbreak_points FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Houston Rockets' AND g.wl_home = 'W' AND (g.pts_home - g.pts_away) > 15; 13.39790576 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average difference in points in the paint between the Milwaukee Bucks 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 = 'Milwaukee Bucks'; 0.5026068822 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of lead changes in games where the Chicago Bulls won at home by less than 10 points? SELECT AVG(o.lead_changes) AS avg_lead_changes FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'Chicago Bulls' AND g.wl_home = 'W' AND (g.pts_home - g.pts_away) < 10; 7.84469697 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
How many fastbreak points did the Los Angeles Clippers average in home games during the 2020 season? SELECT AVG(o.pts_fb_home) AS avg_fastbreak_points FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'LA Clippers' AND g.season_id = '22020'; 11.5 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
Find all games where the Los Angeles Clippers played against teams founded before 1970. SELECT g.game_id, g.game_date, g.team_name_home, g.team_name_away FROM game g JOIN team t ON g.team_id_away = t.id WHERE g.team_name_home = 'LA Clippers' AND t.year_founded < 1970 UNION SELECT g.game_id, g.game_date, g.team_name_home, g.team_name_away FROM game g JOIN team t ON g.team_id_home = t.id WHERE g.team_name_away = 'LA Clippers' AND t.year_founded < 1970 LIMIT 1; 0011500091 | 2015-10-20 00:00:00 | LA Clippers | Golden State Warriors game g JOIN team t ON g.team_id_away = t.id game game |
|
How many points did the Los Angeles Clippers score in the paint in their highest scoring home game of the 2019 season? SELECT o.pts_paint_home FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home = 'LA Clippers' AND g.season_id = '22019' ORDER BY g.pts_home DESC LIMIT 1; 58 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
Which season had the most total turnovers across all games? SELECT season_id FROM other_stats JOIN game USING(game_id) GROUP BY season_id ORDER BY SUM(total_turnovers_home + total_turnovers_away) DESC LIMIT 1; 21999 other_stats other_stats |
|
What is the maximum number of team rebounds recorded by the Dallas Mavericks in away games where they committed more than 20 fouls? SELECT MAX(o.team_rebounds_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_away = 'DAL' AND g.pf_away > 20 AND g.season_id = '22021'; 16 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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'; game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
In 2013, what was the average number of rebounds by the Denver Nuggets 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 = 'DEN' AND o.times_tied >= 10 AND o.lead_changes < 10 AND g.season_id = '22013'; 42.666666666666664 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the total number of points scored by the Los Angeles Clippers in the 2014 season in games where they had more team turnovers but fewer total turnovers than their opponent? SELECT SUM(g.pts_home) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'LAC' AND o.team_turnovers_home > o.team_turnovers_away AND o.total_turnovers_home < o.total_turnovers_away AND g.season_id = '22014'; 295.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
Which season had the most combined team rebounds recorded? SELECT season_id FROM other_stats JOIN game USING(game_id) GROUP BY season_id ORDER BY SUM(team_rebounds_home + team_rebounds_away) DESC LIMIT 1; 21997 other_stats other_stats |
|
Which season had the highest average number of times tied per game? SELECT season_id FROM other_stats JOIN game USING(game_id) GROUP BY season_id ORDER BY AVG(times_tied) DESC LIMIT 1; 32002 other_stats other_stats |
|
Which season had the most games where home teams scored zero fast break points? SELECT season_id FROM other_stats JOIN game USING(game_id) WHERE pts_fb_home = 0 GROUP BY season_id ORDER BY COUNT(*) DESC LIMIT 1; 22001 other_stats JOIN game USING(game_id) other_stats other_stats |
|
How many total points were scored in the game with the highest difference between team rebounds and individual rebounds for the home team? SELECT pts_home + pts_away FROM game WHERE game_id = (SELECT os.game_id FROM other_stats os JOIN game g ON os.game_id = g.game_id ORDER BY (team_rebounds_home - reb_home) DESC LIMIT 1); 182.0 game game game |
|
How many points did the home team score in the game with the most lead changes and the fewest total fouls? SELECT pts_home FROM game WHERE game_id = (SELECT game_id FROM other_stats JOIN game USING(game_id) ORDER BY lead_changes DESC, (pf_home + pf_away) ASC LIMIT 1); 122.0 game game game |
|
What is the maximum number of team rebounds recorded by the San Antonio Spurs in away games where they committed more than 20 fouls? SELECT MAX(o.team_rebounds_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_away = 'SAS' AND g.pf_away > 20 AND g.season_id = '22003'; 13 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
In the 2020 season, what was the average number of second chance points allowed by the Phoenix Suns 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 = 'PHX' AND g.wl_home = 'W' AND ABS(g.pts_home - g.pts_away) < 5) OR (g.team_abbreviation_away = 'PHX' AND g.wl_away = 'W' AND ABS(g.pts_home - g.pts_away) < 5)) AND g.season_id = '22020'; 12.3 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
Which Los Angeles Lakers home game had the most lead changes? SELECT g.game_date, os.lead_changes FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_home = 'Los Angeles Lakers' ORDER BY os.lead_changes DESC LIMIT 1; (2021-11-10 00:00:00, 33) game g JOIN other_stats os ON g.game_id = os.game_id game game |
|
How many Los Angeles Lakers home games were there where they scored more paint points than their opponents? SELECT COUNT(*) FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_abbreviation_home = 'LAL' AND os.pts_paint_home > os.pts_paint_away; 490 game g JOIN other_stats os ON g.game_id = os.game_id game game |
|
What is the maximum number of team rebounds recorded by the New Orleans Pelicans in away games where they committed more than 20 fouls? SELECT MAX(o.team_rebounds_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_away = 'NOP' AND g.pf_away > 20 AND g.season_id = '22022'; 16 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the maximum number of team rebounds recorded by the Portland Trail Blazers in away games where they committed more than 20 fouls? SELECT MAX(o.team_rebounds_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_away = 'POR' AND g.pf_away > 20 AND g.season_id = '22000'; 18 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the total number of points scored by teams from Boston as home teams in games with more than 10 lead changes during the 2010 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 = 'Boston' ) AND o.lead_changes > 10 AND g.season_id = '22010'; 772.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
In the 2005 season, what was the average number of second chance points scored by the opponents when the Orlando Magic 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 = 'ORL' AND g.wl_home = 'L' AND g.season_id = '22005'; 11.846153846153847 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
In the 2000 season, what was the average number of second chance points scored by the opponents when the Miami Heat 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 = 'MIA' AND g.wl_home = 'L' AND g.season_id = '22000'; 11.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
In the 2001 season, what was the average number of second chance points scored by the opponents when the Atlanta Hawks 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 = 'ATL' AND g.wl_home = 'L' AND g.season_id = '22001'; 13.333333333333334 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the total number of points scored by teams from Brooklyn as home teams in games with more than 10 lead changes during the 2001 season? SELECT SUM(g.pts_home) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home IN ( SELECT full_name FROM team WHERE city = 'Brooklyn' ) AND o.lead_changes > 10 AND g.season_id = '22001'; game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the total number of points scored by teams from Boston as home teams in games with more than 10 lead changes during the 1995 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 = 'Boston' ) AND o.lead_changes > 10 AND g.season_id = '21995'; game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the total number of points scored by teams from Philadelphia as home teams in games with more than 10 lead changes during the 2005 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 = 'Philadelphia' ) AND o.lead_changes > 10 AND g.season_id = '22005'; 310.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 2001 season? SELECT SUM(g.pts_home) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_name_home IN ( SELECT full_name FROM team WHERE city = 'New York' ) AND o.lead_changes > 10 AND g.season_id = '22001'; 189.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of points in the paint allowed by the Brooklyn Nets when playing at home in the 2020 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 = 'BKN' AND g.season_id = '22020' AND o.lead_changes > 15; game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of points in the paint allowed by the Philadelphia 76ers when playing at home in the 2020 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 = 'PHI' AND g.season_id = '22020' AND o.lead_changes > 15; 50.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of points in the paint allowed by the Miami Heat when playing at home in the 2003 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 = '22003' AND o.lead_changes > 15; 38.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of points in the paint allowed by the Washington Wizards when playing at home in the 2002 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'WAS' AND g.season_id = '22002' AND o.lead_changes > 15; game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of points in the paint allowed by the New York Knicks when playing at home in the 2021 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'NYK' AND g.season_id = '22021' AND o.lead_changes > 15; 42.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the maximum number of team rebounds recorded by the Denver Nuggets in away games where they committed more than 20 fouls? SELECT MAX(o.team_rebounds_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_away = 'DEN' AND g.pf_away > 20 AND g.season_id = '22013'; 17 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of points in the paint allowed by the Milwaukee Bucks when playing at home in the 2013 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 = 'MIL' AND g.season_id = '22013' AND o.lead_changes > 15; 41.2 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of points in the paint allowed by the Orlando Magic when playing at home in the 2001 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'ORL' AND g.season_id = '22001' AND o.lead_changes > 15; 42.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of points in the paint allowed by the New York Knicks 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 = 'NYK' AND g.season_id = '22009' AND o.lead_changes > 15; 45.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of points in the paint allowed by the New York Knicks when playing at home in the 2015 season in games with more than 15 lead changes? SELECT AVG(o.pts_paint_away) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE g.team_abbreviation_home = 'NYK' AND g.season_id = '22015' AND o.lead_changes > 15; 36.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average number of points in the paint allowed by the Detroit Pistons 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 = 'DET' AND g.season_id = '22006' AND o.lead_changes > 15; 44.0 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the highest number of lead changes in a game where the Indiana Pacers 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 = 'IND' AND g.wl_home = 'W' AND g.pf_home > g.pf_away) OR (g.team_abbreviation_away = 'IND' AND g.wl_away = 'W' AND g.pf_away > g.pf_home) AND g.season_id = '22008'; 25 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the highest number of lead changes in a game where the Cleveland Cavaliers 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 = 'CLE' AND g.wl_home = 'W' AND g.pf_home > g.pf_away) OR (g.team_abbreviation_away = 'CLE' AND g.wl_away = 'W' AND g.pf_away > g.pf_home) AND g.season_id = '22000'; 25 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What was the highest number of lead changes in a game where the Orlando Magic won and committed more fouls than their opponent? SELECT MAX(o.lead_changes) FROM game g JOIN other_stats o ON g.game_id = o.game_id WHERE (g.team_abbreviation_home = 'ORL' AND g.wl_home = 'W' AND g.pf_home > g.pf_away) OR (g.team_abbreviation_away = 'ORL' AND g.wl_away = 'W' AND g.pf_away > g.pf_home) AND g.season_id = '22007'; 27 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the total number of games the Miami Heat 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 = 'MIA' AND g.wl_home = 'L' AND g.oreb_home > g.oreb_away AND g.season_id = '22008'; 4 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
In the 2007 season, how many games did the Milwaukee Bucks 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 = 'MIL' AND g.wl_home = 'L' AND o.total_turnovers_home < o.total_turnovers_away AND g.season_id = '22007'; 8 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
In the 2006 season, how many games did the Indiana Pacers 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 = 'IND' AND g.wl_home = 'L' AND o.total_turnovers_home < o.total_turnovers_away AND g.season_id = '22006'; 7 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
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 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
In the 2006 season, how many games did the Milwaukee Bucks 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 = 'MIL' AND g.wl_home = 'L' AND o.total_turnovers_home < o.total_turnovers_away AND g.season_id = '22006'; 8 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
What is the average plus-minus for the New York Knicks 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 = 'NYK' AND o.pts_2nd_chance_away > o.pts_2nd_chance_home AND g.season_id = '22002'; -3.2 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
In the 2020 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 = '22020'; 16.6 game g JOIN other_stats o ON g.game_id = o.game_id game game |
|
How many total team rebounds did the Los Angeles Clippers have in away games where they scored over 15 fast break points? SELECT SUM(os.team_rebounds_away) FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_abbreviation_away = 'LAC' AND os.pts_fb_away > 15; 2279.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the total points in the paint by the Chicago Bulls at home in games they lost 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 = 'Chicago Bulls' AND g.wl_home = 'L' AND g.season_id = '21996'; 56.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the total fast break points by the Phoenix Suns in games they lost at home 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 = 'Phoenix Suns' AND g.wl_home = 'L' AND g.season_id = '21996'; 171.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the average second chance points by the Milwaukee Bucks at home in games they won? SELECT AVG(os.pts_2nd_chance_home) as avg_2nd_chance FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Milwaukee Bucks' AND g.wl_home = 'W'; 13.12 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the Atlanta Hawks win at home with a largest lead greater than 20 in 1996? SELECT COUNT(*) as wins FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Atlanta Hawks' AND g.wl_home = 'W' AND os.largest_lead_home > 20 AND g.season_id = '21996'; 7.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the Utah Jazz 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 = 'Utah Jazz' AND os.pts_paint_home > 30 AND g.season_id = '21996'; 25.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the total second chance points by the Washington Wizards 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 = 'Washington Wizards' AND g.wl_home = 'W'; 6281.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the total points in the paint by the Minnesota Timberwolves 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 = 'Minnesota Timberwolves' AND g.wl_away = 'L'; 25564.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 game g JOIN other_stats os ON g.game_id = os.game_id game game |
|
What's the highest number of lead changes in any game involving the Miami Heat? SELECT MAX(os.lead_changes) FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_abbreviation_home = 'MIA' OR g.team_abbreviation_away = 'MIA'; 33.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the highest points scored by the Dallas Mavericks 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 = 'Dallas Mavericks' AND os.pts_paint_away > 15; 141.0 game g JOIN other_stats os ON g.game_id = os.game_id game game |
|
What is the total second chance points by the Detroit Pistons 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 = 'Detroit Pistons' AND g.wl_away = 'L'; 7547.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the average points in the paint by the Houston Rockets at home in games they won? SELECT AVG(os.pts_paint_home) as avg_pts_paint FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Houston Rockets' AND g.wl_home = 'W'; 42.436 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the highest points scored by the Miami Heat at home when they had more than 10 second chance points? SELECT MAX(g.pts_home) as max_points FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_home = 'Miami Heat' AND os.pts_2nd_chance_home > 10; 149.0 game g JOIN other_stats os ON g.game_id = os.game_id game game |
|
What is the total fast break points by the New York Knicks at home in games they lost? SELECT SUM(os.pts_fb_home) as total_fb_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'New York Knicks' AND g.wl_home = 'L'; 4270.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the Toronto Raptors 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 = 'Toronto Raptors' AND os.pts_paint_away > 20 AND g.season_id = '21996'; 35.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the total points in the paint by the Utah Jazz at home when they won? 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 = 'Utah Jazz' AND g.wl_home = 'W'; 27796.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the total fast break points by the Atlanta Hawks 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 = 'Atlanta Hawks' AND g.wl_away = 'L'; 8378.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the highest points scored by the Chicago Bulls away when they had more than 5 lead changes? SELECT MAX(g.pts_away) as max_points FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_away = 'Chicago Bulls' AND os.lead_changes > 5; 168.0 game g JOIN other_stats os ON g.game_id = os.game_id game game |
|
How many games did the Cleveland Cavaliers lose away with more than 10 fast break points in 1996? SELECT COUNT(*) as losses FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Cleveland Cavaliers' AND g.wl_away = 'L' AND os.pts_fb_away > 10 AND g.season_id = '21996'; 4.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the average points in the paint by the Detroit Pistons at home when they won? SELECT AVG(os.pts_paint_home) as avg_pts_paint FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Detroit Pistons' AND g.wl_home = 'W'; 37.94 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the Indiana Pacers win at home with more than 15 fast break points in 1996? SELECT COUNT(*) as wins FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Indiana Pacers' AND g.wl_home = 'W' AND os.pts_fb_home > 15 AND g.season_id = '21996'; 7.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the Sacramento Kings win at home 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_home = 'Sacramento Kings' AND g.wl_home = 'W' AND os.pts_paint_home > 20 AND g.season_id = '21996'; 16.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the average points in the paint by the Utah Jazz away when they won? SELECT AVG(os.pts_paint_away) as avg_pts_paint 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 = 'W'; 42.48 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the Toronto Raptors lose at home with more than 15 fast break points in 1996? SELECT COUNT(*) as losses FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Toronto Raptors' AND g.wl_home = 'L' AND os.pts_fb_home > 15 AND g.season_id = '21996'; 13.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the Phoenix Suns 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 = 'Phoenix Suns' AND g.wl_away = 'L' AND os.times_tied > 5 AND g.season_id = '21996'; 10.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the total fast break points by the Philadelphia 76ers at home in games they won? SELECT SUM(os.pts_fb_home) as total_fb_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Philadelphia 76ers' AND g.wl_home = 'W'; 8025.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the Milwaukee Bucks lose at home with more than 5 lead changes in 1996? SELECT COUNT(*) as losses FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Milwaukee Bucks' AND g.wl_home = 'L' AND os.lead_changes > 5 AND g.season_id = '21996'; 8.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the total points in the paint by the Miami Heat away when they won? SELECT SUM(os.pts_paint_away) as total_pts_paint FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Miami Heat' AND g.wl_away = 'W'; other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the Cleveland Cavaliers play at home with more than 8 times tied 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 = 'Cleveland Cavaliers' AND os.times_tied > 8 AND g.season_id = '21996'; 5.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the Golden State Warriors lose at home with more than 5 lead changes in 1996? SELECT COUNT(*) as losses FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Golden State Warriors' AND g.wl_home = 'L' AND os.lead_changes > 5 AND g.season_id = '21996'; 8.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the Indiana Pacers lose at home with more than 10 fast break points in 1996? SELECT COUNT(*) as losses FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Indiana Pacers' AND g.wl_home = 'L' AND os.pts_fb_home > 10 AND g.season_id = '21996'; 12.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the total points scored by the Los Angeles Clippers at home when they had more than 5 times tied? SELECT SUM(g.pts_home) as total_points FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_home = 'Los Angeles Clippers' AND os.times_tied > 5; 26047.0 game g JOIN other_stats os ON g.game_id = os.game_id game game |
|
How many games did the Orlando Magic play at home with more than 15 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 = 'Orlando Magic' AND os.pts_paint_home > 15 AND g.season_id = '21996'; 34.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the Phoenix Suns win at home with more than 10 lead changes 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 = 'Phoenix Suns' AND g.wl_home = 'W' AND os.lead_changes > 10 AND g.season_id = '21996'; 3.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the Sacramento Kings lose away with more than 15 fast break points in 1996? SELECT COUNT(*) as losses FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_away = 'Sacramento Kings' AND g.wl_away = 'L' AND os.pts_fb_away > 15 AND g.season_id = '21996'; 10.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many points in the paint did the Cleveland Cavaliers 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 = 'Cleveland Cavaliers' AND g.season_id = '21996'; 1136.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many games did the San Antonio Spurs lose at home with more than 30 points in the paint 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 = 'San Antonio Spurs' AND g.wl_home = 'L' AND os.pts_paint_home > 30 AND g.season_id = '21996'; 22.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the total number of points scored by the Milwaukee Bucks away when they had more than 5 lead changes? SELECT SUM(g.pts_away) as total_points FROM game g JOIN other_stats os ON g.game_id = os.game_id WHERE g.team_name_away = 'Milwaukee Bucks' AND os.lead_changes > 5; 44835.0 game g JOIN other_stats os ON g.game_id = os.game_id game game |
|
How many games did the Toronto Raptors 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 = 'Toronto Raptors' AND g.wl_home = 'W' AND os.pts_fb_home > 15 AND g.season_id = '21996'; 9.0 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 game g JOIN other_stats os ON g.game_id = os.game_id game game |
|
What's the average points in the paint for the Boston Celtics in home games where they won by at least 10 points? SELECT AVG(os.pts_paint_home) FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.team_name_home = 'Boston Celtics' AND g.plus_minus_home >= 10; 41.85 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the total number of lead changes in all games played by the Chicago Bulls 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 = 'CHI' OR g.team_abbreviation_away = 'CHI'); 470 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
Which team had the largest lead in a single game in the 2001 season? SELECT g.team_name_home AS team, os.largest_lead_home AS lead FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '22001' ORDER BY os.largest_lead_home DESC LIMIT 1; Portland Trail Blazers|47 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
In the 2019 season, how many total points off turnovers did the Brooklyn Nets score in home games? SELECT SUM(os.pts_off_to_home) AS total_points_off_turnovers FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '22019' AND g.team_abbreviation_home = 'BKN'; 518 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
How many total turnovers did the San Antonio Spurs commit in away games during the 2014 season? SELECT SUM(os.total_turnovers_away) AS total_turnovers FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '22014' AND g.team_abbreviation_away = 'SAS'; 462 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
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 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What was the average number of second-chance points per game in the 2015 season? SELECT AVG(os.pts_2nd_chance_home + os.pts_2nd_chance_away) AS avg_second_chance_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '22015'; 25.4900849858357 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What is the total number of points in the paint scored by both teams combined in the 2008 season? SELECT SUM(os.pts_paint_home + os.pts_paint_away) AS total_paint_points FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '22008'; 81148 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What was the largest lead the Golden State Warriors had in any game in the 2018 season? SELECT MAX(other_stats.largest_lead_home) FROM other_stats JOIN game ON other_stats.game_id = game.game_id WHERE game.team_abbreviation_home = 'GSW' AND game.season_id = '22018'; 44 other_stats JOIN game ON other_stats.game_id = game.game_id other_stats other_stats |
|
What is the highest number of times the Orlando Magic have tied a game in the 2008 season? SELECT MAX(other_stats.times_tied) FROM other_stats JOIN game ON other_stats.game_id = game.game_id WHERE game.team_abbreviation_home = 'ORL' AND game.season_id = '22008'; 15 other_stats JOIN game ON other_stats.game_id = game.game_id other_stats other_stats |
|
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 other_stats JOIN game ON other_stats.game_id = game.game_id other_stats other_stats |
|
Which game had the most lead changes in the 2003 season? SELECT g.game_id, g.team_name_home, g.team_name_away, os.lead_changes FROM other_stats os JOIN game g ON os.game_id = g.game_id WHERE g.season_id = '22003' ORDER BY os.lead_changes DESC LIMIT 1; 0020300151|Seattle SuperSonics|Miami Heat|29 other_stats os JOIN game g ON os.game_id = g.game_id other_stats other_stats |
|
What was the largest lead the Golden State Warriors had in a game during the 2018 season? SELECT MAX(other_stats.largest_lead_home) FROM other_stats JOIN game ON other_stats.game_id = game.game_id WHERE game.team_name_home = 'Golden State Warriors' AND game.season_id = '22018'; 44 other_stats JOIN game ON other_stats.game_id = game.game_id other_stats other_stats |
|
Which team had the most fast break points in a single home game during the 2020 season? SELECT team_name_home, MAX(pts_fb_home) FROM other_stats JOIN game ON other_stats.game_id = game.game_id WHERE game.season_id = '22020'; Houston Rockets|35 other_stats JOIN game ON other_stats.game_id = game.game_id other_stats other_stats |
|
|