output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "race" FROM "races" WHERE "notes"='world championship formula 1' AND "venue"='hungaroring';
## Task Generate a SQL query to answer the following question: `What was the race for the world championship formula 1 at a venue of hungaroring?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "race" text, "date" text, "venue" text, "winner" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the race for the world championship formula 1 at a venue of hungaroring?`: ```sql
SELECT "winner" FROM "races" WHERE "date"='october 7';
## Task Generate a SQL query to answer the following question: `Who is the winner for the match on October 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "race" text, "date" text, "venue" text, "winner" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the winner for the match on October 7?`: ```sql
SELECT "date" FROM "races" WHERE "race"='new zealand grand prix';
## Task Generate a SQL query to answer the following question: `What is the date of the race for the new zealand grand prix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "race" text, "date" text, "venue" text, "winner" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the race for the new zealand grand prix?`: ```sql
SELECT "winner" FROM "races" WHERE "notes"='world championship formula 1' AND "venue"='circuit de monaco';
## Task Generate a SQL query to answer the following question: `Who was the winner for the world championship formula 1 at the venue, circuit de monaco?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "races" ( "race" text, "date" text, "venue" text, "winner" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner for the world championship formula 1 at the venue, circuit de monaco?`: ```sql
SELECT "result" FROM "schedule" WHERE "opponent"='new england patriots';
## Task Generate a SQL query to answer the following question: `What is Result, when Opponent is New England Patriots?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Result, when Opponent is New England Patriots?`: ```sql
SELECT "competition" FROM "cup_finals_at_dalymount" WHERE "date"='28/04/1906';
## Task Generate a SQL query to answer the following question: `What competition took place on 28/04/1906?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cup_finals_at_dalymount" ( "date" text, "competition" text, "winners" text, "score" text, "runners_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What competition took place on 28/04/1906?`: ```sql
SELECT "runners_up" FROM "cup_finals_at_dalymount" WHERE "winners"='cork city f.c.' AND "date"='10/05/1998';
## Task Generate a SQL query to answer the following question: `Who were the runners-up in the game that was won by Cork City F.C. on 10/05/1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cup_finals_at_dalymount" ( "date" text, "competition" text, "winners" text, "score" text, "runners_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the runners-up in the game that was won by Cork City F.C. on 10/05/1998?`: ```sql
SELECT "score" FROM "cup_finals_at_dalymount" WHERE "winners"='sligo rovers f.c.';
## Task Generate a SQL query to answer the following question: `What was the score in the game that was won by Sligo Rovers F.C.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cup_finals_at_dalymount" ( "date" text, "competition" text, "winners" text, "score" text, "runners_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score in the game that was won by Sligo Rovers F.C.?`: ```sql
SELECT "date" FROM "cup_finals_at_dalymount" WHERE "competition"='fai cup' AND "runners_up"='derry city f.c.';
## Task Generate a SQL query to answer the following question: `What date did the Fai Cup with Derry City F.C. as runners-up take place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cup_finals_at_dalymount" ( "date" text, "competition" text, "winners" text, "score" text, "runners_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did the Fai Cup with Derry City F.C. as runners-up take place?`: ```sql
SELECT "runner_up" FROM "singles" WHERE "week"='april 11';
## Task Generate a SQL query to answer the following question: `What is the Runner-up on April 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner" text, "runner_up" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Runner-up on April 11?`: ```sql
SELECT "tournament" FROM "singles" WHERE "week"='may 2';
## Task Generate a SQL query to answer the following question: `What was the Tournament on May 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner" text, "runner_up" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Tournament on May 2?`: ```sql
SELECT "left_office" FROM "ministers_without_portfolio" WHERE "took_office"='11 june 2001' AND "minister"='mirko tremaglia';
## Task Generate a SQL query to answer the following question: `What is Left Office, when Took Office is "11 June 2001", and when Minister is "Mirko Tremaglia"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Left Office, when Took Office is "11 June 2001", and when Minister is "Mirko Tremaglia"?`: ```sql
SELECT "minister" FROM "ministers_without_portfolio" WHERE "party"='an';
## Task Generate a SQL query to answer the following question: `What is Minister, when Party is "AN"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Minister, when Party is "AN"?`: ```sql
SELECT "left_office" FROM "ministers_without_portfolio" WHERE "party"='udc' AND "took_office"='11 june 2001';
## Task Generate a SQL query to answer the following question: `What is Left Office, when Party is "UDC", and when Took Office is "11 June 2001"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Left Office, when Party is "UDC", and when Took Office is "11 June 2001"?`: ```sql
SELECT "party" FROM "ministers_without_portfolio" WHERE "left_office"='23 april 2005' AND "portfolio"='minister of reforms and devolutions';
## Task Generate a SQL query to answer the following question: `What is Party, when Left Office is "23 April 2005", when Portfolio is "Minister of Reforms and Devolutions"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Party, when Left Office is "23 April 2005", when Portfolio is "Minister of Reforms and Devolutions"?`: ```sql
SELECT "minister" FROM "ministers_without_portfolio" WHERE "portfolio"='minister of pubblic administration' AND "took_office"='14 november 2002';
## Task Generate a SQL query to answer the following question: `What is Minister, when Portfolio is "Minister of Pubblic Administration", and when Took Office is "14 November 2002"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Minister, when Portfolio is "Minister of Pubblic Administration", and when Took Office is "14 November 2002"?`: ```sql
SELECT "party" FROM "ministers_without_portfolio" WHERE "minister"='franco frattini';
## Task Generate a SQL query to answer the following question: `What is Party, when Minister is "Franco Frattini"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Party, when Minister is "Franco Frattini"?`: ```sql
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='ryan bow';
## Task Generate a SQL query to answer the following question: `What event had the opponent Ryan Bow?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What event had the opponent Ryan Bow?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='hiroyuki abe';
## Task Generate a SQL query to answer the following question: `What location had the opponent Hiroyuki Abe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What location had the opponent Hiroyuki Abe?`: ```sql
SELECT "2nd_leg" FROM "winners" WHERE "year"=2004;
## Task Generate a SQL query to answer the following question: `What was the 2nd leg for 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "winner" text, "runners_up" text, "aggregate" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the 2nd leg for 2004?`: ```sql
SELECT "2nd_leg" FROM "winners" WHERE "winner"='san pedro';
## Task Generate a SQL query to answer the following question: `What is the 2nd leg when San Pedro was the winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "winner" text, "runners_up" text, "aggregate" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2nd leg when San Pedro was the winner?`: ```sql
SELECT "rate" FROM "2005_present" WHERE "goals">22;
## Task Generate a SQL query to answer the following question: `What was the rate when there were more than 22 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005_present" ( "season" real, "player" text, "club" text, "goals" real, "games" real, "rate" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the rate when there were more than 22 goals?`: ```sql
SELECT MAX("against") FROM "matches" WHERE "opposing_team"='fiji';
## Task Generate a SQL query to answer the following question: `What largest against has the opposing team of fiji?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What largest against has the opposing team of fiji?`: ```sql
SELECT "position" FROM "achievements" WHERE "competition"='european race walking cup';
## Task Generate a SQL query to answer the following question: `Which Position has a Competition of european race walking cup?` ### 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 `Which Position has a Competition of european race walking cup?`: ```sql
SELECT "venue" FROM "achievements" WHERE "competition"='european championships' AND "position"='7th';
## Task Generate a SQL query to answer the following question: `Which Venue has a Competition of european championships, and a Position of 7th?` ### 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 `Which Venue has a Competition of european championships, and a Position of 7th?`: ```sql
SELECT "venue" FROM "achievements" WHERE "year"<2001 AND "competition"='world race walking cup';
## Task Generate a SQL query to answer the following question: `Where was the world race walking cup held before 2001?` ### 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 `Where was the world race walking cup held before 2001?`: ```sql
SELECT "competition" FROM "notable_final_matches" WHERE "res"='marian sandu';
## Task Generate a SQL query to answer the following question: `WHAT COMPETITION HAS MARIAN SANDU?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_final_matches" ( "opponent" text, "res" text, "class" text, "score" text, "date" text, "competition" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT COMPETITION HAS MARIAN SANDU?`: ```sql
SELECT "score" FROM "notable_final_matches" WHERE "date"='1999-05-31';
## Task Generate a SQL query to answer the following question: `WHAT SCORE WAS ON 1999-05-31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_final_matches" ( "opponent" text, "res" text, "class" text, "score" text, "date" text, "competition" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT SCORE WAS ON 1999-05-31?`: ```sql
SELECT "opponent" FROM "notable_final_matches" WHERE "score"='5:5';
## Task Generate a SQL query to answer the following question: `WHAT OPPONENT HAD A SCORE OF 5:5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_final_matches" ( "opponent" text, "res" text, "class" text, "score" text, "date" text, "competition" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT OPPONENT HAD A SCORE OF 5:5?`: ```sql
SELECT "competition" FROM "goals_for_senior_national_team" WHERE "score"='5-0' AND "date"='august 3, 2005';
## Task Generate a SQL query to answer the following question: `What Competition on August 3, 2005 had a Score of 5-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What Competition on August 3, 2005 had a Score of 5-0?`: ```sql
SELECT "venue" FROM "goals_for_senior_national_team" WHERE "competition"='2009 gulf cup of nations';
## Task Generate a SQL query to answer the following question: `What was the Venue of the 2009 Gulf Cup of Nations?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "goals_for_senior_national_team" ( "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 Venue of the 2009 Gulf Cup of Nations?`: ```sql
SELECT "venue" FROM "goals_for_senior_national_team" WHERE "score"='5-0' AND "date"='october 27, 2005';
## Task Generate a SQL query to answer the following question: `What Venue on October 27, 2005 had a Score of 5-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What Venue on October 27, 2005 had a Score of 5-0?`: ```sql
SELECT "result" FROM "goals_for_senior_national_team" WHERE "competition"='friendly' AND "score"='5-0' AND "date"='october 27, 2005';
## Task Generate a SQL query to answer the following question: `What is the Result of the Friendly Competition on October 27, 2005 with a Score of 5-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Result of the Friendly Competition on October 27, 2005 with a Score of 5-0?`: ```sql
SELECT COUNT("react") FROM "final" WHERE "lane"=5;
## Task Generate a SQL query to answer the following question: `Can you tell me the total number of React that has the Lane of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the total number of React that has the Lane of 5?`: ```sql
SELECT MIN("react") FROM "final" WHERE "lane"=5;
## Task Generate a SQL query to answer the following question: `Can you tell me the lowest React that has the Lane of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the lowest React that has the Lane of 5?`: ```sql
SELECT "winning_score" FROM "wins_5" WHERE "margin"='3 strokes';
## Task Generate a SQL query to answer the following question: `What is the winning score of the match with a margin of 3 strokes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the winning score of the match with a margin of 3 strokes?`: ```sql
SELECT COUNT("year") FROM "wins_5" WHERE "championship"='peter jackson classic';
## Task Generate a SQL query to answer the following question: `How many years was there a peter jackson classic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years was there a peter jackson classic?`: ```sql
SELECT "year" FROM "wins_5" WHERE "championship"='peter jackson classic';
## Task Generate a SQL query to answer the following question: `Which year was the peter jackson classic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Which year was the peter jackson classic?`: ```sql
SELECT "date" FROM "regular_season" WHERE "visitor"='toronto';
## Task Generate a SQL query to answer the following question: `What is Date, when Visitor is Toronto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when Visitor is Toronto?`: ```sql
SELECT "record" FROM "regular_season" WHERE "date"='november 23';
## Task Generate a SQL query to answer the following question: `What is Record, when Date is November 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Record, when Date is November 23?`: ```sql
SELECT "visitor" FROM "regular_season" WHERE "home"='philadelphia' AND "date"='november 18';
## Task Generate a SQL query to answer the following question: `What is Visitor, when Home is Philadelphia, and when Date is November 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Visitor, when Home is Philadelphia, and when Date is November 18?`: ```sql
SELECT AVG("attendance") FROM "regular_season" WHERE "visitor"='toronto';
## Task Generate a SQL query to answer the following question: `What is the average Attendance, when Visitor is Toronto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Attendance, when Visitor is Toronto?`: ```sql
SELECT AVG("year") FROM "accolades" WHERE "rank"<3;
## Task Generate a SQL query to answer the following question: `What's the average year with a rank less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "accolades" ( "year" real, "publication" text, "country" text, "accolade" text, "rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the average year with a rank less than 3?`: ```sql
SELECT "country" FROM "accolades" WHERE "year"=2002;
## Task Generate a SQL query to answer the following question: `What country got accolades in 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "accolades" ( "year" real, "publication" text, "country" text, "accolade" text, "rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What country got accolades in 2002?`: ```sql
SELECT "accolade" FROM "accolades" WHERE "rank"=497;
## Task Generate a SQL query to answer the following question: `What's the accolade for the rank of 497?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "accolades" ( "year" real, "publication" text, "country" text, "accolade" text, "rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the accolade for the rank of 497?`: ```sql
SELECT AVG("year") FROM "accolades" WHERE "accolade"='100 greatest singles of all time';
## Task Generate a SQL query to answer the following question: `What's the average year for the accolade 100 greatest singles of all time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "accolades" ( "year" real, "publication" text, "country" text, "accolade" text, "rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the average year for the accolade 100 greatest singles of all time?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "team"='philadelphia';
## Task Generate a SQL query to answer the following question: `What was the attendance during the game against Philadelphia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance during the game against Philadelphia?`: ```sql
SELECT "nfl_team" FROM "nfl_draft" WHERE "college"='washington';
## Task Generate a SQL query to answer the following question: `Which NFL team has a player that came from a college in Washington?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which NFL team has a player that came from a college in Washington?`: ```sql
SELECT "position" FROM "nfl_draft" WHERE "pick_num">186 AND "player"='bobby micho';
## Task Generate a SQL query to answer the following question: `What position does Bobby Micho, who was picked later than 186 others, play on the Broncos team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What position does Bobby Micho, who was picked later than 186 others, play on the Broncos team?`: ```sql
SELECT "since" FROM "squad_information" WHERE "transfer_fee"='£ 12m';
## Task Generate a SQL query to answer the following question: `What is Since, when Transfer Fee is "£ 12m"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Since, when Transfer Fee is "£ 12m"?`: ```sql
SELECT "name" FROM "squad_information" WHERE "goals">14 AND "transfer_fee"='youth system';
## Task Generate a SQL query to answer the following question: `What is Name, when Goals is greater than 14, and when Transfer Fee is "Youth System"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Name, when Goals is greater than 14, and when Transfer Fee is "Youth System"?`: ```sql
SELECT "nat" FROM "squad_information" WHERE "name"='fàbregas ( captain )';
## Task Generate a SQL query to answer the following question: `What is Nat., when Name is "Fàbregas ( Captain )"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Nat., when Name is "Fàbregas ( Captain )"?`: ```sql
SELECT "time" FROM "mixed_martial_arts_record" WHERE "method"='submission (knees)';
## Task Generate a SQL query to answer the following question: `What is Time, when Method is "submission (knees)"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Time, when Method is "submission (knees)"?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='ufc 40';
## Task Generate a SQL query to answer the following question: `What is Record, when Event is "UFC 40"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Record, when Event is "UFC 40"?`: ```sql
SELECT "track" FROM "winners_of_the_swedish_motorcycle_grand_" WHERE "year"='1979';
## Task Generate a SQL query to answer the following question: `What is the name of the track that hosted the Swedish Grand Prix in 1979?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" ( "year" text, "track" text, "125_cc" text, "250_cc" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the track that hosted the Swedish Grand Prix in 1979?`: ```sql
SELECT "year" FROM "winners_of_the_swedish_motorcycle_grand_" WHERE "125_cc"='barry sheene';
## Task Generate a SQL query to answer the following question: `What year did Barry Sheene win the 125 cc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" ( "year" text, "track" text, "125_cc" text, "250_cc" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did Barry Sheene win the 125 cc?`: ```sql
SELECT "250_cc" FROM "winners_of_the_swedish_motorcycle_grand_" WHERE "year"='1987';
## Task Generate a SQL query to answer the following question: `Who won the 250 cc in 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" ( "year" text, "track" text, "125_cc" text, "250_cc" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the 250 cc in 1987?`: ```sql
SELECT "track" FROM "winners_of_the_swedish_motorcycle_grand_" WHERE "125_cc"='fausto gresini' AND "250_cc"='carlos lavado';
## Task Generate a SQL query to answer the following question: `At what track resulted in Fausto Gresini winning the 125 cc and Carlos Lavado winning the 250 cc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" ( "year" text, "track" text, "125_cc" text, "250_cc" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `At what track resulted in Fausto Gresini winning the 125 cc and Carlos Lavado winning the 250 cc?`: ```sql
SELECT "250_cc" FROM "winners_of_the_swedish_motorcycle_grand_" WHERE "year"='1985';
## Task Generate a SQL query to answer the following question: `Who won the 250 cc in 1985?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" ( "year" text, "track" text, "125_cc" text, "250_cc" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the 250 cc in 1985?`: ```sql
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='1-1';
## Task Generate a SQL query to answer the following question: `Which opponent has 1-1 as the record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent has 1-1 as the record?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='magomedkhan gamzatkhanov' AND "method"='submission';
## Task Generate a SQL query to answer the following question: `What record has magomedkhan gamzatkhanov as the opponent, and submission as the method?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `What record has magomedkhan gamzatkhanov as the opponent, and submission as the method?`: ```sql
SELECT "round" FROM "mixed_martial_arts_record" WHERE "record"='3-4';
## Task Generate a SQL query to answer the following question: `What round has 3-4 as the record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `What round has 3-4 as the record?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "round"='1' AND "opponent"='akira maeda';
## Task Generate a SQL query to answer the following question: `What record has loss as the res., 1 for the round, and akira maeda as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `What record has loss as the res., 1 for the round, and akira maeda as the opponent?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='decision (majority)';
## Task Generate a SQL query to answer the following question: `What record has decision (majority) as the method?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `What record has decision (majority) as the method?`: ```sql
SELECT "agg" FROM "preliminary_round" WHERE "team_1"='cd elá nguema';
## Task Generate a SQL query to answer the following question: `What is Agg., when Team 1 is CD Elá Nguema?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Agg., when Team 1 is CD Elá Nguema?`: ```sql
SELECT "1st_leg" FROM "preliminary_round" WHERE "2nd_leg"='1-3';
## Task Generate a SQL query to answer the following question: `What is 1st Leg, when 2nd Leg is 1-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 1st Leg, when 2nd Leg is 1-3?`: ```sql
SELECT "1st_leg" FROM "preliminary_round" WHERE "2nd_leg"='0-1';
## Task Generate a SQL query to answer the following question: `What is 1st Leg, when 2nd Leg is 0-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 1st Leg, when 2nd Leg is 0-1?`: ```sql
SELECT "team_2" FROM "preliminary_round" WHERE "2nd_leg"='1-0';
## Task Generate a SQL query to answer the following question: `What is Team 2, when 2nd Leg is 1-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Team 2, when 2nd Leg is 1-0?`: ```sql
SELECT "team_2" FROM "preliminary_round" WHERE "2nd_leg"='2-1';
## Task Generate a SQL query to answer the following question: `What is Team 2, when 2nd Leg is 2-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Team 2, when 2nd Leg is 2-1?`: ```sql
SELECT "team_2" FROM "preliminary_round" WHERE "2nd_leg"='0-3 1';
## Task Generate a SQL query to answer the following question: `What is Team 2, when 2nd Leg is 0-3 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Team 2, when 2nd Leg is 0-3 1?`: ```sql
SELECT "score" FROM "third_round" WHERE "player"='jim colbert';
## Task Generate a SQL query to answer the following question: `What was Jim Colbert's score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Jim Colbert's score?`: ```sql
SELECT "country" FROM "third_round" WHERE "score"='69-69-73=211';
## Task Generate a SQL query to answer the following question: `What country scored 69-69-73=211?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What country scored 69-69-73=211?`: ```sql
SELECT "country" FROM "third_round" WHERE "player"='bobby nichols';
## Task Generate a SQL query to answer the following question: `What country does Bobby Nichols play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What country does Bobby Nichols play for?`: ```sql
SELECT "time_retired" FROM "125cc_classification" WHERE "manufacturer"='honda' AND "grid"='8';
## Task Generate a SQL query to answer the following question: `WHAT IS THE TIME/ RETIRED WITH A HONDA MANUFACTURER, GRID 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE TIME/ RETIRED WITH A HONDA MANUFACTURER, GRID 8?`: ```sql
SELECT "manufacturer" FROM "125cc_classification" WHERE "laps"='24' AND "time_retired"='+1.965';
## Task Generate a SQL query to answer the following question: `WHAT IS THE MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED?`: ```sql
SELECT "grid" FROM "125cc_classification" WHERE "manufacturer"='honda' AND "laps"='24' AND "time_retired"='+13.997';
## Task Generate a SQL query to answer the following question: `WHAT IS THE GRID OF HONDA, WITH 24 LAPS AND Time/Retired of +13.997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE GRID OF HONDA, WITH 24 LAPS AND Time/Retired of +13.997?`: ```sql
SELECT "laps" FROM "125cc_classification" WHERE "grid"='26';
## Task Generate a SQL query to answer the following question: `WHAT IS THE LAPS WITH A GRID OF 26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE LAPS WITH A GRID OF 26?`: ```sql
SELECT "rider" FROM "125cc_classification" WHERE "grid"='21';
## Task Generate a SQL query to answer the following question: `WHAT IS THE RIDER WITH A 21 GRID?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE RIDER WITH A 21 GRID?`: ```sql
SELECT "manufacturer" FROM "125cc_classification" WHERE "laps"='24' AND "grid"='27';
## Task Generate a SQL query to answer the following question: `WHAT IS THE MANUFACTURER WITH 24 LAPS AND GRID 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE MANUFACTURER WITH 24 LAPS AND GRID 27?`: ```sql
SELECT MAX("year_a") FROM "players_selected" WHERE "position"='linebacker' AND "college"='georgia tech';
## Task Generate a SQL query to answer the following question: `What is the most recent year georgia tech chose a linebacker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_selected" ( "year_a" real, "pick" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the most recent year georgia tech chose a linebacker?`: ```sql
SELECT "player" FROM "second_round" WHERE "to_par"='+2' AND "country"='spain';
## Task Generate a SQL query to answer the following question: `Who is the player from Spain that has a +2 to par?` ### 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 is the player from Spain that has a +2 to par?`: ```sql
SELECT "country" FROM "second_round" WHERE "score"='69-71=140';
## Task Generate a SQL query to answer the following question: `Name the country with a score of 69-71=140.` ### 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 `Name the country with a score of 69-71=140.`: ```sql
SELECT "to_par" FROM "second_round" WHERE "country"='united states' AND "player"='hale irwin';
## Task Generate a SQL query to answer the following question: `What's the to par for Hale Irwin of the United States?` ### 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 `What's the to par for Hale Irwin of the United States?`: ```sql
SELECT "to_par" FROM "second_round" WHERE "place"='t5' AND "player"='jim thorpe';
## Task Generate a SQL query to answer the following question: `What's the to par for Jim Thorpe in T5 Place?` ### 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 `What's the to par for Jim Thorpe in T5 Place?`: ```sql
SELECT MIN("score") FROM "first_round" WHERE "player"='jack nicklaus';
## Task Generate a SQL query to answer the following question: `What was Jack Nicklaus's score after round 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Jack Nicklaus's score after round 1?`: ```sql
SELECT AVG("laps") FROM "moto_gp_classification" WHERE "time"='+39.476' AND "grid">11;
## Task Generate a SQL query to answer the following question: `Which Laps have a Time of +39.476, and a Grid larger than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Laps have a Time of +39.476, and a Grid larger than 11?`: ```sql
SELECT "time" FROM "moto_gp_classification" WHERE "laps"<28 AND "rider"='nicky hayden';
## Task Generate a SQL query to answer the following question: `Which Time has Laps smaller than 28, and a Rider of nicky hayden?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Time has Laps smaller than 28, and a Rider of nicky hayden?`: ```sql
SELECT "rider" FROM "moto_gp_classification" WHERE "grid">6 AND "laps"=28 AND "time"='+39.476';
## Task Generate a SQL query to answer the following question: `Which Rider has a Grid larger than 6, and has Laps of 28, and a Time of +39.476?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Rider has a Grid larger than 6, and has Laps of 28, and a Time of +39.476?`: ```sql
SELECT MIN("bronze") FROM "medal_table" WHERE "total"=4 AND "gold"<1;
## Task Generate a SQL query to answer the following question: `Which Bronze has a Total of 4, and a Gold smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Bronze has a Total of 4, and a Gold smaller than 1?`: ```sql
SELECT SUM("bronze") FROM "medal_table" WHERE "silver">1 AND "total">3 AND "nation"='turkey' AND "gold"<2;
## Task Generate a SQL query to answer the following question: `Which Bronze has a Silver larger than 1, a Total larger than 3, a Nation of turkey, and a Gold smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Bronze has a Silver larger than 1, a Total larger than 3, a Nation of turkey, and a Gold smaller than 2?`: ```sql
SELECT AVG("gold") FROM "medal_table" WHERE "bronze"=1 AND "total"<3;
## Task Generate a SQL query to answer the following question: `Which Gold has a Bronze of 1, and a Total smaller than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Gold has a Bronze of 1, and a Total smaller than 3?`: ```sql
SELECT AVG("week") FROM "schedule" WHERE "opponent"='new orleans saints';
## Task Generate a SQL query to answer the following question: `In what Week is the Opponent the New Orleans Saints?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `In what Week is the Opponent the New Orleans Saints?`: ```sql
SELECT SUM("week") FROM "schedule" WHERE "opponent"='tampa bay buccaneers' AND "attendance"<'44,506';
## Task Generate a SQL query to answer the following question: `In what Weeks is the game against the Tampa Bay Buccaneers with less than 44,506 in Attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `In what Weeks is the game against the Tampa Bay Buccaneers with less than 44,506 in Attendance?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "attendance">'42,910' AND "week"=6;
## Task Generate a SQL query to answer the following question: `What is the Opponent in the game in Week 6 with more than 42,910 in Attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Opponent in the game in Week 6 with more than 42,910 in Attendance?`: ```sql
SELECT "home" FROM "regular_season" WHERE "record"='24–16–6';
## Task Generate a SQL query to answer the following question: `What team was home, when the record was 24–16–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What team was home, when the record was 24–16–6?`: ```sql
SELECT "date" FROM "regular_season" WHERE "visitor"='boston bruins' AND "record"='4–0–1';
## Task Generate a SQL query to answer the following question: `What date was the visitor the Boston Bruins, and the record was 4–0–1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the visitor the Boston Bruins, and the record was 4–0–1?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "game"=81;
## Task Generate a SQL query to answer the following question: `Who had the most points in game 81?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "high_points" text, "high_rebounds" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the most points in game 81?`: ```sql
SELECT "flight" FROM "turkish_airlines_reported_incidents_and_" WHERE "aircraft"='vickers viscount type 794';
## Task Generate a SQL query to answer the following question: `Which flight had an aircraft of vickers viscount type 794?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "turkish_airlines_reported_incidents_and_" ( "date" text, "flight" text, "aircraft" text, "registration" text, "location" text, "fatalities" real ); ### SQL Given the database schema, here is the SQL query that answers `Which flight had an aircraft of vickers viscount type 794?`: ```sql
SELECT "flight" FROM "turkish_airlines_reported_incidents_and_" WHERE "aircraft"='avro rj-100';
## Task Generate a SQL query to answer the following question: `Which flight had the aircraft avro rj-100?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "turkish_airlines_reported_incidents_and_" ( "date" text, "flight" text, "aircraft" text, "registration" text, "location" text, "fatalities" real ); ### SQL Given the database schema, here is the SQL query that answers `Which flight had the aircraft avro rj-100?`: ```sql
SELECT "date" FROM "turkish_airlines_reported_incidents_and_" WHERE "registration"='tc-jes';
## Task Generate a SQL query to answer the following question: `When was the registration of tc-jes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "turkish_airlines_reported_incidents_and_" ( "date" text, "flight" text, "aircraft" text, "registration" text, "location" text, "fatalities" real ); ### SQL Given the database schema, here is the SQL query that answers `When was the registration of tc-jes?`: ```sql