db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
student_transcripts_tracking
select count(*) , student_course_id from transcript_contents group by student_course_id order by count(*) desc limit 1
Question: what is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id? | Tables: Addresses -> address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details. Courses -> course_id, course_name, course_descripti...
what is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?
student_transcripts_tracking
select t2.transcript_date , t1.transcript_id from transcript_contents as t1 join transcripts as t2 on t1.transcript_id = t2.transcript_id group by t1.transcript_id order by count(*) asc limit 1
Question: show the date of the transcript which shows the least number of results, also list the id. | Tables: Addresses -> address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details. Courses -> course_id, course_name, course_description, other_details. Departments -> ...
show the date of the transcript which shows the least number of results, also list the id.
student_transcripts_tracking
select t2.transcript_date , t1.transcript_id from transcript_contents as t1 join transcripts as t2 on t1.transcript_id = t2.transcript_id group by t1.transcript_id order by count(*) asc limit 1
Question: what is the date and id of the transcript with the least number of results? | Tables: Addresses -> address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details. Courses -> course_id, course_name, course_description, other_details. Departments -> department_id, ...
what is the date and id of the transcript with the least number of results?
student_transcripts_tracking
select distinct t2.semester_id from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id where degree_summary_name = 'master' intersect select distinct t2.semester_id from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id...
Question: find the semester when both master students and bachelor students got enrolled in. | Tables: Addresses -> address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details. Courses -> course_id, course_name, course_description, other_details. Departments -> departme...
find the semester when both master students and bachelor students got enrolled in.
student_transcripts_tracking
select distinct t2.semester_id from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id where degree_summary_name = 'master' intersect select distinct t2.semester_id from degree_programs as t1 join student_enrolment as t2 on t1.degree_program_id = t2.degree_program_id...
Question: what is the id of the semester that had both masters and bachelors students enrolled? | Tables: Addresses -> address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details. Courses -> course_id, course_name, course_description, other_details. Departments -> depar...
what is the id of the semester that had both masters and bachelors students enrolled?
student_transcripts_tracking
select count(distinct current_address_id) from students
Question: how many different addresses do the students currently live? | Tables: Addresses -> address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details. Courses -> course_id, course_name, course_description, other_details. Departments -> department_id, department_name...
how many different addresses do the students currently live?
student_transcripts_tracking
select count(distinct current_address_id) from students
Question: what are the different addresses that have students living there? | Tables: Addresses -> address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details. Courses -> course_id, course_name, course_description, other_details. Departments -> department_id, department...
what are the different addresses that have students living there?
student_transcripts_tracking
select other_student_details from students order by other_student_details desc
Question: list all the student details in reversed lexicographical order. | Tables: Addresses -> address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details. Courses -> course_id, course_name, course_description, other_details. Departments -> department_id, department_n...
list all the student details in reversed lexicographical order.
student_transcripts_tracking
select other_student_details from students order by other_student_details desc
Question: what other details can you tell me about students in reverse alphabetical order? | Tables: Addresses -> address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details. Courses -> course_id, course_name, course_description, other_details. Departments -> department...
what other details can you tell me about students in reverse alphabetical order?
student_transcripts_tracking
select section_description from sections where section_name = 'h'
Question: describe the section h. | Tables: Addresses -> address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details. Courses -> course_id, course_name, course_description, other_details. Departments -> department_id, department_name, department_description, other_detai...
describe the section h.
student_transcripts_tracking
select section_description from sections where section_name = 'h'
Question: what is the description for the section named h? | Tables: Addresses -> address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details. Courses -> course_id, course_name, course_description, other_details. Departments -> department_id, department_name, department...
what is the description for the section named h?
student_transcripts_tracking
select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t2.country = 'haiti' or t1.cell_mobile_number = '09700166582'
Question: find the first name of the students who permanently live in the country haiti or have the cell phone number 09700166582 . | Tables: Addresses -> address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details. Courses -> course_id, course_name, course_description,...
find the first name of the students who permanently live in the country haiti or have the cell phone number 09700166582 .
student_transcripts_tracking
select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t2.country = 'haiti' or t1.cell_mobile_number = '09700166582'
Question: what are the first names of the students who live in haiti permanently or have the cell phone number 09700166582 ? | Tables: Addresses -> address_id, line_1, line_2, line_3, city, zip_postcode, state_province_county, country, other_address_details. Courses -> course_id, course_name, course_description, other_...
what are the first names of the students who live in haiti permanently or have the cell phone number 09700166582 ?
tvshow
select title from cartoon order by title
Question: list the title of all cartoons in alphabetical order. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. Cart...
list the title of all cartoons in alphabetical order.
tvshow
select title from cartoon order by title
Question: what are the titles of the cartoons sorted alphabetically? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel....
what are the titles of the cartoons sorted alphabetically?
tvshow
select title from cartoon where directed_by = 'ben jones';
Question: list all cartoon directed by 'ben jones'. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. Cartoon -> id, T...
list all cartoon directed by 'ben jones'.
tvshow
select title from cartoon where directed_by = 'ben jones';
Question: what are the names of all cartoons directed by ben jones? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. ...
what are the names of all cartoons directed by ben jones?
tvshow
select count(*) from cartoon where written_by = 'joseph kuhr';
Question: how many cartoons were written by 'joseph kuhr'? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. Cartoon -...
how many cartoons were written by 'joseph kuhr'?
tvshow
select count(*) from cartoon where written_by = 'joseph kuhr';
Question: what is the number of cartoones written by joseph kuhr? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. Ca...
what is the number of cartoones written by joseph kuhr?
tvshow
select title , directed_by from cartoon order by original_air_date
Question: list all cartoon titles and their directors ordered by their air date | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Ran...
list all cartoon titles and their directors ordered by their air date
tvshow
select title , directed_by from cartoon order by original_air_date
Question: what is the name and directors of all the cartoons that are ordered by air date? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m,...
what is the name and directors of all the cartoons that are ordered by air date?
tvshow
select title from cartoon where directed_by = 'ben jones' or directed_by = 'brandon vietti';
Question: list the title of all cartoon directed by 'ben jones' or 'brandon vietti'. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekl...
list the title of all cartoon directed by 'ben jones' or 'brandon vietti'.
tvshow
select title from cartoon where directed_by = 'ben jones' or directed_by = 'brandon vietti';
Question: what are the titles of all cartoons directed by ben jones or brandon vietti? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Wee...
what are the titles of all cartoons directed by ben jones or brandon vietti?
tvshow
select country , count(*) from tv_channel group by country order by count(*) desc limit 1;
Question: which country has the most of tv channels? list the country and number of tv channels it has. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Shar...
which country has the most of tv channels? list the country and number of tv channels it has.
tvshow
select country , count(*) from tv_channel group by country order by count(*) desc limit 1;
Question: what is the country with the most number of tv channels and how many does it have? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_...
what is the country with the most number of tv channels and how many does it have?
tvshow
select count(distinct series_name) , count(distinct content) from tv_channel;
Question: list the number of different series names and contents in the tv channel table. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, ...
list the number of different series names and contents in the tv channel table.
tvshow
select count(distinct series_name) , count(distinct content) from tv_channel;
Question: how many different series and contents are listed in the tv channel table? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekl...
how many different series and contents are listed in the tv channel table?
tvshow
select content from tv_channel where series_name = 'sky radio';
Question: what is the content of tv channel with serial name 'sky radio'? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Cha...
what is the content of tv channel with serial name 'sky radio'?
tvshow
select content from tv_channel where series_name = 'sky radio';
Question: what is the content of the series sky radio? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. Cartoon -> id...
what is the content of the series sky radio?
tvshow
select package_option from tv_channel where series_name = 'sky radio';
Question: what is the package option of tv channel with serial name 'sky radio'? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Ra...
what is the package option of tv channel with serial name 'sky radio'?
tvshow
select package_option from tv_channel where series_name = 'sky radio';
Question: what are the package options of the tv channels whose series names are sky radio? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m...
what are the package options of the tv channels whose series names are sky radio?
tvshow
select count(*) from tv_channel where language = 'english';
Question: how many tv channel using language english? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. Cartoon -> id,...
how many tv channel using language english?
tvshow
select count(*) from tv_channel where language = 'english';
Question: how many tv channels use the english language? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. Cartoon -> ...
how many tv channels use the english language?
tvshow
select language , count(*) from tv_channel group by language order by count(*) asc limit 1;
Question: list the language used least number of tv channel. list language and number of tv channel. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, ...
list the language used least number of tv channel. list language and number of tv channel.
tvshow
select language , count(*) from tv_channel group by language order by count(*) asc limit 1;
Question: what are the languages used by the least number of tv channels and how many channels use it? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share...
what are the languages used by the least number of tv channels and how many channels use it?
tvshow
select language , count(*) from tv_channel group by language
Question: list each language and the number of tv channels using it. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel....
list each language and the number of tv channels using it.
tvshow
select language , count(*) from tv_channel group by language
Question: for each language, list the number of tv channels that use it. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Chan...
for each language, list the number of tv channels that use it.
tvshow
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!';
Question: what is the tv channel that shows the cartoon 'the rise of the blue beetle!'? list the tv channel's series name. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share...
what is the tv channel that shows the cartoon 'the rise of the blue beetle!'? list the tv channel's series name.
tvshow
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!';
Question: what is the series name of the tv channel that shows the cartoon 'the rise of the blue beetle'? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Sh...
what is the series name of the tv channel that shows the cartoon 'the rise of the blue beetle'?
tvshow
select t2.title from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t1.series_name = 'sky radio';
Question: list the title of all cartoons showed on tv channel with series name 'sky radio'. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_...
list the title of all cartoons showed on tv channel with series name 'sky radio'.
tvshow
select t2.title from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t1.series_name = 'sky radio';
Question: what is the title of all the cartools that are on the tv channel with the series name 'sky radio'? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating...
what is the title of all the cartools that are on the tv channel with the series name 'sky radio'?
tvshow
select episode from tv_series order by rating
Question: list the episode of all tv series sorted by rating. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. Cartoo...
list the episode of all tv series sorted by rating.
tvshow
select episode from tv_series order by rating
Question: what are all of the episodes ordered by ratings? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. Cartoon -...
what are all of the episodes ordered by ratings?
tvshow
select episode , rating from tv_series order by rating desc limit 3;
Question: list top 3 highest rating tv series. list the tv series's episode and rating. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, W...
list top 3 highest rating tv series. list the tv series's episode and rating.
tvshow
select episode , rating from tv_series order by rating desc limit 3;
Question: what are 3 most highly rated episodes in the tv series table and what were those ratings? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, V...
what are 3 most highly rated episodes in the tv series table and what were those ratings?
tvshow
select max(share) , min(share) from tv_series;
Question: what is minimum and maximum share of tv series? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. Cartoon ->...
what is minimum and maximum share of tv series?
tvshow
select max(share) , min(share) from tv_series;
Question: what is the maximum and minimum share for the tv series? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. C...
what is the maximum and minimum share for the tv series?
tvshow
select air_date from tv_series where episode = 'a love of a lifetime';
Question: what is the air date of tv series with episode 'a love of a lifetime'? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Ra...
what is the air date of tv series with episode 'a love of a lifetime'?
tvshow
select air_date from tv_series where episode = 'a love of a lifetime';
Question: when did the episode 'a love of a lifetime' air? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. Cartoon -...
when did the episode 'a love of a lifetime' air?
tvshow
select weekly_rank from tv_series where episode = 'a love of a lifetime';
Question: what is weekly rank of tv series with episode 'a love of a lifetime'? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Ran...
what is weekly rank of tv series with episode 'a love of a lifetime'?
tvshow
select weekly_rank from tv_series where episode = 'a love of a lifetime';
Question: what is the weekly rank for the episode 'a love of a lifetime'? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Cha...
what is the weekly rank for the episode 'a love of a lifetime'?
tvshow
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';
Question: what is the tv channel of tv series with episode 'a love of a lifetime'? list the tv channel's series name. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_...
what is the tv channel of tv series with episode 'a love of a lifetime'? list the tv channel's series name.
tvshow
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';
Question: what is the name of the series that has the episode 'a love of a lifetime'? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Week...
what is the name of the series that has the episode 'a love of a lifetime'?
tvshow
select t2.episode from tv_channel as t1 join tv_series as t2 on t1.id = t2.channel where t1.series_name = 'sky radio';
Question: list the episode of all tv series showed on tv channel with series name 'sky radio'. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewe...
list the episode of all tv series showed on tv channel with series name 'sky radio'.
tvshow
select t2.episode from tv_channel as t1 join tv_series as t2 on t1.id = t2.channel where t1.series_name = 'sky radio';
Question: what is the episode for the tv series named 'sky radio'? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. C...
what is the episode for the tv series named 'sky radio'?
tvshow
select count(*) , directed_by from cartoon group by directed_by
Question: find the number of cartoons directed by each of the listed directors. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Ran...
find the number of cartoons directed by each of the listed directors.
tvshow
select count(*) , directed_by from cartoon group by directed_by
Question: how many cartoons did each director create? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Rank, Channel. Cartoon -> id,...
how many cartoons did each director create?
tvshow
select production_code , channel from cartoon order by original_air_date desc limit 1
Question: find the production code and channel of the most recently aired cartoon . | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly...
find the production code and channel of the most recently aired cartoon .
tvshow
select production_code , channel from cartoon order by original_air_date desc limit 1
Question: what is the produdction code and channel of the most recent cartoon ? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Ran...
what is the produdction code and channel of the most recent cartoon ?
tvshow
select package_option , series_name from tv_channel where hight_definition_tv = 'yes'
Question: find the package choice and series name of the tv channel that has high definition tv. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, View...
find the package choice and series name of the tv channel that has high definition tv.
tvshow
select package_option , series_name from tv_channel where hight_definition_tv = 'yes'
Question: what are the package options and the name of the series for the tv channel that supports high definition tv? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18...
what are the package options and the name of the series for the tv channel that supports high definition tv?
tvshow
select t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.written_by = 'todd casey'
Question: which countries' tv channels are playing some cartoon written by todd casey? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Wee...
which countries' tv channels are playing some cartoon written by todd casey?
tvshow
select t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.written_by = 'todd casey'
Question: what are the countries that have cartoons on tv that were written by todd casey? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m,...
what are the countries that have cartoons on tv that were written by todd casey?
tvshow
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'
Question: which countries' tv channels are not playing any cartoon written by todd casey? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, ...
which countries' tv channels are not playing any cartoon written by todd casey?
tvshow
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'
Question: what are the countries that are not playing cartoons written by todd casey? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Week...
what are the countries that are not playing cartoons written by todd casey?
tvshow
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'
Question: find the series name and country of the tv channel that is playing some cartoons directed by ben jones and michael chang? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rati...
find the series name and country of the tv channel that is playing some cartoons directed by ben jones and michael chang?
tvshow
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'
Question: 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? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Ep...
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?
tvshow
select pixel_aspect_ratio_par , country from tv_channel where language != 'english'
Question: find the pixel aspect ratio and nation of the tv channels that do not use english. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_...
find the pixel aspect ratio and nation of the tv channels that do not use english.
tvshow
select pixel_aspect_ratio_par , country from tv_channel where language != 'english'
Question: what is the pixel aspect ratio and country of origin for all tv channels that do not use english? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_...
what is the pixel aspect ratio and country of origin for all tv channels that do not use english?
tvshow
select id from tv_channel group by country having count(*) > 2
Question: find id of the tv channels that from the countries where have more than two tv channels. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Vi...
find id of the tv channels that from the countries where have more than two tv channels.
tvshow
select id from tv_channel group by country having count(*) > 2
Question: what are the ids of all tv channels that have more than 2 tv channels? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, Weekly_Ra...
what are the ids of all tv channels that have more than 2 tv channels?
tvshow
select id from tv_channel except select channel from cartoon where directed_by = 'ben jones'
Question: find the id of tv channels that do not play any cartoon directed by ben jones. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Viewers_m, W...
find the id of tv channels that do not play any cartoon directed by ben jones.
tvshow
select id from tv_channel except select channel from cartoon where directed_by = 'ben jones'
Question: what are the ids of the tv channels that do not have any cartoons directed by ben jones? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Share, Vi...
what are the ids of the tv channels that do not have any cartoons directed by ben jones?
tvshow
select package_option from tv_channel where id not in (select channel from cartoon where directed_by = 'ben jones')
Question: find the package option of the tv channel that do not have any cartoon directed by ben jones. | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_Rating_Shar...
find the package option of the tv channel that do not have any cartoon directed by ben jones.
tvshow
select package_option from tv_channel where id not in (select channel from cartoon where directed_by = 'ben jones')
Question: what are the package options of all tv channels that are not playing any cartoons directed by ben jones? | Tables: TV_Channel -> id, series_name, Country, Language, Content, Pixel_aspect_ratio_PAR, Hight_definition_TV, Pay_per_view_PPV, Package_Option. TV_series -> id, Episode, Air_Date, Rating, Share, 18_49_...
what are the package options of all tv channels that are not playing any cartoons directed by ben jones?
poker_player
select count(*) from poker_player
Question: how many poker players are there? | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
how many poker players are there?
poker_player
select count(*) from poker_player
Question: count the number of poker players. | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
count the number of poker players.
poker_player
select earnings from poker_player order by earnings desc
Question: list the earnings of poker players in descending order. | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
list the earnings of poker players in descending order.
poker_player
select earnings from poker_player order by earnings desc
Question: what are the earnings of poker players, ordered descending by value? | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
what are the earnings of poker players, ordered descending by value?
poker_player
select final_table_made , best_finish from poker_player
Question: list the final tables made and the best finishes of poker players. | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
list the final tables made and the best finishes of poker players.
poker_player
select final_table_made , best_finish from poker_player
Question: what are the final tables made and best finishes for all poker players? | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
what are the final tables made and best finishes for all poker players?
poker_player
select avg(earnings) from poker_player
Question: what is the average earnings of poker players? | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
what is the average earnings of poker players?
poker_player
select avg(earnings) from poker_player
Question: return the average earnings across all poker players. | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
return the average earnings across all poker players.
poker_player
select money_rank from poker_player order by earnings desc limit 1
Question: what is the money rank of the poker player with the highest earnings? | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
what is the money rank of the poker player with the highest earnings?
poker_player
select money_rank from poker_player order by earnings desc limit 1
Question: return the money rank of the player with the greatest earnings. | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
return the money rank of the player with the greatest earnings.
poker_player
select max(final_table_made) from poker_player where earnings < 200000
Question: what is the maximum number of final tables made among poker players with earnings less than 200000? | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.Pe...
what is the maximum number of final tables made among poker players with earnings less than 200000?
poker_player
select max(final_table_made) from poker_player where earnings < 200000
Question: return the maximum final tables made across all poker players who have earnings below 200000. | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_I...
return the maximum final tables made across all poker players who have earnings below 200000.
poker_player
select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id
Question: what are the names of poker players? | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
what are the names of poker players?
poker_player
select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id
Question: return the names of all the poker players. | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
return the names of all the poker players.
poker_player
select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id where t2.earnings > 300000
Question: what are the names of poker players whose earnings is higher than 300000? | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
what are the names of poker players whose earnings is higher than 300000?
poker_player
select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id where t2.earnings > 300000
Question: give the names of poker players who have earnings above 300000. | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
give the names of poker players who have earnings above 300000.
poker_player
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
Question: list the names of poker players ordered by the final tables made in ascending order. | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
list the names of poker players ordered by the final tables made in ascending order.
poker_player
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
Question: what are the names of poker players, ordered ascending by the number of final tables they have made? | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.P...
what are the names of poker players, ordered ascending by the number of final tables they have made?
poker_player
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
Question: what is the birth date of the poker player with the lowest earnings? | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
what is the birth date of the poker player with the lowest earnings?
poker_player
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
Question: return the birth date of the poker player with the lowest earnings. | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
return the birth date of the poker player with the lowest earnings.
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
Question: what is the money rank of the tallest poker player? | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
what is the money rank of the tallest poker player?
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
Question: return the money rank of the poker player with the greatest height. | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
return the money rank of the poker player with the greatest height.
poker_player
select avg(t2.earnings) from people as t1 join poker_player as t2 on t1.people_id = t2.people_id where t1.height > 200
Question: what is the average earnings of poker players with height higher than 200? | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
what is the average earnings of poker players with height higher than 200?
poker_player
select avg(t2.earnings) from people as t1 join poker_player as t2 on t1.people_id = t2.people_id where t1.height > 200
Question: give average earnings of poker players who are taller than 200. | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
give average earnings of poker players who are taller than 200.
poker_player
select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id order by t2.earnings desc
Question: what are the names of poker players in descending order of earnings? | Tables: poker_player -> Poker_Player_ID, People_ID, Final_Table_Made, Best_Finish, Money_Rank, Earnings. people -> People_ID, Nationality, Name, Birth_Date, Height. | Joins: poker_player.People_ID = people.People_ID,
what are the names of poker players in descending order of earnings?