output
stringlengths 18
577
| instruction
stringlengths 16
224
| input
stringclasses 160
values |
---|---|---|
SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio"; | What is the content of the series Sky Radio? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio"; | What is the Package Option of TV Channel with serial name "Sky Radio"? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio"; | What are the Package Options of the TV Channels whose series names are Sky Radio? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT count(*) FROM TV_Channel WHERE LANGUAGE = "English"; | How many TV Channel using language English? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT count(*) FROM TV_Channel WHERE LANGUAGE = "English"; | How many TV Channels use the English language? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1; | List the language used least number of TV Channel. List language and number of TV Channel. | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1; | What are the languages used by the least number of TV Channels and how many channels use it? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE | List each language and the number of TV Channels using it. | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT LANGUAGE , count(*) FROM TV_Channel GROUP BY LANGUAGE | For each language, list the number of TV Channels that use it. | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
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!"; | What is the TV Channel that shows the cartoon "The Rise of the Blue Beetle!"? List the TV Channel's series name. | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
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!"; | What is the series name of the TV Channel that shows the cartoon "The Rise of the Blue Beetle"? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"; | List the title of all Cartoons showed on TV Channel with series name "Sky Radio". | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"; | What is the title of all the cartools that are on the TV Channel with the series name "Sky Radio"? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT Episode FROM TV_series ORDER BY rating | List the Episode of all TV series sorted by rating. | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT Episode FROM TV_series ORDER BY rating | What are all of the episodes ordered by ratings? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3; | List top 3 highest Rating TV series. List the TV series's Episode and Rating. | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT Episode , Rating FROM TV_series ORDER BY Rating DESC LIMIT 3; | What are 3 most highly rated episodes in the TV series table and what were those ratings? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT max(SHARE) , min(SHARE) FROM TV_series; | What is minimum and maximum share of TV series? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT max(SHARE) , min(SHARE) FROM TV_series; | What is the maximum and minimum share for the TV series? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT Air_Date FROM TV_series WHERE Episode = "A Love of a Lifetime"; | What is the air date of TV series with Episode "A Love of a Lifetime"? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT Air_Date FROM TV_series WHERE Episode = "A Love of a Lifetime"; | When did the episode "A Love of a Lifetime" air? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT Weekly_Rank FROM TV_series WHERE Episode = "A Love of a Lifetime"; | What is Weekly Rank of TV series with Episode "A Love of a Lifetime"? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT Weekly_Rank FROM TV_series WHERE Episode = "A Love of a Lifetime"; | What is the weekly rank for the episode "A Love of a Lifetime"? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
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"; | What is the TV Channel of TV series with Episode "A Love of a Lifetime"? List the TV Channel's series name. | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
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"; | What is the name of the series that has the episode "A Love of a Lifetime"? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"; | List the Episode of all TV series showed on TV Channel with series name "Sky Radio". | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"; | What is the episode for the TV series named "Sky Radio"? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by | Find the number of cartoons directed by each of the listed directors. | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT count(*) , Directed_by FROM cartoon GROUP BY Directed_by | How many cartoons did each director create? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
select production_code , channel from cartoon order by original_air_date desc limit 1 | Find the production code and channel of the most recently aired cartoon . | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
select production_code , channel from cartoon order by original_air_date desc limit 1 | What is the produdction code and channel of the most recent cartoon ? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = "yes" | Find the package choice and series name of the TV channel that has high definition TV. | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT package_option , series_name FROM TV_Channel WHERE hight_definition_TV = "yes" | What are the package options and the name of the series for the TV Channel that supports high definition TV? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey' | which countries' tv channels are playing some cartoon written by Todd Casey? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by = 'Todd Casey' | What are the countries that have cartoons on TV that were written by Todd Casey? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
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' | which countries' tv channels are not playing any cartoon written by Todd Casey? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
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' | What are the countries that are not playing cartoons written by Todd Casey? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
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' | Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
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' | 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? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English' | find the pixel aspect ratio and nation of the tv channels that do not use English. | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT Pixel_aspect_ratio_PAR , country FROM tv_channel WHERE LANGUAGE != 'English' | What is the pixel aspect ratio and country of origin for all TV channels that do not use English? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2 | find id of the tv channels that from the countries where have more than two tv channels. | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT id FROM tv_channel GROUP BY country HAVING count(*) > 2 | What are the ids of all tv channels that have more than 2 TV channels? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones' | find the id of tv channels that do not play any cartoon directed by Ben Jones. | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones' | What are the ids of the TV channels that do not have any cartoons directed by Ben Jones? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones') | find the package option of the tv channel that do not have any cartoon directed by Ben Jones. | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones') | What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones? | "Schema (values (type))": TV_Channel : id (text) , series_name (text) , Country (text) , Language (text) , Content (text) , Pixel_aspect_ratio_PAR (text) , Hight_definition_TV (text) , Pay_per_view_PPV (text) , Package_Option (text) | TV_series : id (number) , Episode (text) , Air_Date (text) , Rating (text) , Share (number) , 18_49_Rating_Share (text) , Viewers_m (text) , Weekly_Rank (number) , Channel (text) | Cartoon : id (number) , Title (text) , Directed_by (text) , Written_by (text) , Original_air_date (text) , Production_code (number) , Channel (text)
"Primary Keys": TV_Channel : id | TV_series : id | Cartoon : id
"Foreign Keys": TV_series : Channel equals TV_Channel : id | Cartoon : Channel equals TV_Channel : id |
SELECT count(*) FROM poker_player | How many poker players are there? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT count(*) FROM poker_player | Count the number of poker players. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Earnings FROM poker_player ORDER BY Earnings DESC | List the earnings of poker players in descending order. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Earnings FROM poker_player ORDER BY Earnings DESC | What are the earnings of poker players, ordered descending by value? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Final_Table_Made , Best_Finish FROM poker_player | List the final tables made and the best finishes of poker players. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Final_Table_Made , Best_Finish FROM poker_player | What are the final tables made and best finishes for all poker players? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT avg(Earnings) FROM poker_player | What is the average earnings of poker players? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT avg(Earnings) FROM poker_player | Return the average earnings across all poker players. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1 | What is the money rank of the poker player with the highest earnings? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1 | Return the money rank of the player with the greatest earnings. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000 | What is the maximum number of final tables made among poker players with earnings less than 200000? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings < 200000 | Return the maximum final tables made across all poker players who have earnings below 200000. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID | What are the names of poker players? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID | Return the names of all the poker players. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000 | What are the names of poker players whose earnings is higher than 300000? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000 | Give the names of poker players who have earnings above 300000. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
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 | List the names of poker players ordered by the final tables made in ascending order. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
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 | What are the names of poker players, ordered ascending by the number of final tables they have made? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
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 | What is the birth date of the poker player with the lowest earnings? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
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 | Return the birth date of the poker player with the lowest earnings. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
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 | What is the money rank of the tallest poker player? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
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 | Return the money rank of the poker player with the greatest height. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200 | What is the average earnings of poker players with height higher than 200? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 200 | Give average earnings of poker players who are taller than 200. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC | What are the names of poker players in descending order of earnings? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings DESC | Return the names of poker players sorted by their earnings descending. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality | What are different nationalities of people and the corresponding number of people from each nation? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Nationality , COUNT(*) FROM people GROUP BY Nationality | How many people are there of each nationality? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 | What is the most common nationality of people? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1 | Give the nationality that is most common across all people. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2 | What are the nationalities that are shared by at least two people? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2 | Return the nationalities for which there are two or more people. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Name , Birth_Date FROM people ORDER BY Name ASC | List the names and birth dates of people in ascending alphabetical order of name. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Name , Birth_Date FROM people ORDER BY Name ASC | What are the names and birth dates of people, ordered by their names in alphabetical order? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Name FROM people WHERE Nationality != "Russia" | Show names of people whose nationality is not "Russia". | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Name FROM people WHERE Nationality != "Russia" | What are the names of people who are not from Russia? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player) | List the names of people that are not poker players. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player) | What are the names of people who do not play poker? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT count(DISTINCT Nationality) FROM people | How many distinct nationalities are there? | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT count(DISTINCT Nationality) FROM people | Count the number of different nationalities. | "Schema (values (type))": poker_player : Poker_Player_ID (number) , People_ID (number) , Final_Table_Made (number) , Best_Finish (number) , Money_Rank (number) , Earnings (number) | people : People_ID (number) , Nationality (text) , Name (text) , Birth_Date (text) , Height (number)
"Primary Keys": poker_player : Poker_Player_ID | people : People_ID
"Foreign Keys": poker_player : People_ID equals people : People_ID |
SELECT count(*) FROM area_code_state | How many states are there? | "Schema (values (type))": AREA_CODE_STATE : area_code (number) , state (text) | CONTESTANTS : contestant_number (number) , contestant_name (text) | VOTES : vote_id (number) , phone_number (number) , state (text) , contestant_number (number) , created (time)
"Primary Keys": AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id
"Foreign Keys": VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state |
SELECT contestant_number , contestant_name FROM contestants ORDER BY contestant_name DESC | List the contestant numbers and names, ordered by contestant name descending. | "Schema (values (type))": AREA_CODE_STATE : area_code (number) , state (text) | CONTESTANTS : contestant_number (number) , contestant_name (text) | VOTES : vote_id (number) , phone_number (number) , state (text) , contestant_number (number) , created (time)
"Primary Keys": AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id
"Foreign Keys": VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state |
SELECT vote_id , phone_number , state FROM votes | List the vote ids, phone numbers and states of all votes. | "Schema (values (type))": AREA_CODE_STATE : area_code (number) , state (text) | CONTESTANTS : contestant_number (number) , contestant_name (text) | VOTES : vote_id (number) , phone_number (number) , state (text) , contestant_number (number) , created (time)
"Primary Keys": AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id
"Foreign Keys": VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state |
SELECT max(area_code) , min(area_code) FROM area_code_state | What are the maximum and minimum values of area codes? | "Schema (values (type))": AREA_CODE_STATE : area_code (number) , state (text) | CONTESTANTS : contestant_number (number) , contestant_name (text) | VOTES : vote_id (number) , phone_number (number) , state (text) , contestant_number (number) , created (time)
"Primary Keys": AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id
"Foreign Keys": VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state |
SELECT max(created) FROM votes WHERE state = 'CA' | What is last date created of votes from the state 'CA'? | "Schema (values (type))": AREA_CODE_STATE : area_code (number) , state (text) | CONTESTANTS : contestant_number (number) , contestant_name (text) | VOTES : vote_id (number) , phone_number (number) , state (text) , contestant_number (number) , created (time)
"Primary Keys": AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id
"Foreign Keys": VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state |
SELECT contestant_name FROM contestants WHERE contestant_name != 'Jessie Alloway' | What are the names of the contestants whose names are not 'Jessie Alloway' | "Schema (values (type))": AREA_CODE_STATE : area_code (number) , state (text) | CONTESTANTS : contestant_number (number) , contestant_name (text) | VOTES : vote_id (number) , phone_number (number) , state (text) , contestant_number (number) , created (time)
"Primary Keys": AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id
"Foreign Keys": VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state |
SELECT DISTINCT state , created FROM votes | What are the distinct states and create time of all votes? | "Schema (values (type))": AREA_CODE_STATE : area_code (number) , state (text) | CONTESTANTS : contestant_number (number) , contestant_name (text) | VOTES : vote_id (number) , phone_number (number) , state (text) , contestant_number (number) , created (time)
"Primary Keys": AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id
"Foreign Keys": VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state |
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 | What are the contestant numbers and names of the contestants who had at least two votes? | "Schema (values (type))": AREA_CODE_STATE : area_code (number) , state (text) | CONTESTANTS : contestant_number (number) , contestant_name (text) | VOTES : vote_id (number) , phone_number (number) , state (text) , contestant_number (number) , created (time)
"Primary Keys": AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id
"Foreign Keys": VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state |
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 | Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes? | "Schema (values (type))": AREA_CODE_STATE : area_code (number) , state (text) | CONTESTANTS : contestant_number (number) , contestant_name (text) | VOTES : vote_id (number) , phone_number (number) , state (text) , contestant_number (number) , created (time)
"Primary Keys": AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id
"Foreign Keys": VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state |
SELECT count(*) FROM votes WHERE state = 'NY' OR state = 'CA' | What are the number of votes from state 'NY' or 'CA'? | "Schema (values (type))": AREA_CODE_STATE : area_code (number) , state (text) | CONTESTANTS : contestant_number (number) , contestant_name (text) | VOTES : vote_id (number) , phone_number (number) , state (text) , contestant_number (number) , created (time)
"Primary Keys": AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id
"Foreign Keys": VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state |
SELECT count(*) FROM contestants WHERE contestant_number NOT IN ( SELECT contestant_number FROM votes ) | How many contestants did not get voted? | "Schema (values (type))": AREA_CODE_STATE : area_code (number) , state (text) | CONTESTANTS : contestant_number (number) , contestant_name (text) | VOTES : vote_id (number) , phone_number (number) , state (text) , contestant_number (number) , created (time)
"Primary Keys": AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id
"Foreign Keys": VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state |
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 | What is the area code in which the most voters voted? | "Schema (values (type))": AREA_CODE_STATE : area_code (number) , state (text) | CONTESTANTS : contestant_number (number) , contestant_name (text) | VOTES : vote_id (number) , phone_number (number) , state (text) , contestant_number (number) , created (time)
"Primary Keys": AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id
"Foreign Keys": VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state |
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' | What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'? | "Schema (values (type))": AREA_CODE_STATE : area_code (number) , state (text) | CONTESTANTS : contestant_number (number) , contestant_name (text) | VOTES : vote_id (number) , phone_number (number) , state (text) , contestant_number (number) , created (time)
"Primary Keys": AREA_CODE_STATE : area_code | CONTESTANTS : contestant_number | VOTES : vote_id
"Foreign Keys": VOTES : contestant_number equals CONTESTANTS : contestant_number | VOTES : state equals AREA_CODE_STATE : state |