output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MIN("meas_num") FROM "1932_general_election" WHERE "description"='Tax Supervising and Conservation Bill';
## Task Generate a SQL query to answer the following question: `What is the number of the tax supervising and conservation bill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1932_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of the tax supervising and conservation bill?`: ```sql
SELECT COUNT("passed") FROM "1954_general_election" WHERE "pct_yes"='52.11%';
## Task Generate a SQL query to answer the following question: `How many ballot measures had a percentage yes of 52.11%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1954_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `How many ballot measures had a percentage yes of 52.11%?`: ```sql
SELECT "description" FROM "1954_general_election" WHERE "pct_yes"='44.06%';
## Task Generate a SQL query to answer the following question: `What is the measure where the yes% is 44.06%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1954_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the measure where the yes% is 44.06%?`: ```sql
SELECT COUNT("passed") FROM "1954_general_election" WHERE "yes_votes"=216545;
## Task Generate a SQL query to answer the following question: `How many measures had a yes vote of 216545?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1954_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `How many measures had a yes vote of 216545?`: ```sql
SELECT MAX("meas_num") FROM "1954_general_election";
## Task Generate a SQL query to answer the following question: `What is the highest measure number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1954_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest measure number?`: ```sql
SELECT "pct_yes" FROM "1962_general_election" WHERE "no_votes"=199174;
## Task Generate a SQL query to answer the following question: `What was the percentage of yes votes for the measure where the no votes number 199174?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1962_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the percentage of yes votes for the measure where the no votes number 199174?`: ```sql
SELECT COUNT("type") FROM "1962_general_election" WHERE "yes_votes"=312680;
## Task Generate a SQL query to answer the following question: `How many types are there for the measure where there were 312680 yes votes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1962_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `How many types are there for the measure where there were 312680 yes votes?`: ```sql
SELECT COUNT("no_votes") FROM "1962_general_election" WHERE "description"='Forest Rehabilitation Debt Limit Amendment';
## Task Generate a SQL query to answer the following question: `How many figures are there for No votes for the Forest Rehabilitation Debt Limit Amendment?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1962_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `How many figures are there for No votes for the Forest Rehabilitation Debt Limit Amendment?`: ```sql
SELECT "type" FROM "1962_general_election" WHERE "description"='Power Development Debt Limit Amendment';
## Task Generate a SQL query to answer the following question: `What is the type of measure that voted on the Power Development Debt Limit Amendment?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1962_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the type of measure that voted on the Power Development Debt Limit Amendment?`: ```sql
SELECT "passed" FROM "1956_general_election" WHERE "description"='Authorizing State Acceptance of Certain Gifts';
## Task Generate a SQL query to answer the following question: `What vote passed for the measure with the description, authorizing state acceptance of certain gifts? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1956_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What vote passed for the measure with the description, authorizing state acceptance of certain gifts? `: ```sql
SELECT COUNT("passed") FROM "1956_general_election" WHERE "yes_votes"=390338;
## Task Generate a SQL query to answer the following question: `How many votes passed are listed on the measure that had 390338 yes votes? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1956_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `How many votes passed are listed on the measure that had 390338 yes votes? `: ```sql
SELECT "type" FROM "1956_general_election" WHERE "yes_votes"=175932;
## Task Generate a SQL query to answer the following question: `What was the type when there were 175932 yes votes? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1956_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the type when there were 175932 yes votes? `: ```sql
SELECT COUNT("yes_votes") FROM "1958_general_election" WHERE "no_votes"<299939.1619948521 AND "pct_yes"='66.49%';
## Task Generate a SQL query to answer the following question: `What is the aggregate number of yes votes where no votes is littler than 299939.1619948521 and % yes is 66.49%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1958_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the aggregate number of yes votes where no votes is littler than 299939.1619948521 and % yes is 66.49%`: ```sql
SELECT "description" FROM "1970_general_election" WHERE "pct_yes"='78.27%';
## Task Generate a SQL query to answer the following question: `What is the description of the measure that got 78.27% yes votes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1970_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the description of the measure that got 78.27% yes votes?`: ```sql
SELECT MAX("meas_num") FROM "1970_general_election";
## Task Generate a SQL query to answer the following question: `What is the highest measure number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1970_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest measure number?`: ```sql
SELECT COUNT("const_amd") FROM "1970_general_election" WHERE "meas_num"=8;
## Task Generate a SQL query to answer the following question: `How many measures numbered 8 were a constitutional ammendment?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1970_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `How many measures numbered 8 were a constitutional ammendment?`: ```sql
SELECT COUNT("type") FROM "1910_general_election" WHERE "description"='Calling Convention to revise State Constitution';
## Task Generate a SQL query to answer the following question: `How many type classifications are given to the measure with the description, calling convention to revise state constitution? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1910_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `How many type classifications are given to the measure with the description, calling convention to revise state constitution? `: ```sql
SELECT "pct_yes" FROM "1910_general_election" WHERE "yes_votes"=35270;
## Task Generate a SQL query to answer the following question: `What is the yes percentage in the measure that had 35270 yes votes? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1910_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the yes percentage in the measure that had 35270 yes votes? `: ```sql
SELECT "const_amd" FROM "1910_general_election" WHERE "description"='To Annex Part of Washington County to Multnomah';
## Task Generate a SQL query to answer the following question: `Was the constitution amended for the measure with description , to annex part of Washington county to multnomah? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1910_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `Was the constitution amended for the measure with description , to annex part of Washington county to multnomah? `: ```sql
SELECT MAX("meas_num") FROM "may_1970_primary_election" WHERE "no_votes"=322682;
## Task Generate a SQL query to answer the following question: `When the no votes was 322682, what was the max meas. number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "may_1970_primary_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `When the no votes was 322682, what was the max meas. number?`: ```sql
SELECT "const_amd" FROM "may_1974_election" WHERE "description"='Authorizes bonds for water development fund';
## Task Generate a SQL query to answer the following question: `Was the constitution amended on the measure described as authorizes bonds for water development fund? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "may_1974_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `Was the constitution amended on the measure described as authorizes bonds for water development fund? `: ```sql
SELECT MAX("yes_votes") FROM "may_1974_election" WHERE "meas_num"=4;
## Task Generate a SQL query to answer the following question: `How yes votes were there for measure 4? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "may_1974_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `How yes votes were there for measure 4? `: ```sql
SELECT "const_amd" FROM "may_1974_election" WHERE "pct_yes"='69.82%';
## Task Generate a SQL query to answer the following question: `Was the constitution amended when the percentage of yes votes was 69.82%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "may_1974_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `Was the constitution amended when the percentage of yes votes was 69.82%?`: ```sql
SELECT MIN("meas_num") FROM "may_1974_election";
## Task Generate a SQL query to answer the following question: `What was the lowest measure number? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "may_1974_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the lowest measure number? `: ```sql
SELECT "type" FROM "1914_general_election" WHERE "pct_yes"='32.47%';
## Task Generate a SQL query to answer the following question: `What was the type of ballot measures if the % of yes vote is 32.47%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1914_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the type of ballot measures if the % of yes vote is 32.47%?`: ```sql
SELECT "type" FROM "1914_general_election" WHERE "description"='Department of Industry and Public Works Amendment';
## Task Generate a SQL query to answer the following question: `What was the type of ballot measure with the description of Department of Industry and Public Works Amendment?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1914_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the type of ballot measure with the description of Department of Industry and Public Works Amendment?`: ```sql
SELECT COUNT("no_votes") FROM "1914_general_election" WHERE "description"='$1500 Tax Exemption Amendment';
## Task Generate a SQL query to answer the following question: `How many data are there under NO vote with a description of $1500 tax exemption amendment?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1914_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `How many data are there under NO vote with a description of $1500 tax exemption amendment?`: ```sql
SELECT "pct_yes" FROM "table1_256286_61" WHERE "yes_votes"=218846;
## Task Generate a SQL query to answer the following question: `What is the percentage of yes when there were 218846 yes votes` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_256286_61" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage of yes when there were 218846 yes votes`: ```sql
SELECT COUNT("type") FROM "table1_256286_61" WHERE "pct_yes"='68.91%';
## Task Generate a SQL query to answer the following question: `How many type catagories are listed when the percentage of yes is 68.91%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_256286_61" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `How many type catagories are listed when the percentage of yes is 68.91%?`: ```sql
SELECT "type" FROM "table1_256286_61" WHERE "yes_votes"=546255;
## Task Generate a SQL query to answer the following question: `What is the type when yes votes are 546255? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_256286_61" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the type when yes votes are 546255? `: ```sql
SELECT "meas_num" FROM "table1_256286_61" WHERE "description"='Obscenity and sexual conduct bill';
## Task Generate a SQL query to answer the following question: `What is the measure number for the bill described as obscenity and sexual conduct bill? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_256286_61" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the measure number for the bill described as obscenity and sexual conduct bill? `: ```sql
SELECT COUNT("points") FROM "individual_scoring_totals" WHERE "player"='Art Renner';
## Task Generate a SQL query to answer the following question: `How many points did art renner have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual_scoring_totals" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many points did art renner have?`: ```sql
SELECT COUNT("touchdowns") FROM "individual_scoring_totals" WHERE "player"='Bill Culligan';
## Task Generate a SQL query to answer the following question: `How many touchdowns did bill culligan have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual_scoring_totals" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many touchdowns did bill culligan have?`: ```sql
SELECT MAX("touchdowns") FROM "individual_scoring_totals";
## Task Generate a SQL query to answer the following question: `What was the highest number of touchdowns by a player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual_scoring_totals" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest number of touchdowns by a player?`: ```sql
SELECT MIN("points") FROM "individual_scoring_totals" WHERE "player"='Robert Stenberg';
## Task Generate a SQL query to answer the following question: `How many points did robert stenberg have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual_scoring_totals" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many points did robert stenberg have?`: ```sql
SELECT "location" FROM "table_of_earthquakes" WHERE "origin_time"='14:07';
## Task Generate a SQL query to answer the following question: `Where was the quake that began at 14:07?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_earthquakes" ( "date" text, "origin_time" text, "epicentre_lat_s" text, "epicentre_long_e" text, "local_magnitude" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the quake that began at 14:07?`: ```sql
SELECT "epicentre_lat_s" FROM "table_of_earthquakes" WHERE "origin_time"='17:09';
## Task Generate a SQL query to answer the following question: `What was the epicenter latitude for the quake that started at 17:09?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_earthquakes" ( "date" text, "origin_time" text, "epicentre_lat_s" text, "epicentre_long_e" text, "local_magnitude" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the epicenter latitude for the quake that started at 17:09?`: ```sql
SELECT "original_air_date" FROM "table1_25649467_2" WHERE "title"='\"Pants on Fire\"';
## Task Generate a SQL query to answer the following question: `When "pants on fire" is the title what is the air date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25649467_2" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `When "pants on fire" is the title what is the air date?`: ```sql
SELECT "original_air_date" FROM "table1_25649467_2" WHERE "title"='\"The Charlotte Letter\"';
## Task Generate a SQL query to answer the following question: `When "the charlotte letter" is the title what is the air date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25649467_2" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `When "the charlotte letter" is the title what is the air date?`: ```sql
SELECT MIN("series_num") FROM "table1_25649467_2" WHERE "title"='\"The 37-Year Itch\"';
## Task Generate a SQL query to answer the following question: `When "the 37-year itch" is the title what is the lowest series number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25649467_2" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `When "the 37-year itch" is the title what is the lowest series number?`: ```sql
SELECT COUNT("series_num") FROM "table1_25649467_2" WHERE "season_num"=12;
## Task Generate a SQL query to answer the following question: `When 12 is the season number how many series numbers are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25649467_2" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `When 12 is the season number how many series numbers are there?`: ```sql
SELECT "mountains_classification" FROM "classification_leadership" WHERE "winner"='Borut Božič';
## Task Generate a SQL query to answer the following question: `Who had the mountains classification when borut božič was the winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "sprint_classification" text, "mountains_classification" text, "points_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the mountains classification when borut božič was the winner?`: ```sql
SELECT "team_classification" FROM "classification_leadership" WHERE "winner"='André Greipel' AND "points_classification"='André Greipel';
## Task Generate a SQL query to answer the following question: `What was the team classification where andré greipel was the winner and had the points classification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "sprint_classification" text, "mountains_classification" text, "points_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the team classification where andré greipel was the winner and had the points classification?`: ```sql
SELECT MAX("stage") FROM "classification_leadership";
## Task Generate a SQL query to answer the following question: `How many stages are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "sprint_classification" text, "mountains_classification" text, "points_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `How many stages are there?`: ```sql
SELECT COUNT("sprint_classification") FROM "classification_leadership" WHERE "winner"='Marco Frapporti';
## Task Generate a SQL query to answer the following question: `How many sprint classifications are there where marco frapporti is the winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "sprint_classification" text, "mountains_classification" text, "points_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `How many sprint classifications are there where marco frapporti is the winner?`: ```sql
SELECT "second_couple" FROM "series_1" WHERE "itv1_weekly_ranking"=29;
## Task Generate a SQL query to answer the following question: `Who was the second couple for the episode having an ITV1 ranking of 29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "num" real, "airdate" text, "no_of_couples" real, "first_couple" text, "second_couple" text, "third_couple" text, "fourth_couple" text, "viewers_millions" text, "itv1_weekly_ranking" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the second couple for the episode having an ITV1 ranking of 29?`: ```sql
SELECT MAX("itv1_weekly_ranking") FROM "series_1";
## Task Generate a SQL query to answer the following question: `What is the maximum ITV1 weekly ranking?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "num" real, "airdate" text, "no_of_couples" real, "first_couple" text, "second_couple" text, "third_couple" text, "fourth_couple" text, "viewers_millions" text, "itv1_weekly_ranking" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum ITV1 weekly ranking?`: ```sql
SELECT "viewers_millions" FROM "series_1" WHERE "fourth_couple"='Tony and Jamie';
## Task Generate a SQL query to answer the following question: `What was the number of viewers for the episode having a fourth couple of Tony and Jamie?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "num" real, "airdate" text, "no_of_couples" real, "first_couple" text, "second_couple" text, "third_couple" text, "fourth_couple" text, "viewers_millions" text, "itv1_weekly_ranking" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the number of viewers for the episode having a fourth couple of Tony and Jamie?`: ```sql
SELECT "first_couple" FROM "series_1" WHERE "fourth_couple"='Sammy and Nat';
## Task Generate a SQL query to answer the following question: `Who was the first couple in the episode having a fourth couple of Sammy and Nat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "num" real, "airdate" text, "no_of_couples" real, "first_couple" text, "second_couple" text, "third_couple" text, "fourth_couple" text, "viewers_millions" text, "itv1_weekly_ranking" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the first couple in the episode having a fourth couple of Sammy and Nat?`: ```sql
SELECT MIN("itv1_weekly_ranking") FROM "series_1" WHERE "viewers_millions"='5.42';
## Task Generate a SQL query to answer the following question: `What is the minimum ITV1 ranking for the episode having viewership of 5.42 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1" ( "num" real, "airdate" text, "no_of_couples" real, "first_couple" text, "second_couple" text, "third_couple" text, "fourth_couple" text, "viewers_millions" text, "itv1_weekly_ranking" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum ITV1 ranking for the episode having viewership of 5.42 million?`: ```sql
SELECT MAX("no_in_series") FROM "table1_25668962_1" WHERE "u_s_viewers_million"='13.66';
## Task Generate a SQL query to answer the following question: `What episode number in the series was viewed by 13.66 million people in the U.S.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25668962_1" ( "no_in_series" 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 episode number in the series was viewed by 13.66 million people in the U.S.?`: ```sql
SELECT "u_s_viewers_million" FROM "table1_25668962_1" WHERE "production_code"='1ARC12';
## Task Generate a SQL query to answer the following question: `How many million U.S. viewers watched the epiode with a production code of 1arc12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25668962_1" ( "no_in_series" 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 million U.S. viewers watched the epiode with a production code of 1arc12?`: ```sql
SELECT "u_s_viewers_million" FROM "table1_25668962_1" WHERE "production_code"='1ARC03';
## Task Generate a SQL query to answer the following question: `How many million U.S. viewers watched the episode with a production code of 1arc03?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25668962_1" ( "no_in_series" 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 million U.S. viewers watched the episode with a production code of 1arc03?`: ```sql
SELECT "u_s_viewers_million" FROM "table1_25668962_1" WHERE "no_in_series"=6;
## Task Generate a SQL query to answer the following question: `How many million U.S. viewers watched episode number 6 in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25668962_1" ( "no_in_series" 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 million U.S. viewers watched episode number 6 in the series?`: ```sql
SELECT "directed_by" FROM "table1_25668962_1" WHERE "no_in_series"=18;
## Task Generate a SQL query to answer the following question: `Who directed episode number 18 in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25668962_1" ( "no_in_series" 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 directed episode number 18 in the series?`: ```sql
SELECT COUNT("num") FROM "series_2" WHERE "1st_couple"='Stuart and Pegah';
## Task Generate a SQL query to answer the following question: `How many episode numbers are there on the show whose first couple was Stuart and Pegah>?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_2" ( "num" real, "airdate" text, "no_of_couples" real, "1st_couple" text, "2nd_couple" text, "3rd_couple" text, "4th_couple" text, "viewers_millions" text, "itv1_weekly_ranking" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episode numbers are there on the show whose first couple was Stuart and Pegah>?`: ```sql
SELECT "3rd_couple" FROM "series_2" WHERE "viewers_millions"='4.89';
## Task Generate a SQL query to answer the following question: `Who were the 3rd couple that were viewed by 4.89 million viewers? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_2" ( "num" real, "airdate" text, "no_of_couples" real, "1st_couple" text, "2nd_couple" text, "3rd_couple" text, "4th_couple" text, "viewers_millions" text, "itv1_weekly_ranking" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the 3rd couple that were viewed by 4.89 million viewers? `: ```sql
SELECT "location" FROM "race_calendar_and_results" WHERE "most_laps_led"='Patrick McKenna';
## Task Generate a SQL query to answer the following question: `What location(s) did patrick mckenna lead the most laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "rnd" text, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `What location(s) did patrick mckenna lead the most laps?`: ```sql
SELECT COUNT("fastest_lap") FROM "race_calendar_and_results" WHERE "rnd"='10';
## Task Generate a SQL query to answer the following question: `How many races went for 10 rounds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "rnd" text, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `How many races went for 10 rounds?`: ```sql
SELECT "most_laps_led" FROM "race_calendar_and_results" WHERE "location"='Monterey, California' AND "winning_driver"='Scott Rarick';
## Task Generate a SQL query to answer the following question: `Who had the most laps led in monterey, california when scott rarick won the race?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "rnd" text, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the most laps led in monterey, california when scott rarick won the race?`: ```sql
SELECT "winning_team" FROM "race_calendar_and_results" WHERE "winning_driver"='Mikhail Goikhberg';
## Task Generate a SQL query to answer the following question: `What was the winning team when mikhail goikhberg was the winning driver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "rnd" text, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the winning team when mikhail goikhberg was the winning driver?`: ```sql
SELECT "directed_by" FROM "table1_25679312_2" WHERE "prod_code"=10;
## Task Generate a SQL query to answer the following question: `Who directed the episode with the production code 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25679312_2" ( "series_num" real, "episode_title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode with the production code 10?`: ```sql
SELECT "written_by" FROM "table1_25679312_2" WHERE "prod_code"=2;
## Task Generate a SQL query to answer the following question: `Who wrote the episode with production code 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25679312_2" ( "series_num" real, "episode_title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode with production code 2?`: ```sql
SELECT "written_by" FROM "table1_25679312_2" WHERE "prod_code"=5;
## Task Generate a SQL query to answer the following question: `Who wrote the episode with production code 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25679312_2" ( "series_num" real, "episode_title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode with production code 5?`: ```sql
SELECT COUNT("finish") FROM "history" WHERE "entries"='15' AND "winning_yacht"='L''Esprit d''Equipe';
## Task Generate a SQL query to answer the following question: `Name the number of finishes for 15 entries 15 and l'esprit d'equipe` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "history" ( "edition" text, "class" text, "legs" real, "in_port_races" text, "entries" text, "start" text, "finish" text, "winning_yacht" text, "winning_skipper" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of finishes for 15 entries 15 and l'esprit d'equipe`: ```sql
SELECT MAX("legs") FROM "history" WHERE "winning_yacht"='Steinlager 2';
## Task Generate a SQL query to answer the following question: `Name the most legs for steinlager 2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "history" ( "edition" text, "class" text, "legs" real, "in_port_races" text, "entries" text, "start" text, "finish" text, "winning_yacht" text, "winning_skipper" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most legs for steinlager 2`: ```sql
SELECT "winning_yacht" FROM "history" WHERE "entries"='14';
## Task Generate a SQL query to answer the following question: `Name the wininng yacht for 14 entries` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "history" ( "edition" text, "class" text, "legs" real, "in_port_races" text, "entries" text, "start" text, "finish" text, "winning_yacht" text, "winning_skipper" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the wininng yacht for 14 entries`: ```sql
SELECT "the_w_rd" FROM "table1_25691838_2" WHERE "original_airdate"='February 11';
## Task Generate a SQL query to answer the following question: `What was the word for the episode that aired February 11? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_2" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the word for the episode that aired February 11? `: ```sql
SELECT "introductory_phrase" FROM "table1_25691838_2" WHERE "production_code"=6026;
## Task Generate a SQL query to answer the following question: `What was the introductory phrase for the episode with the production bode 6026?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_2" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the introductory phrase for the episode with the production bode 6026?`: ```sql
SELECT "the_w_rd" FROM "table1_25691838_2" WHERE "episode_num"=673;
## Task Generate a SQL query to answer the following question: `What was the word on episode number 673? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_2" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the word on episode number 673? `: ```sql
SELECT "guest" FROM "table1_25691838_2" WHERE "production_code"=6021;
## Task Generate a SQL query to answer the following question: `Who were the guests in the episode with production code 6021? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_2" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who were the guests in the episode with production code 6021? `: ```sql
SELECT "guest" FROM "table1_25691838_12" WHERE "production_code"=6152;
## Task Generate a SQL query to answer the following question: `Who were the guests on a show where the production code is 6152?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_12" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who were the guests on a show where the production code is 6152?`: ```sql
SELECT "guest" FROM "table1_25691838_12" WHERE "original_airdate"='December 07';
## Task Generate a SQL query to answer the following question: `Who were the guests for the episode with an original airdate of december 07?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_12" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who were the guests for the episode with an original airdate of december 07?`: ```sql
SELECT COUNT("introductory_phrase") FROM "table1_25691838_12" WHERE "the_w_rd"='\"Unrequited Gov\"';
## Task Generate a SQL query to answer the following question: `How many introductory phrases are there with "the wørd" is "unrequited gov"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_12" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `How many introductory phrases are there with "the wørd" is "unrequited gov"?`: ```sql
SELECT "the_w_rd" FROM "table1_25691838_12" WHERE "guest"='Daniel Ellsberg , William Wegman , Julie Taymor';
## Task Generate a SQL query to answer the following question: `What is "the wørd" when guests were daniel ellsberg , william wegman , julie taymor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_12" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is "the wørd" when guests were daniel ellsberg , william wegman , julie taymor?`: ```sql
SELECT "production_code" FROM "table1_25691838_12" WHERE "original_airdate"='December 01';
## Task Generate a SQL query to answer the following question: `What is the production code of the episode with an original airdate of december 01?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_12" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the production code of the episode with an original airdate of december 01?`: ```sql
SELECT MIN("episode_num") FROM "table1_25691838_12" WHERE "guest"='Julie Nixon Eisenhower and David Eisenhower';
## Task Generate a SQL query to answer the following question: `What is the episode # when the guests were julie nixon eisenhower and david eisenhower?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_12" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the episode # when the guests were julie nixon eisenhower and david eisenhower?`: ```sql
SELECT "guest" FROM "table1_25691838_8" WHERE "original_airdate"='August 16';
## Task Generate a SQL query to answer the following question: `Who were the guests on the episode that first aired August 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_8" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who were the guests on the episode that first aired August 16?`: ```sql
SELECT "introductory_phrase" FROM "table1_25691838_8" WHERE "production_code"=6101;
## Task Generate a SQL query to answer the following question: `What was the introductory phrase on the episode production code 6101?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_8" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the introductory phrase on the episode production code 6101?`: ```sql
SELECT MIN("production_code") FROM "table1_25691838_8" WHERE "original_airdate"='August 11';
## Task Generate a SQL query to answer the following question: `What was the smallest production code for August 11's original episode?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_8" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the smallest production code for August 11's original episode?`: ```sql
SELECT COUNT("introductory_phrase") FROM "table1_25691838_8" WHERE "guest"='David Finkel';
## Task Generate a SQL query to answer the following question: `How many introductory phrases were there on David Finkel's guest episode?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_8" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `How many introductory phrases were there on David Finkel's guest episode?`: ```sql
SELECT MIN("episode_num") FROM "table1_25691838_8" WHERE "original_airdate"='August 11';
## Task Generate a SQL query to answer the following question: `What was the minimum number of the episode that first aired August 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_8" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the minimum number of the episode that first aired August 11?`: ```sql
SELECT "guest" FROM "table1_25691838_8" WHERE "original_airdate"='August 16';
## Task Generate a SQL query to answer the following question: `Who were the guests for August 16's original episode?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25691838_8" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who were the guests for August 16's original episode?`: ```sql
SELECT "introductory_phrase" FROM "november" WHERE "episode_num"=794;
## Task Generate a SQL query to answer the following question: `What was the introductory phrase for episode 794?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "november" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the introductory phrase for episode 794?`: ```sql
SELECT "original_airdate" FROM "november" WHERE "guest"='Salvatore Giunta';
## Task Generate a SQL query to answer the following question: `What date did the episode originally air on with salvatore giunta as a guest?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "november" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What date did the episode originally air on with salvatore giunta as a guest?`: ```sql
SELECT COUNT("production_code") FROM "november" WHERE "original_airdate"='November 15';
## Task Generate a SQL query to answer the following question: `How many production codes were there for the episode that aired on November 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "november" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `How many production codes were there for the episode that aired on November 15?`: ```sql
SELECT "cylinder_size" FROM "engine_num7002" WHERE "number_built"='88';
## Task Generate a SQL query to answer the following question: `What was the cylinder size of this engine that was made with only 88 pieces?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_num7002" ( "class" text, "firebox" text, "cylinder_size" text, "valves" text, "valve_gear" text, "number_built" text, "years_built" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the cylinder size of this engine that was made with only 88 pieces?`: ```sql
SELECT "class" FROM "engine_num7002" WHERE "years_built"='1906-08';
## Task Generate a SQL query to answer the following question: `What was the engine class that was built on 1906-08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_num7002" ( "class" text, "firebox" text, "cylinder_size" text, "valves" text, "valve_gear" text, "number_built" text, "years_built" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the engine class that was built on 1906-08?`: ```sql
SELECT "number_built" FROM "engine_num7002" WHERE "cylinder_size"='20 ½” x 26”' AND "firebox"='Belpaire' AND "valve_gear"='Stephenson';
## Task Generate a SQL query to answer the following question: `How many engines were built with a cylinder size of 20 ½” x 26”, firebox is belpaire and valve gear is from Stephenson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_num7002" ( "class" text, "firebox" text, "cylinder_size" text, "valves" text, "valve_gear" text, "number_built" text, "years_built" text ); ### SQL Given the database schema, here is the SQL query that answers `How many engines were built with a cylinder size of 20 ½” x 26”, firebox is belpaire and valve gear is from Stephenson?`: ```sql
SELECT "years_built" FROM "engine_num7002" WHERE "cylinder_size"='20 ½” x 26”' AND "firebox"='Radial-stay';
## Task Generate a SQL query to answer the following question: `This engine with a cylinder size of 20 ½” x 26” and a firebox of radial-stay was built when?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_num7002" ( "class" text, "firebox" text, "cylinder_size" text, "valves" text, "valve_gear" text, "number_built" text, "years_built" text ); ### SQL Given the database schema, here is the SQL query that answers `This engine with a cylinder size of 20 ½” x 26” and a firebox of radial-stay was built when?`: ```sql
SELECT COUNT("valves") FROM "engine_num7002" WHERE "years_built"='1902-05';
## Task Generate a SQL query to answer the following question: `How many types of valves were used on this engine that was built on 1902-05?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_num7002" ( "class" text, "firebox" text, "cylinder_size" text, "valves" text, "valve_gear" text, "number_built" text, "years_built" text ); ### SQL Given the database schema, here is the SQL query that answers `How many types of valves were used on this engine that was built on 1902-05?`: ```sql
SELECT "agency" FROM "table1_25692955_1" WHERE "south_west_terminal"='Santa Rosa Avenue';
## Task Generate a SQL query to answer the following question: `Name the agency for santa rosa avenue` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25692955_1" ( "agency" text, "route_number" text, "north_east_terminal" text, "south_west_terminal" text, "more_information" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the agency for santa rosa avenue`: ```sql
SELECT "route_number" FROM "table1_25692955_1" WHERE "south_west_terminal"='Rincon Valley';
## Task Generate a SQL query to answer the following question: `Name the route number for rincon valley` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25692955_1" ( "agency" text, "route_number" text, "north_east_terminal" text, "south_west_terminal" text, "more_information" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the route number for rincon valley`: ```sql
SELECT "route_number" FROM "table1_25692955_1" WHERE "north_east_terminal"='Santa Rosa Avenue';
## Task Generate a SQL query to answer the following question: `Name the route number for santa rosa avenue` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25692955_1" ( "agency" text, "route_number" text, "north_east_terminal" text, "south_west_terminal" text, "more_information" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the route number for santa rosa avenue`: ```sql
SELECT "original_air_date_uk" FROM "series_3_spearhead_in_hong_kong" WHERE "episode_title"='Another Happy Day';
## Task Generate a SQL query to answer the following question: `What is the original air date of the episode "Another Happy Day"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3_spearhead_in_hong_kong" ( "episode_num" text, "original_air_date_uk" text, "episode_title" text, "director" text, "writer" text, "cast" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the original air date of the episode "Another Happy Day"?`: ```sql
SELECT "episode_title" FROM "series_3_spearhead_in_hong_kong" WHERE "original_air_date_uk"='13 August 1981';
## Task Generate a SQL query to answer the following question: `What is the title of the episode that aired on 13 august 1981?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3_spearhead_in_hong_kong" ( "episode_num" text, "original_air_date_uk" text, "episode_title" text, "director" text, "writer" text, "cast" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the episode that aired on 13 august 1981?`: ```sql
SELECT "original_air_date_uk" FROM "series_3_spearhead_in_hong_kong" WHERE "episode_num"='3-02';
## Task Generate a SQL query to answer the following question: `What is the original air date of episode 3-02?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3_spearhead_in_hong_kong" ( "episode_num" text, "original_air_date_uk" text, "episode_title" text, "director" text, "writer" text, "cast" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the original air date of episode 3-02?`: ```sql
SELECT "cast" FROM "series_3_spearhead_in_hong_kong" WHERE "episode_num"='3-04';
## Task Generate a SQL query to answer the following question: `Who are the cast members of episode 3-04?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3_spearhead_in_hong_kong" ( "episode_num" text, "original_air_date_uk" text, "episode_title" text, "director" text, "writer" text, "cast" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the cast members of episode 3-04?`: ```sql
SELECT MAX("birth_2013") FROM "table1_25703_1" WHERE "death_2012"='14,1';
## Task Generate a SQL query to answer the following question: `What is the highest birth/2013 when the death/2012 is 14,1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25703_1" ( "january_september_2013" text, "birth_2013" real, "birth_2012" real, "death_2013" real, "death_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest birth/2013 when the death/2012 is 14,1?`: ```sql
SELECT MAX("death_2013") FROM "table1_25703_1" WHERE "death_2012"='12,7';
## Task Generate a SQL query to answer the following question: `What is the highest death/2013 when the death/2012 is 12,7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25703_1" ( "january_september_2013" text, "birth_2013" real, "birth_2012" real, "death_2013" real, "death_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest death/2013 when the death/2012 is 12,7?`: ```sql