Database: tvshow
# tv_channel ( id , series_name , country , language , content , pixel_aspect_ratio_par , hight_definition_tv , pay_per_view_ppv , package_option )
# tv_series ( id , episode , air_date , rating , share , 18_49_rating_share , viewers_m , weekly_rank , channel )
# cartoon ( id , title , directed_by , written_by , original_air_date , production_code , channel )
# tv_series.channel = tv_channel.id
# cartoon.channel = tv_channel.id

Question: List the title of all cartoons in alphabetical order.
SQL: select title from cartoon order by title asc

Question: What are the titles of the cartoons sorted alphabetically?
SQL: select title from cartoon order by title asc

Question: List all cartoon directed by "Ben Jones".
SQL: select title from cartoon where directed_by = 'Ben Jones'

Question: What are the names of all cartoons directed by Ben Jones?
SQL: select title from cartoon where directed_by = 'Ben Jones'

Question: How many cartoons were written by "Joseph Kuhr"?
SQL: select count ( * ) from cartoon where written_by = 'Joseph Kuhr'

Question: What is the number of cartoones written by Joseph Kuhr?
SQL: select count ( * ) from cartoon where written_by = 'Joseph Kuhr'

Question: list all cartoon titles and their directors ordered by their air date
SQL: select title , directed_by from cartoon order by original_air_date asc

Question: What is the name and directors of all the cartoons that are ordered by air date?
SQL: select title , directed_by from cartoon order by original_air_date asc

Question: List the title of all cartoon directed by "Ben Jones" or "Brandon Vietti".
SQL: 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?
SQL: select title from cartoon where directed_by = 'Ben Jones' or directed_by = 'Brandon Vietti'

Question: Which country has the most of TV Channels? List the country and number of TV Channels it has.
SQL: 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?
SQL: select country , count ( * ) from tv_channel group by country order by count ( * ) desc limit 1

Question: List the number of different series names and contents in the TV Channel table.
SQL: 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?
SQL: select count ( distinct series_name ) , count ( distinct content ) from tv_channel

Question: What is the content of TV Channel with serial name "Sky Radio"?
SQL: select content from tv_channel where series_name = 'Sky Radio'

Question: What is the content of the series Sky Radio?
SQL: select content from tv_channel where series_name = 'Sky Radio'

Question: What is the Package Option of TV Channel with serial name "Sky Radio"?
SQL: 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?
SQL: select package_option from tv_channel where series_name = 'Sky Radio'

Question: How many TV Channel using language English?
SQL: select count ( * ) from tv_channel where language = 'English'

Question: How many TV Channels use the English language?
SQL: select count ( * ) from tv_channel where language = 'English'

Question: List the language used least number of TV Channel. List language and number of TV Channel.
SQL: 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?
SQL: select language , count ( * ) from tv_channel group by language order by count ( * ) asc limit 1

Question: List each language and the number of TV Channels using it.
SQL: select language , count ( * ) from tv_channel group by language

Question: For each language, list the number of TV Channels that use it.
SQL: select language , count ( * ) from tv_channel group by language

Question: What is the TV Channel that shows the cartoon "The Rise of the Blue Beetle!"? List the TV Channel's series name.
SQL: select tv_channel.series_name from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.title = 'The Rise of the Blue Beetle!'

Question: What is the series name of the TV Channel that shows the cartoon "The Rise of the Blue Beetle"?
SQL: select tv_channel.series_name from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.title = 'The Rise of the Blue Beetle!'

Question: List the title of all  Cartoons showed on TV Channel with series name "Sky Radio".
SQL: select cartoon.title from tv_channel join cartoon on tv_channel.id = cartoon.channel where tv_channel.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"?
SQL: select cartoon.title from tv_channel join cartoon on tv_channel.id = cartoon.channel where tv_channel.series_name = 'Sky Radio'

Question: List the Episode of all TV series sorted by rating.
SQL: select episode from tv_series order by rating asc

Question: What are all of the episodes ordered by ratings?
SQL: select episode from tv_series order by rating asc

Question: List top 3 highest Rating  TV series. List the TV series's Episode and Rating.
SQL: 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?
SQL: select episode , rating from tv_series order by rating desc limit 3

Question: What is minimum and maximum share of TV series?
SQL: select max ( share ) , min ( share ) from tv_series

Question: What is the maximum and minimum share for the TV series?
SQL: select max ( share ) , min ( share ) from tv_series

Question: What is the air date of TV series with Episode "A Love of a Lifetime"?
SQL: select air_date from tv_series where episode = 'A Love of a Lifetime'

Question: When did the episode "A Love of a Lifetime" air?
SQL: select air_date 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"?
SQL: 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"?
SQL: select weekly_rank from tv_series where 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.
SQL: select tv_channel.series_name from tv_channel join tv_series on tv_channel.id = tv_series.channel where tv_series.episode = 'A Love of a Lifetime'

Question: What is the name of the series that has the episode "A Love of a Lifetime"?
SQL: select tv_channel.series_name from tv_channel join tv_series on tv_channel.id = tv_series.channel where tv_series.episode = 'A Love of a Lifetime'

Question: List the Episode of all  TV series showed on TV Channel with series name "Sky Radio".
SQL: select tv_series.episode from tv_channel join tv_series on tv_channel.id = tv_series.channel where tv_channel.series_name = 'Sky Radio'

Question: What is the episode for the TV series named "Sky Radio"?
SQL: select tv_series.episode from tv_channel join tv_series on tv_channel.id = tv_series.channel where tv_channel.series_name = 'Sky Radio'

Question: Find the number of cartoons directed by each of the listed directors.
SQL: select count ( * ) , directed_by from cartoon group by directed_by

Question: How many cartoons did each director create?
SQL: select count ( * ) , directed_by from cartoon group by directed_by

Question: Find the production code and channel of the most recently aired cartoon .
SQL: 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 ?
SQL: select production_code , channel from cartoon order by original_air_date desc limit 1

Question: Find the package choice and series name of the TV channel that has high definition TV.
SQL: 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?
SQL: select package_option , series_name from tv_channel where hight_definition_tv = 'yes'

Question: which countries' tv channels are playing some cartoon written by Todd Casey?
SQL: select tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.written_by = 'Todd Casey'

Question: What are the countries that have cartoons on TV that were written by Todd Casey?
SQL: select tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.written_by = 'Todd Casey'

Question: which countries' tv channels are not playing any cartoon written by Todd Casey?
SQL: select country from tv_channel except select tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.written_by = 'Todd Casey'

Question: What are the countries that are not playing cartoons written by Todd Casey?
SQL: select country from tv_channel except select tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.written_by = 'Todd Casey'

Question: Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?
SQL: select tv_channel.series_name , tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.directed_by = 'Michael Chang' intersect select tv_channel.series_name , tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.directed_by = 'Ben Jones'

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?
SQL: select tv_channel.series_name , tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.directed_by = 'Michael Chang' intersect select tv_channel.series_name , tv_channel.country from tv_channel join cartoon on tv_channel.id = cartoon.channel where cartoon.directed_by = 'Ben Jones'

Question: find the pixel aspect ratio and nation of the tv channels that do not use English.
SQL: 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?
SQL: select pixel_aspect_ratio_par , country from tv_channel where language != 'English'

Question: find id of the tv channels that from the countries where have more than two tv channels.
SQL: 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?
SQL: select id from tv_channel group by country having count ( * ) > 2

Question: find the id of tv channels that do not play any cartoon directed by Ben Jones.
SQL: 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?
SQL: select id from tv_channel except 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.
SQL: 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?
SQL: select package_option from tv_channel where id not in ( select channel from cartoon where directed_by = 'Ben Jones' )