Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: What is the total number of postseason games that team Boston Red Stockings participated in? [/INST]

Output: SELECT count(*) FROM ( SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' );


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: How many times in total did the team Boston Red Stockings participate in postseason games? [/INST]

Output: SELECT count(*) FROM ( SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' );


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: How many games in 1885 postseason resulted in ties (that is, the value of "ties" is '1')? [/INST]

Output: SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: Find the number of tied games (the value of "ties" is '1') in 1885 postseason. [/INST]

Output: SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: What is the total salary paid by team Boston Red Stockings in 2010? [/INST]

Output: SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2010;


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: What is the total salary expenses of team Boston Red Stockings in 2010? [/INST]

Output: SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2010;


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: How many players were in the team Boston Red Stockings in 2000? [/INST]

Output: SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2000;


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: How many players did Boston Red Stockings have in 2000? [/INST]

Output: SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2000;


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: List the 3 highest salaries of the players in 2001? [/INST]

Output: SELECT salary FROM salary WHERE YEAR  =  2001 ORDER BY salary DESC LIMIT 3;


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: How much salary did the top 3 well-paid players get in 2001? [/INST]

Output: SELECT salary FROM salary WHERE YEAR  =  2001 ORDER BY salary DESC LIMIT 3;


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: What were all the salary values of players in 2010 and 2001? [/INST]

Output: SELECT salary FROM salary WHERE YEAR  =  2010 UNION SELECT salary FROM salary WHERE YEAR  =  2001;


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: List all the salary values players received in 2010 and 2001. [/INST]

Output: SELECT salary FROM salary WHERE YEAR  =  2010 UNION SELECT salary FROM salary WHERE YEAR  =  2001;


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: In which year did the least people enter hall of fame? [/INST]

Output: SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: Find the year in which the least people enter hall of fame. [/INST]

Output: SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;


Input:
[INST] Here is a database schema:
all_star :
player_id [ TEXT ] all_star.player_id = player.player_id
year [ INT ]
game_num [ INT ]
game_id [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
gp [ INT ]
starting_pos [ INT ]

appearances :
year [ INT ]
team_id [ TEXT ] appearances.team_id = team.team_id
league_id [ TEXT ]
player_id [ TEXT ] appearances.player_id = player.player_id
g_all [ INT ]
gs [ INT ]
g_batting [ INT ]
g_defense [ INT ]
g_p [ INT ]
g_c [ INT ]
g_1b [ INT ]
g_2b [ INT ]
g_3b [ INT ]
g_ss [ INT ]
g_lf [ INT ]
g_cf [ INT ]
g_rf [ INT ]
g_of [ INT ]
g_dh [ INT ]
g_ph [ INT ]
g_pr [ INT ]

manager_award :
player_id [ TEXT ] manager_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ INT ]

player_award :
player_id [ TEXT ] player_award.player_id = player.player_id
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
tie [ TEXT ]
notes [ TEXT ]

manager_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ]
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

player_award_vote :
award_id [ TEXT ]
year [ INT ]
league_id [ TEXT ]
player_id [ TEXT ] player_award_vote.player_id = player.player_id
points_won [ INT ]
points_max [ INT ]
votes_first [ INT ]

batting :
player_id [ TEXT ] batting.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

batting_postseason :
year [ INT ]
round [ TEXT ]
player_id [ TEXT ] batting_postseason.player_id = player.player_id
team_id [ TEXT ] batting_postseason.team_id = team.team_id
league_id [ TEXT ]
g [ INT ]
ab [ INT ]
r [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
rbi [ INT ]
sb [ INT ]
cs [ INT ]
bb [ INT ]
so [ INT ]
ibb [ INT ]
hbp [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

player_college :
player_id [ TEXT ] player_college.player_id = player.player_id
college_id [ TEXT ] player_college.college_id = college.college_id
year [ INT ]

fielding :
player_id [ TEXT ] fielding.player_id = player.player_id
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
pb [ INT ]
wp [ INT ]
sb [ INT ]
cs [ INT ]
zr [ INT ]

fielding_outfield :
player_id [ TEXT ] fielding_outfield.player_id = player.player_id
year [ INT ]
stint [ INT ]
glf [ INT ]
gcf [ INT ]
grf [ INT ]

fielding_postseason :
player_id [ TEXT ] fielding_postseason.player_id = player.player_id
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
round [ TEXT ]
pos [ TEXT ]
g [ INT ]
gs [ INT ]
inn_outs [ INT ]
po [ INT ]
a [ INT ]
e [ INT ]
dp [ INT ]
tp [ INT ]
pb [ INT ]
sb [ INT ]
cs [ INT ]

hall_of_fame :
player_id [ TEXT ] hall_of_fame.player_id = player.player_id
yearid [ INT ]
votedby [ TEXT ]
ballots [ INT ]
needed [ INT ]
votes [ INT ]
inducted [ TEXT ]
category [ TEXT ]
needed_note [ TEXT ]

home_game :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ] home_game.team_id = team.team_id
park_id [ TEXT ] home_game.park_id = park.park_id
span_first [ TEXT ]
span_last [ TEXT ]
games [ INT ]
openings [ INT ]
attendance [ INT ]

manager :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]
plyr_mgr [ TEXT ]

manager_half :
player_id [ TEXT ]
year [ INT ]
team_id [ TEXT ] manager_half.team_id = team.team_id
league_id [ TEXT ]
inseason [ INT ]
half [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]
rank [ INT ]

player :
player_id [ TEXT ]
birth_year [ INT ]
birth_month [ INT ]
birth_day [ INT ]
birth_country [ TEXT ]
birth_state [ TEXT ]
birth_city [ TEXT ]
death_year [ INT ]
death_month [ INT ]
death_day [ INT ]
death_country [ TEXT ]
death_state [ TEXT ]
death_city [ TEXT ]
name_first [ TEXT ]
name_last [ TEXT ]
name_given [ TEXT ]
weight [ INT ]
height [ INT ]
bats [ TEXT ]
throws [ TEXT ]
debut [ TEXT ]
final_game [ TEXT ]
retro_id [ TEXT ]
bbref_id [ TEXT ]

park :
park_id [ TEXT ]
park_name [ TEXT ]
park_alias [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

pitching :
player_id [ TEXT ]
year [ INT ]
stint [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ INT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

pitching_postseason :
player_id [ TEXT ]
year [ INT ]
round [ TEXT ]
team_id [ TEXT ]
league_id [ TEXT ]
w [ INT ]
l [ INT ]
g [ INT ]
gs [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
h [ INT ]
er [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
baopp [ TEXT ]
era [ INT ]
ibb [ INT ]
wp [ INT ]
hbp [ INT ]
bk [ INT ]
bfp [ INT ]
gf [ INT ]
r [ INT ]
sh [ INT ]
sf [ INT ]
g_idp [ INT ]

salary :
year [ INT ]
team_id [ TEXT ]
league_id [ TEXT ]
player_id [ TEXT ]
salary [ INT ]

college :
college_id [ TEXT ]
name_full [ TEXT ]
city [ TEXT ]
state [ TEXT ]
country [ TEXT ]

postseason :
year [ INT ]
round [ TEXT ]
team_id_winner [ TEXT ]
league_id_winner [ TEXT ]
team_id_loser [ TEXT ]
league_id_loser [ TEXT ]
wins [ INT ]
losses [ INT ]
ties [ INT ]

team :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
franchise_id [ TEXT ]
div_id [ TEXT ]
rank [ INT ]
g [ INT ]
ghome [ INT ]
w [ INT ]
l [ INT ]
div_win [ TEXT ]
wc_win [ TEXT ]
lg_win [ TEXT ]
ws_win [ TEXT ]
r [ INT ]
ab [ INT ]
h [ INT ]
double [ INT ]
triple [ INT ]
hr [ INT ]
bb [ INT ]
so [ INT ]
sb [ INT ]
cs [ INT ]
hbp [ INT ]
sf [ INT ]
ra [ INT ]
er [ INT ]
era [ INT ]
cg [ INT ]
sho [ INT ]
sv [ INT ]
ipouts [ INT ]
ha [ INT ]
hra [ INT ]
bba [ INT ]
soa [ INT ]
e [ INT ]
dp [ INT ]
fp [ INT ]
name [ TEXT ]
park [ TEXT ]
attendance [ INT ]
bpf [ INT ]
ppf [ INT ]
team_id_br [ TEXT ]
team_id_lahman45 [ TEXT ]
team_id_retro [ TEXT ]

team_franchise :
franchise_id [ TEXT ]
franchise_name [ TEXT ]
active [ TEXT ]
na_assoc [ TEXT ]

team_half :
year [ INT ]
league_id [ TEXT ]
team_id [ TEXT ]
half [ INT ]
div_id [ TEXT ]
div_win [ TEXT ]
rank [ INT ]
g [ INT ]
w [ INT ]
l [ INT ]

Please write me a SQL statement that answers the following question: How many parks are there in Atlanta city? [/INST]

Output: SELECT count(*) FROM park WHERE city = 'Atlanta';