output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "team_classification" FROM "jersey_progress" WHERE "stage"='6';
## Task Generate a SQL query to answer the following question: `Name the team classification for stage of 6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jersey_progress" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the team classification for stage of 6`: ```sql
SELECT "power_k_w" FROM "sonshine_radio_stations_in_the_philippin" WHERE "location"='davao';
## Task Generate a SQL query to answer the following question: `What is the Davao's power (kW)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sonshine_radio_stations_in_the_philippin" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Davao's power (kW)?`: ```sql
SELECT "branding" FROM "sonshine_radio_stations_in_the_philippin" WHERE "callsign"='dxre';
## Task Generate a SQL query to answer the following question: `What is the brand of DXRE?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sonshine_radio_stations_in_the_philippin" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the brand of DXRE?`: ```sql
SELECT "power_k_w" FROM "sonshine_radio_stations_in_the_philippin" WHERE "location"='davao';
## Task Generate a SQL query to answer the following question: `What is the power (kW) of Davao?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sonshine_radio_stations_in_the_philippin" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the power (kW) of Davao?`: ```sql
SELECT "callsign" FROM "sonshine_radio_stations_in_the_philippin" WHERE "power_k_w"='5kw' AND "location"='cagayan de oro';
## Task Generate a SQL query to answer the following question: `What is the callsign of Cagayan de Oro with 5kW?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sonshine_radio_stations_in_the_philippin" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the callsign of Cagayan de Oro with 5kW?`: ```sql
SELECT "callsign" FROM "sonshine_radio_stations_in_the_philippin" WHERE "power_k_w"='5kw' AND "branding"='sonshine radio cotabato';
## Task Generate a SQL query to answer the following question: `What is the callsign of the 5kW Sonshine Radio Cotabato?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sonshine_radio_stations_in_the_philippin" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the callsign of the 5kW Sonshine Radio Cotabato?`: ```sql
SELECT AVG("runs") FROM "highest_batting_averages" WHERE "innings"=40 AND "not_outs">6;
## Task Generate a SQL query to answer the following question: `What's the average amount of Runs that has 40 innings, and Not outs larger than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_batting_averages" ( "matches" real, "innings" real, "not_outs" real, "runs" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the average amount of Runs that has 40 innings, and Not outs larger than 6?`: ```sql
SELECT COUNT("innings") FROM "highest_batting_averages" WHERE "runs"=1598 AND "matches"<41;
## Task Generate a SQL query to answer the following question: `What's the total Innings that has Runs of 1598, and Matches less than 41?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_batting_averages" ( "matches" real, "innings" real, "not_outs" real, "runs" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total Innings that has Runs of 1598, and Matches less than 41?`: ```sql
SELECT MAX("total_seats") FROM "results" WHERE "seat_percentage"='46.5%' AND "party_list_votes"<'394,118';
## Task Generate a SQL query to answer the following question: `What is the highest total number of seats with a Seat percentage of 46.5% and less than 394,118 party list votes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "party" text, "party_list_votes" real, "vote_percentage" text, "total_seats" real, "seat_percentage" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest total number of seats with a Seat percentage of 46.5% and less than 394,118 party list votes?`: ```sql
SELECT SUM("party_list_votes") FROM "results" WHERE "total_seats"=0 AND "vote_percentage"='2.6%';
## Task Generate a SQL query to answer the following question: `What is the number of party list votes for a vote percentage of 2.6% with 0 total seats?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "party" text, "party_list_votes" real, "vote_percentage" text, "total_seats" real, "seat_percentage" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of party list votes for a vote percentage of 2.6% with 0 total seats?`: ```sql
SELECT "venue" FROM "achievements" WHERE "year"=2008 AND "notes"='2:13:10';
## Task Generate a SQL query to answer the following question: `What venue held the event in 2008 that has 2:13:10 in the notes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "event" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue held the event in 2008 that has 2:13:10 in the notes?`: ```sql
SELECT "discoverer" FROM "specimen_data" WHERE "museum"='burpee museum of natural history';
## Task Generate a SQL query to answer the following question: `Who discovered the specimen at the Burpee Museum of Natural History?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specimen_data" ( "name" text, "discovered" real, "museum" text, "museum_city" text, "discoverer" text, "formation" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Who discovered the specimen at the Burpee Museum of Natural History?`: ```sql
SELECT "name" FROM "specimen_data" WHERE "discovered">1987 AND "museum_city"='indianapolis, in';
## Task Generate a SQL query to answer the following question: `What is the name of the specimen that was discovered after 1987 and is in an Indianapolis, Indiana museum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specimen_data" ( "name" text, "discovered" real, "museum" text, "museum_city" text, "discoverer" text, "formation" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the specimen that was discovered after 1987 and is in an Indianapolis, Indiana museum?`: ```sql
SELECT "formation" FROM "specimen_data" WHERE "discovered"<2001 AND "museum_city"='indianapolis, in';
## Task Generate a SQL query to answer the following question: `What is the formation that had the specimen discovered before 2001 and is in an Indianapolis, Indiana museum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specimen_data" ( "name" text, "discovered" real, "museum" text, "museum_city" text, "discoverer" text, "formation" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the formation that had the specimen discovered before 2001 and is in an Indianapolis, Indiana museum?`: ```sql
SELECT "museum_city" FROM "specimen_data" WHERE "discoverer"='jane solem';
## Task Generate a SQL query to answer the following question: `What is the city of the Museum that houses the specimen discovered by Jane Solem?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specimen_data" ( "name" text, "discovered" real, "museum" text, "museum_city" text, "discoverer" text, "formation" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the city of the Museum that houses the specimen discovered by Jane Solem?`: ```sql
SELECT "museum_city" FROM "specimen_data" WHERE "name"='sue';
## Task Generate a SQL query to answer the following question: `What city has the museum that holds the Sue specimen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specimen_data" ( "name" text, "discovered" real, "museum" text, "museum_city" text, "discoverer" text, "formation" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What city has the museum that holds the Sue specimen?`: ```sql
SELECT "name" FROM "grey_district" WHERE "roll"='637';
## Task Generate a SQL query to answer the following question: `With what Name does the Roll of 637 belong?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grey_district" ( "name" text, "years" text, "area" text, "authority" text, "decile" text, "roll" text ); ### SQL Given the database schema, here is the SQL query that answers `With what Name does the Roll of 637 belong?`: ```sql
SELECT "authority" FROM "grey_district" WHERE "roll"='70';
## Task Generate a SQL query to answer the following question: `Which is the Authority that has a Roll of 70?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grey_district" ( "name" text, "years" text, "area" text, "authority" text, "decile" text, "roll" text ); ### SQL Given the database schema, here is the SQL query that answers `Which is the Authority that has a Roll of 70?`: ```sql
SELECT "years" FROM "grey_district" WHERE "decile"='6';
## Task Generate a SQL query to answer the following question: `The Decile of 6 has which corresponding Years?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grey_district" ( "name" text, "years" text, "area" text, "authority" text, "decile" text, "roll" text ); ### SQL Given the database schema, here is the SQL query that answers `The Decile of 6 has which corresponding Years?`: ```sql
SELECT "award" FROM "2004" WHERE "director_s"='candida scott knight';
## Task Generate a SQL query to answer the following question: `Name the award for candida scott knight` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "film" text, "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the award for candida scott knight`: ```sql
SELECT "recipient" FROM "2004" WHERE "award"='£6,947' AND "film"='jamaica';
## Task Generate a SQL query to answer the following question: `Name the recipient for jamaica and award of £6,947` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "film" text, "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the recipient for jamaica and award of £6,947`: ```sql
SELECT "film" FROM "2004" WHERE "award"='£3,740';
## Task Generate a SQL query to answer the following question: `Name the film for award of £3,740` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "film" text, "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the film for award of £3,740`: ```sql
SELECT "director_s" FROM "2004" WHERE "recipient"='maya vision international ltd';
## Task Generate a SQL query to answer the following question: `Name the director for maya vision international ltd` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "film" text, "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the director for maya vision international ltd`: ```sql
SELECT "film" FROM "2004" WHERE "award"='£3,386';
## Task Generate a SQL query to answer the following question: `Name the film for award of £3,386` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "film" text, "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the film for award of £3,386`: ```sql
SELECT "venue" FROM "achievements" WHERE "position"='25th' AND "year"=2004;
## Task Generate a SQL query to answer the following question: `Name the venue for 2004 and position of 25th` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the venue for 2004 and position of 25th`: ```sql
SELECT "venue" FROM "achievements" WHERE "position"='27th';
## Task Generate a SQL query to answer the following question: `Name the venue for 27th position` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the venue for 27th position`: ```sql
SELECT "score" FROM "international_goals" WHERE "competition"='2005 fifa confederations cup' AND "result"='draw';
## Task Generate a SQL query to answer the following question: `What was the score of the draw in the 2005 FIFA Confederations Cup?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the draw in the 2005 FIFA Confederations Cup?`: ```sql
SELECT SUM("electors") FROM "votes_by_state" WHERE "nader"='465,151' AND "peroutka">'143,630';
## Task Generate a SQL query to answer the following question: `How many electors has 465,151 naders and more than 143,630 Peroutka?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "votes_by_state" ( "state" text, "electors" real, "bush" real, "kerry" real, "nader" real, "badnarik" real, "peroutka" real, "cobb" real, "others" real, "margin" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many electors has 465,151 naders and more than 143,630 Peroutka?`: ```sql
SELECT MAX("peroutka") FROM "votes_by_state" WHERE "others"=46 AND "electors"<15;
## Task Generate a SQL query to answer the following question: `What is the highest Peroutka with 46 others, and less than 15 electors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "votes_by_state" ( "state" text, "electors" real, "bush" real, "kerry" real, "nader" real, "badnarik" real, "peroutka" real, "cobb" real, "others" real, "margin" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Peroutka with 46 others, and less than 15 electors?`: ```sql
SELECT "3rd_place" FROM "one_day_final_1988_2009" WHERE "year"='1990';
## Task Generate a SQL query to answer the following question: `Who came in 3rd place in 1990?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "one_day_final_1988_2009" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text ); ### SQL Given the database schema, here is the SQL query that answers `Who came in 3rd place in 1990?`: ```sql
SELECT "class_pos" FROM "24_hours_of_le_mans_results" WHERE "team"='jml team panoz';
## Task Generate a SQL query to answer the following question: `Which class Pos has a Team of jml team panoz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); ### SQL Given the database schema, here is the SQL query that answers `Which class Pos has a Team of jml team panoz?`: ```sql
SELECT "class_pos" FROM "24_hours_of_le_mans_results" WHERE "year">1997 AND "team"='corvette racing' AND "class"='gt1' AND "laps"=327;
## Task Generate a SQL query to answer the following question: `Which Class Pos has a Year larger than 1997, a Team of corvette racing, a Class of gt1, and 327 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Class Pos has a Year larger than 1997, a Team of corvette racing, a Class of gt1, and 327 laps?`: ```sql
SELECT "final" FROM "nominations" WHERE "no_5"='simara';
## Task Generate a SQL query to answer the following question: `What is the final result of the team that has Simara as No.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "final" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the final result of the team that has Simara as No.5?`: ```sql
SELECT "winning_driver" FROM "world_championship_indy_500_summary" WHERE "second_driver"='jimmy bryan';
## Task Generate a SQL query to answer the following question: `Which Winning Driver has a Second Driver of jimmy bryan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championship_indy_500_summary" ( "season" real, "cars_entered" real, "winning_driver" text, "second_driver" text, "third_driver" text, "race_report" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Winning Driver has a Second Driver of jimmy bryan?`: ```sql
SELECT AVG("cars_entered") FROM "world_championship_indy_500_summary" WHERE "third_driver"='manny ayulo';
## Task Generate a SQL query to answer the following question: `How many average Cars Entered have a Third Driver of manny ayulo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championship_indy_500_summary" ( "season" real, "cars_entered" real, "winning_driver" text, "second_driver" text, "third_driver" text, "race_report" text ); ### SQL Given the database schema, here is the SQL query that answers `How many average Cars Entered have a Third Driver of manny ayulo?`: ```sql
SELECT MAX("cars_entered") FROM "world_championship_indy_500_summary" WHERE "season"=1958;
## Task Generate a SQL query to answer the following question: `What are the largest Cars Entered with a Season of 1958?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championship_indy_500_summary" ( "season" real, "cars_entered" real, "winning_driver" text, "second_driver" text, "third_driver" text, "race_report" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the largest Cars Entered with a Season of 1958?`: ```sql
SELECT MAX("season") FROM "world_championship_indy_500_summary" WHERE "third_driver"='jimmy davies';
## Task Generate a SQL query to answer the following question: `What is the largest season with a Third Driver of jimmy davies?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championship_indy_500_summary" ( "season" real, "cars_entered" real, "winning_driver" text, "second_driver" text, "third_driver" text, "race_report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest season with a Third Driver of jimmy davies?`: ```sql
SELECT MAX("cars_entered") FROM "world_championship_indy_500_summary" WHERE "winning_driver"='rodger ward' AND "season"<1959;
## Task Generate a SQL query to answer the following question: `What are the largest Cars Entered with a Winning Driver of rodger ward, and a Season smaller than 1959?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championship_indy_500_summary" ( "season" real, "cars_entered" real, "winning_driver" text, "second_driver" text, "third_driver" text, "race_report" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the largest Cars Entered with a Winning Driver of rodger ward, and a Season smaller than 1959?`: ```sql
SELECT "engine" FROM "complete_formula_one_results" WHERE "chassis"='brabham bt58' AND "points">2;
## Task Generate a SQL query to answer the following question: `What engine with more than 2 points has Brabham bt58 as Chassis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What engine with more than 2 points has Brabham bt58 as Chassis?`: ```sql
SELECT COUNT("points") FROM "complete_formula_one_results" WHERE "engine"='judd v8' AND "year"=1989;
## Task Generate a SQL query to answer the following question: `How many points did Judd v8 has in 1989?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many points did Judd v8 has in 1989?`: ```sql
SELECT AVG("year") FROM "complete_formula_one_results" WHERE "entrant"='sasol jordan yamaha';
## Task Generate a SQL query to answer the following question: `How many years has Sasol Jordan Yamaha as an Entrant?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many years has Sasol Jordan Yamaha as an Entrant?`: ```sql
SELECT "record" FROM "game_log" WHERE "loss"='williams (3-1)';
## Task Generate a SQL query to answer the following question: `What was the record for the game that had a loss of Williams (3-1)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record for the game that had a loss of Williams (3-1)?`: ```sql
SELECT "score" FROM "game_log" WHERE "loss"='embree (1-2)';
## Task Generate a SQL query to answer the following question: `What was the score of the game that had a loss of Embree (1-2)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game that had a loss of Embree (1-2)?`: ```sql
SELECT "2007" FROM "singles_performance_timeline" WHERE "tournament"='olympic games';
## Task Generate a SQL query to answer the following question: `What shows for 2007 at the Olympic Games as tournament.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for 2007 at the Olympic Games as tournament.`: ```sql
SELECT "2009" FROM "singles_performance_timeline" WHERE "2012"='1r';
## Task Generate a SQL query to answer the following question: `What shows for 2009 when the 2012 is 1R?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for 2009 when the 2012 is 1R?`: ```sql
SELECT "2010" FROM "singles_performance_timeline" WHERE "2009"='q1';
## Task Generate a SQL query to answer the following question: `What is the 2010 when the 2009 shows Q1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2010 when the 2009 shows Q1?`: ```sql
SELECT "gross_revenue_2011" FROM "box_office_score_data" WHERE "state"='mo';
## Task Generate a SQL query to answer the following question: `What is the gross revenue in 2011 for MO?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "state" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the gross revenue in 2011 for MO?`: ```sql
SELECT "state" FROM "box_office_score_data" WHERE "venue"='tsukisamu dome';
## Task Generate a SQL query to answer the following question: `Which state has the venue Tsukisamu dome?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "state" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `Which state has the venue Tsukisamu dome?`: ```sql
SELECT "city" FROM "box_office_score_data" WHERE "gross_revenue_2011"='$739,578';
## Task Generate a SQL query to answer the following question: `Which city had a gross revenue in 2011 of $739,578?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "state" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city had a gross revenue in 2011 of $739,578?`: ```sql
SELECT "gross_revenue_2011" FROM "box_office_score_data" WHERE "gross_revenue_1982"='$1,988,047';
## Task Generate a SQL query to answer the following question: `What is the gross revenue in 2011 with a gross revenue in 1982 of $1,988,047?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "state" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the gross revenue in 2011 with a gross revenue in 1982 of $1,988,047?`: ```sql
SELECT "grid" FROM "race" WHERE "driver"='mark webber';
## Task Generate a SQL query to answer the following question: `What was the grid when the driver was Mark Webber?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the grid when the driver was Mark Webber?`: ```sql
SELECT "driver" FROM "race" WHERE "constructor"='renault' AND "time_retired"='+38.600';
## Task Generate a SQL query to answer the following question: `Who was the driver, when the constructor was Renault, and when the Time/Retired was +38.600?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the driver, when the constructor was Renault, and when the Time/Retired was +38.600?`: ```sql
SELECT "laps" FROM "race" WHERE "time_retired"='+1:00.003';
## Task Generate a SQL query to answer the following question: `How many laps were there when the Time/Retired was +1:00.003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `How many laps were there when the Time/Retired was +1:00.003?`: ```sql
SELECT "laps" FROM "race" WHERE "time_retired"='+14.403';
## Task Generate a SQL query to answer the following question: `How many laps were there when the Time/Retired was +14.403?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `How many laps were there when the Time/Retired was +14.403?`: ```sql
SELECT "driver" FROM "race" WHERE "laps"='35';
## Task Generate a SQL query to answer the following question: `Who was the driver when there were 35 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the driver when there were 35 laps?`: ```sql
SELECT "laps" FROM "race" WHERE "constructor"='renault' AND "driver"='fernando alonso';
## Task Generate a SQL query to answer the following question: `How many laps were there when the constructor was Renault, and when the Driver was Fernando Alonso?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `How many laps were there when the constructor was Renault, and when the Driver was Fernando Alonso?`: ```sql
SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='new york life insurance building';
## Task Generate a SQL query to answer the following question: `What's the Street address with a Name of New York Life Insurance building?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_feet_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the Street address with a Name of New York Life Insurance building?`: ```sql
SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "street_address"='324 e. 11th street';
## Task Generate a SQL query to answer the following question: `What's the Years as tallest with a Street address of 324 E. 11th Street?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_feet_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the Years as tallest with a Street address of 324 E. 11th Street?`: ```sql
SELECT "height_feet_m" FROM "timeline_of_tallest_buildings" WHERE "street_address"='2345 grand avenue';
## Task Generate a SQL query to answer the following question: `What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_feet_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue?`: ```sql
SELECT AVG("capacity") FROM "ontario_university_athletics_yates_cup" WHERE "city"='london' AND "enrollment"<'30,000';
## Task Generate a SQL query to answer the following question: `What is the average capacity of stadiums in the City of London that belong to schools with an enrollment less than 30,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ontario_university_athletics_yates_cup" ( "institution" text, "team" text, "city" text, "province" text, "first_season" real, "head_coach" text, "enrollment" real, "football_stadium" text, "capacity" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average capacity of stadiums in the City of London that belong to schools with an enrollment less than 30,000?`: ```sql
SELECT "player" FROM "second_round" WHERE "score"='69-70=139';
## Task Generate a SQL query to answer the following question: `Who had a score of 69-70=139?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had a score of 69-70=139?`: ```sql
SELECT "score" FROM "international_goals" WHERE "result"='5–0';
## Task Generate a SQL query to answer the following question: `What was the score of the game that had a result of 5–0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game that had a result of 5–0?`: ```sql
SELECT AVG("heat") FROM "heats" WHERE "time"='2:23.95';
## Task Generate a SQL query to answer the following question: `What is the heat number of the athlete who finished in 2:23.95?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the heat number of the athlete who finished in 2:23.95?`: ```sql
SELECT "lane" FROM "heats" WHERE "nationality"='zambia';
## Task Generate a SQL query to answer the following question: `Which lane did the athlete from Zambia swim in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which lane did the athlete from Zambia swim in?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "record"='4-5';
## Task Generate a SQL query to answer the following question: `Who was the opponent at the game when the record was 4-5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent at the game when the record was 4-5?`: ```sql
SELECT AVG("2009") FROM "breakdown_by_nationality" WHERE "2001">0 AND "1996"<1 AND "2004">2;
## Task Generate a SQL query to answer the following question: `What is the average for 2009 when 2001 is more than 0, 1996 is less than 1 and 2004 is more than 2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "breakdown_by_nationality" ( "country" text, "2012" real, "2011" real, "2010" real, "2009" real, "2008" real, "2007" real, "2006" real, "2005" real, "2004" real, "2003" real, "2002" real, "2001" real, "2000" real, "1999" real, "1998" real, "1997" real, "1996" real, "1995" real, "1994" real, "1993" real, "1992" real, "1991" real, "1990" real, "1989" real, "1988" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average for 2009 when 2001 is more than 0, 1996 is less than 1 and 2004 is more than 2`: ```sql
SELECT SUM("2009") FROM "breakdown_by_nationality" WHERE "1989"<0;
## Task Generate a SQL query to answer the following question: `What is the listing for 2009 when 1989 is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "breakdown_by_nationality" ( "country" text, "2012" real, "2011" real, "2010" real, "2009" real, "2008" real, "2007" real, "2006" real, "2005" real, "2004" real, "2003" real, "2002" real, "2001" real, "2000" real, "1999" real, "1998" real, "1997" real, "1996" real, "1995" real, "1994" real, "1993" real, "1992" real, "1991" real, "1990" real, "1989" real, "1988" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the listing for 2009 when 1989 is less than 0?`: ```sql
SELECT AVG("2005") FROM "breakdown_by_nationality" WHERE "1995">3 AND "1996"<4 AND "2011">5;
## Task Generate a SQL query to answer the following question: `what is the average for 2005 when 1995 is more than 3, 1996 is less than 4, and 2011 is more than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "breakdown_by_nationality" ( "country" text, "2012" real, "2011" real, "2010" real, "2009" real, "2008" real, "2007" real, "2006" real, "2005" real, "2004" real, "2003" real, "2002" real, "2001" real, "2000" real, "1999" real, "1998" real, "1997" real, "1996" real, "1995" real, "1994" real, "1993" real, "1992" real, "1991" real, "1990" real, "1989" real, "1988" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the average for 2005 when 1995 is more than 3, 1996 is less than 4, and 2011 is more than 5?`: ```sql
SELECT SUM("1999") FROM "breakdown_by_nationality" WHERE "1990">0 AND "2003"=3 AND "2007">1 AND "1996">0;
## Task Generate a SQL query to answer the following question: `what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "breakdown_by_nationality" ( "country" text, "2012" real, "2011" real, "2010" real, "2009" real, "2008" real, "2007" real, "2006" real, "2005" real, "2004" real, "2003" real, "2002" real, "2001" real, "2000" real, "1999" real, "1998" real, "1997" real, "1996" real, "1995" real, "1994" real, "1993" real, "1992" real, "1991" real, "1990" real, "1989" real, "1988" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0?`: ```sql
SELECT MIN("2012") FROM "breakdown_by_nationality" WHERE "2004">0 AND "2008">1 AND "1994"=8 AND "2005"<11;
## Task Generate a SQL query to answer the following question: `what is the listing for 2012 when 2004 is more than 0, 2008 is more than 1 1994 is 8 and 2005 is less than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "breakdown_by_nationality" ( "country" text, "2012" real, "2011" real, "2010" real, "2009" real, "2008" real, "2007" real, "2006" real, "2005" real, "2004" real, "2003" real, "2002" real, "2001" real, "2000" real, "1999" real, "1998" real, "1997" real, "1996" real, "1995" real, "1994" real, "1993" real, "1992" real, "1991" real, "1990" real, "1989" real, "1988" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the listing for 2012 when 2004 is more than 0, 2008 is more than 1 1994 is 8 and 2005 is less than 11?`: ```sql
SELECT SUM("1992") FROM "breakdown_by_nationality" WHERE "1999">1 AND "2008"<2 AND "2003"<2;
## Task Generate a SQL query to answer the following question: `what is the listing for 1992 when 1999 is more than 1, 2008 is less than 2 and 2003 is less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "breakdown_by_nationality" ( "country" text, "2012" real, "2011" real, "2010" real, "2009" real, "2008" real, "2007" real, "2006" real, "2005" real, "2004" real, "2003" real, "2002" real, "2001" real, "2000" real, "1999" real, "1998" real, "1997" real, "1996" real, "1995" real, "1994" real, "1993" real, "1992" real, "1991" real, "1990" real, "1989" real, "1988" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the listing for 1992 when 1999 is more than 1, 2008 is less than 2 and 2003 is less than 2?`: ```sql
SELECT "pct_of_1_rep_max_last_set" FROM "periodization" WHERE "set_4"='145lb x 5reps';
## Task Generate a SQL query to answer the following question: `How many % of 1 Rep Max(Last Set) has a Set 4 of 145lb x 5reps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "periodization" ( "week" real, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "volume_lbs" real, "peak_intensity_last_set" text, "pct_of_1_rep_max_last_set" text ); ### SQL Given the database schema, here is the SQL query that answers `How many % of 1 Rep Max(Last Set) has a Set 4 of 145lb x 5reps?`: ```sql
SELECT "volume_lbs" FROM "periodization" WHERE "set_4"='115lb x 8reps';
## Task Generate a SQL query to answer the following question: `How many lbs does a set 4 of 115lb x 8reps have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "periodization" ( "week" real, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "volume_lbs" real, "peak_intensity_last_set" text, "pct_of_1_rep_max_last_set" text ); ### SQL Given the database schema, here is the SQL query that answers `How many lbs does a set 4 of 115lb x 8reps have?`: ```sql
SELECT "set_3" FROM "periodization" WHERE "week"=6;
## Task Generate a SQL query to answer the following question: `What is set 3 on week 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "periodization" ( "week" real, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "volume_lbs" real, "peak_intensity_last_set" text, "pct_of_1_rep_max_last_set" text ); ### SQL Given the database schema, here is the SQL query that answers `What is set 3 on week 6?`: ```sql
SELECT "gdp_per_capita_us" FROM "1995_enlargement" WHERE "gdp_billion_us"='156.640';
## Task Generate a SQL query to answer the following question: `What is the per-capita GDP for the country with an overall GDP of 156.640?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1995_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the per-capita GDP for the country with an overall GDP of 156.640?`: ```sql
SELECT "gdp_per_capita_us" FROM "1995_enlargement" WHERE "gdp_billion_us"='80.955';
## Task Generate a SQL query to answer the following question: `What is the per-capita GDP of the country with an overall GDP of 80.955?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1995_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the per-capita GDP of the country with an overall GDP of 80.955?`: ```sql
SELECT "member_countries" FROM "1995_enlargement" WHERE "area_km"='871,980';
## Task Generate a SQL query to answer the following question: `Which country has an area of 871,980 square km?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1995_enlargement" ( "member_countries" text, "population" text, "area_km" text, "gdp_billion_us" text, "gdp_per_capita_us" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country has an area of 871,980 square km?`: ```sql
SELECT "outcome" FROM "doubles_11_8_3" WHERE "partner"='dora djilianova' AND "date"='october 1, 1995';
## Task Generate a SQL query to answer the following question: `On October 1, 1995 with Dora Djilianova as a partner, what was the outcome of the match?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_11_8_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `On October 1, 1995 with Dora Djilianova as a partner, what was the outcome of the match?`: ```sql
SELECT "score_in_the_final" FROM "doubles_11_8_3" WHERE "partner"='lindsay lee-waters';
## Task Generate a SQL query to answer the following question: `With Lindsay Lee-Waters as a partner, what was the final score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_11_8_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `With Lindsay Lee-Waters as a partner, what was the final score?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='august 17';
## Task Generate a SQL query to answer the following question: `Which score has a Date of august 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which score has a Date of august 17?`: ```sql
SELECT "score" FROM "game_log" WHERE "opponent"='@ athletics' AND "record"='76-57';
## Task Generate a SQL query to answer the following question: `Which score has an Opponent of @ athletics, and a Record of 76-57?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which score has an Opponent of @ athletics, and a Record of 76-57?`: ```sql
SELECT "loss" FROM "game_log" WHERE "record"='67-51';
## Task Generate a SQL query to answer the following question: `Which loss has a Record of 67-51?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which loss has a Record of 67-51?`: ```sql
SELECT "position" FROM "career_summary" WHERE "wins"='2' AND "season"=1992;
## Task Generate a SQL query to answer the following question: `Which position has 2 wins in 1992?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "races" text, "wins" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Which position has 2 wins in 1992?`: ```sql
SELECT "wins" FROM "career_summary" WHERE "series"='formula nippon' AND "position"='8th';
## Task Generate a SQL query to answer the following question: `How many wins have a Series of formula nippon, and a Position of 8th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "races" text, "wins" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `How many wins have a Series of formula nippon, and a Position of 8th?`: ```sql
SELECT MIN("season") FROM "career_summary" WHERE "races"='6' AND "series"='all-japan gt championship' AND "wins"='2';
## Task Generate a SQL query to answer the following question: `What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championship>` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "races" text, "wins" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championship>`: ```sql
SELECT AVG("total") FROM "missed_the_cut" WHERE "to_par">2 AND "player"='mark brooks';
## Task Generate a SQL query to answer the following question: `What was Mark Brooks total score when he finished more than 2 above par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What was Mark Brooks total score when he finished more than 2 above par?`: ```sql
SELECT "to_par" FROM "missed_the_cut" WHERE "year_s_won"='1993';
## Task Generate a SQL query to answer the following question: `What was the winning to par score of the 1993 PGA Championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the winning to par score of the 1993 PGA Championship?`: ```sql
SELECT SUM("construct_tion_no") FROM "equipment" WHERE "wheel_arrange_ment"='4-4-0';
## Task Generate a SQL query to answer the following question: `How many constructions has a Wheel arrange- ment of 4-4-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "equipment" ( "builder" text, "construct_tion_no" real, "date_ordered" text, "wheel_arrange_ment" text, "s_cylinder" text, "engine_weight" text, "tc_st_l_no_1883_84" real ); ### SQL Given the database schema, here is the SQL query that answers `How many constructions has a Wheel arrange- ment of 4-4-0?`: ```sql
SELECT "builder" FROM "equipment" WHERE "tc_st_l_no_1883_84">54 AND "date_ordered"='november 1881';
## Task Generate a SQL query to answer the following question: `Who built the order on November 1881 of more than 54 TC&StL no. (1883–84)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "equipment" ( "builder" text, "construct_tion_no" real, "date_ordered" text, "wheel_arrange_ment" text, "s_cylinder" text, "engine_weight" text, "tc_st_l_no_1883_84" real ); ### SQL Given the database schema, here is the SQL query that answers `Who built the order on November 1881 of more than 54 TC&StL no. (1883–84)?`: ```sql
SELECT "season_outcome" FROM "2010_regular_season_football_standings" WHERE "school"='sussex central';
## Task Generate a SQL query to answer the following question: `What is the Season Outcome for the Sussex Central School?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Season Outcome for the Sussex Central School?`: ```sql
SELECT "team" FROM "2010_regular_season_football_standings" WHERE "school"='sussex tech';
## Task Generate a SQL query to answer the following question: `What is the School of Sussex Tech's Team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the School of Sussex Tech's Team?`: ```sql
SELECT "team" FROM "2010_regular_season_football_standings" WHERE "school"='milford';
## Task Generate a SQL query to answer the following question: `What is the Team for the Milford School?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Team for the Milford School?`: ```sql
SELECT "season" FROM "winners" WHERE "rating"='+33';
## Task Generate a SQL query to answer the following question: `Which season was one of the players rated +33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" text, "player" text, "team" text, "position" text, "rating" text, "win_num" text ); ### SQL Given the database schema, here is the SQL query that answers `Which season was one of the players rated +33?`: ```sql
SELECT "team" FROM "winners" WHERE "win_num"='1' AND "rating"='+85';
## Task Generate a SQL query to answer the following question: `What is the name of the team that had 1 win and a rating of +85?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" text, "player" text, "team" text, "position" text, "rating" text, "win_num" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the team that had 1 win and a rating of +85?`: ```sql
SELECT "season" FROM "winners" WHERE "rating"='+98';
## Task Generate a SQL query to answer the following question: `Which season was one of the players rated +98?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" text, "player" text, "team" text, "position" text, "rating" text, "win_num" text ); ### SQL Given the database schema, here is the SQL query that answers `Which season was one of the players rated +98?`: ```sql
SELECT "rating" FROM "winners" WHERE "player"='patrice bergeron';
## Task Generate a SQL query to answer the following question: `What is Patrice Bergeron's rating?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" text, "player" text, "team" text, "position" text, "rating" text, "win_num" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Patrice Bergeron's rating?`: ```sql
SELECT AVG("overall") FROM "indianapolis_colts_draft_history" WHERE "position"='defensive tackle' AND "round"=4 AND "pick_num"<36;
## Task Generate a SQL query to answer the following question: `Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average?`: ```sql
SELECT COUNT("pick_num") FROM "indianapolis_colts_draft_history" WHERE "name"='jaimie thomas' AND "round"<7;
## Task Generate a SQL query to answer the following question: `Pick # that has a Name of jaimie thomas, and a Round smaller than 7 is how many numbers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Pick # that has a Name of jaimie thomas, and a Round smaller than 7 is how many numbers?`: ```sql
SELECT "muzzle_device" FROM "mt_and_cr_series_models" WHERE "barrel_twist"='1:7' AND "stock"='4th generation';
## Task Generate a SQL query to answer the following question: `What is the muzzle device with a 1:7 barrel twist and a stock 4th generation?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mt_and_cr_series_models" ( "colt_model_no" text, "name" text, "stock" text, "fire_control" text, "rear_sight" text, "forward_assist" text, "case_deflector" text, "barrel_length" text, "barrel_profile" text, "barrel_twist" text, "hand_guards" text, "bayonet_lug" text, "muzzle_device" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the muzzle device with a 1:7 barrel twist and a stock 4th generation?`: ```sql
SELECT "date" FROM "national_team_matches" WHERE "opponenent"='poland' AND "match_type"='ec -qualifier';
## Task Generate a SQL query to answer the following question: `When was the opponent Poland and the match type EC -qualifier?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_team_matches" ( "date" text, "location" text, "opponenent" text, "result" text, "match_type" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the opponent Poland and the match type EC -qualifier?`: ```sql