Database: baseball_1

Question: Find the players' first name and last name who won award both in 1960 and in 1961.
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

Question: List players' first name and last name who have weight greater than 220 or height shorter than 75.
SQL: SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75

Question: List the maximum scores of the team Boston Red Stockings when the team won in postseason?
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';

Question: How many times did Boston Red Stockings lose in 2009 postseason?
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;

Question: What are the name and id of the team with the most victories in 2008 postseason?
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;

Question: What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?
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

Question: How many games in 1885 postseason resulted in ties (that is, the value of "ties" is '1')?
SQL: SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;

Question: What is the total salary paid by team Boston Red Stockings in 2010?
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

Question: How many players were in the team Boston Red Stockings in 2000?
SQL: 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

Question: List the 3 highest salaries of the players in 2001?
SQL: SELECT salary FROM salary WHERE YEAR  =  2001 ORDER BY salary DESC LIMIT 3;

Question: What were all the salary values of players in 2010 and 2001?
SQL: SELECT salary FROM salary WHERE YEAR  =  2010 UNION SELECT salary FROM salary WHERE YEAR  =  2001

Question: In which year did the least people enter hall of fame?
SQL: SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;

Question: How many games were played in park "Columbia Park" in 1907?
SQL: SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park';

Question: How many games were played in city Atlanta in 2000?
SQL: SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year  =  2000 AND T2.city  =  'Atlanta';