output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("production_code") FROM "table1_18424435_5" WHERE "title"='\"The Better Man\"';
## Task Generate a SQL query to answer the following question: `How many production codes have the title "the better man"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_5" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `How many production codes have the title "the better man"?`: ```sql
SELECT "directed_by" FROM "table1_18424435_5" WHERE "u_s_air_date"='July 29, 2011';
## Task Generate a SQL query to answer the following question: `Who directed the episode that aired on July 29, 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_5" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode that aired on July 29, 2011?`: ```sql
SELECT COUNT("u_s_air_date") FROM "table1_18424435_5" WHERE "directed_by"='Jim Donovan';
## Task Generate a SQL query to answer the following question: `How many air dates where directed by jim donovan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_5" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `How many air dates where directed by jim donovan?`: ```sql
SELECT MIN("num") FROM "table1_18424435_5";
## Task Generate a SQL query to answer the following question: `What is the smallest number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_5" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest number?`: ```sql
SELECT "u_s_air_date" FROM "table1_18424435_5" WHERE "canadian_viewers_million"='1.229';
## Task Generate a SQL query to answer the following question: `Which air dates have 1.229 canadian viewers (millions)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18424435_5" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "u_s_air_date" text, "production_code" real, "canadian_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Which air dates have 1.229 canadian viewers (millions)?`: ```sql
SELECT COUNT("district") FROM "punjab" WHERE "serial_no"=9;
## Task Generate a SQL query to answer the following question: `In what district is the city listed in Serial number 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "punjab" ( "serial_no" real, "district" text, "headquartered_city" text, "city_population_2009" real, "city_area_km_2" real ); ### SQL Given the database schema, here is the SQL query that answers `In what district is the city listed in Serial number 9?`: ```sql
SELECT COUNT("city_area_km_2") FROM "punjab" WHERE "district"='Sargodha District';
## Task Generate a SQL query to answer the following question: `What is the area of the city in the Sargodha district?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "punjab" ( "serial_no" real, "district" text, "headquartered_city" text, "city_population_2009" real, "city_area_km_2" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the area of the city in the Sargodha district?`: ```sql
SELECT MIN("city_area_km_2") FROM "punjab";
## Task Generate a SQL query to answer the following question: `What is the smallest city area?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "punjab" ( "serial_no" real, "district" text, "headquartered_city" text, "city_population_2009" real, "city_area_km_2" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest city area?`: ```sql
SELECT "original_air_date" FROM "episodes" WHERE "directed_by"='Di Drew';
## Task Generate a SQL query to answer the following question: `If Di Drew is the director, what was the original air date for episode A Whole Lot to Lose?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "episodes" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `If Di Drew is the director, what was the original air date for episode A Whole Lot to Lose?`: ```sql
SELECT COUNT("population_2010_census") FROM "administrative_districts" WHERE "s_barangay"=51;
## Task Generate a SQL query to answer the following question: `What is the population (2010 census) if s barangay is 51?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_districts" ( "district" text, "s_barangay" real, "population_2010_census" real, "area_has" text, "pop_density_per_km2" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the population (2010 census) if s barangay is 51?`: ```sql
SELECT MIN("population_2010_census") FROM "administrative_districts" WHERE "area_has"='66.11';
## Task Generate a SQL query to answer the following question: `What is the population (2010 census) if the area is 66.11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_districts" ( "district" text, "s_barangay" real, "population_2010_census" real, "area_has" text, "pop_density_per_km2" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the population (2010 census) if the area is 66.11?`: ```sql
SELECT "entered" FROM "elimination_chamber_entrances_and_elimin" WHERE "time"='14:42';
## Task Generate a SQL query to answer the following question: `How many entered the match with a time of 14:42? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "eliminated" real, "wrestler" text, "entered" real, "eliminated_by" text, "method_of_elimination" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `How many entered the match with a time of 14:42? `: ```sql
SELECT "time" FROM "elimination_chamber_entrances_and_elimin" WHERE "wrestler"='Cena';
## Task Generate a SQL query to answer the following question: `What was the time for the match with Cena? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "eliminated" real, "wrestler" text, "entered" real, "eliminated_by" text, "method_of_elimination" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the time for the match with Cena? `: ```sql
SELECT "time" FROM "elimination_chamber_entrances_and_elimin" WHERE "eliminated_by"='Chris Jericho';
## Task Generate a SQL query to answer the following question: `What was the time of the match where Chris Jericho eliminated the wrestler? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "eliminated" real, "wrestler" text, "entered" real, "eliminated_by" text, "method_of_elimination" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the time of the match where Chris Jericho eliminated the wrestler? `: ```sql
SELECT "station" FROM "television_stations" WHERE "city_of_license_market"='Cincinnati';
## Task Generate a SQL query to answer the following question: `What are all the stations with a license in Cincinnati?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_stations" ( "city_of_license_market" text, "station" text, "channel_tv_rf" text, "owned_since" real, "affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `What are all the stations with a license in Cincinnati?`: ```sql
SELECT "affiliation" FROM "television_stations" WHERE "station"='KMGH-TV';
## Task Generate a SQL query to answer the following question: `What station is affiliated with kmgh-tv?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_stations" ( "city_of_license_market" text, "station" text, "channel_tv_rf" text, "owned_since" real, "affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `What station is affiliated with kmgh-tv?`: ```sql
SELECT "owned_since" FROM "television_stations" WHERE "station"='WFTS-TV';
## Task Generate a SQL query to answer the following question: `How many stations have been owned since wfts-tv?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_stations" ( "city_of_license_market" text, "station" text, "channel_tv_rf" text, "owned_since" real, "affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `How many stations have been owned since wfts-tv?`: ```sql
SELECT "city_of_license_market" FROM "television_stations" WHERE "channel_tv_rf"='41';
## Task Generate a SQL query to answer the following question: `What city of license/market has the channel of 41?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_stations" ( "city_of_license_market" text, "station" text, "channel_tv_rf" text, "owned_since" real, "affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `What city of license/market has the channel of 41?`: ```sql
SELECT MIN("owned_since") FROM "television_stations" WHERE "station"='KERO-TV';
## Task Generate a SQL query to answer the following question: `What is the minimum stations owned since kero-tv?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_stations" ( "city_of_license_market" text, "station" text, "channel_tv_rf" text, "owned_since" real, "affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum stations owned since kero-tv?`: ```sql
SELECT "lyric_fm_m_hz" FROM "main_sites" WHERE "rna_g_m_hz"='93.2';
## Task Generate a SQL query to answer the following question: `What is the lyric fm for rnag 93.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_sites" ( "transmitter" text, "service_area" text, "radio_1_m_hz" text, "2_fm_m_hz" text, "rna_g_m_hz" text, "lyric_fm_m_hz" text, "erp_k_w" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lyric fm for rnag 93.2?`: ```sql
SELECT "2_fm_m_hz" FROM "main_sites" WHERE "erp_k_w"='16';
## Task Generate a SQL query to answer the following question: `What are the 2fm's for erp 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_sites" ( "transmitter" text, "service_area" text, "radio_1_m_hz" text, "2_fm_m_hz" text, "rna_g_m_hz" text, "lyric_fm_m_hz" text, "erp_k_w" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the 2fm's for erp 16?`: ```sql
SELECT "rna_g_m_hz" FROM "main_sites" WHERE "transmitter"='Kippure';
## Task Generate a SQL query to answer the following question: `What is the rnag for kippure transmitter? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_sites" ( "transmitter" text, "service_area" text, "radio_1_m_hz" text, "2_fm_m_hz" text, "rna_g_m_hz" text, "lyric_fm_m_hz" text, "erp_k_w" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the rnag for kippure transmitter? `: ```sql
SELECT "rna_g_m_hz" FROM "main_sites" WHERE "lyric_fm_m_hz"='98.7';
## Task Generate a SQL query to answer the following question: `What is the rnag for lyric fm 98.7? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_sites" ( "transmitter" text, "service_area" text, "radio_1_m_hz" text, "2_fm_m_hz" text, "rna_g_m_hz" text, "lyric_fm_m_hz" text, "erp_k_w" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the rnag for lyric fm 98.7? `: ```sql
SELECT "2_fm_m_hz" FROM "main_sites" WHERE "rna_g_m_hz"='94.4';
## Task Generate a SQL query to answer the following question: `What is the 2fm for rnag 94.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_sites" ( "transmitter" text, "service_area" text, "radio_1_m_hz" text, "2_fm_m_hz" text, "rna_g_m_hz" text, "lyric_fm_m_hz" text, "erp_k_w" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2fm for rnag 94.4?`: ```sql
SELECT COUNT("reason_for_change") FROM "senate" WHERE "vacator"='A. Willis Robertson (D)';
## Task Generate a SQL query to answer the following question: `How many reasons were given when A. Willis Robertson (D) resigned?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text ); ### SQL Given the database schema, here is the SQL query that answers `How many reasons were given when A. Willis Robertson (D) resigned?`: ```sql
SELECT "vacator" FROM "senate" WHERE "date_of_successors_formal_installation"='May 11, 1966';
## Task Generate a SQL query to answer the following question: `Who vacated his post when his successor was formally installed on May 11, 1966?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text ); ### SQL Given the database schema, here is the SQL query that answers `Who vacated his post when his successor was formally installed on May 11, 1966?`: ```sql
SELECT "state_class" FROM "senate" WHERE "date_of_successors_formal_installation"='May 11, 1966';
## Task Generate a SQL query to answer the following question: `What was the state (class) where the new successor was formally installed on May 11, 1966?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the state (class) where the new successor was formally installed on May 11, 1966?`: ```sql
SELECT "album" FROM "best_selling_albums_in_the_uk" WHERE "artist"='ABBA';
## Task Generate a SQL query to answer the following question: `When abba is the artist what is the album?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_selling_albums_in_the_uk" ( "no" real, "album" text, "artist" text, "record_label" text, "released" text, "chart_peak" real, "number_of_times_certified_platinum" text ); ### SQL Given the database schema, here is the SQL query that answers `When abba is the artist what is the album?`: ```sql
SELECT "album" FROM "best_selling_albums_in_the_uk" WHERE "no"=35;
## Task Generate a SQL query to answer the following question: `When 35 is the number what is the album?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_selling_albums_in_the_uk" ( "no" real, "album" text, "artist" text, "record_label" text, "released" text, "chart_peak" real, "number_of_times_certified_platinum" text ); ### SQL Given the database schema, here is the SQL query that answers `When 35 is the number what is the album?`: ```sql
SELECT MIN("no") FROM "best_selling_albums_in_the_uk" WHERE "album"='Bat Out of Hell';
## Task Generate a SQL query to answer the following question: `When bat out of hell is the album what is the lowest number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_selling_albums_in_the_uk" ( "no" real, "album" text, "artist" text, "record_label" text, "released" text, "chart_peak" real, "number_of_times_certified_platinum" text ); ### SQL Given the database schema, here is the SQL query that answers `When bat out of hell is the album what is the lowest number?`: ```sql
SELECT "no" FROM "best_selling_albums_in_the_uk" WHERE "released"='Cannot handle non-empty timestamp argument! 2007';
## Task Generate a SQL query to answer the following question: `When cannot handle non-empty timestamp argument! 2007 is released what is the no.? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_selling_albums_in_the_uk" ( "no" real, "album" text, "artist" text, "record_label" text, "released" text, "chart_peak" real, "number_of_times_certified_platinum" text ); ### SQL Given the database schema, here is the SQL query that answers `When cannot handle non-empty timestamp argument! 2007 is released what is the no.? `: ```sql
SELECT "district" FROM "table1_1847180_4" WHERE "vacator"='Ralph Harvey (R)';
## Task Generate a SQL query to answer the following question: `Which district did Ralph Harvey (r) vacated when he resigned?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1847180_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); ### SQL Given the database schema, here is the SQL query that answers `Which district did Ralph Harvey (r) vacated when he resigned?`: ```sql
SELECT "vacator" FROM "table1_1847180_4" WHERE "successor"='Walter B. Jones, Sr. (D)';
## Task Generate a SQL query to answer the following question: `Who did Walter B. Jones, Sr. (d) succeeded in office?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1847180_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); ### SQL Given the database schema, here is the SQL query that answers `Who did Walter B. Jones, Sr. (d) succeeded in office?`: ```sql
SELECT "no_in_series" FROM "table1_18481791_2" WHERE "title"='\"Never the Bride\"';
## Task Generate a SQL query to answer the following question: `What number episode in the series was titled "Never the Bride"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18481791_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What number episode in the series was titled "Never the Bride"?`: ```sql
SELECT "written_by" FROM "table1_18481791_2" WHERE "title"='\"Trojan Horst\"';
## Task Generate a SQL query to answer the following question: `Who wrote the episode titled "Trojan Horst"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18481791_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode titled "Trojan Horst"?`: ```sql
SELECT "title" FROM "table1_18481791_2" WHERE "directed_by"='John T. Kretchmer';
## Task Generate a SQL query to answer the following question: `What was the title of the episode directed by John T. Kretchmer? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18481791_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the title of the episode directed by John T. Kretchmer? `: ```sql
SELECT MIN("no_in_season") FROM "table1_18481791_3" WHERE "directed_by"='Bryan Spicer';
## Task Generate a SQL query to answer the following question: `How many seasons were directed by Bryan Spicer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18481791_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many seasons were directed by Bryan Spicer?`: ```sql
SELECT "title" FROM "table1_18481791_3" WHERE "no_in_series"=23;
## Task Generate a SQL query to answer the following question: `What is the title of series 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18481791_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of series 23?`: ```sql
SELECT "original_air_date" FROM "table1_18481791_3" WHERE "title"='\"Training Video\"';
## Task Generate a SQL query to answer the following question: `When did the title "training video" originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18481791_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the title "training video" originally air?`: ```sql
SELECT "directed_by" FROM "table1_18481791_3" WHERE "no_in_season"=1;
## Task Generate a SQL query to answer the following question: `Who directed season 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18481791_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed season 1?`: ```sql
SELECT "title" FROM "table1_18481791_3" WHERE "u_s_viewers_in_millions"='3.97';
## Task Generate a SQL query to answer the following question: `What is the title when u.s. viewers (millions) is 3.97?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_18481791_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title when u.s. viewers (millions) is 3.97?`: ```sql
SELECT COUNT("commentator") FROM "table1_184803_4" WHERE "broadcaster"='ORF';
## Task Generate a SQL query to answer the following question: `how many people commentated where broadcaster is orf` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_184803_4" ( "voting_order" real, "country" text, "spokespersons" text, "commentator" text, "broadcaster" text ); ### SQL Given the database schema, here is the SQL query that answers `how many people commentated where broadcaster is orf`: ```sql
SELECT "spokespersons" FROM "table1_184803_4" WHERE "voting_order"=9;
## Task Generate a SQL query to answer the following question: `list the spokespersons where voting order is 9` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_184803_4" ( "voting_order" real, "country" text, "spokespersons" text, "commentator" text, "broadcaster" text ); ### SQL Given the database schema, here is the SQL query that answers `list the spokespersons where voting order is 9`: ```sql
SELECT "country" FROM "table1_184803_4" WHERE "commentator"='Gordana Bonetti';
## Task Generate a SQL query to answer the following question: `which countries were commentated on by gordana bonetti` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_184803_4" ( "voting_order" real, "country" text, "spokespersons" text, "commentator" text, "broadcaster" text ); ### SQL Given the database schema, here is the SQL query that answers `which countries were commentated on by gordana bonetti`: ```sql
SELECT "spokespersons" FROM "table1_184803_4" WHERE "country"='Luxembourg';
## Task Generate a SQL query to answer the following question: `wich spokesperson talked on luxembourg` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_184803_4" ( "voting_order" real, "country" text, "spokespersons" text, "commentator" text, "broadcaster" text ); ### SQL Given the database schema, here is the SQL query that answers `wich spokesperson talked on luxembourg`: ```sql
SELECT "commentator" FROM "table1_184803_4" WHERE "spokespersons"='Claude Darget';
## Task Generate a SQL query to answer the following question: `who was the commentator when spokesperson was claude darget` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_184803_4" ( "voting_order" real, "country" text, "spokespersons" text, "commentator" text, "broadcaster" text ); ### SQL Given the database schema, here is the SQL query that answers `who was the commentator when spokesperson was claude darget`: ```sql
SELECT "institution" FROM "membership" WHERE "team_nickname"='Cardinals';
## Task Generate a SQL query to answer the following question: `List all institutions with a team name of the Cardinals. ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "institution" text, "location" text, "founded" real, "years_in_iiac_approx" text, "team_nickname" text ); ### SQL Given the database schema, here is the SQL query that answers `List all institutions with a team name of the Cardinals. `: ```sql
SELECT COUNT("founded") FROM "membership" WHERE "location"='Rock Island, Illinois';
## Task Generate a SQL query to answer the following question: `List the total number of institutions founded in Rock Island, Illinois.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "institution" text, "location" text, "founded" real, "years_in_iiac_approx" text, "team_nickname" text ); ### SQL Given the database schema, here is the SQL query that answers `List the total number of institutions founded in Rock Island, Illinois.`: ```sql
SELECT "viewers_in_millions" FROM "table1_1849243_1" WHERE "run_time"='23:55';
## Task Generate a SQL query to answer the following question: `How many viewers in millions watched the episode 23:55 minutes long?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1849243_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `How many viewers in millions watched the episode 23:55 minutes long?`: ```sql
SELECT "broadcast_date" FROM "table1_1849243_1" WHERE "archive"='16mm t/r';
## Task Generate a SQL query to answer the following question: `What is the broadcast date of the 16mm t/r episode?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1849243_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the broadcast date of the 16mm t/r episode?`: ```sql
SELECT "viewers_in_millions" FROM "table1_1849243_1" WHERE "archive"='16mm t/r';
## Task Generate a SQL query to answer the following question: `How many viewers watched the 16mm t/r episode?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1849243_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `How many viewers watched the 16mm t/r episode?`: ```sql
SELECT "el_canal_de_las_estrellas" FROM "broadcasters" WHERE "october_20_2008"='June 5, 2009';
## Task Generate a SQL query to answer the following question: `state el canal de las estrellas where october 20, 2008 stat is june 5, 2009` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcasters" ( "mexico" text, "ma_ana_es_para_siempre" text, "el_canal_de_las_estrellas" text, "october_20_2008" text, "june_14_2009" text, "monday_to_friday" text ); ### SQL Given the database schema, here is the SQL query that answers `state el canal de las estrellas where october 20, 2008 stat is june 5, 2009`: ```sql
SELECT "el_canal_de_las_estrellas" FROM "broadcasters" WHERE "ma_ana_es_para_siempre"='Impreuna pentru totdeauna';
## Task Generate a SQL query to answer the following question: `state el canal de las estrellas where mañana es para siempre is impreuna pentru totdeauna` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcasters" ( "mexico" text, "ma_ana_es_para_siempre" text, "el_canal_de_las_estrellas" text, "october_20_2008" text, "june_14_2009" text, "monday_to_friday" text ); ### SQL Given the database schema, here is the SQL query that answers `state el canal de las estrellas where mañana es para siempre is impreuna pentru totdeauna`: ```sql
SELECT "june_14_2009" FROM "broadcasters" WHERE "october_20_2008"='November 15, 2010';
## Task Generate a SQL query to answer the following question: `what is the june 14, 2009 stat where october 20, 2008 stat is november 15, 2010` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcasters" ( "mexico" text, "ma_ana_es_para_siempre" text, "el_canal_de_las_estrellas" text, "october_20_2008" text, "june_14_2009" text, "monday_to_friday" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the june 14, 2009 stat where october 20, 2008 stat is november 15, 2010`: ```sql
SELECT "mexico" FROM "broadcasters" WHERE "ma_ana_es_para_siempre"='Love Never Dies';
## Task Generate a SQL query to answer the following question: `what is the mexico stat where mañana es para siempre is love never dies` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcasters" ( "mexico" text, "ma_ana_es_para_siempre" text, "el_canal_de_las_estrellas" text, "october_20_2008" text, "june_14_2009" text, "monday_to_friday" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the mexico stat where mañana es para siempre is love never dies`: ```sql
SELECT "el_canal_de_las_estrellas" FROM "broadcasters" WHERE "october_20_2008"='June 5, 2009';
## Task Generate a SQL query to answer the following question: `state el canal de las estrellas where october 20, 2008 stat is june 5, 2009` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcasters" ( "mexico" text, "ma_ana_es_para_siempre" text, "el_canal_de_las_estrellas" text, "october_20_2008" text, "june_14_2009" text, "monday_to_friday" text ); ### SQL Given the database schema, here is the SQL query that answers `state el canal de las estrellas where october 20, 2008 stat is june 5, 2009`: ```sql
SELECT "october_20_2008" FROM "broadcasters" WHERE "mexico"='Romania';
## Task Generate a SQL query to answer the following question: `what is the october 20, 2008 stat where mexico stat is romania` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcasters" ( "mexico" text, "ma_ana_es_para_siempre" text, "el_canal_de_las_estrellas" text, "october_20_2008" text, "june_14_2009" text, "monday_to_friday" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the october 20, 2008 stat where mexico stat is romania`: ```sql
SELECT "other" FROM "table1_1850282_7" WHERE "species"='Chironius multiventris septentrionalis';
## Task Generate a SQL query to answer the following question: `Name the other for chironius multiventris septentrionalis` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1850282_7" ( "species" text, "common_name" text, "trinidad" text, "tobago" text, "bocas_is" text, "other" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the other for chironius multiventris septentrionalis`: ```sql
SELECT "trinidad" FROM "table1_1850282_7" WHERE "common_name"='Yellow-bellied puffing snake';
## Task Generate a SQL query to answer the following question: `Name the trinidad for yellow-bellied puffing snake` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1850282_7" ( "species" text, "common_name" text, "trinidad" text, "tobago" text, "bocas_is" text, "other" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the trinidad for yellow-bellied puffing snake`: ```sql
SELECT "bocas_is" FROM "table1_1850282_7" WHERE "species"='Chironius multiventris septentrionalis';
## Task Generate a SQL query to answer the following question: `Name the bocas for chironius multiventris septentrionalis` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1850282_7" ( "species" text, "common_name" text, "trinidad" text, "tobago" text, "bocas_is" text, "other" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the bocas for chironius multiventris septentrionalis`: ```sql
SELECT "trinidad" FROM "table1_1850282_7" WHERE "common_name"='Yellow-bellied puffing snake';
## Task Generate a SQL query to answer the following question: `Name the trindad for yellow-bellied puffing snake` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1850282_7" ( "species" text, "common_name" text, "trinidad" text, "tobago" text, "bocas_is" text, "other" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the trindad for yellow-bellied puffing snake`: ```sql
SELECT "common_name" FROM "table1_1850282_7" WHERE "species"='Chironius multiventris septentrionalis';
## Task Generate a SQL query to answer the following question: `Name the common name for chironius multiventris septentrionalis` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1850282_7" ( "species" text, "common_name" text, "trinidad" text, "tobago" text, "bocas_is" text, "other" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the common name for chironius multiventris septentrionalis`: ```sql
SELECT "contestant_name" FROM "season_2" WHERE "date_premiered_2009"='July 25';
## Task Generate a SQL query to answer the following question: `What contestant was premiered on July 25? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_2" ( "contestant_name" text, "episode_num" real, "date_premiered_2009" text, "winning_amount" text, "eliminated_contestant" text ); ### SQL Given the database schema, here is the SQL query that answers `What contestant was premiered on July 25? `: ```sql
SELECT "air_force_navy_score" FROM "table1_1850339_2" WHERE "season"=2018;
## Task Generate a SQL query to answer the following question: `What's the Air Force - Navy score in the 2018 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1850339_2" ( "season" real, "trophy_winner" text, "air_force_navy_score" text, "air_force_army_score" text, "army_navy_score" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the Air Force - Navy score in the 2018 season?`: ```sql
SELECT "air_force_navy_score" FROM "table1_1850339_2" WHERE "season"=1983;
## Task Generate a SQL query to answer the following question: `What was the Air Force - Navy score in the 1983 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1850339_2" ( "season" real, "trophy_winner" text, "air_force_navy_score" text, "air_force_army_score" text, "army_navy_score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Air Force - Navy score in the 1983 season?`: ```sql
SELECT COUNT("season") FROM "table1_1850339_2" WHERE "army_navy_score"='10 Dec. 2016 at Baltimore, MD (M&T Bank Stadium)';
## Task Generate a SQL query to answer the following question: `How many different season have an Army - Navy score of 10 dec. 2016 at Baltimore, MD (M&T Bank Stadium)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1850339_2" ( "season" real, "trophy_winner" text, "air_force_navy_score" text, "air_force_army_score" text, "army_navy_score" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different season have an Army - Navy score of 10 dec. 2016 at Baltimore, MD (M&T Bank Stadium)?`: ```sql
SELECT "u_s_acres_episode" FROM "table1_1852270_5" WHERE "garfield_episode_1"='Robodie II';
## Task Generate a SQL query to answer the following question: `In the first episode of Garfield titled Robodie II, what is the title of the U.S. Acres Episode?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_5" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `In the first episode of Garfield titled Robodie II, what is the title of the U.S. Acres Episode?`: ```sql
SELECT "garfield_episode_1" FROM "table1_1852270_5" WHERE "garfield_episode_2"='Mamma Manicotti';
## Task Generate a SQL query to answer the following question: `What is the title of the first episode of Garfield that is followed by the second episode of Garfield titled Mamma Manicotti?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_5" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the first episode of Garfield that is followed by the second episode of Garfield titled Mamma Manicotti?`: ```sql
SELECT "u_s_acres_episode" FROM "table1_1852270_5" WHERE "garfield_episode_1"='Robodie II';
## Task Generate a SQL query to answer the following question: `What is the name of the US Acres episode following the Garfield episode titled Robodie II?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_5" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the US Acres episode following the Garfield episode titled Robodie II?`: ```sql
SELECT "garfield_episode_2" FROM "table1_1852270_4" WHERE "garfield_episode_1"='Twice Told Tale';
## Task Generate a SQL query to answer the following question: `what is the 2nd garfield episode for garfield episode 1 twice told tale` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_4" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the 2nd garfield episode for garfield episode 1 twice told tale`: ```sql
SELECT "garfield_episode_1" FROM "table1_1852270_4" WHERE "u_s_acres_episode"='The Orson Awards';
## Task Generate a SQL query to answer the following question: `what is the 2nd garfield episode where u.s. acres episode is the orson awards` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_4" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the 2nd garfield episode where u.s. acres episode is the orson awards`: ```sql
SELECT COUNT("garfield_episode_2") FROM "table1_1852270_4" WHERE "u_s_acres_episode"='The Orson Awards';
## Task Generate a SQL query to answer the following question: `how many 2nd episodes for u.s. acres episode the orson awards` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_4" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `how many 2nd episodes for u.s. acres episode the orson awards`: ```sql
SELECT "original_airdate" FROM "table1_1852270_4" WHERE "garfield_episode_2"='The Wise Man';
## Task Generate a SQL query to answer the following question: `what is the original airdate for garfield episode 2 the wise man` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_4" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the original airdate for garfield episode 2 the wise man`: ```sql
SELECT "garfield_episode_2" FROM "table1_1852270_4" WHERE "u_s_acres_episode"='The Bunny Rabbits is Coming!';
## Task Generate a SQL query to answer the following question: `what is the 2nd garfield episode where u.s. acres episode is the bunny rabbits is coming!` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_4" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the 2nd garfield episode where u.s. acres episode is the bunny rabbits is coming!`: ```sql
SELECT "episode" FROM "table1_1852270_4" WHERE "garfield_episode_1"='Ship Shape';
## Task Generate a SQL query to answer the following question: `which episode had garfield episode 1 ship shape` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_4" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `which episode had garfield episode 1 ship shape`: ```sql
SELECT "garfield_episode_2" FROM "table1_1852270_6" WHERE "garfield_episode_1"='The First Annual Garfield Watchers Test';
## Task Generate a SQL query to answer the following question: `Which Garfield episode 2 has Garfield episode 1 as the first annual Garfield watchers test?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_6" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Garfield episode 2 has Garfield episode 1 as the first annual Garfield watchers test?`: ```sql
SELECT "original_airdate" FROM "table1_1852270_6" WHERE "u_s_acres_episode"='Who Done It?';
## Task Generate a SQL query to answer the following question: `What is the original air date of the u.s. acres episode who done it?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_6" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the original air date of the u.s. acres episode who done it?`: ```sql
SELECT "episode" FROM "table1_1852270_6" WHERE "garfield_episode_1"='The Worst Pizza in the History of Mankind';
## Task Generate a SQL query to answer the following question: `Which episode in Garfield episode 1 is the worst pizza in the history of mankind?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_6" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `Which episode in Garfield episode 1 is the worst pizza in the history of mankind?`: ```sql
SELECT COUNT("original_airdate") FROM "table1_1852270_6" WHERE "garfield_episode_1"='Cute for Loot';
## Task Generate a SQL query to answer the following question: `How many original airdates is Garfield episode 1 is cute for loot?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_6" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `How many original airdates is Garfield episode 1 is cute for loot?`: ```sql
SELECT "u_s_acres_episode" FROM "table1_1852270_6" WHERE "episode"='\"Show 79\"';
## Task Generate a SQL query to answer the following question: `Which u.s.acres episode has "show 79" as the episode?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_6" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `Which u.s.acres episode has "show 79" as the episode?`: ```sql
SELECT COUNT("u_s_acres_episode") FROM "table1_1852270_6" WHERE "garfield_episode_2"='The Picnic Panic';
## Task Generate a SQL query to answer the following question: `How many u.s. episodes have Garfield episode 2 the picnic panic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_6" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `How many u.s. episodes have Garfield episode 2 the picnic panic?`: ```sql
SELECT "garfield_episode_2" FROM "table1_1852270_2" WHERE "u_s_acres_episode"='Banana Nose';
## Task Generate a SQL query to answer the following question: `what is the garfield episode where us acres episode is banana nose?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_2" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the garfield episode where us acres episode is banana nose?`: ```sql
SELECT "original_airdate" FROM "table1_1852270_2" WHERE "u_s_acres_episode"='Shell Shocked Sheldon';
## Task Generate a SQL query to answer the following question: `what is the original airdate for shell shocked sheldon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_2" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the original airdate for shell shocked sheldon?`: ```sql
SELECT "garfield_episode_2" FROM "table1_1852270_3" WHERE "garfield_episode_1"='Robodie';
## Task Generate a SQL query to answer the following question: `What is episode 2 for Robodie?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_3" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is episode 2 for Robodie?`: ```sql
SELECT "episode" FROM "table1_1852270_3" WHERE "garfield_episode_2"='Crime and Nourishment';
## Task Generate a SQL query to answer the following question: `What are the episodes for "Crime and Nourishment"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_3" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the episodes for "Crime and Nourishment"?`: ```sql
SELECT "garfield_episode_2" FROM "table1_1852270_8" WHERE "garfield_episode_1"='Change Of Mind';
## Task Generate a SQL query to answer the following question: `What is the garfield episode 2 when episode 1 is "change of mind"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_8" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the garfield episode 2 when episode 1 is "change of mind"?`: ```sql
SELECT "garfield_episode_2" FROM "table1_1852270_8" WHERE "garfield_episode_1"='The Horror Hostess (Part 1)';
## Task Generate a SQL query to answer the following question: `What is the title of garfield episode 2 when "the horror hostess (part 1)" is episode 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_8" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of garfield episode 2 when "the horror hostess (part 1)" is episode 1?`: ```sql
SELECT "garfield_episode_2" FROM "table1_1852270_8" WHERE "garfield_episode_1"='Suburban Jungle';
## Task Generate a SQL query to answer the following question: `What is the name of episode 2 for garfield when episode 1 is "suburban jungle"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_8" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of episode 2 for garfield when episode 1 is "suburban jungle"?`: ```sql
SELECT "garfield_episode_2" FROM "table1_1852270_8" WHERE "garfield_episode_1"='The Horror Hostess (Part 1)';
## Task Generate a SQL query to answer the following question: `What is episode 2 of garfield when episode 1 is "the horror hostess (part 1)"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1852270_8" ( "episode" text, "garfield_episode_1" text, "u_s_acres_episode" text, "garfield_episode_2" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is episode 2 of garfield when episode 1 is "the horror hostess (part 1)"?`: ```sql
SELECT COUNT("tourism_receipts_2003_as_pct_of_exports") FROM "performance_indicators_for_international" WHERE "tourism_competitiveness_2011_ttci"='3.26';
## Task Generate a SQL query to answer the following question: `Name the tourism receipts 2003 for tourism competitiveness 3.26` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_indicators_for_international" ( "country" text, "tourist_arrivals_2011_millions" text, "tourism_receipts_2011_millions_of_us" real, "tourism_receipts_2011_us_per_arrival" real, "tourism_receipts_2011_us_per_capita" real, "tourism_receipts_2003_as_pct_of_gdp" text, "tourism_receipts_2003_as_pct_of_exports" text, "direct_and_indirect_employment_in_tourism_2005_pct" text, "tourism_competitiveness_2011_ttci" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the tourism receipts 2003 for tourism competitiveness 3.26`: ```sql
SELECT "tourism_receipts_2003_as_pct_of_gdp" FROM "performance_indicators_for_international" WHERE "country"='Colombia';
## Task Generate a SQL query to answer the following question: `Name the tourism receipts 2003 for colombia` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_indicators_for_international" ( "country" text, "tourist_arrivals_2011_millions" text, "tourism_receipts_2011_millions_of_us" real, "tourism_receipts_2011_us_per_arrival" real, "tourism_receipts_2011_us_per_capita" real, "tourism_receipts_2003_as_pct_of_gdp" text, "tourism_receipts_2003_as_pct_of_exports" text, "direct_and_indirect_employment_in_tourism_2005_pct" text, "tourism_competitiveness_2011_ttci" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the tourism receipts 2003 for colombia`: ```sql
SELECT COUNT("tourism_receipts_2011_us_per_capita") FROM "performance_indicators_for_international" WHERE "tourism_receipts_2003_as_pct_of_gdp"='13.5';
## Task Generate a SQL query to answer the following question: `Name the total number of tourism receipts 2011 where tourism receipts 2003 13.5` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_indicators_for_international" ( "country" text, "tourist_arrivals_2011_millions" text, "tourism_receipts_2011_millions_of_us" real, "tourism_receipts_2011_us_per_arrival" real, "tourism_receipts_2011_us_per_capita" real, "tourism_receipts_2003_as_pct_of_gdp" text, "tourism_receipts_2003_as_pct_of_exports" text, "direct_and_indirect_employment_in_tourism_2005_pct" text, "tourism_competitiveness_2011_ttci" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of tourism receipts 2011 where tourism receipts 2003 13.5`: ```sql
SELECT "owner" FROM "radio" WHERE "branding"='Classic Hits 102.1 CJCY';
## Task Generate a SQL query to answer the following question: `When classic hits 102.1 cjcy is the branding who is the owner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text, "language_rebroadcast" text ); ### SQL Given the database schema, here is the SQL query that answers `When classic hits 102.1 cjcy is the branding who is the owner?`: ```sql
SELECT "call_sign" FROM "radio" WHERE "format"='hot adult contemporary';
## Task Generate a SQL query to answer the following question: `When hot adult contemporary is the format what is the call sign?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text, "language_rebroadcast" text ); ### SQL Given the database schema, here is the SQL query that answers `When hot adult contemporary is the format what is the call sign?`: ```sql
SELECT COUNT("call_sign") FROM "radio" WHERE "owner"='Vista Radio';
## Task Generate a SQL query to answer the following question: `When vista radio is the owner how many call signs are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text, "language_rebroadcast" text ); ### SQL Given the database schema, here is the SQL query that answers `When vista radio is the owner how many call signs are there?`: ```sql
SELECT COUNT("format") FROM "radio" WHERE "frequency"='FM 97.3';
## Task Generate a SQL query to answer the following question: `When fm 97.3 is the frequency how many formats are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text, "language_rebroadcast" text ); ### SQL Given the database schema, here is the SQL query that answers `When fm 97.3 is the frequency how many formats are there?`: ```sql
SELECT "frequency" FROM "radio" WHERE "owner"='Vista Radio';
## Task Generate a SQL query to answer the following question: `When vista radio is the owner what is the frequency? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "branding" text, "format" text, "owner" text, "language_rebroadcast" text ); ### SQL Given the database schema, here is the SQL query that answers `When vista radio is the owner what is the frequency? `: ```sql
SELECT "team" FROM "managerial_changes" WHERE "date_of_appointment"='5 September 2008' AND "date_of_vacancy"='30 August 2008';
## Task Generate a SQL query to answer the following question: `Name the team for 5 september 2008 for date of vacancy for 30 august 2008` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the team for 5 september 2008 for date of vacancy for 30 august 2008`: ```sql
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Daniel Uberti';
## Task Generate a SQL query to answer the following question: `Name the date of vacancy for daniel uberti` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date of vacancy for daniel uberti`: ```sql
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_vacancy"='25 August 2008';
## Task Generate a SQL query to answer the following question: `Name the manner of departure for date of vacancy 25 august 2008` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the manner of departure for date of vacancy 25 august 2008`: ```sql