output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("part_1") FROM "north_germanic" WHERE "verb_meaning"='to grow, to produce';
## Task Generate a SQL query to answer the following question: `How many verbs mean to grow, to produce` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "north_germanic" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `How many verbs mean to grow, to produce`: ```sql
SELECT "written_by" FROM "table1_17467578_1" WHERE "u_s_viewers_million"='3.96';
## Task Generate a SQL query to answer the following question: `Who wrote the episode "The Dream Lover", which was viewed by 3.96 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17467578_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode "The Dream Lover", which was viewed by 3.96 million viewers?`: ```sql
SELECT COUNT("original_airdate") FROM "table1_17467578_1" WHERE "episode_num"=8;
## Task Generate a SQL query to answer the following question: `What is the original air date of episode 8? Answer: Dec. 21, 2006` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17467578_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the original air date of episode 8? Answer: Dec. 21, 2006`: ```sql
SELECT "written_by" FROM "table1_17467578_1" WHERE "u_s_viewers_million"='3.73';
## Task Generate a SQL query to answer the following question: `Who wrote the episode "The Cold Turkey", which was viewed by 3.73 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17467578_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode "The Cold Turkey", which was viewed by 3.73 million viewers?`: ```sql
SELECT "production_code" FROM "table1_17467578_1" WHERE "directed_by"='Patrick Norris' AND "title"='\"The Night Moves\"';
## Task Generate a SQL query to answer the following question: `What is the production code of the episode "The Night Moves", which was directed by Patrick Norris?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17467578_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the production code of the episode "The Night Moves", which was directed by Patrick Norris?`: ```sql
SELECT "written_by" FROM "table1_17467578_1" WHERE "episode_num"=11;
## Task Generate a SQL query to answer the following question: `Who wrote episode 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17467578_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote episode 11?`: ```sql
SELECT "original_airdate" FROM "table1_17467578_1" WHERE "u_s_viewers_million"='3.73';
## Task Generate a SQL query to answer the following question: `What was the original airdate of the episode "The Cold Turkey", which was viewed by 3.73 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17467578_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the original airdate of the episode "The Cold Turkey", which was viewed by 3.73 million viewers?`: ```sql
SELECT "class" FROM "german" WHERE "part_3"='boten';
## Task Generate a SQL query to answer the following question: `Name the class for boten` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the class for boten`: ```sql
SELECT "part_3" FROM "german" WHERE "part_1"='treffen';
## Task Generate a SQL query to answer the following question: `Name the part 3 for treffen` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the part 3 for treffen`: ```sql
SELECT "part_1" FROM "german" WHERE "verb_meaning"='to give';
## Task Generate a SQL query to answer the following question: `Name the part one for to give` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the part one for to give`: ```sql
SELECT "class" FROM "german" WHERE "part_3"='schliefen';
## Task Generate a SQL query to answer the following question: `Name the class for schliefen` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the class for schliefen`: ```sql
SELECT "verb_meaning" FROM "german" WHERE "part_2"='half drosch';
## Task Generate a SQL query to answer the following question: `Name the verb meaning for half drosch` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the verb meaning for half drosch`: ```sql
SELECT "directed_by" FROM "table1_17467447_1" WHERE "production_code"='2T6267';
## Task Generate a SQL query to answer the following question: `If the product code is 2t6267, who was the director?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17467447_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `If the product code is 2t6267, who was the director?`: ```sql
SELECT "original_airdate" FROM "table1_17467447_1" WHERE "u_s_viewers_million"='5.50';
## Task Generate a SQL query to answer the following question: `What is the air date when the U.S. viewers was 5.50 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17467447_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the air date when the U.S. viewers was 5.50 million?`: ```sql
SELECT "written_by" FROM "table1_17467447_1" WHERE "production_code"='2T6268';
## Task Generate a SQL query to answer the following question: `Who were the writers for production code 2t6268?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17467447_1" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_airdate" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the writers for production code 2t6268?`: ```sql
SELECT COUNT("builder") FROM "table1_1748444_1" WHERE "number"='96';
## Task Generate a SQL query to answer the following question: `Name the number of builders for number 96` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1748444_1" ( "number" text, "builder" text, "type" text, "date_built" text, "heritage" text, "disposition" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of builders for number 96`: ```sql
SELECT "builder" FROM "table1_1748444_1" WHERE "date_built"='January 1910';
## Task Generate a SQL query to answer the following question: `Name the builder for date built is january 1910` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1748444_1" ( "number" text, "builder" text, "type" text, "date_built" text, "heritage" text, "disposition" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the builder for date built is january 1910`: ```sql
SELECT "disposition" FROM "table1_1748444_1" WHERE "date_built"='March 1909';
## Task Generate a SQL query to answer the following question: `Name the disposition for date built is march 1909` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1748444_1" ( "number" text, "builder" text, "type" text, "date_built" text, "heritage" text, "disposition" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the disposition for date built is march 1909`: ```sql
SELECT "title" FROM "table1_17482534_1" WHERE "no_in_series"='96';
## Task Generate a SQL query to answer the following question: `What is the title of episode number 96 in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17482534_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of episode number 96 in the series?`: ```sql
SELECT "no_in_season" FROM "table1_17482534_1" WHERE "directed_by"='Gene Stupnitsky';
## Task Generate a SQL query to answer the following question: `What number in season is the episode directed by Gene Stupnitsky?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17482534_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What number in season is the episode directed by Gene Stupnitsky?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_17482534_1" WHERE "written_by"='Warren Lieberstein & Halsted Sullivan';
## Task Generate a SQL query to answer the following question: `How many viewers did the episode written by Warren Lieberstein & Halsted Sullivan have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17482534_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many viewers did the episode written by Warren Lieberstein & Halsted Sullivan have?`: ```sql
SELECT COUNT("written_by") FROM "table1_17482534_1" WHERE "production_code"='5008';
## Task Generate a SQL query to answer the following question: `How many writers are listed for the episode with a production code of 5008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17482534_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many writers are listed for the episode with a production code of 5008?`: ```sql
SELECT "no_in_series" FROM "table1_17482534_1" WHERE "production_code"='5016/5017';
## Task Generate a SQL query to answer the following question: `What number in the series are the episodes with production code 5016/5017?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17482534_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What number in the series are the episodes with production code 5016/5017?`: ```sql
SELECT COUNT("location") FROM "sbn_mom_s_radio_stations" WHERE "callsign"='DXJP-FM';
## Task Generate a SQL query to answer the following question: `How many locations have the call signs dxjp-fm? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sbn_mom_s_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `How many locations have the call signs dxjp-fm? `: ```sql
SELECT "callsign" FROM "sbn_mom_s_radio_stations" WHERE "frequency"='90.3MHz';
## Task Generate a SQL query to answer the following question: `What is the call sign of the station with the frequency of 90.3mhz` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sbn_mom_s_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the call sign of the station with the frequency of 90.3mhz`: ```sql
SELECT "callsign" FROM "sbn_mom_s_radio_stations" WHERE "branding"='Mom''s Radio 101.5 Tacloban';
## Task Generate a SQL query to answer the following question: `What is the call sign for the station that uses the branding, mom's radio 101.5 tacloban?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sbn_mom_s_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the call sign for the station that uses the branding, mom's radio 101.5 tacloban?`: ```sql
SELECT "branding" FROM "sbn_mom_s_radio_stations" WHERE "location"='Cebu';
## Task Generate a SQL query to answer the following question: `What is the branding for stations located in Cebu? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sbn_mom_s_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the branding for stations located in Cebu? `: ```sql
SELECT "eagle_riders" FROM "table1_17480471_3" WHERE "ova_harmony_gold_dub"='Dr. Kozaburo Nambu';
## Task Generate a SQL query to answer the following question: `Which eagle riders whose ova (harmony gold dub) is dr. kozaburo nambu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17480471_3" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text ); ### SQL Given the database schema, here is the SQL query that answers `Which eagle riders whose ova (harmony gold dub) is dr. kozaburo nambu?`: ```sql
SELECT "battle_of_the_planets" FROM "table1_17480471_3" WHERE "ova_harmony_gold_dub"='Solaris';
## Task Generate a SQL query to answer the following question: `Which battle of the planets where ova (harmony gold dub) is solaris?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17480471_3" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text ); ### SQL Given the database schema, here is the SQL query that answers `Which battle of the planets where ova (harmony gold dub) is solaris?`: ```sql
SELECT "eagle_riders" FROM "table1_17480471_3" WHERE "battle_of_the_planets"='Zoltar';
## Task Generate a SQL query to answer the following question: `Which eagle riders have battle of the planets as zoltar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17480471_3" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text ); ### SQL Given the database schema, here is the SQL query that answers `Which eagle riders have battle of the planets as zoltar?`: ```sql
SELECT "gatchaman" FROM "table1_17480471_3" WHERE "eagle_riders"='Lukan';
## Task Generate a SQL query to answer the following question: ` Which gatchaman has eagle riders as lukan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17480471_3" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text ); ### SQL Given the database schema, here is the SQL query that answers ` Which gatchaman has eagle riders as lukan?`: ```sql
SELECT "eagle_riders" FROM "table1_17480471_3" WHERE "ova_harmony_gold_dub"='Lord Zortek';
## Task Generate a SQL query to answer the following question: `What eagle riders where ova (harmony gold dub) is lord zortek?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17480471_3" ( "gatchaman" text, "battle_of_the_planets" text, "g_force" text, "eagle_riders" text, "ova_harmony_gold_dub" text ); ### SQL Given the database schema, here is the SQL query that answers `What eagle riders where ova (harmony gold dub) is lord zortek?`: ```sql
SELECT "pregame_host" FROM "2010s" WHERE "network"='ESPN' AND "color_commentator"='Taylor Twellman';
## Task Generate a SQL query to answer the following question: `What pregame host was on espn and had taylor twellman color commentating?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator" text, "sideline_reporters" text, "pregame_host" text, "pregame_analysts" text ); ### SQL Given the database schema, here is the SQL query that answers `What pregame host was on espn and had taylor twellman color commentating?`: ```sql
SELECT "pregame_analysts" FROM "2010s" WHERE "sideline_reporters"='Rob Stone and Monica Gonzalez' AND "network"='TSN2';
## Task Generate a SQL query to answer the following question: `What pregame analyst(s) had rob stone and monica gonzalez as sideline reporters and were on tsn2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator" text, "sideline_reporters" text, "pregame_host" text, "pregame_analysts" text ); ### SQL Given the database schema, here is the SQL query that answers `What pregame analyst(s) had rob stone and monica gonzalez as sideline reporters and were on tsn2?`: ```sql
SELECT "color_commentator" FROM "2010s" WHERE "year"=2010;
## Task Generate a SQL query to answer the following question: `What color commentator(s) were in 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator" text, "sideline_reporters" text, "pregame_host" text, "pregame_analysts" text ); ### SQL Given the database schema, here is the SQL query that answers `What color commentator(s) were in 2010?`: ```sql
SELECT MAX("year") FROM "2010s" WHERE "sideline_reporters"='Rob Stone and Monica Gonzalez';
## Task Generate a SQL query to answer the following question: `What is the last year that had sideline reporters rob stone and monica gonzalez?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator" text, "sideline_reporters" text, "pregame_host" text, "pregame_analysts" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the last year that had sideline reporters rob stone and monica gonzalez?`: ```sql
SELECT "play_by_play" FROM "2010s" WHERE "network"='ESPN' AND "sideline_reporters"='Monica Gonzalez';
## Task Generate a SQL query to answer the following question: `Who had the play-by-play on espn with sideline reporter monica gonzalez?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010s" ( "year" real, "network" text, "play_by_play" text, "color_commentator" text, "sideline_reporters" text, "pregame_host" text, "pregame_analysts" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the play-by-play on espn with sideline reporter monica gonzalez?`: ```sql
SELECT "name" FROM "course" WHERE "number"=28;
## Task Generate a SQL query to answer the following question: `What was the name of race #28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "course" ( "number" real, "name" text, "kilometer" real, "location" text, "length_in_m" real, "average_climb_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the name of race #28?`: ```sql
SELECT MAX("number") FROM "course" WHERE "name"='Eyserweg';
## Task Generate a SQL query to answer the following question: `The Eyserweg race was which race #?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "course" ( "number" real, "name" text, "kilometer" real, "location" text, "length_in_m" real, "average_climb_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `The Eyserweg race was which race #?`: ```sql
SELECT "location" FROM "course" WHERE "average_climb_pct"=40;
## Task Generate a SQL query to answer the following question: `Which race had an average climb of 40%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "course" ( "number" real, "name" text, "kilometer" real, "location" text, "length_in_m" real, "average_climb_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `Which race had an average climb of 40%?`: ```sql
SELECT MAX("length_in_m") FROM "course" WHERE "name"='Keutenberg';
## Task Generate a SQL query to answer the following question: `The Keutenberg race had what race length?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "course" ( "number" real, "name" text, "kilometer" real, "location" text, "length_in_m" real, "average_climb_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `The Keutenberg race had what race length?`: ```sql
SELECT MIN("champions_league") FROM "top_assister";
## Task Generate a SQL query to answer the following question: `In the Champions league, what is the Minimum` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_assister" ( "p" real, "player" text, "position" text, "league" real, "copa_del_rey" real, "champions_league" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `In the Champions league, what is the Minimum`: ```sql
SELECT COUNT("champions_league") FROM "top_assister" WHERE "position"='Forward' AND "league"<6.0;
## Task Generate a SQL query to answer the following question: `In the Champions league is the forward position smaller than 6.0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_assister" ( "p" real, "player" text, "position" text, "league" real, "copa_del_rey" real, "champions_league" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `In the Champions league is the forward position smaller than 6.0`: ```sql
SELECT MIN("league") FROM "top_assister" WHERE "total"=8 AND "copa_del_rey"=0;
## Task Generate a SQL query to answer the following question: `when the total is 8 and copa del rey is 0 what is the minimum league` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_assister" ( "p" real, "player" text, "position" text, "league" real, "copa_del_rey" real, "champions_league" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `when the total is 8 and copa del rey is 0 what is the minimum league`: ```sql
SELECT COUNT("champions_league") FROM "top_assister" WHERE "league"=5 AND "position"='Forward';
## Task Generate a SQL query to answer the following question: `when the position is forward and the league is 5 what number is the Champion league` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_assister" ( "p" real, "player" text, "position" text, "league" real, "copa_del_rey" real, "champions_league" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `when the position is forward and the league is 5 what number is the Champion league`: ```sql
SELECT COUNT("total") FROM "top_assister" WHERE "p">4.0;
## Task Generate a SQL query to answer the following question: `if p is bigger than 4.0 what is total number` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_assister" ( "p" real, "player" text, "position" text, "league" real, "copa_del_rey" real, "champions_league" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `if p is bigger than 4.0 what is total number`: ```sql
SELECT "2008_status" FROM "match_up_summary" WHERE "democratic"='Glenn Nye';
## Task Generate a SQL query to answer the following question: `What was the 2008 election status when glenn nye was the running democrat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "independent_green" text, "libertarian" text, "other_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the 2008 election status when glenn nye was the running democrat?`: ```sql
SELECT "republican" FROM "match_up_summary" WHERE "incumbent"='Thelma Drake';
## Task Generate a SQL query to answer the following question: `Who was the republican candidate in the race with incumbent thelma drake?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "independent_green" text, "libertarian" text, "other_party" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the republican candidate in the race with incumbent thelma drake?`: ```sql
SELECT COUNT("district") FROM "match_up_summary" WHERE "republican"='Bob Goodlatte';
## Task Generate a SQL query to answer the following question: `How many districts had republican Bob Goodlatte as a candidate?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "independent_green" text, "libertarian" text, "other_party" text ); ### SQL Given the database schema, here is the SQL query that answers `How many districts had republican Bob Goodlatte as a candidate?`: ```sql
SELECT "democratic" FROM "match_up_summary" WHERE "republican"='Frank Wolf';
## Task Generate a SQL query to answer the following question: `Who was the democratic candidate when the republican was frank wolf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "independent_green" text, "libertarian" text, "other_party" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the democratic candidate when the republican was frank wolf?`: ```sql
SELECT COUNT("won") FROM "league_table" WHERE "points_against"='410';
## Task Generate a SQL query to answer the following question: `How many won when points against is 410?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many won when points against is 410?`: ```sql
SELECT "bonus_points" FROM "league_table" WHERE "points_for"='385';
## Task Generate a SQL query to answer the following question: `How many bonus points are there when points for is 385?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many bonus points are there when points for is 385?`: ```sql
SELECT COUNT("club") FROM "league_table" WHERE "points"='62';
## Task Generate a SQL query to answer the following question: `How many clubs have 62 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many clubs have 62 points?`: ```sql
SELECT "bonus_points" FROM "league_table" WHERE "won"='5';
## Task Generate a SQL query to answer the following question: `How many bonus points were won by 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many bonus points were won by 5?`: ```sql
SELECT "played" FROM "league_table" WHERE "points_for"='362';
## Task Generate a SQL query to answer the following question: `How many have been played for 362 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many have been played for 362 points?`: ```sql
SELECT "points_against" FROM "league_table" WHERE "lost"='13';
## Task Generate a SQL query to answer the following question: `How many points against have a lose of 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points against have a lose of 13?`: ```sql
SELECT MAX("level") FROM "calculations";
## Task Generate a SQL query to answer the following question: `What is the highest possible level?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calculations" ( "level" real, "shuttles" real, "cumulative_shuttles" real, "speed_km_h" text, "shuttle_time_seconds" text, "total_level_time_s" text, "distance_m" real, "cumulative_distance_m" real, "cumulative_time_min_and_seconds" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest possible level?`: ```sql
SELECT "shuttle_time_seconds" FROM "calculations" WHERE "speed_km_h"='15.5';
## Task Generate a SQL query to answer the following question: `What is the shuttle time for the level where the speed is 15.5 km/h?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calculations" ( "level" real, "shuttles" real, "cumulative_shuttles" real, "speed_km_h" text, "shuttle_time_seconds" text, "total_level_time_s" text, "distance_m" real, "cumulative_distance_m" real, "cumulative_time_min_and_seconds" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the shuttle time for the level where the speed is 15.5 km/h?`: ```sql
SELECT MIN("shuttles") FROM "calculations" WHERE "shuttle_time_seconds"='6.55';
## Task Generate a SQL query to answer the following question: `What is the fewest number of shuttles where the shuttle time is 6.55 seconds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calculations" ( "level" real, "shuttles" real, "cumulative_shuttles" real, "speed_km_h" text, "shuttle_time_seconds" text, "total_level_time_s" text, "distance_m" real, "cumulative_distance_m" real, "cumulative_time_min_and_seconds" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest number of shuttles where the shuttle time is 6.55 seconds?`: ```sql
SELECT MIN("distance_m") FROM "calculations" WHERE "shuttle_time_seconds"='6.86';
## Task Generate a SQL query to answer the following question: `What is the distance (in meters) when the shuttle time is 6.86 seconds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calculations" ( "level" real, "shuttles" real, "cumulative_shuttles" real, "speed_km_h" text, "shuttle_time_seconds" text, "total_level_time_s" text, "distance_m" real, "cumulative_distance_m" real, "cumulative_time_min_and_seconds" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the distance (in meters) when the shuttle time is 6.86 seconds?`: ```sql
SELECT COUNT("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_joe_kenney"='31%';
## Task Generate a SQL query to answer the following question: `Name the number of lead margin for republican joe kenney being 31%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_john_lynch" text, "republican_joe_kenney" text, "lead_margin" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of lead margin for republican joe kenney being 31%`: ```sql
SELECT "democrat_john_lynch" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_joe_kenney"='27%';
## Task Generate a SQL query to answer the following question: `Namethe democrat john lynch for joe kenney being 27%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_john_lynch" text, "republican_joe_kenney" text, "lead_margin" real ); ### SQL Given the database schema, here is the SQL query that answers `Namethe democrat john lynch for joe kenney being 27%`: ```sql
SELECT "poll_source" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_joe_kenney"='28%';
## Task Generate a SQL query to answer the following question: `Name the poll source for republican joe kenney being 28%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_john_lynch" text, "republican_joe_kenney" text, "lead_margin" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the poll source for republican joe kenney being 28%`: ```sql
SELECT "lead_margin" FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_john_lynch"='62%';
## Task Generate a SQL query to answer the following question: `Name the lead margin for democrat john lynch being 62%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_john_lynch" text, "republican_joe_kenney" text, "lead_margin" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the lead margin for democrat john lynch being 62%`: ```sql
SELECT MAX("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_joe_kenney"='23%';
## Task Generate a SQL query to answer the following question: `Name the most lead margin for republican joe kenney being 23%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_john_lynch" text, "republican_joe_kenney" text, "lead_margin" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most lead margin for republican joe kenney being 23%`: ```sql
SELECT MAX("3rd_ru") FROM "by_country_tally" WHERE "country"='Costa Rica';
## Task Generate a SQL query to answer the following question: `How many 3rd ru does Costa Rica have? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_country_tally" ( "rank" real, "country" text, "miss_united_continent" real, "virreina" real, "1st_ru" real, "2nd_ru" real, "3rd_ru" real, "4th_ru" real, "semifinalists" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many 3rd ru does Costa Rica have? `: ```sql
SELECT COUNT("3rd_ru") FROM "by_country_tally" WHERE "country"='Canada';
## Task Generate a SQL query to answer the following question: `How many 3rd ru does Canada have? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_country_tally" ( "rank" real, "country" text, "miss_united_continent" real, "virreina" real, "1st_ru" real, "2nd_ru" real, "3rd_ru" real, "4th_ru" real, "semifinalists" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many 3rd ru does Canada have? `: ```sql
SELECT MIN("miss_united_continent") FROM "by_country_tally";
## Task Generate a SQL query to answer the following question: `What is the least number of miss united continents? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_country_tally" ( "rank" real, "country" text, "miss_united_continent" real, "virreina" real, "1st_ru" real, "2nd_ru" real, "3rd_ru" real, "4th_ru" real, "semifinalists" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the least number of miss united continents? `: ```sql
SELECT "poll_source" FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_jay_nixon"='54%' AND "lead_margin"='17';
## Task Generate a SQL query to answer the following question: `Who's the poll source that claimed the Lead Margin was 17 and the Democrat: Jay Nixon had 54% of the votes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_jay_nixon" text, "republican_kenny_hulshof" text, "lead_margin" text ); ### SQL Given the database schema, here is the SQL query that answers `Who's the poll source that claimed the Lead Margin was 17 and the Democrat: Jay Nixon had 54% of the votes?`: ```sql
SELECT "poll_source" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_kenny_hulshof"='43%';
## Task Generate a SQL query to answer the following question: `What poll source claimed that Republican: Kenny Hulshof had 43%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_jay_nixon" text, "republican_kenny_hulshof" text, "lead_margin" text ); ### SQL Given the database schema, here is the SQL query that answers `What poll source claimed that Republican: Kenny Hulshof had 43%?`: ```sql
SELECT COUNT("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "dates_administered"='September 11, 2008';
## Task Generate a SQL query to answer the following question: `How many different lead margins were stated in the poll administered on September 11, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_jay_nixon" text, "republican_kenny_hulshof" text, "lead_margin" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different lead margins were stated in the poll administered on September 11, 2008?`: ```sql
SELECT "republican_kenny_hulshof" FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_jay_nixon"='48%';
## Task Generate a SQL query to answer the following question: `What percentage was claimed that Republican: Kenny Hulshof got in the poll that also claimed Democrat: Jay Nixon got 48%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_jay_nixon" text, "republican_kenny_hulshof" text, "lead_margin" text ); ### SQL Given the database schema, here is the SQL query that answers `What percentage was claimed that Republican: Kenny Hulshof got in the poll that also claimed Democrat: Jay Nixon got 48%?`: ```sql
SELECT "common_name" FROM "description" WHERE "scientific_name"='Rhampholeon spectrum';
## Task Generate a SQL query to answer the following question: `Name the common name for rhampholeon spectrum ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "description" ( "scientific_name" text, "common_name" text, "length_male" text, "length_female" text, "color" text, "lifespan_years" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the common name for rhampholeon spectrum `: ```sql
SELECT "scientific_name" FROM "description" WHERE "common_name"='Veiled chameleon';
## Task Generate a SQL query to answer the following question: `Name the scientific name for veiled chameleon` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "description" ( "scientific_name" text, "common_name" text, "length_male" text, "length_female" text, "color" text, "lifespan_years" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the scientific name for veiled chameleon`: ```sql
SELECT "common_name" FROM "description" WHERE "scientific_name"='Furcifer pardalis';
## Task Generate a SQL query to answer the following question: `Name the common name for furcifer pardalis` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "description" ( "scientific_name" text, "common_name" text, "length_male" text, "length_female" text, "color" text, "lifespan_years" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the common name for furcifer pardalis`: ```sql
SELECT COUNT("color") FROM "description" WHERE "scientific_name"='Furcifer pardalis';
## Task Generate a SQL query to answer the following question: `Name the number of color for furcifer pardalis` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "description" ( "scientific_name" text, "common_name" text, "length_male" text, "length_female" text, "color" text, "lifespan_years" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of color for furcifer pardalis`: ```sql
SELECT COUNT("international_freight") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "domestic_mail"=260;
## Task Generate a SQL query to answer the following question: `Name the number of international frieghts for domestic mail of 260` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" ( "year" real, "domestic_freight" real, "domestic_mail" real, "international_freight" real, "international_mail" real, "total_freight_and_mail" real, "change" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of international frieghts for domestic mail of 260`: ```sql
SELECT COUNT("domestic_mail") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "total_freight_and_mail"=7853;
## Task Generate a SQL query to answer the following question: `Name the total number of domestic mail for 7853 for total frieght and mail` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" ( "year" real, "domestic_freight" real, "domestic_mail" real, "international_freight" real, "international_mail" real, "total_freight_and_mail" real, "change" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of domestic mail for 7853 for total frieght and mail`: ```sql
SELECT COUNT("domestic_freight") FROM "loaded_unloaded_freight_and_mail_tons_tu" WHERE "international_mail">1.0 AND "domestic_mail"=260;
## Task Generate a SQL query to answer the following question: `Namw the total number for domestic freight for international mail is larger than 1.0 with domestic mail for 260` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loaded_unloaded_freight_and_mail_tons_tu" ( "year" real, "domestic_freight" real, "domestic_mail" real, "international_freight" real, "international_mail" real, "total_freight_and_mail" real, "change" text ); ### SQL Given the database schema, here is the SQL query that answers `Namw the total number for domestic freight for international mail is larger than 1.0 with domestic mail for 260`: ```sql
SELECT MAX("othersnum") FROM "by_county";
## Task Generate a SQL query to answer the following question: `What was the highest vote for others?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real, "2000_result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest vote for others?`: ```sql
SELECT "kerrypct" FROM "by_county" WHERE "2000_result"='+2.5';
## Task Generate a SQL query to answer the following question: `When the result was +2.5, what were the kerry%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real, "2000_result" text ); ### SQL Given the database schema, here is the SQL query that answers `When the result was +2.5, what were the kerry%?`: ```sql
SELECT "kerrypct" FROM "by_county" WHERE "kerrynum"=199060;
## Task Generate a SQL query to answer the following question: `When Kerry# was 199060, what was the percentage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real, "2000_result" text ); ### SQL Given the database schema, here is the SQL query that answers `When Kerry# was 199060, what was the percentage?`: ```sql
SELECT MAX("bushnum") FROM "by_county";
## Task Generate a SQL query to answer the following question: `What was the highest vote number for Bush?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real, "2000_result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest vote number for Bush?`: ```sql
SELECT "kerrypct" FROM "by_county" WHERE "2000_result"='+1.6';
## Task Generate a SQL query to answer the following question: `When the 200 result was +1.6, what was the percentage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real, "2000_result" text ); ### SQL Given the database schema, here is the SQL query that answers `When the 200 result was +1.6, what was the percentage?`: ```sql
SELECT COUNT("transfer_window") FROM "in" WHERE "moving_from"='Crystal Palace';
## Task Generate a SQL query to answer the following question: `How many transfer windows coming from Crystal Palace?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `How many transfer windows coming from Crystal Palace?`: ```sql
SELECT "country" FROM "in" WHERE "p"='GK';
## Task Generate a SQL query to answer the following question: `What country has a P of GK?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `What country has a P of GK?`: ```sql
SELECT "p" FROM "in" WHERE "moving_from"='Everton';
## Task Generate a SQL query to answer the following question: `What is the P for the player moving from Everton?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the P for the player moving from Everton?`: ```sql
SELECT "competition" FROM "table1_17594659_1" WHERE "opposition"='Panathinaikos';
## Task Generate a SQL query to answer the following question: `Name the competition of panathinaikos` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17594659_1" ( "season" text, "competition" text, "round" text, "opposition" text, "first_leg" text, "second_leg" text, "aggregate" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the competition of panathinaikos`: ```sql
SELECT "viewers_in_millions" FROM "u_s_television_ratings" WHERE "ranking"='#51' AND "timeslot"='Tuesday 9:00 p.m.';
## Task Generate a SQL query to answer the following question: `What is every value for viewers for ranking #51 for the Tuesday 9:00 p.m. timeslot?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_television_ratings" ( "season" text, "timeslot" text, "premiere" text, "finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every value for viewers for ranking #51 for the Tuesday 9:00 p.m. timeslot?`: ```sql
SELECT "finale" FROM "u_s_television_ratings" WHERE "timeslot"='Tuesday 9:30 p.m.';
## Task Generate a SQL query to answer the following question: `What finales took place in the Tuesday 9:30 p.m. timeslot?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_television_ratings" ( "season" text, "timeslot" text, "premiere" text, "finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What finales took place in the Tuesday 9:30 p.m. timeslot?`: ```sql
SELECT "premiere" FROM "u_s_television_ratings" WHERE "finale"='May 25, 2004';
## Task Generate a SQL query to answer the following question: `What premieres had a finale on May 25, 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_television_ratings" ( "season" text, "timeslot" text, "premiere" text, "finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What premieres had a finale on May 25, 2004?`: ```sql
SELECT "season" FROM "u_s_television_ratings" WHERE "finale"='May 25, 2004';
## Task Generate a SQL query to answer the following question: `What seasons had a finale on May 25, 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_television_ratings" ( "season" text, "timeslot" text, "premiere" text, "finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What seasons had a finale on May 25, 2004?`: ```sql
SELECT "season" FROM "u_s_television_ratings" WHERE "ranking"='#47';
## Task Generate a SQL query to answer the following question: `What seasons had a ranking of #47?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_television_ratings" ( "season" text, "timeslot" text, "premiere" text, "finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What seasons had a ranking of #47?`: ```sql
SELECT "viewers_in_millions" FROM "u_s_television_ratings" WHERE "season"='1st';
## Task Generate a SQL query to answer the following question: `What are all values for viewers for 1st season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_television_ratings" ( "season" text, "timeslot" text, "premiere" text, "finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What are all values for viewers for 1st season?`: ```sql
SELECT "date_withdrawn" FROM "l_class_locomotive_fleet_summary" WHERE "secr_no"=771;
## Task Generate a SQL query to answer the following question: `What is the withdraw date for secr no. 771?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "l_class_locomotive_fleet_summary" ( "secr_no" real, "sr_no" real, "br_no" real, "builder" text, "date_delivered" text, "date_withdrawn" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the withdraw date for secr no. 771?`: ```sql
SELECT "builder" FROM "l_class_locomotive_fleet_summary" WHERE "br_no"=31779;
## Task Generate a SQL query to answer the following question: `Who is the builder for br no. 31779?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "l_class_locomotive_fleet_summary" ( "secr_no" real, "sr_no" real, "br_no" real, "builder" text, "date_delivered" text, "date_withdrawn" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the builder for br no. 31779?`: ```sql
SELECT "country" FROM "loans_in" WHERE "loan_club"='Fulham';
## Task Generate a SQL query to answer the following question: `what ist he country where the loan club is fulham?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loans_in" ( "no" real, "p" text, "name" text, "country" text, "age" real, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text ); ### SQL Given the database schema, here is the SQL query that answers `what ist he country where the loan club is fulham?`: ```sql
SELECT COUNT("age") FROM "loans_in" WHERE "started"='6 November';
## Task Generate a SQL query to answer the following question: `what ist he total number of ages where the start date is 6 november?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loans_in" ( "no" real, "p" text, "name" text, "country" text, "age" real, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text ); ### SQL Given the database schema, here is the SQL query that answers `what ist he total number of ages where the start date is 6 november?`: ```sql
SELECT "title" FROM "table1_17624965_1" WHERE "production_code"=618;
## Task Generate a SQL query to answer the following question: `What was the name of eipsode 618?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17624965_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the name of eipsode 618?`: ```sql
SELECT "original_air_date" FROM "table1_17624965_1" WHERE "title"='\"Secrets\"';
## Task Generate a SQL query to answer the following question: `When did "secrets" air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17624965_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `When did "secrets" air?`: ```sql