Classify training data
Browse files- deepseek-coder-1.3b-instruct/train_data_eda.ipynb +87 -0
- train-data/ReadMe.md +32 -0
- train-data/less_than_90.tsv +246 -0
- train-data/queries_from_game.tsv +0 -0
- train-data/queries_from_other_stats.tsv +155 -0
- train-data/queries_from_team.tsv +53 -0
- train-data/with_join.tsv +186 -0
- train-data/without_join.tsv +0 -0
deepseek-coder-1.3b-instruct/train_data_eda.ipynb
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"cell_type": "code",
|
5 |
+
"execution_count": 6,
|
6 |
+
"metadata": {},
|
7 |
+
"outputs": [],
|
8 |
+
"source": [
|
9 |
+
"import pandas as pd\n",
|
10 |
+
"\n",
|
11 |
+
"df = pd.read_csv(\"../train-data/sql_train.tsv\", sep=\"\\t\")"
|
12 |
+
]
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"cell_type": "code",
|
16 |
+
"execution_count": 7,
|
17 |
+
"metadata": {},
|
18 |
+
"outputs": [
|
19 |
+
{
|
20 |
+
"data": {
|
21 |
+
"text/plain": [
|
22 |
+
"Index(['natural_query', 'sql_query', 'result'], dtype='object')"
|
23 |
+
]
|
24 |
+
},
|
25 |
+
"execution_count": 7,
|
26 |
+
"metadata": {},
|
27 |
+
"output_type": "execute_result"
|
28 |
+
}
|
29 |
+
],
|
30 |
+
"source": [
|
31 |
+
"df.columns"
|
32 |
+
]
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"cell_type": "code",
|
36 |
+
"execution_count": null,
|
37 |
+
"metadata": {},
|
38 |
+
"outputs": [
|
39 |
+
{
|
40 |
+
"data": {
|
41 |
+
"text/plain": [
|
42 |
+
"count 1044\n",
|
43 |
+
"unique 1043\n",
|
44 |
+
"top SELECT ROUND(AVG(pts_home),2) AS avg_home_poin...\n",
|
45 |
+
"freq 2\n",
|
46 |
+
"Name: sql_query, dtype: object"
|
47 |
+
]
|
48 |
+
},
|
49 |
+
"execution_count": 8,
|
50 |
+
"metadata": {},
|
51 |
+
"output_type": "execute_result"
|
52 |
+
}
|
53 |
+
],
|
54 |
+
"source": [
|
55 |
+
"df['sql_query'].str.len().describe()"
|
56 |
+
]
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"cell_type": "code",
|
60 |
+
"execution_count": null,
|
61 |
+
"metadata": {},
|
62 |
+
"outputs": [],
|
63 |
+
"source": []
|
64 |
+
}
|
65 |
+
],
|
66 |
+
"metadata": {
|
67 |
+
"kernelspec": {
|
68 |
+
"display_name": "CSCI544",
|
69 |
+
"language": "python",
|
70 |
+
"name": "python3"
|
71 |
+
},
|
72 |
+
"language_info": {
|
73 |
+
"codemirror_mode": {
|
74 |
+
"name": "ipython",
|
75 |
+
"version": 3
|
76 |
+
},
|
77 |
+
"file_extension": ".py",
|
78 |
+
"mimetype": "text/x-python",
|
79 |
+
"name": "python",
|
80 |
+
"nbconvert_exporter": "python",
|
81 |
+
"pygments_lexer": "ipython3",
|
82 |
+
"version": "3.11.11"
|
83 |
+
}
|
84 |
+
},
|
85 |
+
"nbformat": 4,
|
86 |
+
"nbformat_minor": 2
|
87 |
+
}
|
train-data/ReadMe.md
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Train Data Overview
|
2 |
+
|
3 |
+
This folder contains TSV files with subsets of SQL queries, each filtered based on specific criteria.
|
4 |
+
|
5 |
+
## Files and Descriptions
|
6 |
+
|
7 |
+
### `less_than_90.tsv`
|
8 |
+
|
9 |
+
- Contains queries where the total character length is **less than 90**.
|
10 |
+
|
11 |
+
### `queries_from_game.tsv`
|
12 |
+
|
13 |
+
- Includes queries where the **first table after the `FROM` clause is `game`**.
|
14 |
+
|
15 |
+
### `queries_from_other_stats.tsv`
|
16 |
+
|
17 |
+
- Contains queries where the **first table after `FROM` is `other_stats`**.
|
18 |
+
|
19 |
+
### `queries_from_team.tsv`
|
20 |
+
|
21 |
+
- Includes queries that **reference `team` immediately after `FROM`**.
|
22 |
+
|
23 |
+
### `queries_with_join.tsv`
|
24 |
+
|
25 |
+
- Contains queries that include the keyword **`JOIN`** (case-insensitive).
|
26 |
+
|
27 |
+
### `queries_without_join.tsv`
|
28 |
+
|
29 |
+
- Contains queries that **do not** include the keyword `JOIN`.
|
30 |
+
- Often simpler queries accessing a single table.
|
31 |
+
|
32 |
+
---
|
train-data/less_than_90.tsv
ADDED
@@ -0,0 +1,246 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
natural_query sql_query result
|
2 |
+
Which NBA teams were established after the year 2000? List their names and founding years, sorted from newest to oldest SELECT full_name FROM team WHERE year_founded > 2000 ORDER BY year_founded DESC; New Orleans Pelicans
|
3 |
+
What is the most points the Los Angeles Lakers have scored at home? SELECT MAX(pts_home) FROM game WHERE team_name_home = 'Los Angeles Lakers'; 162
|
4 |
+
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
|
5 |
+
What is the highest three-point percentage the Phoenix Suns achieved in an away game? SELECT MAX(fg3_pct_away) FROM game WHERE team_abbreviation_away = 'PHX'; 1
|
6 |
+
How many games in NBA history have gone to overtime? SELECT COUNT(*) AS overtime_games FROM game WHERE min > 240 3414
|
7 |
+
When was the Los Angeles Clippers team founded according to the team database? SELECT year_founded FROM team WHERE full_name = 'Los Angeles Clippers'; 1970
|
8 |
+
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
|
9 |
+
What is the abbreviation for the Los Angeles Clippers in the team table? SELECT abbreviation FROM team WHERE full_name = 'Los Angeles Clippers'; LAC
|
10 |
+
Which season had the highest average free throw percentage for home teams? SELECT season_id FROM game GROUP BY season_id ORDER BY AVG(ft_pct_home) DESC LIMIT 1; 21951
|
11 |
+
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
|
12 |
+
How many points did the Phoenix Suns score in the highest scoring away game they played? SELECT MAX(pts_away) FROM game WHERE team_abbreviation_away = 'PHX'; 161.0
|
13 |
+
How many points did the away team score in games where the home team had more rebounds? SELECT SUM(pts_away) FROM game WHERE reb_home > reb_away; 2702764.0
|
14 |
+
How many points were scored in the earliest recorded game in the database? SELECT (pts_home + pts_away) FROM game ORDER BY game_date ASC LIMIT 1; 134.0
|
15 |
+
How many points did the visiting team score in the game where the home team had exactly 0 turnovers? SELECT pts_away FROM game WHERE game_id IN (SELECT game_id FROM game WHERE tov_home = 0); 88.0,112.0,105.0,93.0,76.0,99.0
|
16 |
+
How many points were scored by the away team in the most recent playoff game? SELECT pts_away FROM game WHERE season_type = 'Playoffs' ORDER BY game_date DESC LIMIT 1; 89.0
|
17 |
+
How many points did the Miami Heat score in their lowest-scoring game at home? SELECT MIN(pts_home) FROM game WHERE team_abbreviation_home = 'MIA'; 56.0
|
18 |
+
How many points did the away team score in the only game where the home team had exactly 69 field goal attempts? SELECT pts_away FROM game WHERE fga_home = 69 LIMIT 1; 81.0
|
19 |
+
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
|
20 |
+
How many points were scored in the most recent game where the home team had zero free throw attempts? SELECT pts_home + pts_away FROM game WHERE fta_home = 0 ORDER BY game_date DESC LIMIT 1; 359.0
|
21 |
+
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
|
22 |
+
What was the total score of the only game in which the home team made exactly 33 field goals? SELECT pts_home + pts_away FROM game WHERE fgm_home = 33 LIMIT 1; 144.0
|
23 |
+
What was the total number of points in the only game where the sum of both teams' free throws made was exactly 42? SELECT pts_home + pts_away FROM game WHERE (ftm_home + ftm_away) = 42 LIMIT 1; 156.0
|
24 |
+
How many points did the visiting team score in the first game where the home team committed fewer than 5 personal fouls? SELECT pts_away FROM game WHERE pf_home < 5 ORDER BY game_date ASC LIMIT 1; 81.0
|
25 |
+
Which team had the highest number of team turnovers in an away game? SELECT team_abbreviation_away FROM other_stats ORDER BY team_turnovers_away DESC LIMIT 1; CHI
|
26 |
+
Which away team scored the most points off turnovers in a single game? SELECT team_abbreviation_away FROM other_stats ORDER BY pts_off_to_away DESC LIMIT 1; ATL
|
27 |
+
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
|
28 |
+
What is the highest number of team rebounds recorded by an away team in a single game? SELECT MAX(team_rebounds_away) FROM other_stats; 24
|
29 |
+
What is the average number of points off turnovers for away teams with fewer than 10 total turnovers? SELECT AVG(pts_off_to_away) FROM other_stats WHERE total_turnovers_away < 10; 8.900039200313602
|
30 |
+
Which game had the highest total of missed free throws by the away team? SELECT game_id FROM game ORDER BY (fta_away - ftm_away) DESC LIMIT 1; 0027300014
|
31 |
+
What is the average number of three-pointers made by away teams in games where they had more turnovers than assists? SELECT AVG(fg3m_away) FROM game WHERE tov_away > ast_away; 4.511052937754508
|
32 |
+
Which game had the most defensive rebounds by an away team that still lost? SELECT game_id FROM game WHERE wl_away = 'L' ORDER BY dreb_away DESC LIMIT 1; 0028500331
|
33 |
+
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
|
34 |
+
Which game had the most field goals made by a home team that shot under 40% from the field? SELECT game_id FROM game WHERE fg_pct_home < 0.4 ORDER BY fgm_home DESC LIMIT 1; 0025900164
|
35 |
+
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
|
36 |
+
What is the average number of free throws made in games where the home team had zero offensive rebounds? SELECT AVG(ftm_home) FROM game WHERE oreb_home = 0; 10.0
|
37 |
+
Which game had the highest number of steals by a home team that still lost? SELECT game_id FROM game WHERE wl_home = 'L' ORDER BY stl_home DESC LIMIT 1; 0028400118
|
38 |
+
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
|
39 |
+
Which game had the highest plus-minus for a home team that attempted fewer than 10 three-pointers? SELECT game_id FROM game WHERE fg3a_home < 10 ORDER BY plus_minus_home DESC LIMIT 1; 0029100021
|
40 |
+
Which matchup featured the home team with the lowest field goal percentage but still won? SELECT matchup_home FROM game WHERE wl_home = 'W' ORDER BY fg_pct_home ASC LIMIT 1; PRO vs. BOS
|
41 |
+
What is the average number of assists for home teams when playing against teams from Texas? SELECT AVG(ast_home) FROM game WHERE team_abbreviation_away IN ('DAL', 'HOU', 'SAS'); 23.22644697929869
|
42 |
+
Which game had the smallest difference between offensive and defensive rebounds for the home team? SELECT game_id FROM game ORDER BY ABS(oreb_home - dreb_home) ASC LIMIT 1; 0024600001
|
43 |
+
Which home team scored the most points in a game where they had more turnovers than assists? SELECT team_name_home FROM game WHERE tov_home > ast_home ORDER BY pts_home DESC LIMIT 1; Seattle SuperSonics
|
44 |
+
Which matchup involved the home team attempting over 100 field goals? SELECT matchup_home FROM game WHERE fga_home > 100 LIMIT 1; BOM vs. NYK
|
45 |
+
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
|
46 |
+
Which home team had the lowest field goal percentage in a game they still won? SELECT team_name_home FROM game WHERE wl_home = 'W' ORDER BY fg_pct_home ASC LIMIT 1; Providence Steamrollers
|
47 |
+
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
|
48 |
+
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
|
49 |
+
Which matchup had the highest combined field goal attempts between home and away teams? SELECT matchup_home FROM game ORDER BY (fga_home + fga_away) DESC LIMIT 1; PHW vs. STL
|
50 |
+
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
|
51 |
+
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
|
52 |
+
Which game had the highest number of personal fouls committed by the home team where no video was available? SELECT game_id FROM game WHERE video_available_home = 0 ORDER BY pf_home DESC LIMIT 1; 0046300222
|
53 |
+
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
|
54 |
+
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
|
55 |
+
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
|
56 |
+
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
|
57 |
+
Which team was founded first? SELECT full_name FROM team ORDER BY year_founded ASC LIMIT 1; Boston Celtics
|
58 |
+
Which team is based in the city of Chicago? SELECT full_name FROM team WHERE city = 'Chicago'; Chicago Bulls
|
59 |
+
What is the abbreviation of the team nicknamed 'Heat'? SELECT abbreviation FROM team WHERE nickname = 'Heat'; MIA
|
60 |
+
Which teams are located in the state of California? SELECT full_name FROM team WHERE state = 'California'; Golden State Warriors, Los Angeles Clippers, Los Angeles Lakers, Sacramento Kings
|
61 |
+
Which team has the abbreviation 'NYK'? SELECT full_name FROM team WHERE abbreviation = 'NYK'; New York Knicks
|
62 |
+
Which teams were founded after the year 2000? SELECT full_name FROM team WHERE year_founded > 2000; New Orleans Pelicans
|
63 |
+
What is the city of the team with the nickname 'Bulls'? SELECT city FROM team WHERE nickname = 'Bulls'; Chicago
|
64 |
+
List all teams founded before 1970. SELECT full_name FROM team WHERE year_founded < 1970; Atlanta Hawks, Boston Celtics, Chicago Bulls, Golden State Warriors, Houston Rockets, Los Angeles Lakers, Milwaukee Bucks, New York Knicks, Philadelphia 76ers, Phoenix Suns, Sacramento Kings, Oklahoma City Thunder, Washington Wizards, Detroit Pistons
|
65 |
+
Which team has 'Warriors' as their nickname? SELECT full_name FROM team WHERE nickname = 'Warriors'; Golden State Warriors
|
66 |
+
Which team abbreviation corresponds to the city of Houston? SELECT abbreviation FROM team WHERE city = 'Houston'; HOU
|
67 |
+
What is the state of the team nicknamed 'Jazz'? SELECT state FROM team WHERE nickname = 'Jazz'; Utah
|
68 |
+
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
|
69 |
+
Which team has the same nickname as the team located in Charlotte? SELECT nickname FROM team WHERE city = 'Charlotte'; Hornets
|
70 |
+
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
|
71 |
+
What is the full name of the team based in Dallas? SELECT full_name FROM team WHERE city = 'Dallas'; Dallas Mavericks
|
72 |
+
Which team has a nickname starting with the letter 'S'? SELECT full_name FROM team WHERE nickname LIKE 'S%'; Phoenix Suns, San Antonio Spurs
|
73 |
+
List all team abbreviations for teams founded in the 1990s. SELECT abbreviation FROM team WHERE year_founded BETWEEN 1990 AND 1999; TOR, MEM
|
74 |
+
What is the full name of the team with the abbreviation 'PHI'? SELECT full_name FROM team WHERE abbreviation = 'PHI'; Philadelphia 76ers
|
75 |
+
List all teams based in Texas. SELECT full_name FROM team WHERE state = 'Texas'; Dallas Mavericks, Houston Rockets, San Antonio Spurs
|
76 |
+
Which team has the nickname 'Celtics'? SELECT full_name FROM team WHERE nickname = 'Celtics'; Boston Celtics
|
77 |
+
Which team was founded most recently? SELECT full_name FROM team ORDER BY year_founded DESC LIMIT 1; New Orleans Pelicans
|
78 |
+
What are the nicknames of teams based in Florida? SELECT nickname FROM team WHERE state = 'Florida'; Heat, Magic
|
79 |
+
List all teams located in New York. SELECT full_name FROM team WHERE state = 'New York'; Brooklyn Nets, New York Knicks
|
80 |
+
What is the year the team nicknamed 'Nuggets' was founded? SELECT year_founded FROM team WHERE nickname = 'Nuggets'; 1976.0
|
81 |
+
Which team abbreviation belongs to the team based in Phoenix? SELECT abbreviation FROM team WHERE city = 'Phoenix'; PHX
|
82 |
+
What is the nickname of the team founded in 1946? SELECT nickname FROM team WHERE year_founded = 1946; Celtics, Warriors, Knicks
|
83 |
+
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
|
84 |
+
What is the average number of assists by the Los Angeles Lakers in home wins? SELECT AVG(ast_home) FROM game WHERE team_abbreviation_home = 'LAL' AND wl_home = 'W'; 27.456207159177456
|
85 |
+
How many times did the Los Angeles Lakers score over 120 points at home? SELECT COUNT(*) FROM game WHERE team_abbreviation_home = 'LAL' AND pts_home > 120; 581
|
86 |
+
What is the highest three-point percentage the Los Angeles Lakers achieved in an away game? SELECT MAX(fg3_pct_away) FROM game WHERE team_abbreviation_away = 'LAL'; 1.0
|
87 |
+
Which team is located in the state of Indiana? SELECT full_name FROM team WHERE state = 'Indiana'; Indiana Pacers
|
88 |
+
Which teams were founded before 1979? SELECT full_name FROM team WHERE year_founded < 1979; Atlanta Hawks, Boston Celtics, Cleveland Cavaliers, Chicago Bulls, Denver Nuggets, Golden State Warriors, Houston Rockets, Los Angeles Clippers, Los Angeles Lakers, Milwaukee Bucks, Brooklyn Nets, New York Knicks, Indiana Pacers, Philadelphia 76ers, Phoenix Suns, Portland Trail Blazers, Sacramento Kings, San Antonio Spurs, Oklahoma City Thunder, Utah Jazz, Washington Wizards, Detroit Pistons
|
89 |
+
In what year was the Indiana Pacers founded? SELECT year_founded FROM team WHERE full_name = 'Indiana Pacers'; 1976.0
|
90 |
+
What team has the abbreviation 'IND'? SELECT full_name FROM team WHERE abbreviation = 'IND'; Indiana Pacers
|
91 |
+
Which team is located in the state of Minnesota? SELECT full_name FROM team WHERE state = 'Minnesota'; Minnesota Timberwolves
|
92 |
+
What is the nickname of the team based in Detroit? SELECT nickname FROM team WHERE city = 'Detroit'; Pistons
|
93 |
+
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
|
94 |
+
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
|
95 |
+
Which team located in Cleveland has an abbreviation that includes the letter 'C'? SELECT full_name FROM team WHERE city = 'Cleveland' AND abbreviation LIKE '%C%'; Cleveland Cavaliers
|
96 |
+
What is the year the Milwaukee team was founded? SELECT year_founded FROM team WHERE city = 'Milwaukee'; 1968.0
|
97 |
+
Which cities host teams with abbreviations that start with 'C'? SELECT city FROM team WHERE abbreviation LIKE 'C%'; Cleveland, Chicago, Charlotte
|
98 |
+
List all team abbreviations from teams located in Ohio or Michigan. SELECT abbreviation FROM team WHERE state IN ('Ohio', 'Michigan'); CLE, DET
|
99 |
+
Which team based in Indiana was founded before 1980? SELECT full_name FROM team WHERE state = 'Indiana' AND year_founded < 1980; Indiana Pacers
|
100 |
+
What is the average number of tov in away games by the Orlando Magic? SELECT AVG(tov_away) FROM game WHERE team_name_away = 'Orlando Magic'; 14.969909027291813
|
101 |
+
What is the average number of tov in away games by the Boston Celtics? SELECT AVG(tov_away) FROM game WHERE team_name_away = 'Boston Celtics'; 15.176572417772649
|
102 |
+
What is the average number of ast in home games by the Boston Celtics? SELECT AVG(ast_home) FROM game WHERE team_name_home = 'Boston Celtics'; 24.886892177589857
|
103 |
+
What is the average number of pts in away games by the Portland Trail Blazers? SELECT AVG(pts_away) FROM game WHERE team_name_away = 'Portland Trail Blazers'; 102.6668215613383
|
104 |
+
What is the average number of ft_pct in home games by the Portland Trail Blazers? SELECT AVG(ft_pct_home) FROM game WHERE team_name_home = 'Portland Trail Blazers'; 0.7597613053613043
|
105 |
+
What is the average number of ft_pct in away games by the Portland Trail Blazers? SELECT AVG(ft_pct_away) FROM game WHERE team_name_away = 'Portland Trail Blazers'; 0.7524065985130116
|
106 |
+
What is the average number of reb in home games by the Portland Trail Blazers? SELECT AVG(reb_home) FROM game WHERE team_name_home = 'Miami Heat'; 42.2
|
107 |
+
What is the average number of tov in away games by the Portland Trail Blazers? SELECT AVG(tov_away) FROM game WHERE team_name_away = 'Portland Trail Blazers'; 15.146252285191956
|
108 |
+
What is the average number of pts in away games by the Golden State Warriors? SELECT AVG(pts_away) FROM game WHERE team_name_away = 'Golden State Warriors'; 105.09242916860195
|
109 |
+
What is the average number of reb in home games by the Orlando Magic? SELECT AVG(reb_home) FROM game WHERE team_name_home = 'Orlando Magic'; 43.46391030133147
|
110 |
+
What is the average number of ast in away games by the Portland Trail Blazers? SELECT AVG(ast_away) FROM game WHERE team_name_away = 'Portland Trail Blazers'; 21.94177501413228
|
111 |
+
How many away games did the Chicago Bulls play in the 2022 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Chicago Bulls' AND season_id = '22022'; 41.0
|
112 |
+
What is the average number of fg_pct in home games by the Chicago Bulls? SELECT AVG(fg_pct_home) FROM game WHERE team_name_home = 'Chicago Bulls'; 0.4636694306246544
|
113 |
+
What is the average number of ft_pct in home games by the Los Angeles Lakers? SELECT AVG(ft_pct_home) FROM game WHERE team_name_home = 'Los Angeles Lakers'; 0.7450706106870195
|
114 |
+
How many away games did the Miami Heat play in the 1999 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Miami Heat' AND season_id = '21999'; 41.0
|
115 |
+
How many away games did the Miami Heat play in the 2022 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Miami Heat' AND season_id = '22022'; 41.0
|
116 |
+
What is the average number of pts in away games by the Boston Celtics? SELECT AVG(pts_away) FROM game WHERE team_name_away = 'Boston Celtics'; 102.25170288679855
|
117 |
+
What is the average number of fg_pct in home games by the Boston Celtics? SELECT AVG(fg_pct_home) FROM game WHERE team_name_home = 'Boston Celtics'; 0.4737531578947367
|
118 |
+
How many away games did the Chicago Bulls play in the 2018 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Chicago Bulls' AND season_id = '22018'; 41.0
|
119 |
+
What is the average number of fg_pct in home games by the Golden State Warriors? SELECT AVG(fg_pct_home) FROM game WHERE team_name_home = 'Golden State Warriors'; 0.4726067351598173
|
120 |
+
How many away games did the Miami Heat play in the 2020 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Miami Heat' AND season_id = '22020'; 36.0
|
121 |
+
What is the average number of tov in home games by the Miami Heat? SELECT AVG(tov_home) FROM game WHERE team_name_home = 'Miami Heat'; 14.627184466019418
|
122 |
+
What is the average number of ast in away games by the Los Angeles Lakers? SELECT AVG(ast_away) FROM game WHERE team_name_away = 'Los Angeles Lakers'; 22.594638949671772
|
123 |
+
What is the average number of ft_pct in home games by the Milwaukee Bucks? SELECT AVG(ft_pct_home) FROM game WHERE team_name_home = 'Milwaukee Bucks'; 0.7571402574345323
|
124 |
+
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
|
125 |
+
What is the average number of pts in home games by the Houston Rockets? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'Houston Rockets'; 105.8650391524643
|
126 |
+
What is the average number of fg_pct in away games by the Los Angeles Lakers? SELECT AVG(fg_pct_away) FROM game WHERE team_name_away = 'Los Angeles Lakers'; 0.4678996728462382
|
127 |
+
What is the average number of ft_pct in home games by the Miami Heat? SELECT AVG(ft_pct_home) FROM game WHERE team_name_home = 'Miami Heat'; 0.7464038834951452
|
128 |
+
What is the average number of ft_pct in home games by the Golden State Warriors? SELECT AVG(ft_pct_home) FROM game WHERE team_name_home = 'Golden State Warriors'; 0.7540829836829825
|
129 |
+
What is the average number of tov in home games by the Charlotte Hornets? SELECT AVG(tov_home) FROM game WHERE team_name_home = 'Charlotte Hornets'; 14.0927291886196
|
130 |
+
What is the average number of ast in away games by the Golden State Warriors? SELECT AVG(ast_away) FROM game WHERE team_name_away = 'Golden State Warriors'; 22.833996588971008
|
131 |
+
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
|
132 |
+
What is the average number of reb in home games by the Golden State Warriors? SELECT AVG(reb_home) FROM game WHERE team_name_home = 'Golden State Warriors'; 44.818285714285715
|
133 |
+
What is the average number of pts in away games by the Milwaukee Bucks? SELECT AVG(pts_away) FROM game WHERE team_name_away = 'Milwaukee Bucks'; 102.9162605228179
|
134 |
+
What is the average number of tov in away games by the Los Angeles Lakers? SELECT AVG(tov_away) FROM game WHERE team_name_away = 'Los Angeles Lakers'; 14.554896142433234
|
135 |
+
What is the average number of ast in home games by the Chicago Bulls? SELECT AVG(ast_home) FROM game WHERE team_name_home = 'Chicago Bulls'; 24.980609418282548
|
136 |
+
What is the average number of pts in away games by the Miami Heat? SELECT AVG(pts_away) FROM game WHERE team_name_away = 'Miami Heat'; 96.7824377457405
|
137 |
+
What is the average number of tov in away games by the Miami Heat? SELECT AVG(tov_away) FROM game WHERE team_name_away = 'Miami Heat'; 15.235255570117957
|
138 |
+
What is the average number of pts in home games by the Chicago Bulls? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'Chicago Bulls'; 103.32684824902724
|
139 |
+
What is the average number of ft_pct in home games by the Charlotte Hornets? SELECT AVG(ft_pct_home) FROM game WHERE team_name_home = 'Charlotte Hornets'; 0.7601475237091683
|
140 |
+
What is the average number of tov in home games by the Boston Celtics? SELECT AVG(tov_home) FROM game WHERE team_name_home = 'Boston Celtics'; 14.788121073672189
|
141 |
+
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
|
142 |
+
How many away games did the Miami Heat play in the 2021 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Miami Heat' AND season_id = '22021'; 41.0
|
143 |
+
What is the average number of reb in away games by the Detroit Pistons? SELECT AVG(reb_away) FROM game WHERE team_name_away = 'Detroit Pistons'; 42.10948081264108
|
144 |
+
What is the average number of reb in away games by the Milwaukee Bucks? SELECT AVG(reb_away) FROM game WHERE team_name_away = 'Milwaukee Bucks'; 41.71580122836404
|
145 |
+
What is the average number of tov in home games by the Milwaukee Bucks? SELECT AVG(tov_home) FROM game WHERE team_name_home = 'Milwaukee Bucks'; 14.664838513101769
|
146 |
+
What is the average number of ast in away games by the Milwaukee Bucks? SELECT AVG(ast_away) FROM game WHERE team_name_away = 'Milwaukee Bucks'; 22.16927374301676
|
147 |
+
How many away games did the Chicago Bulls play in the 2019 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Chicago Bulls' AND season_id = '22019'; 31.0
|
148 |
+
How many away games did the Chicago Bulls play in the 2014 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Chicago Bulls' AND season_id = '22014'; 41.0
|
149 |
+
How many away games did the Chicago Bulls play in the 2020 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Chicago Bulls' AND season_id = '22020'; 36.0
|
150 |
+
How many away games did the Chicago Bulls play in the 2001 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Chicago Bulls' AND season_id = '22001'; 41.0
|
151 |
+
What is the average number of fg_pct in away games by the Miami Heat? SELECT AVG(fg_pct_away) FROM game WHERE team_name_away = 'Miami Heat'; 0.4499279161205765
|
152 |
+
How many away games did the Chicago Bulls play in the 2002 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Chicago Bulls' AND season_id = '22002'; 41.0
|
153 |
+
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
|
154 |
+
What is the average number of ft_pct in away games by the Los Angeles Clippers? SELECT AVG(ft_pct_away) FROM game WHERE team_name_away = 'Los Angeles Clippers'; 0.7375894405043332
|
155 |
+
What is the average number of pts in home games by the Boston Celtics? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'Boston Celtics'; 106.27848911651728
|
156 |
+
How many away games did the Miami Heat play in the 2019 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Miami Heat' AND season_id = '22019'; 37.0
|
157 |
+
How many home games did the Orlando Magic play in the 2013 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Orlando Magic' AND season_id = '22013'; 41.0
|
158 |
+
What is the average number of pts in home games by the Milwaukee Bucks? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'Milwaukee Bucks'; 106.24456280514868
|
159 |
+
How many home games did the Miami Heat play in the 2019 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Miami Heat' AND season_id = '22019'; 36.0
|
160 |
+
What is the average number of pts in away games by the New York Knicks? SELECT AVG(pts_away) FROM game WHERE team_name_away = 'New York Knicks'; 99.22237288135594
|
161 |
+
What is the average number of pts in away games by the Chicago Bulls? SELECT AVG(pts_away) FROM game WHERE team_name_away = 'Chicago Bulls'; 100.94640522875817
|
162 |
+
What is the average number of fg_pct in away games by the New York Knicks? SELECT AVG(fg_pct_away) FROM game WHERE team_name_away = 'New York Knicks'; 0.4504453081621318
|
163 |
+
What is the average number of ft_pct in away games by the San Antonio Spurs? SELECT AVG(ft_pct_away) FROM game WHERE team_name_away = 'San Antonio Spurs'; 0.7538615611192923
|
164 |
+
How many home games did the Chicago Bulls play in the 2020 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Chicago Bulls' AND season_id = '22020'; 36.0
|
165 |
+
What is the average number of tov in home games by the Chicago Bulls? SELECT AVG(tov_home) FROM game WHERE team_name_home = 'Chicago Bulls'; 14.512123004139562
|
166 |
+
What is the average number of ft_pct in away games by the Chicago Bulls? SELECT AVG(ft_pct_away) FROM game WHERE team_name_away = 'Chicago Bulls'; 0.7549616557734183
|
167 |
+
What is the average number of pts in home games by the Golden State Warriors? SELECT AVG(pts_home) FROM game WHERE team_name_home = 'Golden State Warriors'; 109.409324009324
|
168 |
+
How many away games did the Miami Heat play in the 2016 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Miami Heat' AND season_id = '22016'; 41.0
|
169 |
+
How many away games did the Miami Heat play in the 2017 season? SELECT COUNT(*) FROM game WHERE team_name_away = 'Miami Heat' AND season_id = '22017'; 41.0
|
170 |
+
What is the average number of tov in away games by the Golden State Warriors? SELECT AVG(tov_away) FROM game WHERE team_name_away = 'Golden State Warriors'; 15.801587301587302
|
171 |
+
What is the average number of ast in away games by the San Antonio Spurs? SELECT AVG(ast_away) FROM game WHERE team_name_away = 'San Antonio Spurs'; 22.72059635560464
|
172 |
+
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
|
173 |
+
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
|
174 |
+
What is the average number of ast in home games by the Miami Heat? SELECT AVG(ast_home) FROM game WHERE team_name_home = 'Miami Heat'; 21.454368932038836
|
175 |
+
What is the average number of tov in home games by the San Antonio Spurs? SELECT AVG(tov_home) FROM game WHERE team_name_home = 'San Antonio Spurs'; 14.41725768321513
|
176 |
+
How many away games did the Miami Heat play in the 2014 season? SELECT COUNT(*) FROM game WHERE team_name_home = 'Miami Heat' AND season_id = '22015'; 41.0
|
177 |
+
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
|
178 |
+
What is the average number of pts in away games by the Houston Rockets? SELECT AVG(pts_away) FROM game WHERE team_name_away = 'Houston Rockets'; 102.85476410730804
|
179 |
+
What is the average number of pts in away games by the Orlando Magic? SELECT AVG(pts_away) FROM game WHERE team_name_away = 'Orlando Magic'; 99.26172148355494
|
180 |
+
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
|
181 |
+
What is the average number of ft_pct in away games by the Boston Celtics? SELECT AVG(ft_pct_away) FROM game WHERE team_name_away = 'Boston Celtics'; 0.7614488017429173
|
182 |
+
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.0
|
183 |
+
What is the average number of reb in home games by the Portland Trail Blazers? SELECT AVG(reb_home) FROM game WHERE team_name_home = 'Portland Trail Blazers'; 43.965986394557824
|
184 |
+
What is the average number of fg_pct in home games by the Los Angeles Lakers? SELECT AVG(fg_pct_home) FROM game WHERE team_name_home = 'Los Angeles Lakers'; 0.4782432016418667
|
185 |
+
What is the most points the Los Angeles Lakers have scored at home? SELECT MAX(pts_home) FROM game WHERE team_name_home = 'Los Angeles Lakers'; 162.0
|
186 |
+
What is the total number of assists by the Chicago Bulls at home? SELECT SUM(ast_home) as total_assists FROM game WHERE team_name_home = 'Chicago Bulls'; 45090.0
|
187 |
+
What is the lowest points scored by the Detroit Pistons at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Detroit Pistons'; 64.0
|
188 |
+
What is the total free throws made by the Indiana Pacers at home? SELECT SUM(ftm_home) as total_ftm FROM game WHERE team_name_home = 'Indiana Pacers'; 39545.0
|
189 |
+
What is the average free throw percentage for the Miami Heat away? SELECT AVG(ft_pct_away) as avg_ft_pct FROM game WHERE team_name_away = 'Miami Heat'; 0.74
|
190 |
+
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
|
191 |
+
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
|
192 |
+
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
|
193 |
+
What is the highest field goals made by the Chicago Bulls at home? SELECT MAX(fgm_home) as max_fgm FROM game WHERE team_name_home = 'Chicago Bulls'; 0.67
|
194 |
+
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
|
195 |
+
What is the total assists by the Miami Heat at home? SELECT SUM(ast_home) as total_assists FROM game WHERE team_name_home = 'Miami Heat'; 33147.0
|
196 |
+
What is the total points scored by the Orlando Magic at home? SELECT SUM(pts_home) as total_points FROM game WHERE team_name_home = 'Orlando Magic'; 146319.0
|
197 |
+
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
|
198 |
+
What is the highest points scored by the Utah Jazz at home? SELECT MAX(pts_home) as max_points FROM game WHERE team_name_home = 'Utah Jazz'; 151.0
|
199 |
+
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
|
200 |
+
What is the total rebounds by the Miami Heat at home? SELECT SUM(reb_home) as total_rebounds FROM game WHERE team_name_home = 'Miami Heat'; 65199.0
|
201 |
+
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
|
202 |
+
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
|
203 |
+
What is the lowest points scored by the Phoenix Suns away? SELECT MIN(pts_away) as min_points FROM game WHERE team_name_away = 'Phoenix Suns'; 68.0
|
204 |
+
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
|
205 |
+
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
|
206 |
+
What is the total number of minutes played by the Chicago Bulls at home? SELECT SUM(min) as total_minutes FROM game WHERE team_name_home = 'Chicago Bulls'; 559395.0
|
207 |
+
What is the lowest number of points scored by the Boston Celtics at home? SELECT MIN(pts_home) as min_points FROM game WHERE team_name_home = 'Boston Celtics'; 36.0
|
208 |
+
What is the highest field goal percentage recorded by the Dallas Mavericks in a home game? SELECT MAX(fg_pct_home) FROM game WHERE team_name_home = 'Dallas Mavericks'; 0.652
|
209 |
+
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
|
210 |
+
What is the highest number of rebounds recorded by a home team in a game during the 2005 season? SELECT MAX(reb_home) FROM game WHERE season_id = '22005'; 65.0
|
211 |
+
What is the highest number of points scored by an away team in a single game during the 2003 season? SELECT MAX(pts_away) FROM game WHERE season_id = '22003'; 136
|
212 |
+
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
|
213 |
+
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
|
214 |
+
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
|
215 |
+
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
|
216 |
+
How many total points were scored in all games during the 2003 season? SELECT SUM(pts_home + pts_away) FROM game WHERE season_id = '22003'; 222097.0
|
217 |
+
How many games in the 2018 season had a total combined score of 250 points or more? SELECT COUNT(*) FROM game WHERE season_id = '22018' AND (pts_home + pts_away) >= 250; 114
|
218 |
+
What is the highest number of rebounds recorded by the Chicago Bulls in a home game? SELECT MAX(reb_home) FROM game WHERE team_name_home = 'Chicago Bulls'; 71.0
|
219 |
+
What is the highest number of three-pointers made in a single game by the Houston Rockets at home? SELECT MAX(fg3m_home) FROM game WHERE team_name_home = 'Houston Rockets'; 27.0
|
220 |
+
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
|
221 |
+
What is the highest number of points the Golden State Warriors have ever scored in a single home game? SELECT MAX(pts_home) FROM game WHERE team_abbreviation_home = 'GSW'; 149.0
|
222 |
+
What was the largest lead the Chicago Bulls have ever had in a home game? SELECT MAX(largest_lead_home) FROM other_stats WHERE team_abbreviation_home = 'CHI'; 47
|
223 |
+
What is the most fast break points the Brooklyn Nets have scored at home in a game? SELECT MAX(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'BKN'; 38
|
224 |
+
What is the highest number of points the Los Angeles Lakers have scored in a single away game? SELECT MAX(pts_away) FROM game WHERE team_abbreviation_away = 'LAL'; 153.0
|
225 |
+
What is the most fast-break points the Houston Rockets have ever scored in an away game? SELECT MAX(pts_fb_away) FROM other_stats WHERE team_abbreviation_away = 'HOU'; 34
|
226 |
+
What is the most points in the paint the Milwaukee Bucks have ever scored in an away game? SELECT MAX(pts_paint_away) FROM other_stats WHERE team_abbreviation_away = 'MIL'; 86
|
227 |
+
What is the lowest number of points the Golden State Warriors have scored in an away game? SELECT MIN(pts_away) FROM game WHERE team_abbreviation_away = 'GSW'; 65.0
|
228 |
+
What is the largest lead the Boston Celtics have ever had in a game? SELECT MAX(largest_lead_home) FROM other_stats WHERE team_abbreviation_home = 'BOS'; 60
|
229 |
+
What is the most three-pointers the Brooklyn Nets have ever made in a home game? SELECT MAX(fg3m_home) FROM game WHERE team_name_home = 'Brooklyn Nets'; 22.0
|
230 |
+
What is the most second-chance points the Chicago Bulls have scored in a home game? SELECT MAX(pts_2nd_chance_home) FROM other_stats WHERE team_abbreviation_home = 'CHI'; 34
|
231 |
+
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
|
232 |
+
What is the largest lead the Miami Heat have had in a game at home? SELECT MAX(largest_lead_home) FROM other_stats WHERE team_abbreviation_home = 'MIA'; 46
|
233 |
+
What is the most total rebounds the New York Knicks have had in a home game? SELECT MAX(reb_home) FROM game WHERE team_abbreviation_home = 'NYK'; 75.0
|
234 |
+
What is the highest number of fast break points the Houston Rockets have scored in a home game? SELECT MAX(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'HOU'; 37
|
235 |
+
What is the most points the Cleveland Cavaliers have scored in a road game? SELECT MAX(pts_away) FROM game WHERE team_abbreviation_away = 'CLE'; 140.0
|
236 |
+
What is the most turnovers the Philadelphia 76ers have committed in a home game? SELECT MAX(total_turnovers_home) FROM other_stats WHERE team_abbreviation_home = 'PHI'; 30
|
237 |
+
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
|
238 |
+
What is the most turnovers the Brooklyn Nets have committed in an away game? SELECT MAX(total_turnovers_away) FROM other_stats WHERE team_abbreviation_away = 'BKN'; 29
|
239 |
+
How many games in total have ended with a margin of exactly 1 point, regardless of home or away? SELECT COUNT(*) FROM game WHERE ABS(pts_home - pts_away) = 1; 3050
|
240 |
+
What is the highest-scoring home game in NBA history? SELECT MAX(pts_home) FROM game; 192.0
|
241 |
+
What was the lowest field goal percentage by an away team in a game? SELECT MIN(fg_pct_away) FROM game; 0.156
|
242 |
+
How many games were decided by more than 40 points? SELECT COUNT(*) FROM game WHERE ABS(pts_home - pts_away) > 40; 307
|
243 |
+
What is the most steals recorded by an away team in a game? SELECT MAX(stl_away) FROM game; 27.0
|
244 |
+
How many games ended with both teams scoring at least 120 points? SELECT COUNT(*) FROM game WHERE pts_home >= 120 AND pts_away >= 120; 3043
|
245 |
+
How many games had at least one team with 30+ assists? SELECT COUNT(*) FROM game WHERE ast_home >= 30 OR ast_away >= 30; 11305
|
246 |
+
What is the highest number of assists recorded by the Indiana Pacers in a single home game? SELECT MAX(ast_home) FROM game WHERE team_name_home = 'Indiana Pacers'; 44.0
|
train-data/queries_from_game.tsv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
train-data/queries_from_other_stats.tsv
ADDED
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
natural_query sql_query result from_to_where after_froM after_from
|
2 |
+
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
|
3 |
+
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
|
4 |
+
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
|
5 |
+
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
|
6 |
+
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
|
7 |
+
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
|
8 |
+
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
|
9 |
+
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
|
10 |
+
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
|
11 |
+
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
|
12 |
+
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
|
13 |
+
Which city had the most games where the home team won by more than 25 points? SELECT team_city_home FROM other_stats WHERE game_id IN (SELECT game_id FROM game WHERE wl_home = 'W' AND pts_home - pts_away > 25) GROUP BY team_city_home ORDER BY COUNT(*) DESC LIMIT 1; Golden State other_stats other_stats other_stats
|
14 |
+
Which team was involved in the most games with more than 15 lead changes? SELECT team FROM (SELECT team_abbreviation_home AS team FROM other_stats WHERE lead_changes > 15 UNION ALL SELECT team_abbreviation_away FROM other_stats WHERE lead_changes > 15) GROUP BY team ORDER BY COUNT(*) DESC LIMIT 1; LAL (SELECT team_abbreviation_home AS team FROM other_stats other_stats other_stats
|
15 |
+
Which city hosted the most games that ended with both teams scoring over 100 points? SELECT team_city_home FROM other_stats WHERE game_id IN (SELECT game_id FROM game WHERE pts_home > 100 AND pts_away > 100) GROUP BY team_city_home ORDER BY COUNT(*) DESC LIMIT 1; Los Angeles other_stats other_stats other_stats
|
16 |
+
Which city had the most total fast break points in the 2016 season? SELECT team_city_home FROM other_stats WHERE game_id IN (SELECT game_id FROM game WHERE season_id = '22016') GROUP BY team_city_home ORDER BY SUM(pts_fb_home) DESC LIMIT 1; Golden State other_stats other_stats other_stats
|
17 |
+
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
|
18 |
+
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
|
19 |
+
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
|
20 |
+
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 other_stats other_stats other_stats
|
21 |
+
Which city had home teams with the highest average number of rebounds in 2005? SELECT team_city_home FROM other_stats WHERE game_id IN (SELECT game_id FROM game WHERE season_id = '22005') GROUP BY team_city_home ORDER BY AVG(team_rebounds_home) DESC LIMIT 1; Orlando other_stats other_stats other_stats
|
22 |
+
Which team had the highest number of team turnovers in an away game? SELECT team_abbreviation_away FROM other_stats ORDER BY team_turnovers_away DESC LIMIT 1; CHI other_stats other_stats
|
23 |
+
Which away team scored the most points off turnovers in a single game? SELECT team_abbreviation_away FROM other_stats ORDER BY pts_off_to_away DESC LIMIT 1; ATL other_stats other_stats
|
24 |
+
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 other_stats other_stats other_stats
|
25 |
+
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 other_stats other_stats
|
26 |
+
What is the highest number of team rebounds recorded by an away team in a single game? SELECT MAX(team_rebounds_away) FROM other_stats; 24 other_stats other_stats
|
27 |
+
How many points off turnovers were scored by away teams in games where they had more team rebounds than the home team? SELECT SUM(pts_off_to_away) FROM other_stats WHERE team_rebounds_away > team_rebounds_home; 169555 other_stats other_stats other_stats
|
28 |
+
Which team committed the fewest total turnovers in an away game that resulted in a win? SELECT team_abbreviation_away FROM other_stats WHERE game_id IN (SELECT game_id FROM game WHERE wl_away = 'W') ORDER BY total_turnovers_away ASC LIMIT 1; PHX other_stats other_stats other_stats
|
29 |
+
Which game had the most efficient away team in terms of points off turnovers per total turnover? SELECT game_id FROM other_stats WHERE total_turnovers_away > 0 ORDER BY (pts_off_to_away * 1.0 / total_turnovers_away) DESC LIMIT 1; 0021500879 other_stats other_stats other_stats
|
30 |
+
Which team had the most games where their team rebounds as away team were greater than 15? SELECT team_abbreviation_away FROM other_stats WHERE team_rebounds_away > 15 GROUP BY team_abbreviation_away ORDER BY COUNT(*) DESC LIMIT 1; UTA other_stats other_stats other_stats
|
31 |
+
What is the average number of points off turnovers for away teams with fewer than 10 total turnovers? SELECT AVG(pts_off_to_away) FROM other_stats WHERE total_turnovers_away < 10; 8.900039200313602 other_stats other_stats other_stats
|
32 |
+
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 other_stats other_stats other_stats
|
33 |
+
How many lead changes occurred in games where the Denver Nuggets played at home? SELECT SUM(lead_changes) as total_lead_changes FROM other_stats WHERE team_abbreviation_home = 'DEN'; 6168.0 other_stats other_stats other_stats
|
34 |
+
What is the largest lead the Minnesota Timberwolves had at home? SELECT MAX(largest_lead_home) as max_lead FROM other_stats WHERE team_abbreviation_home = 'MIN'; 48.0 other_stats other_stats other_stats
|
35 |
+
How many fast break points did the Orlando Magic score away? SELECT SUM(pts_fb_away) as total_fb_points FROM other_stats WHERE team_abbreviation_away = 'ORL'; 11743.0 other_stats other_stats other_stats
|
36 |
+
What is the total second chance points by the Toronto Raptors at home? SELECT SUM(pts_2nd_chance_home) as total_2nd_chance FROM other_stats WHERE team_abbreviation_home = 'TOR'; 12057.0 other_stats other_stats other_stats
|
37 |
+
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
|
38 |
+
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 other_stats other_stats other_stats
|
39 |
+
How many times were games tied when the Boston Celtics played at home? SELECT SUM(times_tied) as total_times_tied FROM other_stats WHERE team_abbreviation_home = 'BOS'; 5156.0 other_stats other_stats other_stats
|
40 |
+
What is the highest fast break points by the Houston Rockets at home? SELECT MAX(pts_fb_home) as max_fb_points FROM other_stats WHERE team_abbreviation_home = 'HOU'; 37.0 other_stats other_stats other_stats
|
41 |
+
How many team turnovers did the New York Knicks have at home? SELECT SUM(team_turnovers_home) as total_team_turnovers FROM other_stats WHERE team_abbreviation_home = 'NYK'; 550.0 other_stats other_stats other_stats
|
42 |
+
What is the total points in the paint by the Philadelphia 76ers away? SELECT SUM(pts_paint_away) as total_pts_paint FROM other_stats WHERE team_abbreviation_away = 'PHI'; 41004.0 other_stats other_stats other_stats
|
43 |
+
What is the largest lead the Phoenix Suns had at home? SELECT MAX(largest_lead_home) as max_lead FROM other_stats WHERE team_abbreviation_home = 'PHX'; 52.0 other_stats other_stats other_stats
|
44 |
+
How many fast break points did the Atlanta Hawks score at home? SELECT SUM(pts_fb_home) as total_fb_points FROM other_stats WHERE team_abbreviation_home = 'ATL'; 12063.0 other_stats other_stats other_stats
|
45 |
+
What is the total second chance points by the Boston Celtics away? SELECT SUM(pts_2nd_chance_away) as total_2nd_chance FROM other_stats WHERE team_abbreviation_away = 'BOS'; 11426.0 other_stats other_stats other_stats
|
46 |
+
What is the total points in the paint by the Denver Nuggets at home? SELECT SUM(pts_paint_home) as total_pts_paint FROM other_stats WHERE team_abbreviation_home = 'DEN'; 44784.0 other_stats other_stats other_stats
|
47 |
+
How many times were games tied when the Indiana Pacers played at home? SELECT SUM(times_tied) as total_times_tied FROM other_stats WHERE team_abbreviation_home = 'IND'; 4805.0 other_stats other_stats other_stats
|
48 |
+
"What is the total second chance points by the Miami Heat at home?""" SELECT SUM(pts_2nd_chance_home) as total_2nd_chance FROM other_stats WHERE team_abbreviation_home = 'MIA'; 11670.0 other_stats other_stats other_stats
|
49 |
+
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
|
50 |
+
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
|
51 |
+
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
|
52 |
+
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
|
53 |
+
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
|
54 |
+
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
|
55 |
+
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
|
56 |
+
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
|
57 |
+
What is the total points in the paint by the Sacramento Kings at home? SELECT SUM(pts_paint_home) as total_pts_paint FROM other_stats WHERE team_abbreviation_home = 'SAC'; 38278.0 other_stats other_stats other_stats
|
58 |
+
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 other_stats other_stats other_stats
|
59 |
+
What is the largest lead the Toronto Raptors had away? SELECT MAX(largest_lead_away) as max_lead FROM other_stats WHERE team_abbreviation_away = 'TOR'; 49.0 other_stats other_stats other_stats
|
60 |
+
How many fast break points did the Utah Jazz score at home? SELECT SUM(pts_fb_home) as total_fb_points FROM other_stats WHERE team_abbreviation_home = 'UTA'; 11246.0 other_stats other_stats other_stats
|
61 |
+
What is the total second chance points by the Washington Wizards away? SELECT SUM(pts_2nd_chance_away) as total_2nd_chance FROM other_stats WHERE team_abbreviation_away = 'WAS'; 13226.0 other_stats other_stats other_stats
|
62 |
+
What is the total points in the paint by the Milwaukee Bucks away? SELECT SUM(pts_paint_away) as total_pts_paint FROM other_stats WHERE team_abbreviation_away = 'MIL'; 39056.0 other_stats other_stats other_stats
|
63 |
+
How many times were games tied when the Minnesota Timberwolves played away? SELECT SUM(times_tied) as total_times_tied FROM other_stats WHERE team_abbreviation_away = 'MIN'; 5123.0 other_stats other_stats other_stats
|
64 |
+
What is the highest fast break points by the New York Knicks away? SELECT MAX(pts_fb_away) as max_fb_points FROM other_stats WHERE team_abbreviation_away = 'NYK'; 38.0 other_stats other_stats other_stats
|
65 |
+
What is the total points in the paint by the Dallas Mavericks at home? SELECT SUM(pts_paint_home) as total_pts_paint FROM other_stats WHERE team_abbreviation_home = 'DAL'; 37764.0 other_stats other_stats other_stats
|
66 |
+
How many lead changes occurred in games where the Denver Nuggets played away? SELECT SUM(lead_changes) as total_lead_changes FROM other_stats WHERE team_abbreviation_away = 'DEN'; 5828.0 other_stats other_stats other_stats
|
67 |
+
What is the highest second chance points by the Detroit Pistons at home? SELECT MAX(pts_2nd_chance_home) as max_2nd_chance FROM other_stats WHERE team_abbreviation_home = 'DET'; 32.0 other_stats other_stats other_stats
|
68 |
+
How many fast break points did the Golden State Warriors score away? SELECT SUM(pts_fb_away) as total_fb_points FROM other_stats WHERE team_abbreviation_away = 'GSW'; 15122.0 other_stats other_stats other_stats
|
69 |
+
What is the total points in the paint by the San Antonio Spurs away? SELECT SUM(pts_paint_away) as total_pts_paint FROM other_stats WHERE team_abbreviation_away = 'SAS'; 42884.0 other_stats other_stats other_stats
|
70 |
+
How many times were games tied when the Toronto Raptors played at home? SELECT SUM(times_tied) as total_times_tied FROM other_stats WHERE team_abbreviation_home = 'TOR'; 4685.0 other_stats other_stats other_stats
|
71 |
+
What is the highest fast break points by the Utah Jazz away? SELECT MAX(pts_fb_away) as max_fb_points FROM other_stats WHERE team_abbreviation_away = 'UTA'; 35.0 other_stats other_stats other_stats
|
72 |
+
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
|
73 |
+
What is the total points in the paint by the Los Angeles Clippers away? SELECT SUM(pts_paint_away) as total_pts_paint FROM other_stats WHERE team_abbreviation_away = 'LAC'; 39516.0 other_stats other_stats other_stats
|
74 |
+
How many lead changes occurred in games where the Los Angeles Lakers played away? SELECT SUM(lead_changes) as total_lead_changes FROM other_stats WHERE team_abbreviation_away = 'LAL'; 6184.0 other_stats other_stats other_stats
|
75 |
+
What is the highest second chance points by the Miami Heat away? SELECT MAX(pts_2nd_chance_away) as max_2nd_chance FROM other_stats WHERE team_abbreviation_away = 'MIA'; 31.0 other_stats other_stats other_stats
|
76 |
+
How many fast break points did the Milwaukee Bucks score at home? SELECT SUM(pts_fb_home) as total_fb_points FROM other_stats WHERE team_abbreviation_home = 'MIL'; 13134.0 other_stats other_stats other_stats
|
77 |
+
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
|
78 |
+
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
|
79 |
+
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
|
80 |
+
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
|
81 |
+
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
|
82 |
+
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
|
83 |
+
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
|
84 |
+
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
|
85 |
+
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
|
86 |
+
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
|
87 |
+
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
|
88 |
+
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
|
89 |
+
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
|
90 |
+
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
|
91 |
+
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
|
92 |
+
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
|
93 |
+
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
|
94 |
+
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
|
95 |
+
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
|
96 |
+
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
|
97 |
+
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
|
98 |
+
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
|
99 |
+
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
|
100 |
+
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
|
101 |
+
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
|
102 |
+
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
|
103 |
+
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
|
104 |
+
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
|
105 |
+
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 other_stats other_stats other_stats
|
106 |
+
How many team turnovers did the Washington Wizards have at home? SELECT SUM(team_turnovers_home) as total_team_turnovers FROM other_stats WHERE team_abbreviation_home = 'WAS'; 526.0 other_stats other_stats other_stats
|
107 |
+
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
|
108 |
+
What is the largest lead the Phoenix Suns had away? SELECT MAX(largest_lead_away) as max_lead FROM other_stats WHERE team_abbreviation_away = 'PHX'; 47.0 other_stats other_stats other_stats
|
109 |
+
How many times were games tied when the Indiana Pacers played away? SELECT SUM(times_tied) as total_times_tied FROM other_stats WHERE team_abbreviation_away = 'IND'; 4910.0 other_stats other_stats other_stats
|
110 |
+
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
|
111 |
+
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
|
112 |
+
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
|
113 |
+
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
|
114 |
+
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
|
115 |
+
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 other_stats other_stats other_stats
|
116 |
+
What is the most fast break points the Chicago Bulls have scored in a single game? SELECT MAX(pts_fb_home) AS max_fast_break_points FROM other_stats WHERE team_abbreviation_home = 'CHI'; 37 other_stats other_stats other_stats
|
117 |
+
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
|
118 |
+
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
|
119 |
+
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
|
120 |
+
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
|
121 |
+
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
|
122 |
+
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
|
123 |
+
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
|
124 |
+
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
|
125 |
+
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
|
126 |
+
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
|
127 |
+
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
|
128 |
+
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
|
129 |
+
What is the average number of fast break points the New York Knicks scored per game in the 2018 season? SELECT AVG(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'NYK' AND game_id IN (SELECT game_id FROM game WHERE season_id = '22018'); 11.8648648648649 other_stats other_stats other_stats
|
130 |
+
Find the game where the Brooklyn Nets had the largest lead at home in the 2013 season. SELECT game_id, largest_lead_home FROM other_stats WHERE team_abbreviation_home = 'BKN' AND game_id IN (SELECT game_id FROM game WHERE season_id = '22013') ORDER BY largest_lead_home DESC LIMIT 1; 0021300866|38 other_stats other_stats other_stats
|
131 |
+
How many lead changes were there in games where the Oklahoma City Thunder played at home in the 2009 season? SELECT SUM(lead_changes) FROM other_stats WHERE team_abbreviation_home = 'OKC' AND game_id IN (SELECT game_id FROM game WHERE season_id = '22009'); 191 other_stats other_stats other_stats
|
132 |
+
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
|
133 |
+
What is the total number of fast break points scored by the Memphis Grizzlies at home during the 2005 season? SELECT SUM(pts_fb_home) FROM other_stats WHERE game_id IN ( SELECT game_id FROM game WHERE team_name_home = 'Memphis Grizzlies' AND season_id = '22005' ); 368 other_stats other_stats other_stats
|
134 |
+
What was the largest lead the Oklahoma City Thunder had in a single game in the 2020 season? SELECT MAX(largest_lead) AS max_lead FROM ( SELECT largest_lead_home AS largest_lead FROM other_stats WHERE team_abbreviation_home = 'OKC' AND game_id IN (SELECT game_id FROM game WHERE season_id = '22020') UNION ALL SELECT largest_lead_away AS largest_lead FROM other_stats WHERE team_abbreviation_away = 'OKC' AND game_id IN (SELECT game_id FROM game WHERE season_id = '22020') ); 30 ( SELECT largest_lead_home AS largest_lead FROM other_stats other_stats other_stats
|
135 |
+
How many total fast break points did the Indiana Pacers 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 = 'IND' 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 = 'IND' AND game_id IN (SELECT game_id FROM game WHERE season_id = '22015') ); 904 ( SELECT pts_fb_home AS pts_fb FROM other_stats other_stats other_stats
|
136 |
+
How many total lead changes occurred in all Memphis Grizzlies games during the 2018 season? SELECT SUM(lead_changes) AS total_lead_changes FROM other_stats WHERE game_id IN ( SELECT game_id FROM game WHERE season_id = '22018' AND (team_abbreviation_home = 'MEM' OR team_abbreviation_away = 'MEM') ); 496 other_stats other_stats other_stats
|
137 |
+
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 other_stats other_stats other_stats
|
138 |
+
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 other_stats other_stats other_stats
|
139 |
+
What was the largest lead the Chicago Bulls have ever had in a home game? SELECT MAX(largest_lead_home) FROM other_stats WHERE team_abbreviation_home = 'CHI'; 47 other_stats other_stats other_stats
|
140 |
+
What is the most fast break points the Brooklyn Nets have scored at home in a game? SELECT MAX(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'BKN'; 38 other_stats other_stats other_stats
|
141 |
+
What is the most fast-break points the Houston Rockets have ever scored in an away game? SELECT MAX(pts_fb_away) FROM other_stats WHERE team_abbreviation_away = 'HOU'; 34 other_stats other_stats other_stats
|
142 |
+
What is the most points in the paint the Milwaukee Bucks have ever scored in an away game? SELECT MAX(pts_paint_away) FROM other_stats WHERE team_abbreviation_away = 'MIL'; 86 other_stats other_stats other_stats
|
143 |
+
What is the largest lead the Boston Celtics have ever had in a game? SELECT MAX(largest_lead_home) FROM other_stats WHERE team_abbreviation_home = 'BOS'; 60 other_stats other_stats other_stats
|
144 |
+
What is the most second-chance points the Chicago Bulls have scored in a home game? SELECT MAX(pts_2nd_chance_home) FROM other_stats WHERE team_abbreviation_home = 'CHI'; 34 other_stats other_stats other_stats
|
145 |
+
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 other_stats other_stats other_stats
|
146 |
+
What is the largest lead the Miami Heat have had in a game at home? SELECT MAX(largest_lead_home) FROM other_stats WHERE team_abbreviation_home = 'MIA'; 46 other_stats other_stats other_stats
|
147 |
+
What is the highest number of fast break points the Houston Rockets have scored in a home game? SELECT MAX(pts_fb_home) FROM other_stats WHERE team_abbreviation_home = 'HOU'; 37 other_stats other_stats other_stats
|
148 |
+
In how many home games did the Minnesota Timberwolves score more fast-break points than their opponent? SELECT COUNT(*) FROM other_stats WHERE team_abbreviation_home = 'MIN' AND pts_fb_home > pts_fb_away; 374 other_stats other_stats other_stats
|
149 |
+
What is the most turnovers the Philadelphia 76ers have committed in a home game? SELECT MAX(total_turnovers_home) FROM other_stats WHERE team_abbreviation_home = 'PHI'; 30 other_stats other_stats other_stats
|
150 |
+
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 other_stats other_stats other_stats
|
151 |
+
How many lead changes were there in the closest away game the San Antonio Spurs played in the 2005 season? SELECT lead_changes FROM other_stats WHERE game_id IN ( SELECT game_id FROM game WHERE season_id = '22005' AND team_abbreviation_away = 'SAS' ORDER BY ABS(pts_home - pts_away) ASC LIMIT 1 ); 26 other_stats other_stats other_stats
|
152 |
+
In how many away games did the Orlando Magic score more fast-break points than their opponent? SELECT COUNT(*) FROM other_stats WHERE team_abbreviation_away = 'ORL' AND pts_fb_away > pts_fb_home; 417 other_stats other_stats other_stats
|
153 |
+
What is the most turnovers the Brooklyn Nets have committed in an away game? SELECT MAX(total_turnovers_away) FROM other_stats WHERE team_abbreviation_away = 'BKN'; 29 other_stats other_stats other_stats
|
154 |
+
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
|
155 |
+
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
|
train-data/queries_from_team.tsv
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
natural_query sql_query result from_to_where after_froM after_from
|
2 |
+
Which NBA teams were established after the year 2000? List their names and founding years, sorted from newest to oldest SELECT full_name FROM team WHERE year_founded > 2000 ORDER BY year_founded DESC; New Orleans Pelicans team team team
|
3 |
+
When was the Los Angeles Clippers team founded according to the team database? SELECT year_founded FROM team WHERE full_name = 'Los Angeles Clippers'; 1970 team team team
|
4 |
+
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 team team team
|
5 |
+
What is the abbreviation for the Los Angeles Clippers in the team table? SELECT abbreviation FROM team WHERE full_name = 'Los Angeles Clippers'; LAC team team team
|
6 |
+
Which team was founded first? SELECT full_name FROM team ORDER BY year_founded ASC LIMIT 1; Boston Celtics team team
|
7 |
+
Which team is based in the city of Chicago? SELECT full_name FROM team WHERE city = 'Chicago'; Chicago Bulls team team team
|
8 |
+
What is the abbreviation of the team nicknamed 'Heat'? SELECT abbreviation FROM team WHERE nickname = 'Heat'; MIA team team team
|
9 |
+
Which team was founded in the same year as the Boston Celtics? SELECT full_name FROM team WHERE year_founded = (SELECT year_founded FROM team WHERE full_name = 'Boston Celtics'); Boston Celtics, Golden State Warriors, New York Knicks team team team
|
10 |
+
Which teams are located in the state of California? SELECT full_name FROM team WHERE state = 'California'; Golden State Warriors, Los Angeles Clippers, Los Angeles Lakers, Sacramento Kings team team team
|
11 |
+
Which team has the abbreviation 'NYK'? SELECT full_name FROM team WHERE abbreviation = 'NYK'; New York Knicks team team team
|
12 |
+
Which teams were founded after the year 2000? SELECT full_name FROM team WHERE year_founded > 2000; New Orleans Pelicans team team team
|
13 |
+
What is the city of the team with the nickname 'Bulls'? SELECT city FROM team WHERE nickname = 'Bulls'; Chicago team team team
|
14 |
+
List all teams founded before 1970. SELECT full_name FROM team WHERE year_founded < 1970; Atlanta Hawks, Boston Celtics, Chicago Bulls, Golden State Warriors, Houston Rockets, Los Angeles Lakers, Milwaukee Bucks, New York Knicks, Philadelphia 76ers, Phoenix Suns, Sacramento Kings, Oklahoma City Thunder, Washington Wizards, Detroit Pistons team team team
|
15 |
+
Which team has 'Warriors' as their nickname? SELECT full_name FROM team WHERE nickname = 'Warriors'; Golden State Warriors team team team
|
16 |
+
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 team team team
|
17 |
+
Which team abbreviation corresponds to the city of Houston? SELECT abbreviation FROM team WHERE city = 'Houston'; HOU team team team
|
18 |
+
What is the state of the team nicknamed 'Jazz'? SELECT state FROM team WHERE nickname = 'Jazz'; Utah team team team
|
19 |
+
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 team team team
|
20 |
+
Which team has the same nickname as the team located in Charlotte? SELECT nickname FROM team WHERE city = 'Charlotte'; Hornets team team team
|
21 |
+
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 team team team
|
22 |
+
What is the full name of the team based in Dallas? SELECT full_name FROM team WHERE city = 'Dallas'; Dallas Mavericks team team team
|
23 |
+
Which team has a nickname starting with the letter 'S'? SELECT full_name FROM team WHERE nickname LIKE 'S%'; Phoenix Suns, San Antonio Spurs team team team
|
24 |
+
List all team abbreviations for teams founded in the 1990s. SELECT abbreviation FROM team WHERE year_founded BETWEEN 1990 AND 1999; TOR, MEM team team team
|
25 |
+
Which teams were founded in the same state as the Golden State Warriors? SELECT full_name FROM team WHERE state = (SELECT state FROM team WHERE full_name = 'Golden State Warriors'); Golden State Warriors, Los Angeles Clippers, Los Angeles Lakers, Sacramento Kings team team team
|
26 |
+
What is the full name of the team with the abbreviation 'PHI'? SELECT full_name FROM team WHERE abbreviation = 'PHI'; Philadelphia 76ers team team team
|
27 |
+
List all teams based in Texas. SELECT full_name FROM team WHERE state = 'Texas'; Dallas Mavericks, Houston Rockets, San Antonio Spurs team team team
|
28 |
+
Which team has the nickname 'Celtics'? SELECT full_name FROM team WHERE nickname = 'Celtics'; Boston Celtics team team team
|
29 |
+
Which team was founded most recently? SELECT full_name FROM team ORDER BY year_founded DESC LIMIT 1; New Orleans Pelicans team team
|
30 |
+
What are the nicknames of teams based in Florida? SELECT nickname FROM team WHERE state = 'Florida'; Heat, Magic team team team
|
31 |
+
List all teams located in New York. SELECT full_name FROM team WHERE state = 'New York'; Brooklyn Nets, New York Knicks team team team
|
32 |
+
What is the year the team nicknamed 'Nuggets' was founded? SELECT year_founded FROM team WHERE nickname = 'Nuggets'; 1976.0 team team team
|
33 |
+
Which team abbreviation belongs to the team based in Phoenix? SELECT abbreviation FROM team WHERE city = 'Phoenix'; PHX team team team
|
34 |
+
What is the nickname of the team founded in 1946? SELECT nickname FROM team WHERE year_founded = 1946; Celtics, Warriors, Knicks team team team
|
35 |
+
Which team is located in the state of Indiana? SELECT full_name FROM team WHERE state = 'Indiana'; Indiana Pacers team team team
|
36 |
+
Which teams were founded before 1979? SELECT full_name FROM team WHERE year_founded < 1979; Atlanta Hawks, Boston Celtics, Cleveland Cavaliers, Chicago Bulls, Denver Nuggets, Golden State Warriors, Houston Rockets, Los Angeles Clippers, Los Angeles Lakers, Milwaukee Bucks, Brooklyn Nets, New York Knicks, Indiana Pacers, Philadelphia 76ers, Phoenix Suns, Portland Trail Blazers, Sacramento Kings, San Antonio Spurs, Oklahoma City Thunder, Utah Jazz, Washington Wizards, Detroit Pistons team team team
|
37 |
+
In what year was the Indiana Pacers founded? SELECT year_founded FROM team WHERE full_name = 'Indiana Pacers'; 1976.0 team team team
|
38 |
+
What team has the abbreviation 'IND'? SELECT full_name FROM team WHERE abbreviation = 'IND'; Indiana Pacers team team team
|
39 |
+
Which team is located in the state of Minnesota? SELECT full_name FROM team WHERE state = 'Minnesota'; Minnesota Timberwolves team team team
|
40 |
+
What is the nickname of the team based in Detroit? SELECT nickname FROM team WHERE city = 'Detroit'; Pistons team team team
|
41 |
+
Which team has the earliest founding year among all teams located in the Midwest? SELECT full_name FROM team WHERE state IN ('Illinois', 'Ohio', 'Wisconsin', 'Michigan', 'Indiana', 'Minnesota') ORDER BY year_founded ASC LIMIT 1; Detroit Pistons team team team
|
42 |
+
Which teams from Northern states were founded in 1974? SELECT full_name FROM team WHERE year_founded = 1974 AND state IN ('Wisconsin', 'Minnesota', 'Michigan'); team team team
|
43 |
+
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 team team team
|
44 |
+
Which cities in the Midwest had teams founded in the 1970s? SELECT city FROM team WHERE state IN ('Illinois', 'Ohio', 'Wisconsin', 'Michigan', 'Indiana', 'Minnesota') AND year_founded BETWEEN 1970 AND 1979; Cleveland, Indiana team team team
|
45 |
+
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 team team team
|
46 |
+
Which team located in Cleveland has an abbreviation that includes the letter 'C'? SELECT full_name FROM team WHERE city = 'Cleveland' AND abbreviation LIKE '%C%'; Cleveland Cavaliers team team team
|
47 |
+
What is the year the Milwaukee team was founded? SELECT year_founded FROM team WHERE city = 'Milwaukee'; 1968.0 team team team
|
48 |
+
Which team from the Midwest has the nickname 'Bucks'? SELECT full_name FROM team WHERE nickname = 'Bucks' AND state IN ('Illinois', 'Ohio', 'Wisconsin', 'Michigan', 'Indiana', 'Minnesota'); Milwaukee Bucks team team team
|
49 |
+
Which cities host teams with abbreviations that start with 'C'? SELECT city FROM team WHERE abbreviation LIKE 'C%'; Cleveland, Chicago, Charlotte team team team
|
50 |
+
List all team abbreviations from teams located in Ohio or Michigan. SELECT abbreviation FROM team WHERE state IN ('Ohio', 'Michigan'); CLE, DET team team team
|
51 |
+
Which teams based in Northern states were founded after 1975? SELECT full_name FROM team WHERE state IN ('Illinois', 'Ohio', 'Wisconsin', 'Michigan', 'Indiana', 'Minnesota') AND year_founded > 1975; Minnesota Timberwolves, Indiana Pacers team team team
|
52 |
+
Which team based in Indiana was founded before 1980? SELECT full_name FROM team WHERE state = 'Indiana' AND year_founded < 1980; Indiana Pacers team team team
|
53 |
+
Which team founded in the 70s has a nickname starting with 'C'? SELECT full_name FROM team WHERE year_founded BETWEEN 1970 AND 1979 AND nickname LIKE 'C%'; Cleveland Cavaliers, Los Angeles Clippers team team team
|
train-data/with_join.tsv
ADDED
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
natural_query sql_query result from_to_where after_froM after_from
|
2 |
+
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
|
3 |
+
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
|
4 |
+
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
|
5 |
+
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
|
6 |
+
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
|
7 |
+
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
|
8 |
+
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
|
9 |
+
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
|
10 |
+
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
|
11 |
+
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
|
12 |
+
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
|
13 |
+
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
|
14 |
+
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
|
15 |
+
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
|
16 |
+
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
|
17 |
+
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
|
18 |
+
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
|
19 |
+
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
|
20 |
+
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
|
21 |
+
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
|
22 |
+
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
|
23 |
+
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
|
24 |
+
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
|
25 |
+
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
|
26 |
+
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
|
27 |
+
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
|
28 |
+
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
|
29 |
+
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
|
30 |
+
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
|
31 |
+
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
|
32 |
+
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
|
33 |
+
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
|
34 |
+
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
|
35 |
+
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
|
36 |
+
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
|
37 |
+
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
|
38 |
+
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
|
39 |
+
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
|
40 |
+
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
|
41 |
+
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
|
42 |
+
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
|
43 |
+
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
|
44 |
+
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
|
45 |
+
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
|
46 |
+
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
|
47 |
+
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
|
48 |
+
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
|
49 |
+
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
|
50 |
+
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
|
51 |
+
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
|
52 |
+
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
|
53 |
+
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
|
54 |
+
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
|
55 |
+
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
|
56 |
+
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
|
57 |
+
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
|
58 |
+
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
|
59 |
+
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
|
60 |
+
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
|
61 |
+
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
|
62 |
+
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
|
63 |
+
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
|
64 |
+
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
|
65 |
+
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
|
66 |
+
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
|
67 |
+
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
|
68 |
+
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
|
69 |
+
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
|
70 |
+
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
|
71 |
+
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
|
72 |
+
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
|
73 |
+
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
|
74 |
+
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
|
75 |
+
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
|
76 |
+
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
|
77 |
+
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
|
78 |
+
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
|
79 |
+
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
|
80 |
+
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
|
81 |
+
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
|
82 |
+
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
|
83 |
+
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
|
84 |
+
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
|
85 |
+
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
|
86 |
+
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
|
87 |
+
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
|
88 |
+
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
|
89 |
+
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
|
90 |
+
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
|
91 |
+
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
|
92 |
+
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
|
93 |
+
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
|
94 |
+
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
|
95 |
+
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
|
96 |
+
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
|
97 |
+
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
|
98 |
+
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
|
99 |
+
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
|
100 |
+
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
|
101 |
+
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
|
102 |
+
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
|
103 |
+
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
|
104 |
+
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
|
105 |
+
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
|
106 |
+
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
|
107 |
+
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
|
108 |
+
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
|
109 |
+
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
|
110 |
+
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
|
111 |
+
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
|
112 |
+
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
|
113 |
+
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
|
114 |
+
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
|
115 |
+
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
|
116 |
+
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
|
117 |
+
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
|
118 |
+
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
|
119 |
+
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
|
120 |
+
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
|
121 |
+
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
|
122 |
+
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
|
123 |
+
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
|
124 |
+
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
|
125 |
+
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
|
126 |
+
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
|
127 |
+
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
|
128 |
+
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
|
129 |
+
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
|
130 |
+
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
|
131 |
+
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
|
132 |
+
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
|
133 |
+
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
|
134 |
+
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
|
135 |
+
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
|
136 |
+
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
|
137 |
+
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
|
138 |
+
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
|
139 |
+
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
|
140 |
+
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
|
141 |
+
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
|
142 |
+
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
|
143 |
+
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
|
144 |
+
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
|
145 |
+
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
|
146 |
+
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
|
147 |
+
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
|
148 |
+
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
|
149 |
+
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
|
150 |
+
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
|
151 |
+
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
|
152 |
+
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
|
153 |
+
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
|
154 |
+
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
|
155 |
+
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
|
156 |
+
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
|
157 |
+
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
|
158 |
+
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
|
159 |
+
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
|
160 |
+
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
|
161 |
+
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
|
162 |
+
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
|
163 |
+
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
|
164 |
+
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
|
165 |
+
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
|
166 |
+
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
|
167 |
+
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
|
168 |
+
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
|
169 |
+
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
|
170 |
+
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
|
171 |
+
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
|
172 |
+
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
|
173 |
+
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
|
174 |
+
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
|
175 |
+
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
|
176 |
+
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
|
177 |
+
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
|
178 |
+
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
|
179 |
+
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
|
180 |
+
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
|
181 |
+
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
|
182 |
+
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
|
183 |
+
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
|
184 |
+
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
|
185 |
+
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
|
186 |
+
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
|
train-data/without_join.tsv
ADDED
The diff for this file is too large to render.
See raw diff
|
|