index
int32 0
1.03k
| db_id
stringclasses 20
values | question
stringlengths 18
174
| db_info
stringlengths 1
1.79k
| ground_truth
stringlengths 20
474
|
---|---|---|---|---|
600 |
tvshow
|
What is the content of the series Sky Radio?
|
| tv_channel: series_name, content, id | tv_series: channel, id | cartoon: title, channel, id | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select content from tv_channel where series_name = 'Sky Radio'
|
601 |
tvshow
|
What is the Package Option of TV Channel with serial name "Sky Radio"?
|
| tv_channel: package_option, series_name, id | tv_series: channel, id | cartoon: channel, id | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select package_option from tv_channel where series_name = 'Sky Radio'
|
602 |
tvshow
|
What are the Package Options of the TV Channels whose series names are Sky Radio?
|
| tv_channel: series_name, package_option, id, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: channel, id, title, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select package_option from tv_channel where series_name = 'Sky Radio'
|
603 |
tvshow
|
How many TV Channel using language English?
|
| tv_channel: id, language | tv_series: channel | cartoon: channel | tv_channel: series_name, country, 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 | cartoon: id, title, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select count ( * ) from tv_channel where language = 'English'
|
604 |
tvshow
|
How many TV Channels use the English language?
|
| tv_channel: language, id, series_name, country, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: channel, id, title, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select count ( * ) from tv_channel where language = 'English'
|
605 |
tvshow
|
List the language used least number of TV Channel. List language and number of TV Channel.
|
| tv_channel: language, id | tv_series: channel | cartoon: channel |
|
select language , count ( * ) from tv_channel group by language order by count ( * ) asc limit 1
|
606 |
tvshow
|
What are the languages used by the least number of TV Channels and how many channels use it?
|
| tv_channel: language, id | tv_series: channel | cartoon: 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
|
607 |
tvshow
|
List each language and the number of TV Channels using it.
|
| tv_channel: language, id | tv_series: channel | cartoon: channel |
|
select language , count ( * ) from tv_channel group by language
|
608 |
tvshow
|
For each language, list the number of TV Channels that use it.
|
| tv_channel: language, id | tv_series: channel | cartoon: channel |
|
select language , count ( * ) from tv_channel group by language
|
609 |
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: series_name, id | tv_series: channel | cartoon: title, 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!'
|
610 |
tvshow
|
What is the series name of the TV Channel that shows the cartoon "The Rise of the Blue Beetle"?
|
| tv_channel: series_name, id | cartoon: title, channel | tv_series: id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank, channel | tv_channel.id = cartoon.channel |
|
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!'
|
611 |
tvshow
|
List the title of all Cartoons showed on TV Channel with series name "Sky Radio".
|
| tv_channel: series_name, id, content, country, language, pixel_aspect_ratio_par, high_definition_tv, pay_per_view_ppv, package_option | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: title, channel, id, directed_by, written_by, original_air_date, production_code |
|
select cartoon.title from tv_channel join cartoon on tv_channel.id = cartoon.channel where tv_channel.series_name = 'Sky Radio'
|
612 |
tvshow
|
What is the title of all the cartools that are on the TV Channel with the series name "Sky Radio"?
|
| cartoon: title, channel, id, directed_by, written_by, original_air_date, production_code | tv_channel: series_name, id, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | 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'
|
613 |
tvshow
|
List the Episode of all TV series sorted by rating.
|
| tv_series: episode, rating, id, channel, air_date, share, 18_49_rating_share, viewers_m, weekly_rank | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | 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
|
614 |
tvshow
|
What are all of the episodes ordered by ratings?
|
| tv_series: episode, rating, id, air_date, share, 18_49_rating_share, viewers_m, weekly_rank, channel | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | cartoon: title, channel, id, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select episode from tv_series order by rating asc
|
615 |
tvshow
|
List top 3 highest Rating TV series. List the TV series's Episode and Rating.
|
| tv_series: rating, episode, id, air_date, share, 18_49_rating_share, viewers_m, weekly_rank | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | cartoon: id, title, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select episode , rating from tv_series order by rating desc limit 3
|
616 |
tvshow
|
What are 3 most highly rated episodes in the TV series table and what were those ratings?
|
| tv_series: rating, episode, id, air_date, share, 18_49_rating_share, viewers_m, weekly_rank, channel | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | 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
|
617 |
tvshow
|
What is minimum and maximum share of TV series?
|
| tv_series: share, id, episode, air_date, rating, 18_49_rating_share, viewers_m, weekly_rank, channel | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | cartoon: none | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select max ( share ) , min ( share ) from tv_series
|
618 |
tvshow
|
What is the maximum and minimum share for the TV series?
|
| tv_series: share, id, channel | tv_channel: id |
|
select max ( share ) , min ( share ) from tv_series
|
619 |
tvshow
|
What is the air date of TV series with Episode "A Love of a Lifetime"?
|
| tv_series: episode, air_date, channel, id, rating, share, 18_49_rating_share, viewers_m, weekly_rank | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | 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'
|
620 |
tvshow
|
When did the episode "A Love of a Lifetime" air?
|
| cartoon: title, original_air_date, id, directed_by, written_by, production_code, channel | tv_series: air_date, episode, id, rating, share, 18_49_rating_share, viewers_m, weekly_rank, channel | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select air_date from tv_series where episode = 'A Love of a Lifetime'
|
621 |
tvshow
|
What is Weekly Rank of TV series with Episode "A Love of a Lifetime"?
|
| tv_series: episode, weekly_rank, id, air_date, rating, share, 18_49_rating_share, viewers_m, channel | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | cartoon: title, channel, directed_by, written_by, original_air_date, production_code, id | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select weekly_rank from tv_series where episode = 'A Love of a Lifetime'
|
622 |
tvshow
|
What is the weekly rank for the episode "A Love of a Lifetime"?
|
| tv_series: episode, weekly_rank, channel, id, air_date, rating, share, 18_49_rating_share, viewers_m | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | 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'
|
623 |
tvshow
|
What is the TV Channel of TV series with Episode "A Love of a Lifetime"? List the TV Channel's series name.
|
| tv_series: episode, channel, id, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | tv_channel: series_name, id, country, language, content, pixel_aspect_ratio_par, high_definition_tv, pay_per_view_ppv, package_option | 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'
|
624 |
tvshow
|
What is the name of the series that has the episode "A Love of a Lifetime"?
|
| tv_series: episode, id | tv_channel: series_name, id | cartoon: title, id | tv_series.id = tv_channel.id | cartoon.id = 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'
|
625 |
tvshow
|
List the Episode of all TV series showed on TV Channel with series name "Sky Radio".
|
| tv_channel: series_name, id, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | tv_series: channel, episode, id, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: id, title, directed_by, written_by, original_air_date, production_code, channel |
|
select tv_series.episode from tv_channel join tv_series on tv_channel.id = tv_series.channel where tv_channel.series_name = 'Sky Radio'
|
626 |
tvshow
|
What is the episode for the TV series named "Sky Radio"?
|
| tv_channel: series_name, id, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | tv_series: episode, channel, id, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | 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'
|
627 |
tvshow
|
Find the number of cartoons directed by each of the listed directors.
|
| cartoon: directed_by, id, title, written_by, original_air_date, production_code, channel | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | tv_channel: id, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option |
|
select count ( * ) , directed_by from cartoon group by directed_by
|
628 |
tvshow
|
How many cartoons did each director create?
|
| cartoon: directed_by, id, title, channel | tv_channel: id | tv_series: channel |
|
select count ( * ) , directed_by from cartoon group by directed_by
|
629 |
tvshow
|
Find the production code and channel of the most recently aired cartoon .
|
| cartoon: original_air_date, production_code, channel, id, title, directed_by, written_by | 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 |
|
select production_code , channel from cartoon order by original_air_date desc limit 1
|
630 |
tvshow
|
What is the produdction code and channel of the most recent cartoon ?
|
| cartoon: channel, production_code, original_air_date, id, title, directed_by, written_by | tv_channel: id, channel, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | tv_series: id, channel, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon.channel = tv_channel.id | tv_series.channel = tv_channel.id |
|
select production_code , channel from cartoon order by original_air_date desc limit 1
|
631 |
tvshow
|
Find the package choice and series name of the TV channel that has high definition TV.
|
| tv_channel: hight_definition_tv, series_name, package_option, id, country, language, content, pixel_aspect_ratio_par, pay_per_view_ppv | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | tv_series.channel = tv_channel.id |
|
select package_option , series_name from tv_channel where hight_definition_tv = 'yes'
|
632 |
tvshow
|
What are the package options and the name of the series for the TV Channel that supports high definition TV?
|
| tv_channel: high_definition_tv, package_option, id, series_name, country, language, content, pixel_aspect_ratio_par, pay_per_view_ppv | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: channel, id, title, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select package_option , series_name from tv_channel where hight_definition_tv = 'yes'
|
633 |
tvshow
|
which countries' tv channels are playing some cartoon written by Todd Casey?
|
| tv_channel: country, id, series_name, content, language, 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'
|
634 |
tvshow
|
What are the countries that have cartoons on TV that were written by Todd Casey?
|
| cartoon: written_by, title, channel | tv_channel: country, id | tv_series: channel |
|
select tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.written_by = 'Todd Casey'
|
635 |
tvshow
|
which countries' tv channels are not playing any cartoon written by Todd Casey?
|
| tv_channel: country, id | cartoon: written_by, channel, id | tv_series: channel, id | 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'
|
636 |
tvshow
|
What are the countries that are not playing cartoons written by Todd Casey?
|
| tv_channel: country, id, series_name, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | cartoon: written_by, id, channel, title, directed_by, original_air_date, production_code | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | 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'
|
637 |
tvshow
|
Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?
|
| cartoon: directed_by, channel | tv_channel: id, series_name, country |
|
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'
|
638 |
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: series_name, country, id, content, language, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv, package_option | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: directed_by, channel, id, title, written_by, original_air_date, production_code | 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'
|
639 |
tvshow
|
find the pixel aspect ratio and nation of the tv channels that do not use English.
|
| tv_channel: language, pixel_aspect_ratio_par, country, id, series_name, content, hight_definition_tv, pay_per_view_ppv, package_option | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: channel, id, title, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select pixel_aspect_ratio_par , country from tv_channel where language != 'English'
|
640 |
tvshow
|
What is the pixel aspect ratio and country of origin for all TV channels that do not use English?
|
| tv_channel: language, pixel_aspect_ratio_par, country, id, series_name, content, hight_definition_tv, pay_per_view_ppv, package_option | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: channel, id, title, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select pixel_aspect_ratio_par , country from tv_channel where language != 'English'
|
641 |
tvshow
|
find id of the tv channels that from the countries where have more than two tv channels.
|
| tv_channel: id, country, series_name, language, content, pixel_aspect_ratio_par, high_definition_tv, pay_per_view_ppv, package_option | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: channel, id, title, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select id from tv_channel group by country having count ( * ) > 2
|
642 |
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, high_definition_tv, pay_per_view_ppv, package_option | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: channel, id, title, directed_by, written_by, original_air_date, production_code | tv_series.channel = tv_channel.id | cartoon.channel = tv_channel.id |
|
select id from tv_channel group by country having count ( * ) > 2
|
643 |
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: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: channel, directed_by, title, id, written_by, original_air_date, production_code | 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'
|
644 |
tvshow
|
What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?
|
| tv_channel: id | cartoon: directed_by, channel | tv_channel: 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, written_by, original_air_date, production_code | 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'
|
645 |
tvshow
|
find the package option of the tv channel that do not have any cartoon directed by Ben Jones.
|
| tv_channel: package_option, id, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv | tv_series: id, channel, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: directed_by, channel, id, title, written_by, original_air_date, production_code | 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' )
|
646 |
tvshow
|
What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?
|
| tv_channel: id, package_option, series_name, country, language, content, pixel_aspect_ratio_par, hight_definition_tv, pay_per_view_ppv | tv_series: channel, id, episode, air_date, rating, share, 18_49_rating_share, viewers_m, weekly_rank | cartoon: directed_by, channel, id, title, written_by, original_air_date, production_code | 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' )
|
647 |
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
|
648 |
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 |
|
select count ( * ) from poker_player
|
649 |
poker_player
|
List the earnings of poker players in descending order.
|
| poker_player: earnings, poker_player_id, people_id, final_table_made, best_finish, money_rank | people: people_id, name, nationality, birth_date, height | poker_player.people_id = people.people_id |
|
select earnings from poker_player order by earnings desc
|
650 |
poker_player
|
What are the earnings of poker players, ordered descending by value?
|
| poker_player: earnings, poker_player_id, people_id, final_table_made, best_finish, money_rank | people: people_id |
|
select earnings from poker_player order by earnings desc
|
651 |
poker_player
|
List the final tables made and the best finishes of poker players.
|
| poker_player: final_table_made, best_finish, poker_player_id, people_id, money_rank, earnings | people: people_id, name, nationality, birth_date, height | poker_player.people_id = people.people_id |
|
select final_table_made , best_finish from poker_player
|
652 |
poker_player
|
What are the final tables made and best finishes for all poker players?
|
| poker_player: final_table_made, best_finish, poker_player_id, people_id, money_rank, earnings | people: people_id, name, nationality, birth_date, height | poker_player.people_id = people.people_id |
|
select final_table_made , best_finish from poker_player
|
653 |
poker_player
|
What is the average earnings of poker players?
|
| poker_player: earnings, poker_player_id, people_id, final_table_made, best_finish, money_rank | people: people_id, nationality, name, birth_date, height | poker_player.people_id = people.people_id |
|
select avg ( earnings ) from poker_player
|
654 |
poker_player
|
Return the average earnings across all poker players.
|
| poker_player : earnings, poker_player_id, people_id, final_table_made, best_finish, money_rank | people : people_id, nationality, name, birth_date, height |
|
select avg ( earnings ) from poker_player
|
655 |
poker_player
|
What is the money rank of the poker player with the highest earnings?
|
| poker_player: earnings, money_rank, poker_player_id, final_table_made, best_finish, people_id | people: people_id, name, nationality, birth_date, height | poker_player.people_id = people.people_id |
|
select money_rank from poker_player order by earnings desc limit 1
|
656 |
poker_player
|
Return the money rank of the player with the greatest earnings.
|
| poker_player: earnings, money_rank, poker_player_id, people_id, final_table_made, best_finish | people: people_id, name, nationality, birth_date, height | poker_player.people_id = people.people_id |
|
select money_rank from poker_player order by earnings desc limit 1
|
657 |
poker_player
|
What is the maximum number of final tables made among poker players with earnings less than 200000?
|
| poker_player: earnings, final_table_made, poker_player_id, people_id, best_finish, money_rank | 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
|
658 |
poker_player
|
Return the maximum final tables made across all poker players who have earnings below 200000.
|
| poker_player: earnings, final_table_made, poker_player_id, people_id, best_finish, money_rank | 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
|
659 |
poker_player
|
What are the names of poker players?
|
| people: name, people_id, nationality, birth_date, height | poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings | poker_player.people_id = people.people_id |
|
select people.name from people join poker_player on people.people_id = poker_player.people_id
|
660 |
poker_player
|
Return the names of all the poker players.
|
| poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings | people: name, people_id, nationality, birth_date, height |
|
select people.name from people join poker_player on people.people_id = poker_player.people_id
|
661 |
poker_player
|
What are the names of poker players whose earnings is higher than 300000?
|
| poker_player: earnings, people_id, poker_player_id, final_table_made, best_finish, money_rank | people: name, people_id, nationality, 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
|
662 |
poker_player
|
Give the names of poker players who have earnings above 300000.
|
| poker_player: earnings, people_id, poker_player_id, final_table_made, best_finish, money_rank | people: name, people_id, nationality, 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
|
663 |
poker_player
|
List the names of poker players ordered by the final tables made in ascending order.
|
| poker_player: final_table_made, people_id, poker_player_id, best_finish, money_rank, earnings | people: name, people_id, nationality, 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
|
664 |
poker_player
|
What are the names of poker players, ordered ascending by the number of final tables they have made?
|
| poker_player: final_table_made, people_id, poker_player_id, best_finish, money_rank, earnings | people: name, people_id, nationality, 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
|
665 |
poker_player
|
What is the birth date of the poker player with the lowest earnings?
|
| poker_player: earnings, people_id, poker_player_id, final_table_made, best_finish, money_rank | people: birth_date, people_id, nationality, name, 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
|
666 |
poker_player
|
Return the birth date of the poker player with the lowest earnings.
|
| poker_player: earnings, people_id, poker_player_id, final_table_made, best_finish, money_rank | people: birth_date, people_id, nationality, name, 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
|
667 |
poker_player
|
What is the money rank of the tallest poker player?
|
| poker_player: money_rank, people_id, poker_player_id, final_table_made, best_finish, earnings | people: height, people_id, name, nationality, birth_date |
|
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
|
668 |
poker_player
|
Return the money rank of the poker player with the greatest height.
|
| poker_player: money_rank, people_id, poker_player_id, final_table_made, best_finish, earnings | people: height, people_id, nationality, name, birth_date |
|
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
|
669 |
poker_player
|
What is the average earnings of poker players with height higher than 200?
|
| poker_player: earnings, poker_player_id, final_table_made, best_finish, money_rank | people: height, people_id, name, nationality, birth_date | 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
|
670 |
poker_player
|
Give average earnings of poker players who are taller than 200.
|
| poker_player: earnings, poker_player_id, people_id, final_table_made, best_finish, money_rank | people: height, people_id, nationality, name, birth_date | 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
|
671 |
poker_player
|
What are the names of poker players in descending order of earnings?
|
| poker_player: earnings, people_id, poker_player_id, final_table_made, best_finish, money_rank | people: name, people_id, nationality, 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
|
672 |
poker_player
|
Return the names of poker players sorted by their earnings descending.
|
| `poker_player: earnings, money_rank, poker_player_id, people_id, final_table_made, best_finish` | `people: name, people_id, nationality, 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
|
673 |
poker_player
|
What are different nationalities of people and the corresponding number of people from each nation?
|
| people: nationality, people_id, name, birth_date, height | poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings | poker_player.people_id = people.people_id |
|
select nationality , count ( * ) from people group by nationality
|
674 |
poker_player
|
How many people are there of each nationality?
|
| people: nationality, people_id, name, birth_date, height | poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings |
|
select nationality , count ( * ) from people group by nationality
|
675 |
poker_player
|
What is the most common nationality of people?
|
| poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings | people: nationality, people_id, name, birth_date, height | poker_player.people_id = people.people_id |
|
select nationality from people group by nationality order by count ( * ) desc limit 1
|
676 |
poker_player
|
Give the nationality that is most common across all people.
|
| poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings | people: nationality, people_id, name, birth_date, height | poker_player.people_id = people.people_id |
|
select nationality from people group by nationality order by count ( * ) desc limit 1
|
677 |
poker_player
|
What are the nationalities that are shared by at least two people?
|
| poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings | people: nationality, people_id, name, birth_date, height | poker_player.people_id = people.people_id |
|
select nationality from people group by nationality having count ( * ) >= 2
|
678 |
poker_player
|
Return the nationalities for which there are two or more people.
|
| people: nationality, people_id, name, birth_date, height | poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings |
|
select nationality from people group by nationality having count ( * ) >= 2
|
679 |
poker_player
|
List the names and birth dates of people in ascending alphabetical order of name.
|
| people: name, birth_date, people_id, nationality, height | poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings | people.people_id = poker_player.people_id |
|
select name , birth_date from people order by name asc
|
680 |
poker_player
|
What are the names and birth dates of people, ordered by their names in alphabetical order?
|
| people: name, birth_date, people_id, nationality, height | poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings | poker_player.people_id = people.people_id |
|
select name , birth_date from people order by name asc
|
681 |
poker_player
|
Show names of people whose nationality is not "Russia".
|
| people: nationality, name, people_id, birth_date, height | poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings | poker_player.people_id = people.people_id |
|
select name from people where nationality != 'Russia'
|
682 |
poker_player
|
What are the names of people who are not from Russia?
|
| people: nationality, name, people_id | poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings |
|
select name from people where nationality != 'Russia'
|
683 |
poker_player
|
List the names of people that are not poker players.
|
| people: people_id, name | poker_player: people_id |
|
select name from people where people_id not in ( select people_id from poker_player )
|
684 |
poker_player
|
What are the names of people who do not play poker?
|
| poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings | people: name, people_id, nationality, 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 )
|
685 |
poker_player
|
How many distinct nationalities are there?
|
| people: nationality, people_id, name, birth_date, height | poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings | people.people_id = poker_player.people_id |
|
select count ( distinct nationality ) from people
|
686 |
poker_player
|
Count the number of different nationalities.
|
| people: nationality, people_id, name, birth_date, height | poker_player: people_id, poker_player_id, final_table_made, best_finish, money_rank, earnings |
|
select count ( distinct nationality ) from people
|
687 |
voter_1
|
How many states are there?
|
| area_code_state: state, area_code | votes: state, contestant_number, vote_id, phone_number, created | contestants: contestant_number, contestant_name | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state |
|
select count ( * ) from area_code_state
|
688 |
voter_1
|
List the contestant numbers and names, ordered by contestant name descending.
|
| contestants: contestant_name, contestant_number | votes: contestant_number, vote_id, phone_number, state, created | area_code_state: state, area_code |
|
select contestant_number , contestant_name from contestants order by contestant_name desc
|
689 |
voter_1
|
List the vote ids, phone numbers and states of all votes.
|
| votes: vote_id, phone_number, state, contestant_number, created | contestants: contestant_number, contestant_name | area_code_state: area_code, state | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state |
|
select vote_id , phone_number , state from votes
|
690 |
voter_1
|
What are the maximum and minimum values of area codes?
|
| area_code_state: area_code, state | votes: phone_number, state, vote_id, contestant_number, created | contestants: contestant_number, contestant_name | votes.contestant_number=contestants.contestant_number | votes.state=area_code_state.state |
|
select max ( area_code ) , min ( area_code ) from area_code_state
|
691 |
voter_1
|
What is last date created of votes from the state 'CA'?
|
| votes: state, created, phone_number, vote_id, contestant_number | area_code_state: state, area_code | contestants: contestant_number, contestant_name | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state |
|
select max ( created ) from votes where state = 'CA'
|
692 |
voter_1
|
What are the names of the contestants whose names are not 'Jessie Alloway'
|
| contestants: contestant_name, contestant_number | votes: contestant_number, vote_id, phone_number, state, created | area_code_state: state, area_code |
|
select contestant_name from contestants where contestant_name != 'Jessie Alloway'
|
693 |
voter_1
|
What are the distinct states and create time of all votes?
|
| votes: state, created, vote_id, phone_number, contestant_number | area_code_state: state, area_code | contestants: contestant_number, contestant_name | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state |
|
select distinct state , created from votes
|
694 |
voter_1
|
What are the contestant numbers and names of the contestants who had at least two votes?
|
| votes: contestant_number, vote_id, phone_number, state, created | contestants: contestant_number, contestant_name | area_code_state: state, area_code | 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
|
695 |
voter_1
|
Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?
|
| votes: contestant_number, vote_id | contestants: contestant_number, contestant_name | area_code_state: state, area_code | 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
|
696 |
voter_1
|
What are the number of votes from state 'NY' or 'CA'?
|
| votes: state, vote_id, contestant_number, created, phone_number | area_code_state: state, area_code | contestants: contestant_number, contestant_name | votes.contestant_number = contestants.contestant_number | votes.state = area_code_state.state |
|
select count ( * ) from votes where state = 'NY' or state = 'CA'
|
697 |
voter_1
|
How many contestants did not get voted?
|
| contestants: contestant_number, contestant_name | votes: contestant_number, vote_id, phone_number, state, created | area_code_state: state, area_code | 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 )
|
698 |
voter_1
|
What is the area code in which the most voters voted?
|
| votes: state, vote_id, phone_number, contestant_number, created | area_code_state: state, area_code | contestants: contestant_number, contestant_name | votes.state = area_code_state.state | votes.contestant_number = contestants.contestant_number |
|
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
|
699 |
voter_1
|
What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?
|
| contestants: contestant_name, contestant_number | votes: contestant_number, created, phone_number, state | area_code_state: state, area_code | 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'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.