db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
music_1
select max(t2.resolution) , min(t2.resolution) from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like '3:%'
Question: what is the maximum and minimum resolution of all songs that are approximately 3 minutes long? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id, g...
what is the maximum and minimum resolution of all songs that are approximately 3 minutes long?
music_1
select max(t1.duration) , max(t2.resolution) , t2.languages from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.languages order by t2.languages
Question: what are the maximum duration and resolution of songs grouped and ordered by languages? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id, genre_is...
what are the maximum duration and resolution of songs grouped and ordered by languages?
music_1
select max(t1.duration) , max(t2.resolution) , t2.languages from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.languages order by t2.languages
Question: what are the maximum duration and resolution of all songs, for each language, ordered alphabetically by language? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_nam...
what are the maximum duration and resolution of all songs, for each language, ordered alphabetically by language?
music_1
select min(t1.duration) , min(t2.rating) , t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is
Question: what are the shortest duration and lowest rating of songs grouped by genre and ordered by genre? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id,...
what are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?
music_1
select min(t1.duration) , min(t2.rating) , t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is
Question: what is the shortest and most poorly rated song for each genre, ordered alphabetically by genre? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id,...
what is the shortest and most poorly rated song for each genre, ordered alphabetically by genre?
music_1
select t1.artist_name , count(*) from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.languages = 'english' group by t2.artist_name having count(*) >= 1
Question: find the names and number of works of all artists who have at least one english songs. | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id, genre_is,...
find the names and number of works of all artists who have at least one english songs.
music_1
select t1.artist_name , count(*) from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.languages = 'english' group by t2.artist_name having count(*) >= 1
Question: what are the names and number of works for all artists who have sung at least one song in english? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_i...
what are the names and number of works for all artists who have sung at least one song in english?
music_1
select t1.artist_name , t1.country from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.resolution > 900 group by t2.artist_name having count(*) >= 1
Question: find the name and country of origin for all artists who have release at least one song of resolution above 900. | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name,...
find the name and country of origin for all artists who have release at least one song of resolution above 900.
music_1
select t1.artist_name , t1.country from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.resolution > 900 group by t2.artist_name having count(*) >= 1
Question: what is the name and country of origin for each artist who has released a song with a resolution higher than 900? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_nam...
what is the name and country of origin for each artist who has released a song with a resolution higher than 900?
music_1
select t1.artist_name , count(*) from artist as t1 join song as t2 on t1.artist_name = t2.artist_name group by t2.artist_name order by count(*) desc limit 3
Question: find the names and number of works of the three artists who have produced the most songs. | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id, genre_...
find the names and number of works of the three artists who have produced the most songs.
music_1
select t1.artist_name , count(*) from artist as t1 join song as t2 on t1.artist_name = t2.artist_name group by t2.artist_name order by count(*) desc limit 3
Question: what are the names of the three artists who have produced the most songs, and how many works did they produce? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, ...
what are the names of the three artists who have produced the most songs, and how many works did they produce?
music_1
select t1.country from artist as t1 join song as t2 on t1.artist_name = t2.artist_name group by t2.artist_name order by count(*) limit 1
Question: find the country of origin for the artist who made the least number of songs? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id, genre_is, rating, ...
find the country of origin for the artist who made the least number of songs?
music_1
select t1.country from artist as t1 join song as t2 on t1.artist_name = t2.artist_name group by t2.artist_name order by count(*) limit 1
Question: what country is the artist who made the fewest songs from? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id, genre_is, rating, languages, released...
what country is the artist who made the fewest songs from?
music_1
select song_name from song where rating < (select min(rating) from song where languages = 'english')
Question: what are the names of the songs whose rating is below the rating of all songs in english? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id, genre_...
what are the names of the songs whose rating is below the rating of all songs in english?
music_1
select song_name from song where rating < (select min(rating) from song where languages = 'english')
Question: what are the song names for every song whose rating is less than the minimum rating for english songs? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country,...
what are the song names for every song whose rating is less than the minimum rating for english songs?
music_1
select f_id from song where resolution > (select max(resolution) from song where rating < 8)
Question: what is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, ...
what is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?
music_1
select f_id from song where resolution > (select max(resolution) from song where rating < 8)
Question: what is the id of every song that has a resolution higher than that of a song with a rating below 8? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f...
what is the id of every song that has a resolution higher than that of a song with a rating below 8?
music_1
select f_id from song where resolution > (select avg(resolution) from song where genre_is = 'modern')
Question: what is ids of the songs whose resolution is higher than the average resolution of songs in modern genre? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, count...
what is ids of the songs whose resolution is higher than the average resolution of songs in modern genre?
music_1
select f_id from song where resolution > (select avg(resolution) from song where genre_is = 'modern')
Question: what are the ids of all songs that have higher resolution of the average resolution in the modern genre? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, countr...
what are the ids of all songs that have higher resolution of the average resolution in the modern genre?
music_1
select t1.artist_name from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.languages = 'bangla' group by t2.artist_name order by count(*) desc limit 3
Question: find the top 3 artists who have the largest number of songs works whose language is bangla. | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id, genr...
find the top 3 artists who have the largest number of songs works whose language is bangla.
music_1
select t1.artist_name from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.languages = 'bangla' group by t2.artist_name order by count(*) desc limit 3
Question: what are the top 3 artists with the largest number of songs in the language bangla? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id, genre_is, ra...
what are the top 3 artists with the largest number of songs in the language bangla?
music_1
select f_id , genre_is , artist_name from song where languages = 'english' order by rating
Question: list the id, genre and artist name of english songs ordered by rating. | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id, genre_is, rating, languag...
list the id, genre and artist name of english songs ordered by rating.
music_1
select f_id , genre_is , artist_name from song where languages = 'english' order by rating
Question: what is the id, genre, and name of the artist for every english song ordered by ascending rating? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id...
what is the id, genre, and name of the artist for every english song ordered by ascending rating?
music_1
select t1.duration , t1.file_size , t1.formats from files as t1 join song as t2 on t1.f_id = t2.f_id where t2.genre_is = 'pop' order by t2.song_name
Question: list the duration, file size and format of songs whose genre is pop, ordered by title? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_id, genre_is,...
list the duration, file size and format of songs whose genre is pop, ordered by title?
music_1
select t1.duration , t1.file_size , t1.formats from files as t1 join song as t2 on t1.f_id = t2.f_id where t2.genre_is = 'pop' order by t2.song_name
Question: what is the duration, file size, and song format for every pop song, ordered by title alphabetically? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, ...
what is the duration, file size, and song format for every pop song, ordered by title alphabetically?
music_1
select distinct artist_name from song where languages = 'english' except select distinct artist_name from song where rating > 8
Question: find the names of the artists who have produced english songs but have never received rating higher than 8. | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, cou...
find the names of the artists who have produced english songs but have never received rating higher than 8.
music_1
select distinct artist_name from song where languages = 'english' except select distinct artist_name from song where rating > 8
Question: what are the names of the different artists that have produced a song in english but have never receieved a rating higher than 8? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_...
what are the names of the different artists that have produced a song in english but have never receieved a rating higher than 8?
music_1
select distinct artist_name from artist where country = 'bangladesh' except select distinct artist_name from song where rating > 7
Question: find the names of the artists who are from bangladesh and have never received rating higher than 7. | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, country, f_...
find the names of the artists who are from bangladesh and have never received rating higher than 7.
music_1
select distinct artist_name from artist where country = 'bangladesh' except select distinct artist_name from song where rating > 7
Question: what are the names of the different artists from bangladesh who never received a rating higher than a 7? | Tables: genre -> g_name, rating, most_popular_in. artist -> artist_name, country, gender, preferred_genre. files -> f_id, artist_name, file_size, duration, formats. song -> song_name, artist_name, countr...
what are the names of the different artists from bangladesh who never received a rating higher than a 7?
baseball_1
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;
Question: what is the full name and id of the college with the largest number of baseball players? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, ...
what is the full name and id of the college with the largest number of baseball players?
baseball_1
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;
Question: find the full name and id of the college that has the most baseball players. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, ...
find the full name and id of the college that has the most baseball players.
baseball_1
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'
Question: what is average salary of the players in the team named 'boston red stockings' ? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_...
what is average salary of the players in the team named 'boston red stockings' ?
baseball_1
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'
Question: compute the average salary of the players in the team called 'boston red stockings'. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf...
compute the average salary of the players in the team called 'boston red stockings'.
baseball_1
select name_first , name_last from player as t1 join all_star as t2 on t1.player_id = t2.player_id where year = 1998
Question: what are first and last names of players participating in all star game in 1998? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_...
what are first and last names of players participating in all star game in 1998?
baseball_1
select name_first , name_last from player as t1 join all_star as t2 on t1.player_id = t2.player_id where year = 1998
Question: list the first and last name for players who participated in all star game in 1998. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf,...
list the first and last name for players who participated in all star game in 1998.
baseball_1
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;
Question: what are the first name, last name and id of the player with the most all star game experiences? also list the count. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g...
what are the first name, last name and id of the player with the most all star game experiences? also list the count.
baseball_1
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;
Question: which player has the most all star game experiences? give me the first name, last name and id of the player, as well as the number of times the player participated in all star game. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, le...
which player has the most all star game experiences? give me the first name, last name and id of the player, as well as the number of times the player participated in all star game.
baseball_1
select yearid , count(*) from hall_of_fame group by yearid;
Question: how many players enter hall of fame each year? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_ph, g_pr. manage...
how many players enter hall of fame each year?
baseball_1
select yearid , count(*) from hall_of_fame group by yearid;
Question: count the number of players who enter hall of fame for each year. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh,...
count the number of players who enter hall of fame for each year.
baseball_1
select year , avg(attendance) from home_game group by year;
Question: what is the average number of attendance at home games for each year? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g...
what is the average number of attendance at home games for each year?
baseball_1
select year , avg(attendance) from home_game group by year;
Question: for each year, return the year and the average number of attendance at home games. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, ...
for each year, return the year and the average number of attendance at home games.
baseball_1
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;
Question: in 2014, what are the id and rank of the team that has the largest average number of attendance? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss...
in 2014, what are the id and rank of the team that has the largest average number of attendance?
baseball_1
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;
Question: find the id and rank of the team that has the highest average attendance rate in 2014. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_...
find the id and rank of the team that has the highest average attendance rate in 2014.
baseball_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;
Question: what are the manager's first name, last name and id who won the most manager award? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf,...
what are the manager's first name, last name and id who won the most manager award?
baseball_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;
Question: which manager won the most manager award? give me the manager's first name, last name and id. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g...
which manager won the most manager award? give me the manager's first name, last name and id.
baseball_1
select count(*) from park where state = 'ny';
Question: how many parks are there in the state of ny? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_ph, g_pr. manager_...
how many parks are there in the state of ny?
baseball_1
select count(*) from park where state = 'ny';
Question: show me the number of parks the state of ny has. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_ph, g_pr. mana...
show me the number of parks the state of ny has.
baseball_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;
Question: which 3 players won the most player awards? list their full name and id. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of...
which 3 players won the most player awards? list their full name and id.
baseball_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;
Question: find the first name, last name and id for the top three players won the most player awards. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_l...
find the first name, last name and id for the top three players won the most player awards.
baseball_1
select birth_country from player group by birth_country order by count(*) asc limit 3;
Question: list three countries which are the origins of the least players. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, ...
list three countries which are the origins of the least players.
baseball_1
select birth_country from player group by birth_country order by count(*) asc limit 3;
Question: what are the three countries that the least players are from? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_p...
what are the three countries that the least players are from?
baseball_1
select name_first , name_last from player where death_year = '';
Question: find all the players' first name and last name who have empty death record. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g...
find all the players' first name and last name who have empty death record.
baseball_1
select name_first , name_last from player where death_year = '';
Question: what are the first name and last name of the players whose death record is empty? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g...
what are the first name and last name of the players whose death record is empty?
baseball_1
select count(*) from player where birth_country = 'usa' and bats = 'r';
Question: how many players born in usa are right-handed batters? that is, have the batter value 'r'. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf...
how many players born in usa are right-handed batters? that is, have the batter value 'r'.
baseball_1
select count(*) from player where birth_country = 'usa' and bats = 'r';
Question: count the number of players who were born in usa and have bats information 'r'. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_r...
count the number of players who were born in usa and have bats information 'r'.
baseball_1
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';
Question: what is the average height of the players from the college named 'yale university'? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf,...
what is the average height of the players from the college named 'yale university'?
baseball_1
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';
Question: find the average height of the players who belong to the college called 'yale university'. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf...
find the average height of the players who belong to the college called 'yale university'.
baseball_1
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;
Question: what is the highest salary among each team? list the team name, id and maximum salary. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_...
what is the highest salary among each team? list the team name, id and maximum salary.
baseball_1
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;
Question: for each team, return the team name, id and the maximum salary among the team. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf...
for each team, return the team name, id and the maximum salary among the team.
baseball_1
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;
Question: what are the name and id of the team offering the lowest average salary? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of...
what are the name and id of the team offering the lowest average salary?
baseball_1
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;
Question: which team offers the lowest average salary? give me the name and id of the team. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g...
which team offers the lowest average salary? give me the name and id of the team.
baseball_1
select t1.name_first , t1.name_last from player as t1 join player_award as t2 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: find the players' first name and last name who won award both in 1960 and in 1961. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, ...
find the players' first name and last name who won award both in 1960 and in 1961.
baseball_1
select t1.name_first , t1.name_last from player as t1 join player_award as t2 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: which players won awards in both 1960 and 1961? return their first names and last names. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, ...
which players won awards in both 1960 and 1961? return their first names and last names.
baseball_1
select name_first , name_last from player where weight > 220 or height < 75
Question: list players' first name and last name who have weight greater than 220 or height shorter than 75. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_...
list players' first name and last name who have weight greater than 220 or height shorter than 75.
baseball_1
select name_first , name_last from player where weight > 220 or height < 75
Question: what are the first name and last name of the players who have weight above 220 or height below 75? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_...
what are the first name and last name of the players who have weight above 220 or height below 75?
baseball_1
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: list the maximum scores of the team boston red stockings when the team won in postseason? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf,...
list the maximum scores of the team boston red stockings when the team won in postseason?
baseball_1
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: what are the maximum scores the team boston red stockings got when the team won in postseason? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, ...
what are the maximum scores the team boston red stockings got when the team won in postseason?
baseball_1
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: how many times did boston red stockings lose in 2009 postseason? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, ...
how many times did boston red stockings lose in 2009 postseason?
baseball_1
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: count the number of times the team 'boston red stockings' lost in 2009 postseason. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, ...
count the number of times the team 'boston red stockings' lost in 2009 postseason.
baseball_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;
Question: what are the name and id of the team with the most victories in 2008 postseason? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_...
what are the name and id of the team with the most victories in 2008 postseason?
baseball_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;
Question: find the name and id of the team that won the most times in 2008 postseason. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, ...
find the name and id of the team that won the most times in 2008 postseason.
baseball_1
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: what is the number of wins the team boston red stockings got in the postseasons each year in history? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b,...
what is the number of wins the team boston red stockings got in the postseasons each year in history?
baseball_1
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: for each year, return the year and the number of times the team boston red stockings won in the postseasons. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b...
for each year, return the year and the number of times the team boston red stockings won in the postseasons.
baseball_1
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' );
Question: what is the total number of postseason games that team boston red stockings participated in? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_...
what is the total number of postseason games that team boston red stockings participated in?
baseball_1
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' );
Question: how many times in total did the team boston red stockings participate in postseason games? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf...
how many times in total did the team boston red stockings participate in postseason games?
baseball_1
select count(*) from postseason where year = 1885 and ties = 1;
Question: how many games in 1885 postseason resulted in ties (that is, the value of 'ties' is '1')? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf,...
how many games in 1885 postseason resulted in ties (that is, the value of 'ties' is '1')?
baseball_1
select count(*) from postseason where year = 1885 and ties = 1;
Question: find the number of tied games (the value of 'ties' is '1') in 1885 postseason. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf...
find the number of tied games (the value of 'ties' is '1') in 1885 postseason.
baseball_1
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: what is the total salary paid by team boston red stockings in 2010? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_d...
what is the total salary paid by team boston red stockings in 2010?
baseball_1
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: what is the total salary expenses of team boston red stockings in 2010? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of,...
what is the total salary expenses of team boston red stockings in 2010?
baseball_1
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: how many players were in the team boston red stockings in 2000? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g...
how many players were in the team boston red stockings in 2000?
baseball_1
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: how many players did boston red stockings have in 2000? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_ph, g_p...
how many players did boston red stockings have in 2000?
baseball_1
select salary from salary where year = 2001 order by salary desc limit 3;
Question: list the 3 highest salaries of the players in 2001? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_ph, g_pr. m...
list the 3 highest salaries of the players in 2001?
baseball_1
select salary from salary where year = 2001 order by salary desc limit 3;
Question: how much salary did the top 3 well-paid players get in 2001? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_ph...
how much salary did the top 3 well-paid players get in 2001?
baseball_1
select salary from salary where year = 2010 union select salary from salary where year = 2001
Question: what were all the salary values of players in 2010 and 2001? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_ph...
what were all the salary values of players in 2010 and 2001?
baseball_1
select salary from salary where year = 2010 union select salary from salary where year = 2001
Question: list all the salary values players received in 2010 and 2001. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_p...
list all the salary values players received in 2010 and 2001.
baseball_1
select yearid from hall_of_fame group by yearid order by count(*) asc limit 1;
Question: in which year did the least people enter hall of fame? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_ph, g_pr...
in which year did the least people enter hall of fame?
baseball_1
select yearid from hall_of_fame group by yearid order by count(*) asc limit 1;
Question: find the year in which the least people enter hall of fame. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_ph,...
find the year in which the least people enter hall of fame.
baseball_1
select count(*) from park where city = 'atlanta';
Question: how many parks are there in atlanta city? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_ph, g_pr. manager_awa...
how many parks are there in atlanta city?
baseball_1
select count(*) from park where city = 'atlanta';
Question: how many parks does atlanta city have? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_ph, g_pr. manager_award ...
how many parks does atlanta city have?
baseball_1
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 park 'columbia park' in 1907? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_ph,...
how many games were played in park 'columbia park' in 1907?
baseball_1
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: count the number of games taken place in park 'columbia park' in 1907. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, ...
count the number of games taken place in park 'columbia park' in 1907.
baseball_1
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';
Question: how many games were played in city atlanta in 2000? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_ph, g_pr. m...
how many games were played in city atlanta in 2000?
baseball_1
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';
Question: find the number of games taken place in city atlanta in 2000. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_rf, g_of, g_dh, g_p...
find the number of games taken place in city atlanta in 2000.
baseball_1
select sum(t1.attendance) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = 'boston red stockings' and t1.year between 2000 and 2010;
Question: what is the total home game attendance of team boston red stockings from 2000 to 2010? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_...
what is the total home game attendance of team boston red stockings from 2000 to 2010?
baseball_1
select sum(t1.attendance) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = 'boston red stockings' and t1.year between 2000 and 2010;
Question: how many games in total did team boston red stockings attend from 2000 to 2010? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_cf, g_r...
how many games in total did team boston red stockings attend from 2000 to 2010?
baseball_1
select sum(t1.salary) from salary as t1 join player as t2 on t1.player_id = t2.player_id where t2.name_first = 'len' and t2.name_last = 'barker' and t1.year between 1985 and 1990;
Question: how much did the the player with first name len and last name barker earn between 1985 to 1990 in total? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_...
how much did the the player with first name len and last name barker earn between 1985 to 1990 in total?
baseball_1
select sum(t1.salary) from salary as t1 join player as t2 on t1.player_id = t2.player_id where t2.name_first = 'len' and t2.name_last = 'barker' and t1.year between 1985 and 1990;
Question: compute the total salary that the player with first name len and last name barker received between 1985 to 1990. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, ...
compute the total salary that the player with first name len and last name barker received between 1985 to 1990.
baseball_1
select t2.name_first , t2.name_last from salary as t1 join player as t2 on t1.player_id = t2.player_id join team as t3 on t3.team_id_br = t1.team_id where t1.year = 2005 and t3.name = 'washington nationals' intersect select t2.name_first , t2.name_last from salary as t1 join player as t2 on t1.player_id = t2.player_id...
Question: list players' first name and last name who received salary from team washington nationals in both 2005 and 2007. | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, ...
list players' first name and last name who received salary from team washington nationals in both 2005 and 2007.
baseball_1
select t2.name_first , t2.name_last from salary as t1 join player as t2 on t1.player_id = t2.player_id join team as t3 on t3.team_id_br = t1.team_id where t1.year = 2005 and t3.name = 'washington nationals' intersect select t2.name_first , t2.name_last from salary as t1 join player as t2 on t1.player_id = t2.player_id...
Question: what are the first name and last name of the players who were paid salary by team washington nationals in both 2005 and 2007? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p...
what are the first name and last name of the players who were paid salary by team washington nationals in both 2005 and 2007?
baseball_1
select sum(t1.games) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = 'boston red stockings' and t1.year between 1990 and 2000;
Question: how many home games did the team boston red stockings play from 1990 to 2000 in total? | Tables: all_star -> player_id, year, game_num, game_id, team_id, league_id, gp, starting_pos. appearances -> year, team_id, league_id, player_id, g_all, gs, g_batting, g_defense, g_p, g_c, g_1b, g_2b, g_3b, g_ss, g_lf, g_...
how many home games did the team boston red stockings play from 1990 to 2000 in total?