output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='24 May 2010';
## Task Generate a SQL query to answer the following question: `What is the manner of departure for the date of appointment 24 may 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the manner of departure for the date of appointment 24 may 2010?`: ```sql
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Mustafa Denizli';
## Task Generate a SQL query to answer the following question: `What is the date of appointment when the outgoing manager was mustafa denizli?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of appointment when the outgoing manager was mustafa denizli?`: ```sql
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "date_of_vacancy"='15 March 2011';
## Task Generate a SQL query to answer the following question: `What is the date of appointment when the date of vacancy is 15 march 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of appointment when the date of vacancy is 15 march 2011?`: ```sql
SELECT MIN("population") FROM "table1_27003223_4" WHERE "democratic"='28.0%';
## Task Generate a SQL query to answer the following question: `What is the lowest population in which 28.0% are democrat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27003223_4" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest population in which 28.0% are democrat?`: ```sql
SELECT "democratic" FROM "table1_27003223_4" WHERE "registered_voters"='67.8%';
## Task Generate a SQL query to answer the following question: `what is the percentage of democratic voters in which the registered voters is 67.8%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27003223_4" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the percentage of democratic voters in which the registered voters is 67.8%?`: ```sql
SELECT "registered_voters" FROM "table1_27003223_4" WHERE "d_r_spread"='+10.4%';
## Task Generate a SQL query to answer the following question: `What is the percentage of registered voters in which the d-r spread is +10.4%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27003223_4" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage of registered voters in which the d-r spread is +10.4%?`: ```sql
SELECT "registered_voters" FROM "table1_27003223_4" WHERE "d_r_spread"='+14.3%';
## Task Generate a SQL query to answer the following question: `What is the percentage of registered voters in which the d-r spread is +14.3%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27003223_4" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage of registered voters in which the d-r spread is +14.3%?`: ```sql
SELECT "republican" FROM "table1_27003223_4" WHERE "d_r_spread"='-14.1%';
## Task Generate a SQL query to answer the following question: `What is the percentage of republican voters in which the d-r spread is -14.1%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27003223_4" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage of republican voters in which the d-r spread is -14.1%?`: ```sql
SELECT "no_party_preference" FROM "table1_27003223_4" WHERE "democratic"='24.8%';
## Task Generate a SQL query to answer the following question: `What is the percentage of "no party preference" where the democratic percentage is 24.8%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27003223_4" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage of "no party preference" where the democratic percentage is 24.8%?`: ```sql
SELECT COUNT("train_no") FROM "important_trains_passing_from_kanpur_ana" WHERE "departure"='17:30';
## Task Generate a SQL query to answer the following question: `How many trains depart at 17:30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "important_trains_passing_from_kanpur_ana" ( "train_no" real, "train_name" text, "arrival" text, "departure" text, "days" text, "platform_no" text ); ### SQL Given the database schema, here is the SQL query that answers `How many trains depart at 17:30?`: ```sql
SELECT COUNT("train_no") FROM "important_trains_passing_from_kanpur_ana" WHERE "arrival"='11:00';
## Task Generate a SQL query to answer the following question: `How many trains arrive at 11:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "important_trains_passing_from_kanpur_ana" ( "train_no" real, "train_name" text, "arrival" text, "departure" text, "days" text, "platform_no" text ); ### SQL Given the database schema, here is the SQL query that answers `How many trains arrive at 11:00?`: ```sql
SELECT "no_party_preference" FROM "table1_27003186_3" WHERE "city"='Murrieta';
## Task Generate a SQL query to answer the following question: `What is the no party preference when the city is murrieta?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27003186_3" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the no party preference when the city is murrieta?`: ```sql
SELECT "no_party_preference" FROM "table1_27003186_3" WHERE "other"='10.1%';
## Task Generate a SQL query to answer the following question: `What is the no party preference when other is 10.1%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27003186_3" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the no party preference when other is 10.1%?`: ```sql
SELECT "no_party_preference" FROM "table1_27003186_3" WHERE "republican"='45.3%';
## Task Generate a SQL query to answer the following question: `What is the no party preference when republican is 45.3%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27003186_3" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the no party preference when republican is 45.3%?`: ```sql
SELECT "other" FROM "table1_27003186_3" WHERE "no_party_preference"='19.1%';
## Task Generate a SQL query to answer the following question: `What is other when no party preference is 19.1%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27003186_3" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is other when no party preference is 19.1%?`: ```sql
SELECT "other" FROM "table1_27003186_3" WHERE "registered_voters"='50.7%';
## Task Generate a SQL query to answer the following question: `What is other when registered voters is 50.7%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27003186_3" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is other when registered voters is 50.7%?`: ```sql
SELECT "district" FROM "results" WHERE "incumbent"='Charlie Norwood';
## Task Generate a SQL query to answer the following question: `What is the district with the incumbent Charlie Norwood?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the district with the incumbent Charlie Norwood?`: ```sql
SELECT "elected" FROM "results" WHERE "incumbent"='Cynthia McKinney';
## Task Generate a SQL query to answer the following question: `What is the year elected for incumbent Cynthia Mckinney?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year elected for incumbent Cynthia Mckinney?`: ```sql
SELECT COUNT("incumbent") FROM "results" WHERE "result"='Sanford Bishop (D) 57% Joseph McCormick (R) 43%';
## Task Generate a SQL query to answer the following question: `How many incumbents were the result of sanford bishop (d) 57% joseph mccormick (r) 43%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many incumbents were the result of sanford bishop (d) 57% joseph mccormick (r) 43%?`: ```sql
SELECT "status" FROM "results" WHERE "district"='Georgia''s 10th';
## Task Generate a SQL query to answer the following question: `What is the status for district georgia's 10th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status for district georgia's 10th?`: ```sql
SELECT "result" FROM "results" WHERE "district"='Georgia''s 1st';
## Task Generate a SQL query to answer the following question: `What is the result of districk georgia's 1st?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result of districk georgia's 1st?`: ```sql
SELECT "district" FROM "results" WHERE "result"='Mac Collins (R) unopposed';
## Task Generate a SQL query to answer the following question: `What is the district with the result mac collins (r) unopposed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the district with the result mac collins (r) unopposed?`: ```sql
SELECT COUNT("title") FROM "aaahh_real_monsters_season_2_episodes" WHERE "production_code"='201a';
## Task Generate a SQL query to answer the following question: `how many times is the production code is 201a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aaahh_real_monsters_season_2_episodes" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times is the production code is 201a?`: ```sql
SELECT MAX("overall_rank") FROM "list_by_the_world_health_organization_20" WHERE "country"='Czech Republic';
## Task Generate a SQL query to answer the following question: `Name the most overall rank for czech republic` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_by_the_world_health_organization_20" ( "overall_rank" real, "country" text, "overall_life_expectancy" real, "male_life_expectancy" real, "male_rank" real, "female_life_expectancy" real, "female_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most overall rank for czech republic`: ```sql
SELECT COUNT("male_rank") FROM "list_by_the_world_health_organization_20" WHERE "country"='Fiji';
## Task Generate a SQL query to answer the following question: `Name the total number of male rank for fiji` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_by_the_world_health_organization_20" ( "overall_rank" real, "country" text, "overall_life_expectancy" real, "male_life_expectancy" real, "male_rank" real, "female_life_expectancy" real, "female_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of male rank for fiji`: ```sql
SELECT MAX("female_life_expectancy") FROM "list_by_the_world_health_organization_20" WHERE "country"='Djibouti';
## Task Generate a SQL query to answer the following question: `Name the most female life expectancy for djibouti` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_by_the_world_health_organization_20" ( "overall_rank" real, "country" text, "overall_life_expectancy" real, "male_life_expectancy" real, "male_rank" real, "female_life_expectancy" real, "female_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most female life expectancy for djibouti`: ```sql
SELECT MAX("female_life_expectancy") FROM "list_by_the_world_health_organization_20" WHERE "overall_rank"=61;
## Task Generate a SQL query to answer the following question: `Name the most female life expectancy for overall rank of 61` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_by_the_world_health_organization_20" ( "overall_rank" real, "country" text, "overall_life_expectancy" real, "male_life_expectancy" real, "male_rank" real, "female_life_expectancy" real, "female_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most female life expectancy for overall rank of 61`: ```sql
SELECT MAX("male_life_expectancy") FROM "list_by_the_world_health_organization_20" WHERE "country"='Pakistan';
## Task Generate a SQL query to answer the following question: `Name the most male life expectancy for pakistan` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_by_the_world_health_organization_20" ( "overall_rank" real, "country" text, "overall_life_expectancy" real, "male_life_expectancy" real, "male_rank" real, "female_life_expectancy" real, "female_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most male life expectancy for pakistan`: ```sql
SELECT "title" FROM "aaahh_real_monsters_season_1_episodes" WHERE "no_in_series"='10a';
## Task Generate a SQL query to answer the following question: `What is the name of episode # 10a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aaahh_real_monsters_season_1_episodes" ( "no_in_series" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of episode # 10a?`: ```sql
SELECT "no_in_series" FROM "aaahh_real_monsters_season_1_episodes" WHERE "title"='\"Old Monster\"';
## Task Generate a SQL query to answer the following question: `What is the episode number for "Old Monster"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aaahh_real_monsters_season_1_episodes" ( "no_in_series" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the episode number for "Old Monster"?`: ```sql
SELECT "title" FROM "aaahh_real_monsters_season_1_episodes" WHERE "written_by"='Michael Price';
## Task Generate a SQL query to answer the following question: `What is the name of the episode written by Michael Price?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aaahh_real_monsters_season_1_episodes" ( "no_in_series" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the episode written by Michael Price?`: ```sql
SELECT "directed_by" FROM "aaahh_real_monsters_season_1_episodes" WHERE "title"='\"Don''t Just Do It\"';
## Task Generate a SQL query to answer the following question: `Who directed the episode named "Don't just do it"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aaahh_real_monsters_season_1_episodes" ( "no_in_series" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode named "Don't just do it"?`: ```sql
SELECT "title" FROM "aaahh_real_monsters_season_4_episodes" WHERE "production_code"='404a';
## Task Generate a SQL query to answer the following question: `What was the title for the episode with the production code 404a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aaahh_real_monsters_season_4_episodes" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the title for the episode with the production code 404a?`: ```sql
SELECT "production_code" FROM "aaahh_real_monsters_season_4_episodes" WHERE "written_by"='Kat Likkel & Denise Downer';
## Task Generate a SQL query to answer the following question: `What is the production code for the episode written by Kat Likkel & Denise Downer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aaahh_real_monsters_season_4_episodes" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the production code for the episode written by Kat Likkel & Denise Downer?`: ```sql
SELECT "directed_by" FROM "aaahh_real_monsters_season_4_episodes" WHERE "no_in_season"='10a';
## Task Generate a SQL query to answer the following question: `Who was the director for the Episode number in season 10a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aaahh_real_monsters_season_4_episodes" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the director for the Episode number in season 10a?`: ```sql
SELECT "written_by" FROM "aaahh_real_monsters_season_4_episodes" WHERE "no_in_series"='46b';
## Task Generate a SQL query to answer the following question: `Who wrote the episode in the series 46b?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aaahh_real_monsters_season_4_episodes" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode in the series 46b?`: ```sql
SELECT "production_code" FROM "aaahh_real_monsters_season_4_episodes" WHERE "title"='\"Misery Date\"';
## Task Generate a SQL query to answer the following question: `What was the production code for the episode titled "Misery date"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aaahh_real_monsters_season_4_episodes" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the production code for the episode titled "Misery date"?`: ```sql
SELECT COUNT("production_code") FROM "aaahh_real_monsters_season_4_episodes" WHERE "no_in_series"='46b';
## Task Generate a SQL query to answer the following question: `How many production codes did the episode number in series 46b have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "aaahh_real_monsters_season_4_episodes" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `How many production codes did the episode number in series 46b have?`: ```sql
SELECT COUNT("u_s_viewers_in_millions") FROM "table1_27047554_1" WHERE "title"='\"If at First You Don''t Succeed, Lie, Lie Again\"';
## Task Generate a SQL query to answer the following question: `How many viewer data were given for episode "If at First You Don't Succeed, Lie, Lie Again"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27047554_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many viewer data were given for episode "If at First You Don't Succeed, Lie, Lie Again"?`: ```sql
SELECT COUNT("directed_by") FROM "table1_27047554_1" WHERE "u_s_viewers_in_millions"='2.48';
## Task Generate a SQL query to answer the following question: `How many directors directed an episode that reached 2.48 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27047554_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many directors directed an episode that reached 2.48 million viewers?`: ```sql
SELECT "original_air_date" FROM "table1_27047554_1" WHERE "title"='\"Keep Your Friends Close\"';
## Task Generate a SQL query to answer the following question: `What was the original air date of the episode "Keep Your Friends Close"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27047554_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the original air date of the episode "Keep Your Friends Close"?`: ```sql
SELECT "delegate" FROM "members" WHERE "district"='41';
## Task Generate a SQL query to answer the following question: ` Who represents district 41? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); ### SQL Given the database schema, here is the SQL query that answers ` Who represents district 41? `: ```sql
SELECT "district" FROM "members" WHERE "delegate"='McDonough, Patrick L. Pat McDonough';
## Task Generate a SQL query to answer the following question: `For delegate is mcdonough, patrick l. pat mcdonough, specify all the district.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); ### SQL Given the database schema, here is the SQL query that answers `For delegate is mcdonough, patrick l. pat mcdonough, specify all the district.`: ```sql
SELECT "delegate" FROM "members" WHERE "committee"='Environmental Matters' AND "district"='36';
## Task Generate a SQL query to answer the following question: `where committee is environmental matters and district is 36 please specify all the delegate name` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); ### SQL Given the database schema, here is the SQL query that answers `where committee is environmental matters and district is 36 please specify all the delegate name`: ```sql
SELECT "delegate" FROM "members" WHERE "committee"='Judiciary' AND "party"='Democratic' AND "counties_represented"='Montgomery';
## Task Generate a SQL query to answer the following question: `For democratic party, countries represented is montgomery and where committee is judiciary mention all the delegate name.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); ### SQL Given the database schema, here is the SQL query that answers `For democratic party, countries represented is montgomery and where committee is judiciary mention all the delegate name.`: ```sql
SELECT "party" FROM "members" WHERE "delegate"='Feldman, Brian J. Brian J. Feldman';
## Task Generate a SQL query to answer the following question: `Where delegate is feldman, brian j. brian j. feldman, please specify all the party` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); ### SQL Given the database schema, here is the SQL query that answers `Where delegate is feldman, brian j. brian j. feldman, please specify all the party`: ```sql
SELECT "party" FROM "members" WHERE "delegate"='Gaines, Tawanna P. Tawanna Gaines';
## Task Generate a SQL query to answer the following question: `For delegate is gaines, tawanna p. tawanna gaines, please specify all the party.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "district" text, "counties_represented" text, "delegate" text, "party" text, "first_elected" real, "committee" text ); ### SQL Given the database schema, here is the SQL query that answers `For delegate is gaines, tawanna p. tawanna gaines, please specify all the party.`: ```sql
SELECT "height" FROM "see_also" WHERE "number_of_floors"=70;
## Task Generate a SQL query to answer the following question: `If the number of floors is 70, what is the height?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "position" real, "building" text, "city" text, "height" text, "number_of_floors" real, "completion" real ); ### SQL Given the database schema, here is the SQL query that answers `If the number of floors is 70, what is the height?`: ```sql
SELECT MIN("number_of_floors") FROM "see_also" WHERE "completion"=2010;
## Task Generate a SQL query to answer the following question: `if the completed is 2010, what is the number of floors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "position" real, "building" text, "city" text, "height" text, "number_of_floors" real, "completion" real ); ### SQL Given the database schema, here is the SQL query that answers `if the completed is 2010, what is the number of floors?`: ```sql
SELECT "height" FROM "see_also" WHERE "building"='Costanera Center Torre 1';
## Task Generate a SQL query to answer the following question: `If the building is Costanera Center Torre 1, what is the height?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "position" real, "building" text, "city" text, "height" text, "number_of_floors" real, "completion" real ); ### SQL Given the database schema, here is the SQL query that answers `If the building is Costanera Center Torre 1, what is the height?`: ```sql
SELECT COUNT("position") FROM "see_also" WHERE "building"='Costanera Center Torre 1';
## Task Generate a SQL query to answer the following question: `How many positions does building Costanera Center Torre 1 have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "position" real, "building" text, "city" text, "height" text, "number_of_floors" real, "completion" real ); ### SQL Given the database schema, here is the SQL query that answers `How many positions does building Costanera Center Torre 1 have?`: ```sql
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='Simurq PFC';
## Task Generate a SQL query to answer the following question: `Who is the outgoing manager when the team is simurq pfc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the outgoing manager when the team is simurq pfc?`: ```sql
SELECT COUNT("date_of_appointment") FROM "managerial_changes" WHERE "team"='Khazar Lankaran';
## Task Generate a SQL query to answer the following question: `How many date of appointment entries are there when the team is khazar lankaran?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `How many date of appointment entries are there when the team is khazar lankaran?`: ```sql
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "replaced_by"='Bahman Hasanov';
## Task Generate a SQL query to answer the following question: `What is the manner of departure when the replaced by is bahman hasanov?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the manner of departure when the replaced by is bahman hasanov?`: ```sql
SELECT "overall" FROM "year_by_year" WHERE "season"='2003-04';
## Task Generate a SQL query to answer the following question: `What was the overall record for the Pandas in the 2003-04 season? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "season" text, "coach" text, "conf_record" text, "overall" text, "standings" text, "postseason" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the overall record for the Pandas in the 2003-04 season? `: ```sql
SELECT "conf_record" FROM "year_by_year" WHERE "overall"='33-4-1';
## Task Generate a SQL query to answer the following question: `What was the conference record in the season where the Pandas had an overall record of 33-4-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "season" text, "coach" text, "conf_record" text, "overall" text, "standings" text, "postseason" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the conference record in the season where the Pandas had an overall record of 33-4-1?`: ```sql
SELECT "coach" FROM "year_by_year" WHERE "overall"='20-6-2';
## Task Generate a SQL query to answer the following question: `Who was the coach of the Pandas when their overall record was 20-6-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "season" text, "coach" text, "conf_record" text, "overall" text, "standings" text, "postseason" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the coach of the Pandas when their overall record was 20-6-2?`: ```sql
SELECT "conf_record" FROM "year_by_year" WHERE "standings"='First' AND "season"='2003-04';
## Task Generate a SQL query to answer the following question: `What was the conference record for the Pandas when they were first in the standings in the 2003-04 season? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "season" text, "coach" text, "conf_record" text, "overall" text, "standings" text, "postseason" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the conference record for the Pandas when they were first in the standings in the 2003-04 season? `: ```sql
SELECT "overall" FROM "year_by_year" WHERE "conf_record"='4-1-1';
## Task Generate a SQL query to answer the following question: `What was the overall record for the Pandas when their conference record was 4-1-1? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "season" text, "coach" text, "conf_record" text, "overall" text, "standings" text, "postseason" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the overall record for the Pandas when their conference record was 4-1-1? `: ```sql
SELECT "season" FROM "year_by_year" WHERE "conf_record"='15-1-1';
## Task Generate a SQL query to answer the following question: `In what season was the conference record for the Pandas 15-1-1? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "season" text, "coach" text, "conf_record" text, "overall" text, "standings" text, "postseason" text ); ### SQL Given the database schema, here is the SQL query that answers `In what season was the conference record for the Pandas 15-1-1? `: ```sql
SELECT COUNT("original_artist") FROM "performances" WHERE "week_num"='Audition';
## Task Generate a SQL query to answer the following question: `how many times is the week # is audition?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times is the week # is audition?`: ```sql
SELECT COUNT("episode") FROM "table1_27081956_1" WHERE "series_no"=14;
## Task Generate a SQL query to answer the following question: `How many episodes are numbered 14 in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27081956_1" ( "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real, "series_no" real, "episode" text, "director" text, "writer_s" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes are numbered 14 in the series?`: ```sql
SELECT COUNT("writer_s") FROM "table1_27081956_1" WHERE "episode"='\"Peace, Brother\"';
## Task Generate a SQL query to answer the following question: `How many writers for the episode "peace, brother"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27081956_1" ( "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real, "series_no" real, "episode" text, "director" text, "writer_s" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `How many writers for the episode "peace, brother"?`: ```sql
SELECT "series_no" FROM "table1_27081956_1" WHERE "episode"='\"Peace, Brother\"';
## Task Generate a SQL query to answer the following question: `What series number is the episode "peace, brother"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27081956_1" ( "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real, "series_no" real, "episode" text, "director" text, "writer_s" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What series number is the episode "peace, brother"?`: ```sql
SELECT COUNT("original_airdate") FROM "table1_27081956_1" WHERE "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series"=17;
## Task Generate a SQL query to answer the following question: `How many times did episode 17 originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27081956_1" ( "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real, "series_no" real, "episode" text, "director" text, "writer_s" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times did episode 17 originally air?`: ```sql
SELECT "original_airdate" FROM "table1_27081956_1" WHERE "episode"='\"Rock-a-Bye-Baby\"';
## Task Generate a SQL query to answer the following question: `What is the original air date for "rock-a-bye-baby"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27081956_1" ( "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real, "series_no" real, "episode" text, "director" text, "writer_s" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the original air date for "rock-a-bye-baby"?`: ```sql
SELECT "original_airdate" FROM "table1_27081956_1" WHERE "episode"='\"The Raid\"';
## Task Generate a SQL query to answer the following question: `What is the original air date(s) for "the raid"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27081956_1" ( "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real, "series_no" real, "episode" text, "director" text, "writer_s" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the original air date(s) for "the raid"?`: ```sql
SELECT "format" FROM "table1_2709_4" WHERE "frequency"='105.5 FM';
## Task Generate a SQL query to answer the following question: `What is the format of 105.5 fm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2709_4" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text, "target_city_market" text, "city_of_license" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the format of 105.5 fm?`: ```sql
SELECT "target_city_market" FROM "table1_2709_4" WHERE "call_sign"='KLRJ';
## Task Generate a SQL query to answer the following question: `What is the market for KLRJ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2709_4" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text, "target_city_market" text, "city_of_license" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the market for KLRJ?`: ```sql
SELECT "format" FROM "table1_2709_4" WHERE "owner"='Dakota Broadcasting';
## Task Generate a SQL query to answer the following question: `What is the format for the station owned by Dakota Broadcasting?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2709_4" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text, "target_city_market" text, "city_of_license" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the format for the station owned by Dakota Broadcasting?`: ```sql
SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='Ercan Ertemçöz';
## Task Generate a SQL query to answer the following question: `What team's manager was replaced by Ercan Ertemçöz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What team's manager was replaced by Ercan Ertemçöz?`: ```sql
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Kadir Özcan';
## Task Generate a SQL query to answer the following question: `What was the date of appointment for the manager replacing Kadir Özcan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of appointment for the manager replacing Kadir Özcan?`: ```sql
SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_appointment"='08.06.2010';
## Task Generate a SQL query to answer the following question: `Which manager was appointed on 08.06.2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `Which manager was appointed on 08.06.2010?`: ```sql
SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='Altay';
## Task Generate a SQL query to answer the following question: `Who replaced the previous manager of Altay?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `Who replaced the previous manager of Altay?`: ```sql
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='Ergün Penbe';
## Task Generate a SQL query to answer the following question: `What was date of appointment for Ergün Penbe? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What was date of appointment for Ergün Penbe? `: ```sql
SELECT MIN("overall_total") FROM "attendance" WHERE "team"='Omaha Nighthawks';
## Task Generate a SQL query to answer the following question: `What is the overall total for the Omaha Nighthawks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "attendance" ( "team" text, "home_gms" real, "home_total" real, "home_avg" real, "top_home_crowd" text, "road_gms" real, "road_total" real, "road_avg" real, "overall_gms" real, "overall_total" real, "overall_avg" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the overall total for the Omaha Nighthawks?`: ```sql
SELECT "team" FROM "attendance" WHERE "home_avg"=18125;
## Task Generate a SQL query to answer the following question: `Which team has the home average of 18125?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "attendance" ( "team" text, "home_gms" real, "home_total" real, "home_avg" real, "top_home_crowd" text, "road_gms" real, "road_total" real, "road_avg" real, "overall_gms" real, "overall_total" real, "overall_avg" real ); ### SQL Given the database schema, here is the SQL query that answers `Which team has the home average of 18125?`: ```sql
SELECT MAX("home_total") FROM "attendance";
## Task Generate a SQL query to answer the following question: `What was the highest home total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "attendance" ( "team" text, "home_gms" real, "home_total" real, "home_avg" real, "top_home_crowd" text, "road_gms" real, "road_total" real, "road_avg" real, "overall_gms" real, "overall_total" real, "overall_avg" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest home total?`: ```sql
SELECT COUNT("overall_gms") FROM "attendance" WHERE "overall_avg"=12796;
## Task Generate a SQL query to answer the following question: `How many games had an average of 12796?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "attendance" ( "team" text, "home_gms" real, "home_total" real, "home_avg" real, "top_home_crowd" text, "road_gms" real, "road_total" real, "road_avg" real, "overall_gms" real, "overall_total" real, "overall_avg" real ); ### SQL Given the database schema, here is the SQL query that answers `How many games had an average of 12796?`: ```sql
SELECT "stage_winner" FROM "classification_leadership" WHERE "team_classification"='LeTua Cycling Team' AND "stage"=2;
## Task Generate a SQL query to answer the following question: `Who was the stage winner of the letua cycling team on stage 2? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "asian_rider_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the stage winner of the letua cycling team on stage 2? `: ```sql
SELECT "points_classification" FROM "classification_leadership" WHERE "stage_winner"='Malcolm Lange';
## Task Generate a SQL query to answer the following question: `Who is listed under points classification when the stage winner is malcolm lange? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "asian_rider_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is listed under points classification when the stage winner is malcolm lange? `: ```sql
SELECT "mountains_classification" FROM "classification_leadership" WHERE "stage"=3;
## Task Generate a SQL query to answer the following question: `Which mountains classification is listed under stage 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "asian_rider_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Which mountains classification is listed under stage 3?`: ```sql
SELECT "general_classification" FROM "classification_leadership" WHERE "stage_winner"='Suhardi Hassan';
## Task Generate a SQL query to answer the following question: `Who was listed under the general classification when the stage winner was suhardi hassan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "asian_rider_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was listed under the general classification when the stage winner was suhardi hassan?`: ```sql
SELECT MAX("stage") FROM "classification_leadership" WHERE "stage_winner"='Suhardi Hassan';
## Task Generate a SQL query to answer the following question: `what is the greatest stage number in which suhardi hassan is the stage winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "asian_rider_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the greatest stage number in which suhardi hassan is the stage winner?`: ```sql
SELECT "general_classification" FROM "classification_leadership" WHERE "stage"=4;
## Task Generate a SQL query to answer the following question: `Who is listed under general classification on stage 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "asian_rider_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is listed under general classification on stage 4?`: ```sql
SELECT "written_by" FROM "table1_27117365_1" WHERE "u_s_viewers_million"='7.70';
## Task Generate a SQL query to answer the following question: `Who wrote the episodes with 7.70 u.s. viewers (million) ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27117365_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_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episodes with 7.70 u.s. viewers (million) ?`: ```sql
SELECT "original_air_date" FROM "table1_27117365_1" WHERE "u_s_viewers_million"='5.85';
## Task Generate a SQL query to answer the following question: `What original air date has 5.85 u.s. viewers (million)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27117365_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_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What original air date has 5.85 u.s. viewers (million)?`: ```sql
SELECT "title" FROM "table1_27117365_1" WHERE "no_in_season"=10;
## Task Generate a SQL query to answer the following question: `What's the title in the number 10 in the season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27117365_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_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the title in the number 10 in the season?`: ```sql
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "manner_of_departure"='Resigned' AND "position_in_table"='10th';
## Task Generate a SQL query to answer the following question: `If the position in table is 10th, and the manner of departure was resigned, what was the date of vacancy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_head_coach" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" text, "incoming_head_coach" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `If the position in table is 10th, and the manner of departure was resigned, what was the date of vacancy?`: ```sql
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "incoming_head_coach"='Carlos Azenha';
## Task Generate a SQL query to answer the following question: `If the incoming head coach is Carlos Azenha, what is the date of vacancy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_head_coach" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" text, "incoming_head_coach" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `If the incoming head coach is Carlos Azenha, what is the date of vacancy?`: ```sql
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='União de Leiria';
## Task Generate a SQL query to answer the following question: `If the team is união de leiria, what is the date of appointment?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_head_coach" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" text, "incoming_head_coach" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `If the team is união de leiria, what is the date of appointment?`: ```sql
SELECT "2003" FROM "table1_27146868_1" WHERE "1999"='2.1';
## Task Generate a SQL query to answer the following question: `What is 2003 when 1999 is 2.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27146868_1" ( "greek_national_account" text, "1970" text, "1980" text, "1990" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001_1" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013_2" text, "2014_2" text, "2015_3" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 2003 when 1999 is 2.1?`: ```sql
SELECT "2010" FROM "table1_27146868_1" WHERE "2003"='5.6';
## Task Generate a SQL query to answer the following question: `What is 2010 when 2003 is 5.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27146868_1" ( "greek_national_account" text, "1970" text, "1980" text, "1990" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001_1" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013_2" text, "2014_2" text, "2015_3" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 2010 when 2003 is 5.6?`: ```sql
SELECT "greek_national_account" FROM "table1_27146868_1" WHERE "1997"='6.1';
## Task Generate a SQL query to answer the following question: `What is the greek national account when 1997 is 6.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27146868_1" ( "greek_national_account" text, "1970" text, "1980" text, "1990" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001_1" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013_2" text, "2014_2" text, "2015_3" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the greek national account when 1997 is 6.1?`: ```sql
SELECT "1995" FROM "table1_27146868_1" WHERE "2001_1"='45.8';
## Task Generate a SQL query to answer the following question: `What is 1995 when 20011 is 45.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27146868_1" ( "greek_national_account" text, "1970" text, "1980" text, "1990" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001_1" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013_2" text, "2014_2" text, "2015_3" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 1995 when 20011 is 45.8?`: ```sql
SELECT "2006" FROM "table1_27146868_1" WHERE "1997"='6.8';
## Task Generate a SQL query to answer the following question: `What is 2006 when 1997 is 6.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27146868_1" ( "greek_national_account" text, "1970" text, "1980" text, "1990" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001_1" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013_2" text, "2014_2" text, "2015_3" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 2006 when 1997 is 6.8?`: ```sql
SELECT "2002" FROM "table1_27146868_1" WHERE "2009"='54.0';
## Task Generate a SQL query to answer the following question: `What is 2002 when 2009 is 54.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_27146868_1" ( "greek_national_account" text, "1970" text, "1980" text, "1990" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001_1" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013_2" text, "2014_2" text, "2015_3" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 2002 when 2009 is 54.0?`: ```sql
SELECT "pro_team" FROM "third_round" WHERE "position"='DT' AND "nfl_team"='Houston Oilers';
## Task Generate a SQL query to answer the following question: `If the NFL team is the Houston Oilers and the position is DT, who is the Pro team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "pro_team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `If the NFL team is the Houston Oilers and the position is DT, who is the Pro team?`: ```sql
SELECT COUNT("player") FROM "third_round" WHERE "nfl_team"='Washington Redskins';
## Task Generate a SQL query to answer the following question: `How many different players does the Washington Redskins have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "pro_team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different players does the Washington Redskins have?`: ```sql
SELECT "position" FROM "third_round" WHERE "college"='Vanderbilt';
## Task Generate a SQL query to answer the following question: `If the college is Vanderbilt, what is the position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "pro_team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `If the college is Vanderbilt, what is the position?`: ```sql