aherntech/sparc huggingface dataset:
Database: music_4
Question sequence:
List all the different categories of music festivals.
Order them by decreasing frequency of category.
Only show the categories that appear more than once.
SQL query sequence:
SELECT DISTINCT Category FROM music_festival
SELECT Category FROM music_festival GROUP BY Category ORDER BY count(*) DESC
SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*)  >  1
Final question: Please show the categories of the music festivals with count more than 1.
Final SQL: SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*)  >  1
Database: music_4
Question sequence:
List the song associated with each volume.
Show the weeks on top for each song.
Order by decreasing weeks on top.
Which song had the most weeks on top?
SQL query sequence:
SELECT Song FROM volume
SELECT Song, weeks_on_top FROM volume
SELECT Song, weeks_on_top FROM volume ORDER BY weeks_on_top DESC
SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1
Final question: What is the song in the volume with the maximum weeks on top?
Final SQL: SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1
Database: music_4
Question sequence:
List the names of all artists.
How many artists have not released any volumes?
What are their names?
How about their famous titles?
SQL query sequence:
SELECT DISTINCT artist FROM artist
SELECT count(*) FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)
SELECT artist FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)
SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)
Final question: Find the famous titles of artists that do not have any volume.
Final SQL: SELECT Famous_Title FROM artist WHERE Artist_ID NOT IN(SELECT Artist_ID FROM volume)
Database: music_4
Question sequence:
Which artists have released volumes?
Whose volumes lasted more than 2 weeks on top?
Whose volumes also lasted less than 2 weeks on top?
What are their famous titles?
SQL query sequence:
SELECT DISTINCT artist FROM artist WHERE Artist_ID IN(SELECT Artist_ID FROM volume)
SELECT DISTINCT T1.artist FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2
SELECT T1.artist FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2 INTERSECT SELECT T1.artist FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  <  2
SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  <  2
Final question: Show the famous titles of the artists with both volumes that lasted more than 2 weeks on top and volumes that lasted less than 2 weeks on top.
Final SQL: SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  >  2 INTERSECT SELECT T1.Famous_Title FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID  =  T2.Artist_ID WHERE T2.Weeks_on_Top  <  2
Database: music_4
Question sequence:
List the information of all music festivals.
Only show festivals with category “Best Song”.
Which of those festivals also have the result “Awarded”?
Show their ceremony dates.
SQL query sequence:
SELECT * FROM music_festival
SELECT * FROM music_festival WHERE Category  =  "Best Song"
SELECT * FROM music_festival WHERE Category  =  "Best Song" AND RESULT  =  "Awarded"
SELECT Date_of_ceremony FROM music_festival WHERE Category  =  "Best Song" AND RESULT  =  "Awarded"
Final question: What are the date of ceremony of music festivals with category "Best Song" and result "Awarded"?
Final SQL: SELECT Date_of_ceremony FROM music_festival WHERE Category  =  "Best Song" AND RESULT  =  "Awarded"
Database: music_4
Question sequence:
List the information for all volumes.
Order by increasing weeks on top.
Which one had the minimum weeks on top?
What was its issue date?
SQL query sequence:
SELECT * FROM volume
SELECT * FROM volume ORDER BY Weeks_on_Top ASC
SELECT volume_ID FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1
SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1
Final question: What is the issue date of the volume with the minimum weeks on top?
Final SQL: SELECT Issue_Date FROM volume ORDER BY Weeks_on_Top ASC LIMIT 1
Database: music_4
Question sequence:
Show the results of all music festivals.
What is the total number of each result?
Order by decreasing order.
SQL query sequence:
SELECT RESULT FROM music_festival
SELECT RESULT ,  COUNT(*) FROM music_festival GROUP BY RESULT
SELECT RESULT ,  COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC
Final question: Please show the results of music festivals and the number of music festivals that have had each, ordered by this count.
Final SQL: SELECT RESULT ,  COUNT(*) FROM music_festival GROUP BY RESULT ORDER BY COUNT(*) DESC
Database: baseball_1
Question sequence:
How many baseball players are there?
How about the number of colleges?
How many baseball players are there in each college?
Can you order the results by the number of baseball players in descending order?
Please give me the full name and id of the first college.
SQL query sequence:
SELECT COUNT(*) FROM player_college
SELECT COUNT(*) FROM college
SELECT T1.name_full, COUNT(*) FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id;
SELECT T1.name_full, COUNT(*) FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC
SELECT T1.name_full ,  T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;
Final question: what is the full name and id of the college with the largest number of baseball players?
Final SQL: SELECT T1.name_full ,  T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;
Database: baseball_1
Question sequence:
What is the average salary of the players?
How about for each team?
How about for the team 'Boston Red Stockings' ?
SQL query sequence:
SELECT avg(salary) FROM salary
SELECT T2.team_id_br, avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br GROUP BY T2.team_id_br
SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings'
Final question: What is average salary of the players in the team named 'Boston Red Stockings' ?
Final SQL: SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings'
Database: baseball_1
Question sequence:
How many players have participated in all star games?
How about in 1998?
Please list the first and last names of these players.
SQL query sequence:
SELECT COUNT(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id
SELECT COUNT(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998
SELECT name_first ,  name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998
Final question: What are first and last names of players participating in all star game in 1998?
Final SQL: SELECT name_first ,  name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998
Database: baseball_1
Question sequence:
How many players have participated in all star games?
Among these players, how many times did they participate in all star game?
Could you please give the top 10 players that have the most all star experience?
Please give me the information of the top one.
SQL query sequence:
SELECT COUNT(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id
SELECT T1.name_first , T1.name_last , count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id
SELECT T1.name_first , T1.name_last , count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 10
SELECT T1.name_first , T1.name_last ,  T1.player_id ,   count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1
Final question: What are the first name, last name and id of the player with the most all star game experiences? Also list the count.
Final SQL: SELECT T1.name_first , T1.name_last ,  T1.player_id ,   count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;
Database: baseball_1
Question sequence:
What is the average attendance?
What is the average attendance of each team in 2013?
How about in 2014?
Please list the id and rank of the team that had the largest average attendance in that year.
SQL query sequence:
SELECT AVG(attendance) FROM home_game
SELECT T2.team_id ,  avg(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2013 GROUP BY T1.team_id
SELECT T2.team_id ,  avg(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2014 GROUP BY T1.team_id
SELECT T2.team_id ,  T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;
Final question: In 2014, what are the id and rank of the team that has the largest average number of attendance?
Final SQL: SELECT T2.team_id ,  T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;
Database: baseball_1
Question sequence:
Who are the managers that have won the manager award?
How many times did each manager get this award?
Who won the most times?
Please give their full name and id.
SQL query sequence:
SELECT T1.name_first ,  T1.name_last FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id
SELECT T1.name_first ,  T1.name_last, COUNT(*) FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id
SELECT T1.name_first ,  T1.name_last, COUNT(*) FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1
SELECT T1.name_first ,  T1.name_last ,  T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;
Final question: What are the manager's first name, last name and id who won the most manager award?
Final SQL: SELECT T1.name_first ,  T1.name_last ,  T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;
Database: baseball_1
Question sequence:
How many players have won player awards?
Please list their full names.
Among them, who won the most player awards? List their full name and id.
How about top 3?
SQL query sequence:
SELECT COUNT(*) FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id
SELECT T1.name_first ,  T1.name_last FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id
SELECT T1.name_first ,  T1.name_last ,  T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;
SELECT T1.name_first ,  T1.name_last ,  T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;
Final question: Which 3 players won the most player awards? List their full name and id.
Final SQL: SELECT T1.name_first ,  T1.name_last ,  T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;
Database: baseball_1
Question sequence:
Which countries do players come from?
How many players are from each country?
Which country provided the most players?
What are the three countries that provided the fewest players?
SQL query sequence:
SELECT birth_country FROM player
SELECT birth_country, COUNT(*) FROM player GROUP BY birth_country
SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) DESC LIMIT 1;
SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;
Final question: List three countries which are the origins of the least players.
Final SQL: SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;
Database: baseball_1
Question sequence:
How many left-handed batters are there?
How about the right-handed batters?
Out of those batters, how many were born in California?
How about those born in the USA?
SQL query sequence:
SELECT count(*) FROM player WHERE bats  =  'L';
SELECT count(*) FROM player WHERE bats  =  'R';
SELECT count(*) FROM player WHERE birth_state = 'CA' AND bats  =  'R';
SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats  =  'R'
Final question: How many players born in USA are right-handed batters? That is, have the batter value 'R'.
Final SQL: SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats  =  'R';
Database: baseball_1
Question sequence:
What is the average height of all players?
What is the average height of players from 'University of Akron'?
How about for those from Yale University?
SQL query sequence:
SELECT avg(height) FROM player
SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id  =  T2.player_id JOIN college AS T3 ON T3.college_id  = T2.college_id WHERE T3.name_full  =  'University of Akron';
SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id  =  T2.player_id JOIN college AS T3 ON T3.college_id  = T2.college_id WHERE T3.name_full  =  'Yale University'
Final question: What is the average height of the players from the college named 'Yale University'?
Final SQL: SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id  =  T2.player_id JOIN college AS T3 ON T3.college_id  = T2.college_id WHERE T3.name_full  =  'Yale University';
Database: baseball_1
Question sequence:
What is the average salary of all teams?
What is the average salary of each team?
What is the highest salary of each team?
Please also give the team name, id and maximum salary.
SQL query sequence:
SELECT avg(salary) FROM salary
SELECT T1.name ,  avg(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;
SELECT T1.name ,  max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;
SELECT T1.name ,  T1.team_id ,  max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;
Final question: What is the highest salary among each team? List the team name, id and maximum salary.
Final SQL: SELECT T1.name ,  T1.team_id ,  max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;
Database: baseball_1
Question sequence:
What is the average salary of all teams?
What about for each team?
Can you order the results by average salary?
Please give the first one with its name and id.
SQL query sequence:
SELECT avg(salary) FROM salary
SELECT T1.name ,  avg(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;
SELECT T1.name ,  avg(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary)
SELECT T1.name ,  T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;
Final question: What are the name and id of the team offering the lowest average salary?
Final SQL: SELECT T1.name ,  T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;
Database: baseball_1
Question sequence:
Which players have won an award?
Who won an award in 1960?
How about in 1961?
Among the players, who won awards both in 1960 and in 1961?
SQL query sequence:
SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 ON T1.Player_id = T2.Player_id GROUP BY T2.Player_id
SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 ON T1.Player_id = T2.Player_id WHERE T2.year  =  1960 GROUP BY T2.Player_id
SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 ON T1.Player_id = T2.Player_id WHERE T2.year  =  1961 GROUP BY T2.Player_id
SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 ON T1.Player_id = T2.Player_id WHERE T2.year  =  1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1961
Final question: Find the players' first name and last name who won award both in 1960 and in 1961.
Final SQL: SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 ON T1.Player_id = T2.Player_id WHERE T2.year  =  1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1961
Database: baseball_1
Question sequence:
How many players have a weight greater than 220?
How about greater than 230?
How many players have a weight greater than 220 or height shorter than 75?
Please list their full names.
SQL query sequence:
SELECT COUNT(*) FROM player WHERE weight  >  220
SELECT COUNT(*) FROM player WHERE weight  >  230
SELECT COUNT(*) FROM player WHERE weight  >  220 OR height  <  75
SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75
Final question: List players' first name and last name who have weight greater than 220 or height shorter than 75.
Final SQL: SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75
Database: baseball_1
Question sequence:
How many times did the Boston Red Stockings win in postseason?
What is the average score of the games that it won?
How about the the maximum score?
SQL query sequence:
SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';
SELECT avg(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';
SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';
Final question: List the maximum scores of the team Boston Red Stockings when the team won in postseason?
Final SQL: SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';
Database: baseball_1
Question sequence:
How many times did the Boston Red Stockings win in postseason?
How many time did the Chicago White Stockings win in postseason?
How many times did the Boston Red Stockings lose in postseason?
How about the number in 2009?
SQL query sequence:
SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';
SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Chicago White Stockings';
SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings'
SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year = 2009;
Final question: How many times did Boston Red Stockings lose in 2009 postseason?
Final SQL: SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year = 2009;
Database: baseball_1
Question sequence:
Which teams have had victories?
How about in 2008 postseason?
Among the results, which team has had the fewest victories?
How about the team with the most victories?
SQL query sequence:
SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br GROUP BY T1.team_id_winner
SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner
SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner ORDER BY count(*) ASC LIMIT 1;
SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;
Final question: What are the name and id of the team with the most victories in 2008 postseason?
Final SQL: SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;
Database: baseball_1
Question sequence:
How many wins does the team Boston Red Stockings have?
How many wins did the team Boston Red Stockings have in 2008?
How about the wins in each year?
SQL query sequence:
SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings'
SELECT count(*) ,  T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year = 2008
SELECT count(*) ,  T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' GROUP BY T1.year
Final question: What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?
Final SQL: SELECT count(*) , T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' GROUP BY T1.year
Database: baseball_1
Question sequence:
How many games were there in 1885?
How about in 1900?
How many games resulted in ties?
How about the number in 1885?
SQL query sequence:
SELECT count(*) FROM postseason WHERE YEAR  =  1885
SELECT count(*) FROM postseason WHERE YEAR  =  1900
SELECT count(*) FROM postseason WHERE ties  =  1;
SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;
Final question: How many games in 1885 postseason resulted in ties (that is, the value of "ties" is '1')?
Final SQL: SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;
Database: baseball_1
Question sequence:
What is the average salary paid by team Boston Red Stockings?
How about the average salary paid in 2010?
What is the total salary in this year?
SQL query sequence:
SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings'
SELECT avg(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
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
Final question: What is the total salary paid by team Boston Red Stockings in 2010?
Final SQL: 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