db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
professional_basketball
select count(distinct playerid) from player_allstar where season_id between 2000 and 2005 and steals <= 10
Question: how many players did not get more than 10 steals between the years 2000 and 2005? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstNam...
how many players did not get more than 10 steals between the years 2000 and 2005?
professional_basketball
select t1.playerid from draft as t1 inner join awards_players as t2 on t1.playerid = t2.playerid where t2.award = 'rookie of the year' and t1.draftyear = 1971 and t1.draftround = 2
Question: which player selected by portland in 2nd draftround won rookie of the year in 1971? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstN...
which player selected by portland in 2nd draftround won rookie of the year in 1971?
professional_basketball
select count(distinct t1.playerid) from players as t1 inner join player_allstar as t2 on t1.playerid = t2.playerid where t2.season_id = 1973 and t1.race = 'b'
Question: how many all star players who played in the 1973 season were black? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstName, lastName, s...
how many all star players who played in the 1973 season were black?
professional_basketball
select t2.tmid from series_post as t1 inner join teams as t2 on t1.tmidwinner = t2.tmid where t1.year = 1947 and t1.round = 'qf' and t2.d_pts = 3513
Question: which winning team in the 1947 playoff quarterfinals managed to score 3,513 defensive points that same year? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, d...
which winning team in the 1947 playoff quarterfinals managed to score 3,513 defensive points that same year?
professional_basketball
select cast(sum(lost) as real) * 100 / sum(games) from teams where name = 'houston mavericks'
Question: percentage of games lost out of total games played by the houston mavericks | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstName, las...
percentage of games lost out of total games played by the houston mavericks
professional_basketball
select playerid from awards_players where year > 1990 and award = 'most valuable player' and lgid = 'nba'
Question: please list the players who received the 'most valuable player' award in the nba league after the year of 1990, along with their ids. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draf...
please list the players who received the 'most valuable player' award in the nba league after the year of 1990, along with their ids.
professional_basketball
select count(distinct t2.year) from players as t1 inner join players_teams as t2 on t1.playerid = t2.playerid where t2.tmid = 'lal' and t2.year between 1975 and 1980 and t1.playerid = 'abdulka01'
Question: how many times between 1975 and 1980 did the player abdulka01 play for lal? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstName, las...
how many times between 1975 and 1980 did the player abdulka01 play for lal?
professional_basketball
select cast(sum(case when award = 'nba coach of the year' then 1 else 0 end) as real) * 100 / count(*) from awards_coaches where year = 1969
Question: what is the percentage of coaches in 1969 who were awarded 'nba coach of the year'? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstN...
what is the percentage of coaches in 1969 who were awarded 'nba coach of the year'?
professional_basketball
select cast(sum(case when year = 1947 and tmidwinner = 'chs' then 1 else 0 end) as real) * 100 / sum(case when year = 1947 then 1 else 0 end) - cast(sum(case when year = 1946 and tmidwinner = 'chs' then 1 else 0 end) as real) * 100 / sum(case when year = 1946 then 1 else 0 end) from series_post
Question: what were the difference of the chs team's winning rate between 1946 and 1947 in the post-season series games? please provide your answer in percentages. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft ->...
what were the difference of the chs team's winning rate between 1946 and 1947 in the post-season series games? please provide your answer in percentages.
professional_basketball
select count(t1.award) from awards_players as t1 inner join players as t2 on t1.playerid = t2.playerid where t1.year = 2010 and t2.hscity = 'chicago'
Question: how many awards were given out in 2010 to players who attended high school in chicago? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, fir...
how many awards were given out in 2010 to players who attended high school in chicago?
professional_basketball
select cast(sum(case when t2.award = 'all-defensive second team' then 1 else 0 end) as real) * 100 / count(*) from players as t1 inner join awards_players as t2 on t1.playerid = t2.playerid where t1.college = 'auburn'
Question: what is the percentage of players who attended auburn university and won an 'all-defensive second team' award? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection,...
what is the percentage of players who attended auburn university and won an 'all-defensive second team' award?
professional_basketball
select distinct t1.firstname, t1.middlename, t1.lastname from players as t1 inner join player_allstar as t2 on t1.playerid = t2.playerid where t2.season_id = 1997 order by t2.steals desc limit 5
Question: please list the top five players with the most steals in the year 1997. please give their full name. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOver...
please list the top five players with the most steals in the year 1997. please give their full name.
professional_basketball
select t1.college from players as t1 inner join awards_players as t2 on t1.playerid = t2.playerid where t2.year = 1990 and t2.award = 'finals mvp'
Question: what is the name of the university that was drafted from the player who won the nba finals mvp in 1990? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftO...
what is the name of the university that was drafted from the player who won the nba finals mvp in 1990?
professional_basketball
select playerid from player_allstar where season_id = 1996 and cast(ft_made as real) * 100 / ft_attempted > 70
Question: among the nba all-star players in 1996 season , which have more than 70% free throw rate? please give their player id. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSe...
among the nba all-star players in 1996 season , which have more than 70% free throw rate? please give their player id.
professional_basketball
select distinct t2.playerid from player_allstar as t1 inner join players_teams as t2 on t1.playerid = t2.playerid where t2.year between 1980 and 1983 and t1.three_made / t1.three_attempted > 0.6
Question: from 1980 to 1983, how many of the nba all-star players have more than 60% three point rate? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmI...
from 1980 to 1983, how many of the nba all-star players have more than 60% three point rate?
professional_basketball
select distinct t2.coachid from coaches as t1 inner join awards_coaches as t2 on t1.coachid = t2.coachid where t1.tmid = 'stl' and t1.lgid = 'nba'
Question: among the nba winning coaches, which are from stl team? please list their coach id. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstN...
among the nba winning coaches, which are from stl team? please list their coach id.
professional_basketball
select count(distinct t2.coachid) from coaches as t1 inner join awards_coaches as t2 on t1.coachid = t2.coachid where t1.tmid = 'chi' and t2.award = 'nba coach of the year'
Question: how many times have coaches who were from chi been awarded as nba coach of the year? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, first...
how many times have coaches who were from chi been awarded as nba coach of the year?
professional_basketball
select t3.firstname, t3.lastname from player_allstar as t1 inner join awards_players as t2 on t1.playerid = t2.playerid inner join draft as t3 on t1.playerid = t3.playerid where t2.year between 1990 and 2000 order by t1.points desc limit 1
Question: of the players drafted in nba between 1990 and 2000, who has the most points in all-star? list the player's first name and last name. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draf...
of the players drafted in nba between 1990 and 2000, who has the most points in all-star? list the player's first name and last name.
professional_basketball
select t1.firstname, t1.middlename, t1.lastname from players as t1 inner join player_allstar as t2 on t1.playerid = t2.playerid where t1.college = 'wake forest' and t2.o_rebounds > t2.d_rebounds
Question: which player from wake forest college did the most offensive rebounds than defensive rebounds in the all-star? please mention the full name of the player including the middle name if have any. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won,...
which player from wake forest college did the most offensive rebounds than defensive rebounds in the all-star? please mention the full name of the player including the middle name if have any.
professional_basketball
select t1.firstname, t1.lastname, t2.tmid from players as t1 inner join players_teams as t2 on t1.playerid = t2.playerid where t1.birthcity = 'atlanta' order by t2.blocks desc limit 1
Question: find the full name of the player born in atlanta and have the highest number of blocks. also, in which team did this player perform the most number of blocks? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. dra...
find the full name of the player born in atlanta and have the highest number of blocks. also, in which team did this player perform the most number of blocks?
professional_basketball
select t1.name from teams as t1 inner join series_post as t2 on t1.tmid = t2.tmidloser and t1.year = t2.year where t1.rank < 5 and t2.lgidloser > 2 and t2.year between 1980 and 2000
Question: state the name of teams ranked first five or more times and lost a league two or more times between 1980 and 2000? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelect...
state the name of teams ranked first five or more times and lost a league two or more times between 1980 and 2000?
professional_basketball
select tmid from players_teams where year between 1991 and 2000 order by cast(points as real) / minutes desc limit 1
Question: player from which team has the highest point per minute in nba from 1991 to 2000? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstNam...
player from which team has the highest point per minute in nba from 1991 to 2000?
professional_basketball
select cast(sum(iif(t2.lgid = 'aba', 1970 - strftime('%y', t3.birthdate), 0)) as real) / count(iif(t2.lgid = 'aba', 1, 0)) - cast(sum(iif(t2.lgid = 'nba', 1970 - strftime('%y', t3.birthdate), 0)) as real) / count(iif(t2.lgid = 'nba', 1, 0)) from draft as t1 inner join players_teams as t2 on t1.tmid = t2.tmid inner join...
Question: what is the difference in the average age of players when they are drafted in the aba vs when they are drafted in the nba between the years 1970 and 1970? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -...
what is the difference in the average age of players when they are drafted in the aba vs when they are drafted in the nba between the years 1970 and 1970?
professional_basketball
select playerid from players_teams where year = 2011 order by gp desc limit 1
Question: which player had the most game presentatons in 2011 nba season. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstName, lastName, suffi...
which player had the most game presentatons in 2011 nba season.
professional_basketball
select count(t2.playerid) from draft as t1 inner join player_allstar as t2 on t1.playerid = t2.playerid where t1.draftyear = 1996 and t1.draftround = 1
Question: how many first round draft player in 1996 nba draft became an all-star? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstName, lastNam...
how many first round draft player in 1996 nba draft became an all-star?
professional_basketball
select distinct t3.tmid from players_teams as t1 inner join awards_players as t2 on t1.playerid = t2.playerid inner join teams as t3 on t1.tmid = t3.tmid and t1.year = t3.year where t2.year = 1997 and t2.award = 'finals mvp' limit 1
Question: which team did the mvp of 1997 nba season play in? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstName, lastName, suffixName, player...
which team did the mvp of 1997 nba season play in?
professional_basketball
select t2.w from teams as t1 inner join series_post as t2 on t1.tmid = t2.tmidloser and t1.year = t2.year where t2.year = 2001 order by t1.o_fgm desc limit 1
Question: how many games did team of the scoring champion win in 2001 nba season? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstName, lastNam...
how many games did team of the scoring champion win in 2001 nba season?
professional_basketball
select avg(t2.turnovers) from players as t1 inner join players_teams as t2 on t1.playerid = t2.playerid where t2.year = 2003 group by t1.playerid, t2.assists order by t2.assists desc limit 1
Question: how many turnovers per game did the assist champion had in the 2003 nba season? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstName,...
how many turnovers per game did the assist champion had in the 2003 nba season?
professional_basketball
select count(t1.playerid) from player_allstar as t1 inner join awards_players as t2 on t1.playerid = t2.playerid where first_name = 'ray' and last_name = 'allen'
Question: what is the number of nba titles that ray allen has won throughout his nba career? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstNa...
what is the number of nba titles that ray allen has won throughout his nba career?
professional_basketball
select (cast(sum(case when t1.year = 2004 then t1.won else 0 end) as real) / sum(case when t1.year = 2004 then t1.won + t1.lost else 0 end)) - (cast(sum(case when t1.year = 2003 then t1.won else 0 end) as real) / sum(case when t1.year = 2003 then t1.won + t1.lost else 0 end)) from teams as t1 inner join draft as t2 on ...
Question: how much did the win rate increase for the team after getting the no.1 nba draft pick in the 2003 season than previous season? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound,...
how much did the win rate increase for the team after getting the no.1 nba draft pick in the 2003 season than previous season?
professional_basketball
select count(t1.id) from awards_coaches as t1 inner join teams as t2 on t1.year = t2.year where t1.year between 1971 and 1975 and t1.award = 'nba coach of the year' and t2.tmid = 'por'
Question: among the coaches who won the 'nba coach of the year' award from 1971 - 1975, how many of them were in 'por' team? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelect...
among the coaches who won the 'nba coach of the year' award from 1971 - 1975, how many of them were in 'por' team?
professional_basketball
select cast(sum(iif(t2.steals is not null and t1.tmid = 'lal', 1, 0)) as real) * 100 / count(t1.tmid) from teams as t1 inner join players_teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year
Question: how many percent of points were scored by nba players who belonged to 'lal' team and had performed steals movement. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelec...
how many percent of points were scored by nba players who belonged to 'lal' team and had performed steals movement.
professional_basketball
select t1.playerid from players as t1 inner join players_teams as t2 on t1.playerid = t2.playerid where t2.year = 1996 and t2.postgp = 0 order by t2.steals desc limit 1
Question: what's the name of the player in 1996 who had the most steals that didn't play in the playoffs? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, ...
what's the name of the player in 1996 who had the most steals that didn't play in the playoffs?
professional_basketball
select t2.playerid from players_teams as t1 inner join players as t2 on t1.playerid = t2.playerid where t1.postgp = 0 and t1.year = 1988 order by t1.turnovers desc limit 1
Question: give the player id of the man who had the most turnovers whose team missed the playoffs in year 1988. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOve...
give the player id of the man who had the most turnovers whose team missed the playoffs in year 1988.
professional_basketball
select t2.tmid from players_teams as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.postgp = 0 and t1.year = 2000 order by cast(t2.won as real) / (t2.won + t2.lost) desc limit 1
Question: which nba team that didn't play in playoffs had the most winning rate in the 2000 nba regular season? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOve...
which nba team that didn't play in playoffs had the most winning rate in the 2000 nba regular season?
professional_basketball
select t2.tmid from players_teams as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.year = 1998 and t1.postgp = 0 order by t1.points desc limit 1
Question: which non-playoffs team had the most points in the regular season in the year 1998? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstN...
which non-playoffs team had the most points in the regular season in the year 1998?
professional_basketball
select t2.tmid from players_teams as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.postgp = 0 order by t2.won desc limit 1
Question: what's the full name of the team that won the most games in 2001 but didn't make the playoffs? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, t...
what's the full name of the team that won the most games in 2001 but didn't make the playoffs?
professional_basketball
select t2.tmid from players_teams as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.postgp = 0 and t1.year = 1997 order by t1.rebounds desc limit 1
Question: which team that didn't play in playoffs had the most total rebounds in the year 1997? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firs...
which team that didn't play in playoffs had the most total rebounds in the year 1997?
professional_basketball
select t2.tmid from draft as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.draftyear = t2.year where t1.draftround = 1 and t1.draftselection = 6 and t1.draftyear = 1976
Question: for the player who was drafted in the 1st round, 6th position in 1976, which team did he play in that year? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, dr...
for the player who was drafted in the 1st round, 6th position in 1976, which team did he play in that year?
professional_basketball
select t2.homewon from draft as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.draftyear = t2.year where t1.draftround = 1 and t1.draftselection = 12 and t1.draftyear = 1998
Question: in the year 1998, how many home wins did the team which had the 1st round, 12th pick have that year? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOver...
in the year 1998, how many home wins did the team which had the 1st round, 12th pick have that year?
professional_basketball
select t1.weight, t1.height from players as t1 inner join player_allstar as t2 on t1.playerid = t2.playerid order by t2.rebounds desc limit 1
Question: for the player who had the most rebounds throughout his allstar appearances, what was his weight and height? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, d...
for the player who had the most rebounds throughout his allstar appearances, what was his weight and height?
professional_basketball
select t2.highschool from player_allstar as t1 inner join players as t2 on t1.playerid = t2.playerid order by t1.rebounds desc limit 1
Question: where was the high school of the player who had the most rebounds in the nba allstar history? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tm...
where was the high school of the player who had the most rebounds in the nba allstar history?
professional_basketball
select t2.tmid from players_teams as t1 inner join teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year inner join player_allstar as t3 on t3.playerid = t1.playerid where t3.season_id = 1997 order by t1.rebounds desc limit 1
Question: in the year 1997 allstar game, which teams did the players had the most rebounds play in? list their team ids. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection,...
in the year 1997 allstar game, which teams did the players had the most rebounds play in? list their team ids.
professional_basketball
select sum(t2.points) from players as t1 inner join players_teams as t2 on t1.playerid = t2.playerid where t1.pos = 'c-f-g' group by t2.playerid, t2.year order by t2.year desc limit 1
Question: for the latest passing player who could play all the positions in the court, how many points did he have in his career? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftS...
for the latest passing player who could play all the positions in the court, how many points did he have in his career?
professional_basketball
select t1.tmid from teams as t1 inner join players_teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year inner join players as t3 on t2.playerid = t3.playerid where t3.pos = 'f-g' and t2.lgid = 'nba' order by t3.birthdate desc limit 1
Question: which team did the youngest player who could be in f-g position play in the nba? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstName...
which team did the youngest player who could be in f-g position play in the nba?
professional_basketball
select t1.firstname, t1.middlename, t1.lastname from players as t1 inner join players_teams as t2 on t1.playerid = t2.playerid where t2.lgid = 'pbla' and t2.gp = 10 and t1.college = 'central missouri state' group by t1.firstname, t1.middlename, t1.lastname order by count(t2.id) desc limit 1
Question: for the players who played the most pbla games, who was graduated from central missouri state college? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOv...
for the players who played the most pbla games, who was graduated from central missouri state college?
professional_basketball
select t1.tmid from teams as t1 inner join players_teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t2.gp = 82 and t2.year = 2000 group by t1.tmid order by sum(t2.postminutes) asc limit 1
Question: in 2000, which team did the player who played the least minutes without missing a single game play in? give the full name of the team. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, dra...
in 2000, which team did the player who played the least minutes without missing a single game play in? give the full name of the team.
professional_basketball
select t1.firstname, t1.middlename, t1.lastname from players as t1 inner join players_teams as t2 on t1.playerid = t2.playerid where t2.gp = 82 and t2.year = 1995 order by t2.turnovers desc limit 1
Question: for all the full attendence players in 1995, which player had most turnovers? give the full name of the player. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection...
for all the full attendence players in 1995, which player had most turnovers? give the full name of the player.
professional_basketball
select t1.tmid from teams as t1 inner join players_teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.year = 2011 and t2.gp = t2.gs group by t1.tmid, t2.steals order by t2.steals desc limit 1
Question: for the player in 2011 who started every game he played, which team had the player who had the most steals? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, dr...
for the player in 2011 who started every game he played, which team had the player who had the most steals?
professional_basketball
select distinct t1.tmid from teams as t1 inner join players_teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t2.gp = t2.gs
Question: which team had the most same starting players througout the season? give the full name of the team. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOvera...
which team had the most same starting players througout the season? give the full name of the team.
professional_basketball
select birthdate from players where playerid = ( select playerid from players_teams where year = 2001 group by playerid order by sum(rebounds + drebounds) desc limit 1 )
Question: for the 2001 rebounds leader in the league, when was his birthday? | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmID, firstName, lastName, su...
for the 2001 rebounds leader in the league, when was his birthday?
professional_basketball
select t1.name from teams as t1 inner join players_teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t2.year = 1997 group by t1.name order by sum(rebounds + drebounds) desc limit 1
Question: which team did the all league rebound champion play in 1997? give the full name of the team. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection, draftOverall, tmI...
which team did the all league rebound champion play in 1997? give the full name of the team.
professional_basketball
select t1.tmid from teams as t1 inner join players_teams as t2 on t1.tmid = t2.tmid and t1.year = t2.year where t1.year = 2011 and t2.rebounds > 600
Question: which team had more than one player who grabbed more than 600 rebounds in 2011? give the full name of the team. | Tables: awards_players -> playerID, award, year, lgID, note, pos. coaches -> coachID, year, tmID, lgID, stint, won, lost, post_wins, post_losses. draft -> id, draftYear, draftRound, draftSelection...
which team had more than one player who grabbed more than 600 rebounds in 2011? give the full name of the team.
shakespeare
select count(id) from works where date < 1602
Question: how many of shakespeare's works were finished before the year 1602? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many of shakespeare's works were finished before the year 1602?
shakespeare
select count(t1.id) from works as t1 inner join chapters as t2 on t1.id = t2.work_id where t2.act = 1 and t1.title = 'twelfth night'
Question: how many scenes are there in act 1 in twelfth night? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many scenes are there in act 1 in twelfth night?
shakespeare
select t2.description from works as t1 inner join chapters as t2 on t1.id = t2.work_id where t1.title = 'twelfth night' and t2.act = 1 and t2.scene = 2
Question: what is the description of act 1, scene 2 in twelfth night? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
what is the description of act 1, scene 2 in twelfth night?
shakespeare
select sum(iif(t2.act = 1, 1, 0)) - sum(iif(t2.act = 5, 1, 0)) as more from works as t1 inner join chapters as t2 on t1.id = t2.work_id where t1.title = 'twelfth night'
Question: how many more scenes are there in act 1 than in act 5 in twelfth night? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many more scenes are there in act 1 than in act 5 in twelfth night?
shakespeare
select distinct t1.title from works as t1 inner join chapters as t2 on t1.id = t2.work_id inner join paragraphs as t3 on t2.id = t3.chapter_id inner join characters as t4 on t3.character_id = t4.id where t4.charname = 'lord abergavenny'
Question: which work is the character lord abergavenny from? please give its short or abbreviated title. | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, ...
which work is the character lord abergavenny from? please give its short or abbreviated title.
shakespeare
select distinct t4.charname from works as t1 inner join chapters as t2 on t1.id = t2.work_id inner join paragraphs as t3 on t2.id = t3.chapter_id inner join characters as t4 on t3.character_id = t4.id where t1.title = 'twelfth night'
Question: please list the character names of all the characters from the work twelfth night. | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. |...
please list the character names of all the characters from the work twelfth night.
shakespeare
select sum(t3.paragraphnum) from works as t1 inner join chapters as t2 on t1.id = t2.work_id inner join paragraphs as t3 on t2.id = t3.chapter_id where t2.act = 1 and t2.scene = 1 and t1.title = 'twelfth night'
Question: how many paragraphs are there in act 1, scene 1 in twelfth night? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many paragraphs are there in act 1, scene 1 in twelfth night?
shakespeare
select t3.plaintext from works as t1 inner join chapters as t2 on t1.id = t2.work_id inner join paragraphs as t3 on t2.id = t3.chapter_id where t2.act = 1 and t2.scene = 1 and t1.title = 'twelfth night'
Question: please list all the paragraphs in act 1, scene 1 in twelfth night. | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
please list all the paragraphs in act 1, scene 1 in twelfth night.
shakespeare
select sum(t1.paragraphnum) from paragraphs as t1 inner join characters as t2 on t1.character_id = t2.id where t2.charname = 'lord abergavenny'
Question: how many paragraphs contain the character lord abergavenny? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many paragraphs contain the character lord abergavenny?
shakespeare
select t1.id from paragraphs as t1 inner join characters as t2 on t1.character_id = t2.id where t2.description = 'son to tamora'
Question: please list the ids of the paragraphs in which the character 'son to tamora' appears. | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType...
please list the ids of the paragraphs in which the character 'son to tamora' appears.
shakespeare
select count(t2.id) from works as t1 inner join chapters as t2 on t1.id = t2.work_id where t2.description = 'olivias house.' and t1.title = 'twelfth night'
Question: for how many times has the scene 'olivias house.' appeared in twelfth night? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins...
for how many times has the scene 'olivias house.' appeared in twelfth night?
shakespeare
select count(distinct t4.id) from works as t1 inner join chapters as t2 on t1.id = t2.work_id inner join paragraphs as t3 on t2.id = t3.chapter_id inner join characters as t4 on t3.character_id = t4.id where t1.title = 'twelfth night'
Question: how many characters are there in twelfth night? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many characters are there in twelfth night?
shakespeare
select t.title from ( select t1.title, count(t3.character_id) as num from works t1 inner join chapters t2 on t1.id = t2.work_id inner join paragraphs t3 on t2.id = t3.chapter_id inner join characters t4 on t3.character_id = t4.id group by t3.character_id, t1.title ) t order by t.num desc limit 1
Question: please give the title of the work of shakespeare that has the most characters. | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joi...
please give the title of the work of shakespeare that has the most characters.
shakespeare
select sum(distinct t4.id) / count(t1.id) from works as t1 inner join chapters as t2 on t1.id = t2.work_id inner join paragraphs as t3 on t2.id = t3.chapter_id inner join characters as t4 on t3.character_id = t4.id
Question: what is the average number of characters in all the works of shakespeare? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
what is the average number of characters in all the works of shakespeare?
shakespeare
select sum(t2.scene) / count(t2.act) from works as t1 inner join chapters as t2 on t1.id = t2.work_id where t1.title = 'twelfth night'
Question: how many scenes are there on average in one act in twelfth night? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many scenes are there on average in one act in twelfth night?
shakespeare
select count(id) from works where genretype = 'comedy'
Question: how many comedies did shakespeare create? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many comedies did shakespeare create?
shakespeare
select min(date) from works where genretype = 'poem'
Question: when did shakespeare write the first poem? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
when did shakespeare write the first poem?
shakespeare
select distinct abbrev from characters where charname = 'earl of westmoreland'
Question: give the abbreviation name for the character 'earl of westmoreland'. | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
give the abbreviation name for the character 'earl of westmoreland'.
shakespeare
select t1.description from chapters as t1 inner join paragraphs as t2 on t1.id = t2.chapter_id order by t2.paragraphnum desc limit 1
Question: which chapter has the most paragraphs? give the description of the chapter. | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
which chapter has the most paragraphs? give the description of the chapter.
shakespeare
select t1.charname from characters as t1 inner join paragraphs as t2 on t1.id = t2.character_id where t2.plaintext = 'would he do so, i''ld beg your precious mistress,which he counts but a trifle.'
Question: which character was mentioned in the paragraph 'would he do so, i'ld beg your precious mistress, which he counts but a trifle.'? give the character name. | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, char...
which character was mentioned in the paragraph 'would he do so, i'ld beg your precious mistress, which he counts but a trifle.'? give the character name.
shakespeare
select count(distinct t3.character_id) from works as t1 inner join chapters as t2 on t1.id = t2.work_id inner join paragraphs as t3 on t2.id = t3.chapter_id where t1.title = 'titus andronicus'
Question: how many characters are there in titus andronicus? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many characters are there in titus andronicus?
shakespeare
select distinct t1.act from chapters as t1 inner join works as t2 on t1.id = t1.work_id where t2.longtitle = 'two gentlemen of verona'
Question: list the number of acts in two gentlemen of verona. | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
list the number of acts in two gentlemen of verona.
shakespeare
select t1.description from characters as t1 inner join paragraphs as t2 on t1.id = t2.character_id where t2.id = '640171'
Question: what is the description for the character mentioned in paragraph no.640171? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
what is the description for the character mentioned in paragraph no.640171?
shakespeare
select distinct t1.title from works as t1 inner join chapters as t2 on t1.id = t2.work_id inner join paragraphs as t3 on t2.id = t3.chapter_id inner join characters as t4 on t3.character_id = t4.id where t4.charname = 'shylock'
Question: give the title of the work that contains the character 'shylock'. | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
give the title of the work that contains the character 'shylock'.
shakespeare
select count(t2.scene) from works as t1 inner join chapters as t2 on t1.id = t2.work_id where t1.title = 'king john'
Question: how many scenes are there in king john? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many scenes are there in king john?
shakespeare
select count(distinct t2.chapter_id) from characters as t1 inner join paragraphs as t2 on t1.id = t2.character_id where t1.charname = 'demetrius'
Question: how many chapters does the character demetrius show in the story? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many chapters does the character demetrius show in the story?
shakespeare
select t1.title from works as t1 inner join chapters as t2 on t1.id = t2.work_id inner join paragraphs as t3 on t2.id = t3.chapter_id inner join characters as t4 on t3.character_id = t4.id where t2.id = '324' and t2.description = 'friend to caesar'
Question: which shakespeare story with character id 324 has description of 'this friend of caesar'? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, Genre...
which shakespeare story with character id 324 has description of 'this friend of caesar'?
shakespeare
select t2.description from works as t1 inner join chapters as t2 on t1.id = t2.work_id where t2.act = '2' and t2.scene = '2' and t1.title = 'midsummer night''s dream'
Question: give the description for the act no.2, scene no.2 of midsummer night's dream. | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Join...
give the description for the act no.2, scene no.2 of midsummer night's dream.
shakespeare
select t.longtitle from ( select t1.longtitle, count(t2.scene) as num from works as t1 inner join chapters as t2 on t1.id = t2.work_id where t1.genretype = 'tragedy' group by t1.longtitle, t2.scene ) as t order by t.num desc limit 1
Question: which shakespeare tragedy has the most scenes? give the long title. | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
which shakespeare tragedy has the most scenes? give the long title.
shakespeare
select sum(t2.paragraphnum) from chapters as t1 inner join paragraphs as t2 on t1.id = t2.chapter_id where t1.description = 'a sea-port in cyprus. an open place near the quay.'
Question: how many paragraphs are there in the scene whose description is 'a sea-port in cyprus. an open place near the quay.'? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, T...
how many paragraphs are there in the scene whose description is 'a sea-port in cyprus. an open place near the quay.'?
shakespeare
select cast(sum(iif(t2.genretype = 'tragedy', 1, 0)) as real) * 100 / count(t1.scene) from chapters as t1 inner join works as t2 on t1.work_id = t2.id where t2.date = '1594'
Question: what percentage of all scenes are tragic scenes in shakespeare's work in 1594? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joi...
what percentage of all scenes are tragic scenes in shakespeare's work in 1594?
shakespeare
select cast(count(t1.id) as real) / count(distinct t2.id) from chapters as t1 inner join works as t2 on t1.work_id = t2.id where t2.date = '1599'
Question: gives the average number of chapters in shakespeare's 1599 work. | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
gives the average number of chapters in shakespeare's 1599 work.
shakespeare
select count(id) from characters where description = 'servant to timon'
Question: how many 'servant to timon' characters are there? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many 'servant to timon' characters are there?
shakespeare
select title from works where date = ( select min(date) from works )
Question: what is the title of the first ever work of william shakespeare? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
what is the title of the first ever work of william shakespeare?
shakespeare
select count(id) from works where genretype = 'poem'
Question: how many poems did shakespeare write? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many poems did shakespeare write?
shakespeare
select count(id) from chapters where work_id = 7 and act = 1
Question: how many scenes are there in work id 7, act 1? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
how many scenes are there in work id 7, act 1?
shakespeare
select count(id) from works where genretype = 'tragedy' and date between 1500 and 1599
Question: in the year 1500s, how many tragedies did shakespeare write? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
in the year 1500s, how many tragedies did shakespeare write?
shakespeare
select charname from characters where description = 'daughter to capulet'
Question: who is the daughter of capulet? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
who is the daughter of capulet?
shakespeare
select paragraphnum from paragraphs where plaintext = 'ay, surely, mere the truth: i know his lady.'
Question: how many paragraphs are there in 'ay, surely, mere the truth: i know his lady.'? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | J...
how many paragraphs are there in 'ay, surely, mere the truth: i know his lady.'?
shakespeare
select t2.longtitle from chapters as t1 inner join works as t2 on t1.work_id = t2.id where t1.act = 1 order by t1.scene desc limit 1
Question: what is the long title of the work with the highest number of scenes in act 1? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joi...
what is the long title of the work with the highest number of scenes in act 1?
shakespeare
select t2.description from paragraphs as t1 inner join chapters as t2 on t1.chapter_id = t2.id order by t1.paragraphnum desc limit 1
Question: what is the description of the chapter with the longest number of paragraphs? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Join...
what is the description of the chapter with the longest number of paragraphs?
shakespeare
select t2.description from works as t1 inner join chapters as t2 on t1.id = t2.work_id where t1.longtitle = 'twelfth night, or what you will' and t2.scene = 2 and t2.act = 2
Question: in 'twelfth night, or what you will', what is the description of the chapter in 2nd scene, act 2? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Dat...
in 'twelfth night, or what you will', what is the description of the chapter in 2nd scene, act 2?
shakespeare
select distinct t2.description from paragraphs as t1 inner join chapters as t2 on t1.chapter_id = t2.id where t1.paragraphnum < 150
Question: what are the descriptions of the short chapters? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joins:
what are the descriptions of the short chapters?
shakespeare
select t2.title from chapters as t1 inner join works as t2 on t1.work_id = t2.id where t1.description = 'a field near windsor.'
Question: which of shakespeare's work has chapter description of 'a field near windsor'? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreType. | Joi...
which of shakespeare's work has chapter description of 'a field near windsor'?
shakespeare
select t1.paragraphnum from paragraphs as t1 inner join chapters as t2 on t1.chapter_id = t2.id where t2.act = 1 order by t2.scene desc limit 1
Question: how many paragraphs are there in the chapter with the highest amount of scenes in act 1? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle, Date, GenreT...
how many paragraphs are there in the chapter with the highest amount of scenes in act 1?
shakespeare
select t.charname from ( select t3.charname, count(t3.id) as num from paragraphs as t1 inner join chapters as t2 on t1.chapter_id = t2.id inner join characters as t3 on t1.character_id = t3.id where t2.description = 'the sea-coast.' and t3.charname != '(stage directions)' and t1.chapter_id = 18709 group by t3.id, t3.ch...
Question: other than 'stage directions', what is the name of the character that appeared 5 times in 'the sea-coast'? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongT...
other than 'stage directions', what is the name of the character that appeared 5 times in 'the sea-coast'?
shakespeare
select count(t3.chapter_id) from works as t1 inner join chapters as t2 on t1.id = t2.work_id inner join paragraphs as t3 on t2.id = t3.chapter_id where t1.title = 'as you like it' and t3.paragraphnum < 50
Question: among the chapters in 'as you like it', how many chapters have a paragraph number of no more than 50? | Tables: chapters -> id, Act, Scene, Description, work_id. characters -> id, CharName, Abbrev, Description. paragraphs -> id, ParagraphNum, PlainText, character_id, chapter_id. works -> id, Title, LongTitle,...
among the chapters in 'as you like it', how many chapters have a paragraph number of no more than 50?