db_id
stringclasses 20
values | question
stringlengths 18
174
| db_info
stringclasses 20
values | ground_truth
stringlengths 20
474
|
---|---|---|---|
tvshow | What is the content of the series Sky Radio? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select content from tv_channel where series_name = 'Sky Radio' |
tvshow | What is the Package Option of TV Channel with serial name "Sky Radio"? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select package_option from tv_channel where series_name = 'Sky Radio' |
tvshow | What are the Package Options of the TV Channels whose series names are Sky Radio? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select package_option from tv_channel where series_name = 'Sky Radio' |
tvshow | How many TV Channel using language English? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select count ( * ) from tv_channel where language = 'English' |
tvshow | How many TV Channels use the English language? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select count ( * ) from tv_channel where language = 'English' |
tvshow | List the language used least number of TV Channel. List language and number of TV Channel. | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select language , count ( * ) from tv_channel group by language order by count ( * ) asc limit 1 |
tvshow | What are the languages used by the least number of TV Channels and how many channels use it? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select language , count ( * ) from tv_channel group by language order by count ( * ) asc limit 1 |
tvshow | List each language and the number of TV Channels using it. | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select language , count ( * ) from tv_channel group by language |
tvshow | For each language, list the number of TV Channels that use it. | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select language , count ( * ) from tv_channel group by language |
tvshow | What is the TV Channel that shows the cartoon "The Rise of the Blue Beetle!"? List the TV Channel's series name. | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select tv_channel.series_name from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.title = 'The Rise of the Blue Beetle!' |
tvshow | What is the series name of the TV Channel that shows the cartoon "The Rise of the Blue Beetle"? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select tv_channel.series_name from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.title = 'The Rise of the Blue Beetle!' |
tvshow | List the title of all Cartoons showed on TV Channel with series name "Sky Radio". | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select cartoon.title from tv_channel join cartoon on tv_channel.id = cartoon.channel where tv_channel.series_name = 'Sky Radio' |
tvshow | What is the title of all the cartools that are on the TV Channel with the series name "Sky Radio"? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select cartoon.title from tv_channel join cartoon on tv_channel.id = cartoon.channel where tv_channel.series_name = 'Sky Radio' |
tvshow | List the Episode of all TV series sorted by rating. | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select episode from tv_series order by rating asc |
tvshow | What are all of the episodes ordered by ratings? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select episode from tv_series order by rating asc |
tvshow | List top 3 highest Rating TV series. List the TV series's Episode and Rating. | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select episode , rating from tv_series order by rating desc limit 3 |
tvshow | What are 3 most highly rated episodes in the TV series table and what were those ratings? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select episode , rating from tv_series order by rating desc limit 3 |
tvshow | What is minimum and maximum share of TV series? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select max ( share ) , min ( share ) from tv_series |
tvshow | What is the maximum and minimum share for the TV series? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select max ( share ) , min ( share ) from tv_series |
tvshow | What is the air date of TV series with Episode "A Love of a Lifetime"? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select air_date from tv_series where episode = 'A Love of a Lifetime' |
tvshow | When did the episode "A Love of a Lifetime" air? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select air_date from tv_series where episode = 'A Love of a Lifetime' |
tvshow | What is Weekly Rank of TV series with Episode "A Love of a Lifetime"? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select weekly_rank from tv_series where episode = 'A Love of a Lifetime' |
tvshow | What is the weekly rank for the episode "A Love of a Lifetime"? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select weekly_rank from tv_series where episode = 'A Love of a Lifetime' |
tvshow | What is the TV Channel of TV series with Episode "A Love of a Lifetime"? List the TV Channel's series name. | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select tv_channel.series_name from tv_channel join tv_series on tv_channel.id = tv_series.channel where tv_series.episode = 'A Love of a Lifetime' |
tvshow | What is the name of the series that has the episode "A Love of a Lifetime"? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select tv_channel.series_name from tv_channel join tv_series on tv_channel.id = tv_series.channel where tv_series.episode = 'A Love of a Lifetime' |
tvshow | List the Episode of all TV series showed on TV Channel with series name "Sky Radio". | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select tv_series.episode from tv_channel join tv_series on tv_channel.id = tv_series.channel where tv_channel.series_name = 'Sky Radio' |
tvshow | What is the episode for the TV series named "Sky Radio"? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select tv_series.episode from tv_channel join tv_series on tv_channel.id = tv_series.channel where tv_channel.series_name = 'Sky Radio' |
tvshow | Find the number of cartoons directed by each of the listed directors. | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select count ( * ) , directed_by from cartoon group by directed_by |
tvshow | How many cartoons did each director create? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select count ( * ) , directed_by from cartoon group by directed_by |
tvshow | Find the production code and channel of the most recently aired cartoon . | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select production_code , channel from cartoon order by original_air_date desc limit 1 |
tvshow | What is the produdction code and channel of the most recent cartoon ? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select production_code , channel from cartoon order by original_air_date desc limit 1 |
tvshow | Find the package choice and series name of the TV channel that has high definition TV. | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select package_option , series_name from tv_channel where hight_definition_tv = 'yes' |
tvshow | What are the package options and the name of the series for the TV Channel that supports high definition TV? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select package_option , series_name from tv_channel where hight_definition_tv = 'yes' |
tvshow | which countries' tv channels are playing some cartoon written by Todd Casey? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.written_by = 'Todd Casey' |
tvshow | What are the countries that have cartoons on TV that were written by Todd Casey? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.written_by = 'Todd Casey' |
tvshow | which countries' tv channels are not playing any cartoon written by Todd Casey? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select country from tv_channel except select tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.written_by = 'Todd Casey' |
tvshow | What are the countries that are not playing cartoons written by Todd Casey? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select country from tv_channel except select tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.written_by = 'Todd Casey' |
tvshow | Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select tv_channel.series_name , tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.directed_by = 'Michael Chang' intersect select tv_channel.series_name , tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.directed_by = 'Ben Jones' |
tvshow | What is the series name and country of all TV channels that are playing cartoons directed by Ben Jones and cartoons directed by Michael Chang? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select tv_channel.series_name , tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.directed_by = 'Michael Chang' intersect select tv_channel.series_name , tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.directed_by = 'Ben Jones' |
tvshow | find the pixel aspect ratio and nation of the tv channels that do not use English. | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select pixel_aspect_ratio_par , country from tv_channel where language != 'English' |
tvshow | What is the pixel aspect ratio and country of origin for all TV channels that do not use English? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select pixel_aspect_ratio_par , country from tv_channel where language != 'English' |
tvshow | find id of the tv channels that from the countries where have more than two tv channels. | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select id from tv_channel group by country having count ( * ) > 2 |
tvshow | What are the ids of all tv channels that have more than 2 TV channels? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select id from tv_channel group by country having count ( * ) > 2 |
tvshow | find the id of tv channels that do not play any cartoon directed by Ben Jones. | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select id from tv_channel except select channel from cartoon where directed_by = 'Ben Jones' |
tvshow | What are the ids of the TV channels that do not have any cartoons directed by Ben Jones? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select id from tv_channel except select channel from cartoon where directed_by = 'Ben Jones' |
tvshow | find the package option of the tv channel that do not have any cartoon directed by Ben Jones. | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select package_option from tv_channel where id not in ( select channel from cartoon where directed_by = 'Ben Jones' ) |
tvshow | What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones? | # tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id
| select package_option from tv_channel where id not in ( select channel from cartoon where directed_by = 'Ben Jones' ) |
poker_player | How many poker players are there? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select count ( * ) from poker_player |
poker_player | Count the number of poker players. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select count ( * ) from poker_player |
poker_player | List the earnings of poker players in descending order. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select earnings from poker_player order by earnings desc |
poker_player | What are the earnings of poker players, ordered descending by value? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select earnings from poker_player order by earnings desc |
poker_player | List the final tables made and the best finishes of poker players. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select final_table_made , best_finish from poker_player |
poker_player | What are the final tables made and best finishes for all poker players? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select final_table_made , best_finish from poker_player |
poker_player | What is the average earnings of poker players? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select avg ( earnings ) from poker_player |
poker_player | Return the average earnings across all poker players. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select avg ( earnings ) from poker_player |
poker_player | What is the money rank of the poker player with the highest earnings? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select money_rank from poker_player order by earnings desc limit 1 |
poker_player | Return the money rank of the player with the greatest earnings. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select money_rank from poker_player order by earnings desc limit 1 |
poker_player | What is the maximum number of final tables made among poker players with earnings less than 200000? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select max ( final_table_made ) from poker_player where earnings < 200000 |
poker_player | Return the maximum final tables made across all poker players who have earnings below 200000. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select max ( final_table_made ) from poker_player where earnings < 200000 |
poker_player | What are the names of poker players? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select people.name from people join poker_player on people.people_id = poker_player.people_id |
poker_player | Return the names of all the poker players. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select people.name from people join poker_player on people.people_id = poker_player.people_id |
poker_player | What are the names of poker players whose earnings is higher than 300000? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select people.name from people join poker_player on people.people_id = poker_player.people_id where poker_player.earnings > 300000 |
poker_player | Give the names of poker players who have earnings above 300000. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select people.name from people join poker_player on people.people_id = poker_player.people_id where poker_player.earnings > 300000 |
poker_player | List the names of poker players ordered by the final tables made in ascending order. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select people.name from people join poker_player on people.people_id = poker_player.people_id order by poker_player.final_table_made asc |
poker_player | What are the names of poker players, ordered ascending by the number of final tables they have made? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select people.name from people join poker_player on people.people_id = poker_player.people_id order by poker_player.final_table_made asc |
poker_player | What is the birth date of the poker player with the lowest earnings? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select people.birth_date from people join poker_player on people.people_id = poker_player.people_id order by poker_player.earnings asc limit 1 |
poker_player | Return the birth date of the poker player with the lowest earnings. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select people.birth_date from people join poker_player on people.people_id = poker_player.people_id order by poker_player.earnings asc limit 1 |
poker_player | What is the money rank of the tallest poker player? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select poker_player.money_rank from people join poker_player on people.people_id = poker_player.people_id order by people.height desc limit 1 |
poker_player | Return the money rank of the poker player with the greatest height. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select poker_player.money_rank from people join poker_player on people.people_id = poker_player.people_id order by people.height desc limit 1 |
poker_player | What is the average earnings of poker players with height higher than 200? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select avg ( poker_player.earnings ) from people join poker_player on people.people_id = poker_player.people_id where people.height > 200 |
poker_player | Give average earnings of poker players who are taller than 200. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select avg ( poker_player.earnings ) from people join poker_player on people.people_id = poker_player.people_id where people.height > 200 |
poker_player | What are the names of poker players in descending order of earnings? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select people.name from people join poker_player on people.people_id = poker_player.people_id order by poker_player.earnings desc |
poker_player | Return the names of poker players sorted by their earnings descending. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select people.name from people join poker_player on people.people_id = poker_player.people_id order by poker_player.earnings desc |
poker_player | What are different nationalities of people and the corresponding number of people from each nation? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select nationality , count ( * ) from people group by nationality |
poker_player | How many people are there of each nationality? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select nationality , count ( * ) from people group by nationality |
poker_player | What is the most common nationality of people? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select nationality from people group by nationality order by count ( * ) desc limit 1 |
poker_player | Give the nationality that is most common across all people. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select nationality from people group by nationality order by count ( * ) desc limit 1 |
poker_player | What are the nationalities that are shared by at least two people? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select nationality from people group by nationality having count ( * ) >= 2 |
poker_player | Return the nationalities for which there are two or more people. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select nationality from people group by nationality having count ( * ) >= 2 |
poker_player | List the names and birth dates of people in ascending alphabetical order of name. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select name , birth_date from people order by name asc |
poker_player | What are the names and birth dates of people, ordered by their names in alphabetical order? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select name , birth_date from people order by name asc |
poker_player | Show names of people whose nationality is not "Russia". | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select name from people where nationality != 'Russia' |
poker_player | What are the names of people who are not from Russia? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select name from people where nationality != 'Russia' |
poker_player | List the names of people that are not poker players. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select name from people where people_id not in ( select people_id from poker_player ) |
poker_player | What are the names of people who do not play poker? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select name from people where people_id not in ( select people_id from poker_player ) |
poker_player | How many distinct nationalities are there? | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select count ( distinct nationality ) from people |
poker_player | Count the number of different nationalities. | # poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id
| select count ( distinct nationality ) from people |
voter_1 | How many states are there? | # area_code_state ( area_code , state )
# contestants ( contestant_number , contestant_name )
# votes ( vote_id , phone_number , state , contestant_number , created )
# votes.contestant_number = contestants.contestant_number
# votes.state = area_code_state.state
| select count ( * ) from area_code_state |
voter_1 | List the contestant numbers and names, ordered by contestant name descending. | # area_code_state ( area_code , state )
# contestants ( contestant_number , contestant_name )
# votes ( vote_id , phone_number , state , contestant_number , created )
# votes.contestant_number = contestants.contestant_number
# votes.state = area_code_state.state
| select contestant_number , contestant_name from contestants order by contestant_name desc |
voter_1 | List the vote ids, phone numbers and states of all votes. | # area_code_state ( area_code , state )
# contestants ( contestant_number , contestant_name )
# votes ( vote_id , phone_number , state , contestant_number , created )
# votes.contestant_number = contestants.contestant_number
# votes.state = area_code_state.state
| select vote_id , phone_number , state from votes |
voter_1 | What are the maximum and minimum values of area codes? | # area_code_state ( area_code , state )
# contestants ( contestant_number , contestant_name )
# votes ( vote_id , phone_number , state , contestant_number , created )
# votes.contestant_number = contestants.contestant_number
# votes.state = area_code_state.state
| select max ( area_code ) , min ( area_code ) from area_code_state |
voter_1 | What is last date created of votes from the state 'CA'? | # area_code_state ( area_code , state )
# contestants ( contestant_number , contestant_name )
# votes ( vote_id , phone_number , state , contestant_number , created )
# votes.contestant_number = contestants.contestant_number
# votes.state = area_code_state.state
| select max ( created ) from votes where state = 'CA' |
voter_1 | What are the names of the contestants whose names are not 'Jessie Alloway' | # area_code_state ( area_code , state )
# contestants ( contestant_number , contestant_name )
# votes ( vote_id , phone_number , state , contestant_number , created )
# votes.contestant_number = contestants.contestant_number
# votes.state = area_code_state.state
| select contestant_name from contestants where contestant_name != 'Jessie Alloway' |
voter_1 | What are the distinct states and create time of all votes? | # area_code_state ( area_code , state )
# contestants ( contestant_number , contestant_name )
# votes ( vote_id , phone_number , state , contestant_number , created )
# votes.contestant_number = contestants.contestant_number
# votes.state = area_code_state.state
| select distinct state , created from votes |
voter_1 | What are the contestant numbers and names of the contestants who had at least two votes? | # area_code_state ( area_code , state )
# contestants ( contestant_number , contestant_name )
# votes ( vote_id , phone_number , state , contestant_number , created )
# votes.contestant_number = contestants.contestant_number
# votes.state = area_code_state.state
| select contestants.contestant_number , contestants.contestant_name from contestants join votes on contestants.contestant_number = votes.contestant_number group by contestants.contestant_number having count ( * ) >= 2 |
voter_1 | Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes? | # area_code_state ( area_code , state )
# contestants ( contestant_number , contestant_name )
# votes ( vote_id , phone_number , state , contestant_number , created )
# votes.contestant_number = contestants.contestant_number
# votes.state = area_code_state.state
| select contestants.contestant_number , contestants.contestant_name from contestants join votes on contestants.contestant_number = votes.contestant_number group by contestants.contestant_number order by count ( * ) asc limit 1 |
voter_1 | What are the number of votes from state 'NY' or 'CA'? | # area_code_state ( area_code , state )
# contestants ( contestant_number , contestant_name )
# votes ( vote_id , phone_number , state , contestant_number , created )
# votes.contestant_number = contestants.contestant_number
# votes.state = area_code_state.state
| select count ( * ) from votes where state = 'NY' or state = 'CA' |
voter_1 | How many contestants did not get voted? | # area_code_state ( area_code , state )
# contestants ( contestant_number , contestant_name )
# votes ( vote_id , phone_number , state , contestant_number , created )
# votes.contestant_number = contestants.contestant_number
# votes.state = area_code_state.state
| select count ( * ) from contestants where contestant_number not in ( select contestant_number from votes ) |
voter_1 | What is the area code in which the most voters voted? | # area_code_state ( area_code , state )
# contestants ( contestant_number , contestant_name )
# votes ( vote_id , phone_number , state , contestant_number , created )
# votes.contestant_number = contestants.contestant_number
# votes.state = area_code_state.state
| select area_code_state.area_code from area_code_state join votes on area_code_state.state = votes.state group by area_code_state.area_code order by count ( * ) desc limit 1 |
voter_1 | What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'? | # area_code_state ( area_code , state )
# contestants ( contestant_number , contestant_name )
# votes ( vote_id , phone_number , state , contestant_number , created )
# votes.contestant_number = contestants.contestant_number
# votes.state = area_code_state.state
| select votes.created , votes.state , votes.phone_number from contestants join votes on contestants.contestant_number = votes.contestant_number where contestants.contestant_name = 'Tabatha Gehling' |