output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("title") FROM "official_callanetics_dv_ds_by_callan_pin" WHERE "catalog_number"='CAL04 / 0091037553546';
## Task Generate a SQL query to answer the following question: `How many times was the catalog number cal04 / 0091037553546?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_callanetics_dv_ds_by_callan_pin" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times was the catalog number cal04 / 0091037553546?`: ```sql
SELECT COUNT("copyright_information") FROM "official_callanetics_dv_ds_by_callan_pin" WHERE "catalog_number"='CAL04 / 0091037553546';
## Task Generate a SQL query to answer the following question: `how many times was the catalog number cal04 / 0091037553546?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_callanetics_dv_ds_by_callan_pin" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times was the catalog number cal04 / 0091037553546?`: ```sql
SELECT COUNT("copyright_information") FROM "official_callanetics_dv_ds_by_callan_pin" WHERE "catalog_number"='CAL01 / 0091037137319';
## Task Generate a SQL query to answer the following question: `how many times was the catalog number cal01 / 0091037137319?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_callanetics_dv_ds_by_callan_pin" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times was the catalog number cal01 / 0091037137319?`: ```sql
SELECT COUNT("title") FROM "official_callanetics_dv_ds_by_callan_pin" WHERE "catalog_number"='CAL05 / 0091037137357';
## Task Generate a SQL query to answer the following question: `how many times was the catalog number cal05 / 0091037137357?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_callanetics_dv_ds_by_callan_pin" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times was the catalog number cal05 / 0091037137357?`: ```sql
SELECT "directed_by" FROM "table1_27332038_1" WHERE "written_by"='Elaine Ko';
## Task Generate a SQL query to answer the following question: `who directed the episode that elaine ko wrote?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27332038_1" ( "no_in_series" real, "no_in_season" real, "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 `who directed the episode that elaine ko wrote?`: ```sql
SELECT "original_air_date" FROM "table1_27332038_1" WHERE "production_code"='2ARG01';
## Task Generate a SQL query to answer the following question: `when was the episode with production code "2arg01" originally aired?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27332038_1" ( "no_in_series" real, "no_in_season" real, "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 `when was the episode with production code "2arg01" originally aired?`: ```sql
SELECT "title" FROM "table1_27332038_1" WHERE "production_code"='2ARG09';
## Task Generate a SQL query to answer the following question: `what is the title of the episode with production code "2arg09"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27332038_1" ( "no_in_series" real, "no_in_season" real, "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 the episode with production code "2arg09"?`: ```sql
SELECT "original_air_date" FROM "table1_27332038_1" WHERE "production_code"='2ARG24';
## Task Generate a SQL query to answer the following question: `when was the episode with production code "2arg24" originally aired?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27332038_1" ( "no_in_series" real, "no_in_season" real, "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 `when was the episode with production code "2arg24" originally aired?`: ```sql
SELECT "episode" FROM "series_7_2013" WHERE "share_pct"='41.5';
## Task Generate a SQL query to answer the following question: `What episode had a share percentage of 41.5%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7_2013" ( "episode" text, "date" text, "official_itv_rating_millions" text, "weekly_rank" real, "share_pct" text, "official_itv_hd_rating_millions" text, "total_itv_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode had a share percentage of 41.5%?`: ```sql
SELECT "date" FROM "series_7_2013" WHERE "weekly_rank"=12;
## Task Generate a SQL query to answer the following question: `What date was the show's weekly ranking 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7_2013" ( "episode" text, "date" text, "official_itv_rating_millions" text, "weekly_rank" real, "share_pct" text, "official_itv_hd_rating_millions" text, "total_itv_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the show's weekly ranking 12?`: ```sql
SELECT "total_itv_viewers_millions" FROM "series_7_2013" WHERE "official_itv_rating_millions"='10.24';
## Task Generate a SQL query to answer the following question: `How many total itv viewers were there for the episode with official itv ratings of 10.24 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7_2013" ( "episode" text, "date" text, "official_itv_rating_millions" text, "weekly_rank" real, "share_pct" text, "official_itv_hd_rating_millions" text, "total_itv_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many total itv viewers were there for the episode with official itv ratings of 10.24 million?`: ```sql
SELECT "total_itv_viewers_millions" FROM "series_7_2013" WHERE "official_itv_hd_rating_millions"='1.12';
## Task Generate a SQL query to answer the following question: `How many total itv viewers were there for the episode with official itv hd ratings of 1.12 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7_2013" ( "episode" text, "date" text, "official_itv_rating_millions" text, "weekly_rank" real, "share_pct" text, "official_itv_hd_rating_millions" text, "total_itv_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many total itv viewers were there for the episode with official itv hd ratings of 1.12 million?`: ```sql
SELECT "official_itv_rating_millions" FROM "series_7_2013" WHERE "total_itv_viewers_millions"='8.53';
## Task Generate a SQL query to answer the following question: `What were the official itv ratings in millions for the episode with a total of 8.53 million itv viewers` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7_2013" ( "episode" text, "date" text, "official_itv_rating_millions" text, "weekly_rank" real, "share_pct" text, "official_itv_hd_rating_millions" text, "total_itv_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the official itv ratings in millions for the episode with a total of 8.53 million itv viewers`: ```sql
SELECT "official_itv_rating_millions" FROM "series_7_2013" WHERE "episode"='Semi-final 5';
## Task Generate a SQL query to answer the following question: `What were the official itv ratings in millions for semi-final 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7_2013" ( "episode" text, "date" text, "official_itv_rating_millions" text, "weekly_rank" real, "share_pct" text, "official_itv_hd_rating_millions" text, "total_itv_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the official itv ratings in millions for semi-final 5?`: ```sql
SELECT "club" FROM "personnel_and_sponsoring" WHERE "chairman"='Roger Lambrecht';
## Task Generate a SQL query to answer the following question: `What is the club when the chairman is roger lambrecht?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "club" text, "chairman" text, "current_manager" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the club when the chairman is roger lambrecht?`: ```sql
SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "shirt_sponsor"='Quick';
## Task Generate a SQL query to answer the following question: `What is the team captain when the shirt sponser is quick?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "club" text, "chairman" text, "current_manager" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the team captain when the shirt sponser is quick?`: ```sql
SELECT "chairman" FROM "personnel_and_sponsoring" WHERE "current_manager"='Bob Peeters';
## Task Generate a SQL query to answer the following question: `Who is the chairman when the current manager is bob peeters?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "club" text, "chairman" text, "current_manager" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the chairman when the current manager is bob peeters?`: ```sql
SELECT "club" FROM "personnel_and_sponsoring" WHERE "shirt_sponsor"='e-lotto.be';
## Task Generate a SQL query to answer the following question: `What is the club when the shirt sponsor is e-lotto.be?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "club" text, "chairman" text, "current_manager" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the club when the shirt sponsor is e-lotto.be?`: ```sql
SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "club"='K.F.C. Germinal Beerschot';
## Task Generate a SQL query to answer the following question: `Who is the team captain when the club is k.f.c. germinal beerschot?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "club" text, "chairman" text, "current_manager" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the team captain when the club is k.f.c. germinal beerschot?`: ```sql
SELECT "varsity_name" FROM "r_seau_du_sport_tudiant_du_qu_bec" WHERE "university"='McGill University';
## Task Generate a SQL query to answer the following question: `What is the varsity name of the university of mcgill university?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec" ( "university" text, "varsity_name" text, "city" text, "province" text, "founded" real, "soccer_stadium" text, "stadium_capacity" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the varsity name of the university of mcgill university?`: ```sql
SELECT "soccer_stadium" FROM "r_seau_du_sport_tudiant_du_qu_bec" WHERE "varsity_name"='Citadins';
## Task Generate a SQL query to answer the following question: `What is the soccer stadium with the varsity name is citadins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec" ( "university" text, "varsity_name" text, "city" text, "province" text, "founded" real, "soccer_stadium" text, "stadium_capacity" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the soccer stadium with the varsity name is citadins?`: ```sql
SELECT "province" FROM "r_seau_du_sport_tudiant_du_qu_bec" WHERE "soccer_stadium"='terrain #2 of Complexe sportif Claude-Robillard';
## Task Generate a SQL query to answer the following question: `What is the province where the soccer statium is terrain #2 of complexe sportif claude-robillard?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec" ( "university" text, "varsity_name" text, "city" text, "province" text, "founded" real, "soccer_stadium" text, "stadium_capacity" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the province where the soccer statium is terrain #2 of complexe sportif claude-robillard?`: ```sql
SELECT "province" FROM "r_seau_du_sport_tudiant_du_qu_bec" WHERE "stadium_capacity"=5100;
## Task Generate a SQL query to answer the following question: `What is the province for with the stadium capacity of 5100?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec" ( "university" text, "varsity_name" text, "city" text, "province" text, "founded" real, "soccer_stadium" text, "stadium_capacity" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the province for with the stadium capacity of 5100?`: ```sql
SELECT "university" FROM "r_seau_du_sport_tudiant_du_qu_bec" WHERE "soccer_stadium"='terrain #2 of Complexe sportif Claude-Robillard';
## Task Generate a SQL query to answer the following question: `What is the university where the soccer stadium is terrain #2 of complexe sportif claude-robillard?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec" ( "university" text, "varsity_name" text, "city" text, "province" text, "founded" real, "soccer_stadium" text, "stadium_capacity" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the university where the soccer stadium is terrain #2 of complexe sportif claude-robillard?`: ```sql
SELECT "date_of_appointment" FROM "during_regular_season" WHERE "replaced_by"='Hugo Broos';
## Task Generate a SQL query to answer the following question: `When was the date of appointment by Hugo Broos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "during_regular_season" ( "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 `When was the date of appointment by Hugo Broos?`: ```sql
SELECT COUNT("date_of_vacancy") FROM "during_regular_season" WHERE "outgoing_manager"='Bart De Roover';
## Task Generate a SQL query to answer the following question: `How many times did outgoing manager Bart de Roover vacated a position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "during_regular_season" ( "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 `How many times did outgoing manager Bart de Roover vacated a position?`: ```sql
SELECT "outgoing_manager" FROM "during_regular_season" WHERE "manner_of_departure"='Sacked' AND "position_in_table"='15th';
## Task Generate a SQL query to answer the following question: `Who was the outgoing manager of the team in 15th position that was sacked?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "during_regular_season" ( "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 `Who was the outgoing manager of the team in 15th position that was sacked?`: ```sql
SELECT "position_in_table" FROM "during_regular_season" WHERE "outgoing_manager"='Danny Ost';
## Task Generate a SQL query to answer the following question: `What was the team's position in table when Danny OST was the outgoing manager?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "during_regular_season" ( "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 `What was the team's position in table when Danny OST was the outgoing manager?`: ```sql
SELECT MAX("num") FROM "ratings" WHERE "viewers_m"='8.01';
## Task Generate a SQL query to answer the following question: `how many maximum # when viewers (m) is 8.01` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" text, "18_49_rating_share" text, "viewers_m" text, "weekly_rank_num" text ); ### SQL Given the database schema, here is the SQL query that answers `how many maximum # when viewers (m) is 8.01`: ```sql
SELECT "18_49_rating_share" FROM "ratings" WHERE "viewers_m"='7.35';
## Task Generate a SQL query to answer the following question: `how many number 18-49 (rating/share) when viewers (m) is 7.35` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" text, "18_49_rating_share" text, "viewers_m" text, "weekly_rank_num" text ); ### SQL Given the database schema, here is the SQL query that answers `how many number 18-49 (rating/share) when viewers (m) is 7.35`: ```sql
SELECT "air_date" FROM "ratings" WHERE "episode"='\"Take Two\"';
## Task Generate a SQL query to answer the following question: `what is episode "take two" air date` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" text, "18_49_rating_share" text, "viewers_m" text, "weekly_rank_num" text ); ### SQL Given the database schema, here is the SQL query that answers `what is episode "take two" air date`: ```sql
SELECT "18_49_rating_share" FROM "ratings" WHERE "air_date"='October 14, 2010';
## Task Generate a SQL query to answer the following question: `when air date is october 14, 2010 what are all 18-49 (rating/share date.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" text, "18_49_rating_share" text, "viewers_m" text, "weekly_rank_num" text ); ### SQL Given the database schema, here is the SQL query that answers `when air date is october 14, 2010 what are all 18-49 (rating/share date.`: ```sql
SELECT COUNT("outgoing_manager") FROM "during_summer_break" WHERE "replaced_by"='Bob Peeters';
## Task Generate a SQL query to answer the following question: `How many outgoing managers were replaced by Bob Peeters?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "during_summer_break" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `How many outgoing managers were replaced by Bob Peeters?`: ```sql
SELECT "replaced_by" FROM "during_summer_break" WHERE "outgoing_manager"='Michel Preud''homme';
## Task Generate a SQL query to answer the following question: `Who replaced Michel Preud'homme?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "during_summer_break" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `Who replaced Michel Preud'homme?`: ```sql
SELECT "manner_of_departure" FROM "during_summer_break" WHERE "team"='Cercle Brugge';
## Task Generate a SQL query to answer the following question: `What was the manner of departure for the manager of Cercle Brugge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "during_summer_break" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the manner of departure for the manager of Cercle Brugge?`: ```sql
SELECT "outgoing_manager" FROM "during_summer_break" WHERE "team"='Charleroi';
## Task Generate a SQL query to answer the following question: `Who was the outgoing manager of Charleroi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "during_summer_break" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the outgoing manager of Charleroi?`: ```sql
SELECT "shirt_sponsor" FROM "personnel_and_sponsoring" WHERE "head_coach"='Samad Marfavi';
## Task Generate a SQL query to answer the following question: `What sponsor has the head coach Samad Marfavi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kit_maker" text, "shirt_sponsor" text, "past_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What sponsor has the head coach Samad Marfavi?`: ```sql
SELECT "shirt_sponsor" FROM "personnel_and_sponsoring" WHERE "kit_maker"='Merooj' AND "team_captain"='Pejman Nouri';
## Task Generate a SQL query to answer the following question: `What sponsor has merooj kit maker and captain Pejman Nouri?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kit_maker" text, "shirt_sponsor" text, "past_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What sponsor has merooj kit maker and captain Pejman Nouri?`: ```sql
SELECT "team" FROM "personnel_and_sponsoring" WHERE "head_coach"='Ali Daei';
## Task Generate a SQL query to answer the following question: `Which team has Ali Daei as head coach?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kit_maker" text, "shirt_sponsor" text, "past_season" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team has Ali Daei as head coach?`: ```sql
SELECT "kit_maker" FROM "personnel_and_sponsoring" WHERE "team"='Foolad';
## Task Generate a SQL query to answer the following question: `What is the kit maker for team foolad?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kit_maker" text, "shirt_sponsor" text, "past_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the kit maker for team foolad?`: ```sql
SELECT COUNT("head_coach") FROM "personnel_and_sponsoring" WHERE "team_captain"='Darius Mikaeili';
## Task Generate a SQL query to answer the following question: `How many head coaches named Darius Mikaeili?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kit_maker" text, "shirt_sponsor" text, "past_season" text ); ### SQL Given the database schema, here is the SQL query that answers `How many head coaches named Darius Mikaeili?`: ```sql
SELECT "outgoing_head_coach" FROM "in_season" WHERE "incoming_head_coach"='Abdollah Veysi';
## Task Generate a SQL query to answer the following question: `Who is the outgoing head coach when the incoming head coach is abdollah veysi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in_season" ( "team" text, "outgoing_head_coach" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" real, "incoming_head_coach" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the outgoing head coach when the incoming head coach is abdollah veysi?`: ```sql
SELECT "date_of_appointment" FROM "in_season" WHERE "position_in_table"=16;
## Task Generate a SQL query to answer the following question: `When is the date of appointment when the position in table is 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in_season" ( "team" text, "outgoing_head_coach" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" real, "incoming_head_coach" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `When is the date of appointment when the position in table is 16?`: ```sql
SELECT COUNT("team") FROM "in_season" WHERE "incoming_head_coach"='Abdollah Veysi';
## Task Generate a SQL query to answer the following question: `How many times is the incoming head coach abdollah veysi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in_season" ( "team" text, "outgoing_head_coach" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" real, "incoming_head_coach" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times is the incoming head coach abdollah veysi?`: ```sql
SELECT "team" FROM "in_season" WHERE "date_of_vacancy"='8 Dec 2010';
## Task Generate a SQL query to answer the following question: `What is the team with the date of vacancy 8 dec 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in_season" ( "team" text, "outgoing_head_coach" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" real, "incoming_head_coach" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the team with the date of vacancy 8 dec 2010?`: ```sql
SELECT "manner_of_departure" FROM "in_season" WHERE "incoming_head_coach"='Mohammad Khakpour';
## Task Generate a SQL query to answer the following question: `What is the manner of departure when the incoming head coach is mohammad khakpour?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in_season" ( "team" text, "outgoing_head_coach" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" real, "incoming_head_coach" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the manner of departure when the incoming head coach is mohammad khakpour?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_27389024_2" WHERE "title"='\"Mended Hearts\"';
## Task Generate a SQL query to answer the following question: `How many millions of U.S viewers watched the episode titled "Mended Hearts"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27389024_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many millions of U.S viewers watched the episode titled "Mended Hearts"?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_27389024_2" WHERE "title"='\"Lost Boys\"';
## Task Generate a SQL query to answer the following question: `How many millions of U.S. viewers watched the episode titled "Lost Boys"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27389024_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many millions of U.S. viewers watched the episode titled "Lost Boys"?`: ```sql
SELECT "original_air_date" FROM "table1_27389024_2" WHERE "written_by"='Rama Stagner';
## Task Generate a SQL query to answer the following question: `What is the original air date of the episode that was written by Rama Stagner? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27389024_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the original air date of the episode that was written by Rama Stagner? `: ```sql
SELECT MAX("pos") FROM "race_results" WHERE "car"=19;
## Task Generate a SQL query to answer the following question: `For the #19 car, what was their finish position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "pos" real, "grid" real, "car" real, "driver" text, "constructor" text, "manufacturer" text, "laps" real, "laps_led" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `For the #19 car, what was their finish position?`: ```sql
SELECT COUNT("constructor") FROM "race_results" WHERE "grid"=13;
## Task Generate a SQL query to answer the following question: `How many constructors had a grid of 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "pos" real, "grid" real, "car" real, "driver" text, "constructor" text, "manufacturer" text, "laps" real, "laps_led" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many constructors had a grid of 13?`: ```sql
SELECT MAX("pos") FROM "race_results" WHERE "constructor"='Joe Gibbs Racing' AND "driver"='Denny Hamlin';
## Task Generate a SQL query to answer the following question: `What was the maximum finish position of the car whose constructor was Joe Gibbs Racing, driven by Denny Hamlin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_results" ( "pos" real, "grid" real, "car" real, "driver" text, "constructor" text, "manufacturer" text, "laps" real, "laps_led" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the maximum finish position of the car whose constructor was Joe Gibbs Racing, driven by Denny Hamlin?`: ```sql
SELECT "title" FROM "table1_27397948_2" WHERE "no_in_series"=57;
## Task Generate a SQL query to answer the following question: `List all titles with a 57 series number.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27397948_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `List all titles with a 57 series number.`: ```sql
SELECT MAX("no_in_season") FROM "table1_27397948_2" WHERE "no_in_series"=47;
## Task Generate a SQL query to answer the following question: `What's the highest season number with a series number of 47?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27397948_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the highest season number with a series number of 47?`: ```sql
SELECT "written_by" FROM "table1_27397948_2" WHERE "no_in_season"=7;
## Task Generate a SQL query to answer the following question: `Who was the writer for season episode 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27397948_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the writer for season episode 7?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_27397948_2" WHERE "title"='\"No Safe Place\"';
## Task Generate a SQL query to answer the following question: `How many millions of US viewers were there for the episode "No Safe Place"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27397948_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many millions of US viewers were there for the episode "No Safe Place"?`: ```sql
SELECT "directed_by" FROM "table1_27401228_1" WHERE "u_s_viewers_million"='5.86';
## Task Generate a SQL query to answer the following question: `Name who directed when the viewers is 5.86` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27401228_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Name who directed when the viewers is 5.86`: ```sql
SELECT "location" FROM "2013_naiste_meistriliiga" WHERE "club"='Lootos Põlva';
## Task Generate a SQL query to answer the following question: `Where is lootos põlva from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_naiste_meistriliiga" ( "club" text, "location" text, "ground" text, "manager" text, "titles" real, "last_title" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is lootos põlva from?`: ```sql
SELECT "manager" FROM "2013_naiste_meistriliiga" WHERE "club"='Lootos Põlva';
## Task Generate a SQL query to answer the following question: `Who is the manager for lootos põlva?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_naiste_meistriliiga" ( "club" text, "location" text, "ground" text, "manager" text, "titles" real, "last_title" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the manager for lootos põlva?`: ```sql
SELECT "location" FROM "2013_naiste_meistriliiga" WHERE "ground"='Lootospark';
## Task Generate a SQL query to answer the following question: `Where is lootospark from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_naiste_meistriliiga" ( "club" text, "location" text, "ground" text, "manager" text, "titles" real, "last_title" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is lootospark from?`: ```sql
SELECT "manager" FROM "2013_naiste_meistriliiga" WHERE "club"='Pärnu';
## Task Generate a SQL query to answer the following question: `Who is the pärnu manager?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_naiste_meistriliiga" ( "club" text, "location" text, "ground" text, "manager" text, "titles" real, "last_title" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the pärnu manager?`: ```sql
SELECT "location" FROM "2013_naiste_meistriliiga" WHERE "manager"='Richard Barnwell';
## Task Generate a SQL query to answer the following question: `Where is the team that is managed by richard barnwell from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_naiste_meistriliiga" ( "club" text, "location" text, "ground" text, "manager" text, "titles" real, "last_title" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the team that is managed by richard barnwell from?`: ```sql
SELECT "ground" FROM "2013_naiste_meistriliiga" WHERE "club"='Flora Tallinn';
## Task Generate a SQL query to answer the following question: `What is the home location for team flora tallinn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_naiste_meistriliiga" ( "club" text, "location" text, "ground" text, "manager" text, "titles" real, "last_title" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home location for team flora tallinn?`: ```sql
SELECT "u_s_viewers_million" FROM "table1_27403436_1" WHERE "written_by"='Shana Goldberg-Meehan & Greg Malins';
## Task Generate a SQL query to answer the following question: `How many viewers watched the episode written by shana goldberg-meehan & greg malins? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27403436_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `How many viewers watched the episode written by shana goldberg-meehan & greg malins? `: ```sql
SELECT "no" FROM "table1_27403436_1" WHERE "production_code"='2J5809';
## Task Generate a SQL query to answer the following question: `which number lists the production code as 2j5809` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27403436_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `which number lists the production code as 2j5809`: ```sql
SELECT "position" FROM "table1_274117_5" WHERE "player"='Bob Lilly';
## Task Generate a SQL query to answer the following question: `What position was Bob Lilly?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_274117_5" ( "number" real, "player" text, "position" text, "seasons_by_team" text, "year_of_induction_into_pro_football_hall_of_fame" text ); ### SQL Given the database schema, here is the SQL query that answers `What position was Bob Lilly?`: ```sql
SELECT "seasons_by_team" FROM "table1_274117_5" WHERE "position"='OL' AND "number"=11;
## Task Generate a SQL query to answer the following question: `What are seasons by team for Pro Bowl appearances of the player who was an OL and had 11 appearances? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_274117_5" ( "number" real, "player" text, "position" text, "seasons_by_team" text, "year_of_induction_into_pro_football_hall_of_fame" text ); ### SQL Given the database schema, here is the SQL query that answers `What are seasons by team for Pro Bowl appearances of the player who was an OL and had 11 appearances? `: ```sql
SELECT "position" FROM "table1_274117_5" WHERE "year_of_induction_into_pro_football_hall_of_fame"='1980';
## Task Generate a SQL query to answer the following question: `What position was the player who was inducted into the Pro Football Hall of Fame in 1980? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_274117_5" ( "number" real, "player" text, "position" text, "seasons_by_team" text, "year_of_induction_into_pro_football_hall_of_fame" text ); ### SQL Given the database schema, here is the SQL query that answers `What position was the player who was inducted into the Pro Football Hall of Fame in 1980? `: ```sql
SELECT "year_of_induction_into_pro_football_hall_of_fame" FROM "table1_274117_5" WHERE "player"='Will Shields';
## Task Generate a SQL query to answer the following question: `When was Will Shields inducted into the Pro Football Hall of Fame?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_274117_5" ( "number" real, "player" text, "position" text, "seasons_by_team" text, "year_of_induction_into_pro_football_hall_of_fame" text ); ### SQL Given the database schema, here is the SQL query that answers `When was Will Shields inducted into the Pro Football Hall of Fame?`: ```sql
SELECT MIN("number") FROM "table1_274117_5";
## Task Generate a SQL query to answer the following question: `What is the fewest amount of Pro Bowl appearances any of the players had? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_274117_5" ( "number" real, "player" text, "position" text, "seasons_by_team" text, "year_of_induction_into_pro_football_hall_of_fame" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest amount of Pro Bowl appearances any of the players had? `: ```sql
SELECT "directed_by" FROM "table1_27412213_3" WHERE "title"='\"Not Without My Jacket\"';
## Task Generate a SQL query to answer the following question: `Who directed the episode titled "Not Without My Jacket"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27412213_3" ( "no" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode titled "Not Without My Jacket"?`: ```sql
SELECT COUNT("u_s_viewers_million") FROM "table1_27412213_3" WHERE "title"='\"The Truth About Dads and Moms\"';
## Task Generate a SQL query to answer the following question: `How many U.S. viewers in millions watched the episode titled "The Truth About Dads and Moms"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27412213_3" ( "no" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `How many U.S. viewers in millions watched the episode titled "The Truth About Dads and Moms"?`: ```sql
SELECT "life_expectancy_males" FROM "table1_27434_2" WHERE "imr"=64;
## Task Generate a SQL query to answer the following question: `What is the life expectancy of men with an IMR of 64?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27434_2" ( "period" text, "live_births_per_year" text, "deaths_per_year" text, "natural_change_per_year" text, "cbr" text, "cdr" text, "nc" text, "tfr" text, "imr" real, "life_expectancy_total" text, "life_expectancy_males" text, "life_expectancy_females" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the life expectancy of men with an IMR of 64?`: ```sql
SELECT "live_births_per_year" FROM "table1_27434_2" WHERE "life_expectancy_total"='65.1';
## Task Generate a SQL query to answer the following question: `How many live births per year do people with a life expectancy of 65.1 have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27434_2" ( "period" text, "live_births_per_year" text, "deaths_per_year" text, "natural_change_per_year" text, "cbr" text, "cdr" text, "nc" text, "tfr" text, "imr" real, "life_expectancy_total" text, "life_expectancy_males" text, "life_expectancy_females" text ); ### SQL Given the database schema, here is the SQL query that answers `How many live births per year do people with a life expectancy of 65.1 have?`: ```sql
SELECT "period" FROM "table1_27434_2" WHERE "nc"='22.7';
## Task Generate a SQL query to answer the following question: `What period was there a 22.7 NC?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27434_2" ( "period" text, "live_births_per_year" text, "deaths_per_year" text, "natural_change_per_year" text, "cbr" text, "cdr" text, "nc" text, "tfr" text, "imr" real, "life_expectancy_total" text, "life_expectancy_males" text, "life_expectancy_females" text ); ### SQL Given the database schema, here is the SQL query that answers `What period was there a 22.7 NC?`: ```sql
SELECT "natural_change_per_year" FROM "table1_27434_2" WHERE "cdr"='7.2';
## Task Generate a SQL query to answer the following question: `What is the natural change per year for the 7.2 CDR group?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27434_2" ( "period" text, "live_births_per_year" text, "deaths_per_year" text, "natural_change_per_year" text, "cbr" text, "cdr" text, "nc" text, "tfr" text, "imr" real, "life_expectancy_total" text, "life_expectancy_males" text, "life_expectancy_females" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the natural change per year for the 7.2 CDR group?`: ```sql
SELECT "natural_change_per_year" FROM "table1_27434_2" WHERE "imr"=34;
## Task Generate a SQL query to answer the following question: `What is the natural change per year for the 34 IMR group?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27434_2" ( "period" text, "live_births_per_year" text, "deaths_per_year" text, "natural_change_per_year" text, "cbr" text, "cdr" text, "nc" text, "tfr" text, "imr" real, "life_expectancy_total" text, "life_expectancy_males" text, "life_expectancy_females" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the natural change per year for the 34 IMR group?`: ```sql
SELECT "period" FROM "table1_27434_2" WHERE "life_expectancy_total"='62.4';
## Task Generate a SQL query to answer the following question: `What period was the life expectancy at 62.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27434_2" ( "period" text, "live_births_per_year" text, "deaths_per_year" text, "natural_change_per_year" text, "cbr" text, "cdr" text, "nc" text, "tfr" text, "imr" real, "life_expectancy_total" text, "life_expectancy_males" text, "life_expectancy_females" text ); ### SQL Given the database schema, here is the SQL query that answers `What period was the life expectancy at 62.4?`: ```sql
SELECT "artist" FROM "m" WHERE "number_one_single_s"='\"Elle\"';
## Task Generate a SQL query to answer the following question: `Who is the artiest when the number one single is "elle"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m" ( "artist" text, "country" text, "number_one_single_s" text, "year" real, "weeks_at_num1" real, "straight_to_num1" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the artiest when the number one single is "elle"?`: ```sql
SELECT COUNT("year") FROM "table1_27435931_1" WHERE "continent"='Australia/Oceania';
## Task Generate a SQL query to answer the following question: `In what year is australia/oceania listed? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27435931_1" ( "year" text, "summits" text, "country" text, "continent" text, "elevation_ft" real, "elevation_m" real ); ### SQL Given the database schema, here is the SQL query that answers `In what year is australia/oceania listed? `: ```sql
SELECT "elevation_m" FROM "table1_27435931_1" WHERE "year"='September 2009';
## Task Generate a SQL query to answer the following question: `what was the elevation in september 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27435931_1" ( "year" text, "summits" text, "country" text, "continent" text, "elevation_ft" real, "elevation_m" real ); ### SQL Given the database schema, here is the SQL query that answers `what was the elevation in september 2009?`: ```sql
SELECT "continent" FROM "table1_27435931_1" WHERE "country"='Russia';
## Task Generate a SQL query to answer the following question: `what is the continent in which the country russia is listed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27435931_1" ( "year" text, "summits" text, "country" text, "continent" text, "elevation_ft" real, "elevation_m" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the continent in which the country russia is listed?`: ```sql
SELECT MIN("elevation_ft") FROM "table1_27435931_1" WHERE "year"='April 2006';
## Task Generate a SQL query to answer the following question: `what was the lowest elevation in april 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27435931_1" ( "year" text, "summits" text, "country" text, "continent" text, "elevation_ft" real, "elevation_m" real ); ### SQL Given the database schema, here is the SQL query that answers `what was the lowest elevation in april 2006?`: ```sql
SELECT COUNT("elevation_ft") FROM "table1_27435931_1" WHERE "country"='Tanzania';
## Task Generate a SQL query to answer the following question: `what is elevation of tanzania?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27435931_1" ( "year" text, "summits" text, "country" text, "continent" text, "elevation_ft" real, "elevation_m" real ); ### SQL Given the database schema, here is the SQL query that answers `what is elevation of tanzania?`: ```sql
SELECT "elevation_ft" FROM "table1_27435931_1" WHERE "continent"='South America';
## Task Generate a SQL query to answer the following question: `what is the elevation of south america? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27435931_1" ( "year" text, "summits" text, "country" text, "continent" text, "elevation_ft" real, "elevation_m" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the elevation of south america? `: ```sql
SELECT "no_in_season" FROM "table1_27437601_2" WHERE "directed_by"='Brad Tanenbaum' AND "no_in_series">241.0;
## Task Generate a SQL query to answer the following question: `List the season above 241.0 that was handled by brad tanenbaum.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27437601_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `List the season above 241.0 that was handled by brad tanenbaum.`: ```sql
SELECT "no_in_series" FROM "table1_27437601_2" WHERE "title"='\"Shock Waves\"';
## Task Generate a SQL query to answer the following question: `List the series number with the espide called "shock waves".` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27437601_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `List the series number with the espide called "shock waves".`: ```sql
SELECT "original_air_date" FROM "table1_27437601_2" WHERE "no_in_season"=12;
## Task Generate a SQL query to answer the following question: `List the 1st air date for season 12.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27437601_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `List the 1st air date for season 12.`: ```sql
SELECT COUNT("no_in_series") FROM "table1_27437601_2" WHERE "no_in_season"=12;
## Task Generate a SQL query to answer the following question: `List the series number for season 12.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27437601_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `List the series number for season 12.`: ```sql
SELECT COUNT("year") FROM "l" WHERE "country"='Belgium';
## Task Generate a SQL query to answer the following question: `How many years was the country Belgium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "l" ( "artist" text, "country" text, "number_one_single_s" text, "year" real, "weeks_at_num1" real, "straight_to_num1" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years was the country Belgium?`: ```sql
SELECT "number_one_single_s" FROM "p" WHERE "artist"='Pep''s';
## Task Generate a SQL query to answer the following question: `What number-one single is performed by artist Pep's?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "p" ( "artist" text, "country" text, "number_one_single_s" text, "year" real, "weeks_at_num1" real, "straight_to_num1" text ); ### SQL Given the database schema, here is the SQL query that answers `What number-one single is performed by artist Pep's?`: ```sql
SELECT "audition_city" FROM "regional_auditions" WHERE "episode_air_date"='January 27, 2011';
## Task Generate a SQL query to answer the following question: `Where were the auditions held in the episode that aired on january 27, 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_auditions" ( "episode_air_date" text, "audition_city" text, "first_audition_date" text, "audition_venue" text, "callback_audition_date" text, "callback_venue" text, "golden_tickets" text ); ### SQL Given the database schema, here is the SQL query that answers `Where were the auditions held in the episode that aired on january 27, 2011?`: ```sql
SELECT COUNT("audition_city") FROM "regional_auditions" WHERE "audition_venue"='Bridgestone Arena';
## Task Generate a SQL query to answer the following question: `In how many different audition cities were the Bridgestone arena auditions held?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_auditions" ( "episode_air_date" text, "audition_city" text, "first_audition_date" text, "audition_venue" text, "callback_audition_date" text, "callback_venue" text, "golden_tickets" text ); ### SQL Given the database schema, here is the SQL query that answers `In how many different audition cities were the Bridgestone arena auditions held?`: ```sql
SELECT "callback_audition_date" FROM "regional_auditions" WHERE "episode_air_date"='February 2, 2011';
## Task Generate a SQL query to answer the following question: `When was the callback audition date for the audition city from the episode aired on February 2, 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_auditions" ( "episode_air_date" text, "audition_city" text, "first_audition_date" text, "audition_venue" text, "callback_audition_date" text, "callback_venue" text, "golden_tickets" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the callback audition date for the audition city from the episode aired on February 2, 2011?`: ```sql
SELECT "callback_audition_date" FROM "regional_auditions" WHERE "callback_venue"='Hilton Riverside Hotel';
## Task Generate a SQL query to answer the following question: `When were the callback auditions at Hilton Riverside Hotel held?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_auditions" ( "episode_air_date" text, "audition_city" text, "first_audition_date" text, "audition_venue" text, "callback_audition_date" text, "callback_venue" text, "golden_tickets" text ); ### SQL Given the database schema, here is the SQL query that answers `When were the callback auditions at Hilton Riverside Hotel held?`: ```sql
SELECT "callback_venue" FROM "regional_auditions" WHERE "episode_air_date"='January 20, 2011';
## Task Generate a SQL query to answer the following question: `What was the callback venue for the audition city in the episode aired on January 20, 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_auditions" ( "episode_air_date" text, "audition_city" text, "first_audition_date" text, "audition_venue" text, "callback_audition_date" text, "callback_venue" text, "golden_tickets" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the callback venue for the audition city in the episode aired on January 20, 2011?`: ```sql
SELECT "callback_audition_date" FROM "regional_auditions" WHERE "episode_air_date"='February 9, 2011';
## Task Generate a SQL query to answer the following question: `When were the callback auditions for the audition city in the episode aired on February 9, 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_auditions" ( "episode_air_date" text, "audition_city" text, "first_audition_date" text, "audition_venue" text, "callback_audition_date" text, "callback_venue" text, "golden_tickets" text ); ### SQL Given the database schema, here is the SQL query that answers `When were the callback auditions for the audition city in the episode aired on February 9, 2011?`: ```sql
SELECT COUNT("no_in_series") FROM "table1_27462177_1" WHERE "written_by"='Eve Weston';
## Task Generate a SQL query to answer the following question: `How many episodes did Eve Weston write?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27462177_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_u_s_air_date" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes did Eve Weston write?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_27462177_1" WHERE "written_by"='Jack Sanderson';
## Task Generate a SQL query to answer the following question: `How many millions of US viewers watched the episode written by Jack Sanderson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27462177_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_u_s_air_date" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `How many millions of US viewers watched the episode written by Jack Sanderson?`: ```sql
SELECT MIN("no_in_series") FROM "table1_27462199_1" WHERE "title"='\"Taxi Dance\"';
## Task Generate a SQL query to answer the following question: `What is the series episode number of "Taxi Dance"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27462199_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_u_s_air_date" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the series episode number of "Taxi Dance"?`: ```sql