query_id
int64
0
1.03k
database_id
stringclasses
20 values
table_id
sequencelengths
1
4
query
stringlengths
18
174
answer
stringlengths
20
422
difficulty
stringclasses
4 values
600
tvshow
[ "TV_Channel" ]
What is the content of the series Sky Radio?
SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio";
easy
601
tvshow
[ "TV_Channel" ]
What is the Package Option of TV Channel with serial name "Sky Radio"?
SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio";
easy
602
tvshow
[ "TV_Channel" ]
What are the Package Options of the TV Channels whose series names are Sky Radio?
SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio";
easy
603
tvshow
[ "TV_Channel" ]
How many TV Channel using language English?
SELECT count(*) FROM TV_Channel WHERE LANGUAGE = "English";
easy
604
tvshow
[ "TV_Channel" ]
How many TV Channels use the English language?
SELECT count(*) FROM TV_Channel WHERE LANGUAGE = "English";
easy
605
tvshow
[ "TV_Channel" ]
List the language used least number of TV Channel. List language and number of TV Channel.
SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;
hard
606
tvshow
[ "TV_Channel" ]
What are the languages used by the least number of TV Channels and how many channels use it?
SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;
hard
607
tvshow
[ "TV_Channel" ]
List each language and the number of TV Channels using it.
SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE
medium
608
tvshow
[ "TV_Channel" ]
For each language, list the number of TV Channels that use it.
SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE
medium
609
tvshow
[ "Cartoon", "TV_Channel" ]
What is the TV Channel that shows the cartoon "The Rise of the Blue Beetle!"? List the TV Channel's series name.
SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!";
medium
610
tvshow
[ "Cartoon", "TV_Channel" ]
What is the series name of the TV Channel that shows the cartoon "The Rise of the Blue Beetle"?
SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = "The Rise of the Blue Beetle!";
medium
611
tvshow
[ "Cartoon", "TV_Channel" ]
List the title of all Cartoons showed on TV Channel with series name "Sky Radio".
SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio";
medium
612
tvshow
[ "Cartoon", "TV_Channel" ]
What is the title of all the cartools that are on the TV Channel with the series name "Sky Radio"?
SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio";
medium
613
tvshow
[ "TV_series" ]
List the Episode of all TV series sorted by rating.
SELECT Episode FROM TV_series ORDER BY rating
easy
614
tvshow
[ "TV_series" ]
What are all of the episodes ordered by ratings?
SELECT Episode FROM TV_series ORDER BY rating
easy
615
tvshow
[ "TV_series" ]
List top 3 highest Rating TV series. List the TV series's Episode and Rating.
SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;
medium
616
tvshow
[ "TV_series" ]
What are 3 most highly rated episodes in the TV series table and what were those ratings?
SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;
medium
617
tvshow
[ "TV_series" ]
What is minimum and maximum share of TV series?
SELECT max(SHARE) , min(SHARE) FROM TV_series;
medium
618
tvshow
[ "TV_series" ]
What is the maximum and minimum share for the TV series?
SELECT max(SHARE) , min(SHARE) FROM TV_series;
medium
619
tvshow
[ "TV_series" ]
What is the air date of TV series with Episode "A Love of a Lifetime"?
SELECT Air_Date FROM TV_series WHERE Episode = "A Love of a Lifetime";
easy
620
tvshow
[ "TV_series" ]
When did the episode "A Love of a Lifetime" air?
SELECT Air_Date FROM TV_series WHERE Episode = "A Love of a Lifetime";
easy
621
tvshow
[ "TV_series" ]
What is Weekly Rank of TV series with Episode "A Love of a Lifetime"?
SELECT Weekly_Rank FROM TV_series WHERE Episode = "A Love of a Lifetime";
easy
622
tvshow
[ "TV_series" ]
What is the weekly rank for the episode "A Love of a Lifetime"?
SELECT Weekly_Rank FROM TV_series WHERE Episode = "A Love of a Lifetime";
easy
623
tvshow
[ "TV_series", "TV_Channel" ]
What is the TV Channel of TV series with Episode "A Love of a Lifetime"? List the TV Channel's series name.
SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = "A Love of a Lifetime";
medium
624
tvshow
[ "TV_series", "TV_Channel" ]
What is the name of the series that has the episode "A Love of a Lifetime"?
SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = "A Love of a Lifetime";
medium
625
tvshow
[ "TV_series", "TV_Channel" ]
List the Episode of all TV series showed on TV Channel with series name "Sky Radio".
SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio";
medium
626
tvshow
[ "TV_series", "TV_Channel" ]
What is the episode for the TV series named "Sky Radio"?
SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio";
medium
627
tvshow
[ "cartoon" ]
Find the number of cartoons directed by each of the listed directors.
SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by
medium
628
tvshow
[ "cartoon" ]
How many cartoons did each director create?
SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by
medium
629
tvshow
[ "cartoon" ]
Find the production code and channel of the most recently aired cartoon .
select production_code , channel from cartoon order by original_air_date desc limit 1
medium
630
tvshow
[ "cartoon" ]
What is the produdction code and channel of the most recent cartoon ?
select production_code , channel from cartoon order by original_air_date desc limit 1
medium
631
tvshow
[ "TV_Channel" ]
Find the package choice and series name of the TV channel that has high definition TV.
SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = "yes"
medium
632
tvshow
[ "TV_Channel" ]
What are the package options and the name of the series for the TV Channel that supports high definition TV?
SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = "yes"
medium
633
tvshow
[ "cartoon", "TV_Channel" ]
which countries' tv channels are playing some cartoon written by Todd Casey?
SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'
medium
634
tvshow
[ "cartoon", "TV_Channel" ]
What are the countries that have cartoons on TV that were written by Todd Casey?
SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'
medium
635
tvshow
[ "cartoon", "TV_Channel" ]
which countries' tv channels are not playing any cartoon written by Todd Casey?
SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'
hard
636
tvshow
[ "cartoon", "TV_Channel" ]
What are the countries that are not playing cartoons written by Todd Casey?
SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey'
hard
637
tvshow
[ "cartoon", "TV_Channel" ]
Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?
SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'
extra
638
tvshow
[ "cartoon", "TV_Channel" ]
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?
SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name , T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones'
extra
639
tvshow
[ "tv_channel" ]
find the pixel aspect ratio and nation of the tv channels that do not use English.
SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'
medium
640
tvshow
[ "tv_channel" ]
What is the pixel aspect ratio and country of origin for all TV channels that do not use English?
SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English'
medium
641
tvshow
[ "tv_channel" ]
find id of the tv channels that from the countries where have more than two tv channels.
SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2
easy
642
tvshow
[ "tv_channel" ]
What are the ids of all tv channels that have more than 2 TV channels?
SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2
easy
643
tvshow
[ "cartoon", "TV_Channel" ]
find the id of tv channels that do not play any cartoon directed by Ben Jones.
SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'
hard
644
tvshow
[ "cartoon", "TV_Channel" ]
What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?
SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones'
hard
645
tvshow
[ "cartoon", "TV_Channel" ]
find the package option of the tv channel that do not have any cartoon directed by Ben Jones.
SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')
hard
646
tvshow
[ "cartoon", "TV_Channel" ]
What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?
SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')
hard
647
poker_player
[ "poker_player" ]
How many poker players are there?
SELECT count(*) FROM poker_player
easy
648
poker_player
[ "poker_player" ]
Count the number of poker players.
SELECT count(*) FROM poker_player
easy
649
poker_player
[ "poker_player" ]
List the earnings of poker players in descending order.
SELECT Earnings FROM poker_player ORDER BY Earnings DESC
easy
650
poker_player
[ "poker_player" ]
What are the earnings of poker players, ordered descending by value?
SELECT Earnings FROM poker_player ORDER BY Earnings DESC
easy
651
poker_player
[ "poker_player" ]
List the final tables made and the best finishes of poker players.
SELECT Final_Table_Made , Best_Finish FROM poker_player
medium
652
poker_player
[ "poker_player" ]
What are the final tables made and best finishes for all poker players?
SELECT Final_Table_Made , Best_Finish FROM poker_player
medium
653
poker_player
[ "poker_player" ]
What is the average earnings of poker players?
SELECT avg(Earnings) FROM poker_player
easy
654
poker_player
[ "poker_player" ]
Return the average earnings across all poker players.
SELECT avg(Earnings) FROM poker_player
easy
655
poker_player
[ "poker_player" ]
What is the money rank of the poker player with the highest earnings?
SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1
medium
656
poker_player
[ "poker_player" ]
Return the money rank of the player with the greatest earnings.
SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1
medium
657
poker_player
[ "poker_player" ]
What is the maximum number of final tables made among poker players with earnings less than 200000?
SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000
easy
658
poker_player
[ "poker_player" ]
Return the maximum final tables made across all poker players who have earnings below 200000.
SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000
easy
659
poker_player
[ "poker_player", "people" ]
What are the names of poker players?
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID
easy
660
poker_player
[ "poker_player", "people" ]
Return the names of all the poker players.
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID
easy
661
poker_player
[ "poker_player", "people" ]
What are the names of poker players whose earnings is higher than 300000?
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000
medium
662
poker_player
[ "poker_player", "people" ]
Give the names of poker players who have earnings above 300000.
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000
medium
663
poker_player
[ "poker_player", "people" ]
List the names of poker players ordered by the final tables made in ascending order.
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made
medium
664
poker_player
[ "poker_player", "people" ]
What are the names of poker players, ordered ascending by the number of final tables they have made?
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made
medium
665
poker_player
[ "poker_player", "people" ]
What is the birth date of the poker player with the lowest earnings?
SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1
hard
666
poker_player
[ "poker_player", "people" ]
Return the birth date of the poker player with the lowest earnings.
SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1
hard
667
poker_player
[ "poker_player", "people" ]
What is the money rank of the tallest poker player?
SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1
hard
668
poker_player
[ "poker_player", "people" ]
Return the money rank of the poker player with the greatest height.
SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1
hard
669
poker_player
[ "poker_player", "people" ]
What is the average earnings of poker players with height higher than 200?
SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200
medium
670
poker_player
[ "poker_player", "people" ]
Give average earnings of poker players who are taller than 200.
SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200
medium
671
poker_player
[ "poker_player", "people" ]
What are the names of poker players in descending order of earnings?
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC
medium
672
poker_player
[ "poker_player", "people" ]
Return the names of poker players sorted by their earnings descending.
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC
medium
673
poker_player
[ "people" ]
What are different nationalities of people and the corresponding number of people from each nation?
SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality
medium
674
poker_player
[ "people" ]
How many people are there of each nationality?
SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality
medium
675
poker_player
[ "people" ]
What is the most common nationality of people?
SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
hard
676
poker_player
[ "people" ]
Give the nationality that is most common across all people.
SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
hard
677
poker_player
[ "people" ]
What are the nationalities that are shared by at least two people?
SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2
easy
678
poker_player
[ "people" ]
Return the nationalities for which there are two or more people.
SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2
easy
679
poker_player
[ "people" ]
List the names and birth dates of people in ascending alphabetical order of name.
SELECT Name , Birth_Date FROM people ORDER BY Name ASC
medium
680
poker_player
[ "people" ]
What are the names and birth dates of people, ordered by their names in alphabetical order?
SELECT Name , Birth_Date FROM people ORDER BY Name ASC
medium
681
poker_player
[ "people" ]
Show names of people whose nationality is not "Russia".
SELECT Name FROM people WHERE Nationality != "Russia"
easy
682
poker_player
[ "people" ]
What are the names of people who are not from Russia?
SELECT Name FROM people WHERE Nationality != "Russia"
easy
683
poker_player
[ "poker_player", "people" ]
List the names of people that are not poker players.
SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)
hard
684
poker_player
[ "poker_player", "people" ]
What are the names of people who do not play poker?
SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)
hard
685
poker_player
[ "people" ]
How many distinct nationalities are there?
SELECT count(DISTINCT Nationality) FROM people
easy
686
poker_player
[ "people" ]
Count the number of different nationalities.
SELECT count(DISTINCT Nationality) FROM people
easy
687
voter_1
[ "area_code_state" ]
How many states are there?
SELECT count(*) FROM area_code_state
easy
688
voter_1
[ "contestants" ]
List the contestant numbers and names, ordered by contestant name descending.
SELECT contestant_number , contestant_name FROM contestants ORDER BY contestant_name DESC
medium
689
voter_1
[ "votes" ]
List the vote ids, phone numbers and states of all votes.
SELECT vote_id , phone_number , state FROM votes
medium
690
voter_1
[ "area_code_state" ]
What are the maximum and minimum values of area codes?
SELECT max(area_code) , min(area_code) FROM area_code_state
medium
691
voter_1
[ "votes" ]
What is last date created of votes from the state 'CA'?
SELECT max(created) FROM votes WHERE state = 'CA'
easy
692
voter_1
[ "contestants" ]
What are the names of the contestants whose names are not 'Jessie Alloway'
SELECT contestant_name FROM contestants WHERE contestant_name != 'Jessie Alloway'
easy
693
voter_1
[ "votes" ]
What are the distinct states and create time of all votes?
SELECT DISTINCT state , created FROM votes
medium
694
voter_1
[ "contestants", "votes" ]
What are the contestant numbers and names of the contestants who had at least two votes?
SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number HAVING count(*) >= 2
medium
695
voter_1
[ "contestants", "votes" ]
Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?
SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY count(*) ASC LIMIT 1
extra
696
voter_1
[ "votes" ]
What are the number of votes from state 'NY' or 'CA'?
SELECT count(*) FROM votes WHERE state = 'NY' OR state = 'CA'
medium
697
voter_1
[ "contestants", "votes" ]
How many contestants did not get voted?
SELECT count(*) FROM contestants WHERE contestant_number NOT IN ( SELECT contestant_number FROM votes )
extra
698
voter_1
[ "votes", "area_code_state" ]
What is the area code in which the most voters voted?
SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.state = T2.state GROUP BY T1.area_code ORDER BY count(*) DESC LIMIT 1
extra
699
voter_1
[ "contestants", "votes" ]
What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?
SELECT T2.created , T2.state , T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number WHERE T1.contestant_name = 'Tabatha Gehling'
medium