output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "date" FROM "january" WHERE "points">47 AND "visitor"='minnesota';
## Task Generate a SQL query to answer the following question: `On what date does visiting team Minnesota score higher than 47 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `On what date does visiting team Minnesota score higher than 47 points?`: ```sql
SELECT "date" FROM "january" WHERE "visitor"='toronto' AND "points"<49 AND "record"='18-17-7';
## Task Generate a SQL query to answer the following question: `What date does visitor team Toronto score less than 49 points and has record of 18-17-7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What date does visitor team Toronto score less than 49 points and has record of 18-17-7?`: ```sql
SELECT "fleet_number" FROM "retired_fleet" WHERE "model"='gillig phantom 3096tb';
## Task Generate a SQL query to answer the following question: `What is the fleet number for the model of Gillig Phantom 3096TB?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "retired_fleet" ( "year" text, "model" text, "length" text, "width" text, "fleet_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fleet number for the model of Gillig Phantom 3096TB?`: ```sql
SELECT "width" FROM "retired_fleet" WHERE "year"='1970';
## Task Generate a SQL query to answer the following question: `What is the width for the year of the 1970?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "retired_fleet" ( "year" text, "model" text, "length" text, "width" text, "fleet_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the width for the year of the 1970?`: ```sql
SELECT "year" FROM "retired_fleet" WHERE "fleet_number"='603';
## Task Generate a SQL query to answer the following question: `Which year has a fleet number of 603?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "retired_fleet" ( "year" text, "model" text, "length" text, "width" text, "fleet_number" text ); ### SQL Given the database schema, here is the SQL query that answers `Which year has a fleet number of 603?`: ```sql
SELECT "length" FROM "retired_fleet" WHERE "fleet_number"='501-506';
## Task Generate a SQL query to answer the following question: `What is the length of fleet number 501-506?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "retired_fleet" ( "year" text, "model" text, "length" text, "width" text, "fleet_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the length of fleet number 501-506?`: ```sql
SELECT "fleet_number" FROM "retired_fleet" WHERE "year"='19xx';
## Task Generate a SQL query to answer the following question: `What is fleet number for the year of 19xx?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "retired_fleet" ( "year" text, "model" text, "length" text, "width" text, "fleet_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is fleet number for the year of 19xx?`: ```sql
SELECT "fleet_number" FROM "retired_fleet" WHERE "model"='orion 01.507';
## Task Generate a SQL query to answer the following question: `What is the fleet number of Model Orion 01.507?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "retired_fleet" ( "year" text, "model" text, "length" text, "width" text, "fleet_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fleet number of Model Orion 01.507?`: ```sql
SELECT MAX("round") FROM "nfl_draft" WHERE "pick"<261 AND "position"='halfback' AND "player"='ed smith';
## Task Generate a SQL query to answer the following question: `What is the highest round of Ed Smith, who had a pick higher than 261 and played halfback?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest round of Ed Smith, who had a pick higher than 261 and played halfback?`: ```sql
SELECT MIN("round") FROM "nfl_draft" WHERE "player"='ed smith' AND "pick">19;
## Task Generate a SQL query to answer the following question: `What is the lowest round of Ed Smith, who had a pick lower than 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest round of Ed Smith, who had a pick lower than 19?`: ```sql
SELECT "player" FROM "nfl_draft" WHERE "round"=27;
## Task Generate a SQL query to answer the following question: `Which player had a round of 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player had a round of 27?`: ```sql
SELECT "position" FROM "nfl_draft" WHERE "round"<20 AND "school_club_team"='washington';
## Task Generate a SQL query to answer the following question: `What is the position of the player with a round less than 20 from the school/club Washington?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of the player with a round less than 20 from the school/club Washington?`: ```sql
SELECT "record" FROM "game_log" WHERE "location"='hemisfair arena';
## Task Generate a SQL query to answer the following question: `Location of hemisfair arena had what record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Location of hemisfair arena had what record?`: ```sql
SELECT MAX("game") FROM "game_log" WHERE "record"='20–4';
## Task Generate a SQL query to answer the following question: `Record of 20–4 involved what highest game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Record of 20–4 involved what highest game?`: ```sql
SELECT SUM("game") FROM "game_log" WHERE "opponent"='@ phoenix suns';
## Task Generate a SQL query to answer the following question: `Opponent of @ phoenix suns had what sum of game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Opponent of @ phoenix suns had what sum of game?`: ```sql
SELECT "record" FROM "game_log" WHERE "score"='122–105';
## Task Generate a SQL query to answer the following question: `Score of 122–105 had what record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Score of 122–105 had what record?`: ```sql
SELECT "opponents_in_the_final" FROM "doubles_champion_6" WHERE "partner"='simon aspelin';
## Task Generate a SQL query to answer the following question: `In the final, who are the opponents of partner Simon Aspelin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_champion_6" ( "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 `In the final, who are the opponents of partner Simon Aspelin?`: ```sql
SELECT "surface" FROM "doubles_champion_6" WHERE "date"='26 february 2006';
## Task Generate a SQL query to answer the following question: `For the tournament played on 26 February 2006, what surface was used?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_champion_6" ( "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 `For the tournament played on 26 February 2006, what surface was used?`: ```sql
SELECT "date" FROM "game_log" WHERE "record"='58–10';
## Task Generate a SQL query to answer the following question: `Which Date has a Record of 58–10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Record of 58–10?`: ```sql
SELECT "date" FROM "game_log" WHERE "score"='106–112';
## Task Generate a SQL query to answer the following question: `Which Date has a Score of 106–112?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Score of 106–112?`: ```sql
SELECT "second" FROM "group_b2" WHERE "skip"='martynas norkus';
## Task Generate a SQL query to answer the following question: `Who was second when Martynas Norkus was the skip?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was second when Martynas Norkus was the skip?`: ```sql
SELECT "second" FROM "group_b2" WHERE "lead"='ilian kirilov';
## Task Generate a SQL query to answer the following question: `Who was the second when Ilian Kirilov was the lead?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the second when Ilian Kirilov was the lead?`: ```sql
SELECT "lead" FROM "group_b2" WHERE "skip"='jamie meikle';
## Task Generate a SQL query to answer the following question: `Who was the lead when Jamie Meikle was the skip?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the lead when Jamie Meikle was the skip?`: ```sql
SELECT "lead" FROM "group_b2" WHERE "skip"='ritvars gulbis';
## Task Generate a SQL query to answer the following question: `Who was the lead when Ritvars Gulbis was the skip?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the lead when Ritvars Gulbis was the skip?`: ```sql
SELECT "third" FROM "group_b2" WHERE "nation"='england';
## Task Generate a SQL query to answer the following question: `Who came in third in England?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Who came in third in England?`: ```sql
SELECT "nation" FROM "group_b2" WHERE "third"='darko sovran';
## Task Generate a SQL query to answer the following question: `In what nation did Darko Sovran place third?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_b2" ( "nation" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `In what nation did Darko Sovran place third?`: ```sql
SELECT "tournament" FROM "singles_titles_14" WHERE "score"='w/o' AND "date"='november 5, 2007';
## Task Generate a SQL query to answer the following question: `What is the tournament with a w/o score on November 5, 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_titles_14" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the tournament with a w/o score on November 5, 2007?`: ```sql
SELECT "surface" FROM "singles_titles_14" WHERE "tournament"='eckental' AND "score"='w/o';
## Task Generate a SQL query to answer the following question: `What is the surface of eckental tournament with a w/o score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_titles_14" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the surface of eckental tournament with a w/o score?`: ```sql
SELECT "tournament" FROM "singles_titles_14" WHERE "surface"='hard' AND "opponent"='ruben de kleijn';
## Task Generate a SQL query to answer the following question: `What is the tournament with a hard surface and Ruben de Kleijn as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_titles_14" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the tournament with a hard surface and Ruben de Kleijn as the opponent?`: ```sql
SELECT "score" FROM "singles_titles_14" WHERE "surface"='carpet' AND "date"='november 5, 2007';
## Task Generate a SQL query to answer the following question: `What is the score of the tournament on November 5, 2007 with a carpet surface?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_titles_14" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the tournament on November 5, 2007 with a carpet surface?`: ```sql
SELECT "surface" FROM "singles_titles_14" WHERE "opponent"='sascha kloer';
## Task Generate a SQL query to answer the following question: `What is the surface of the tournament with Sascha Kloer as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_titles_14" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the surface of the tournament with Sascha Kloer as the opponent?`: ```sql
SELECT "team" FROM "teams_and_venues" WHERE "location"='gomel';
## Task Generate a SQL query to answer the following question: `what team scored in gomel` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_1993_94" text ); ### SQL Given the database schema, here is the SQL query that answers `what team scored in gomel`: ```sql
SELECT AVG("conceded") FROM "torneo_apertura" WHERE "position">8 AND "wins">2;
## Task Generate a SQL query to answer the following question: `What is the average conceded number of the team with a position lower than 8 and more than 2 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average conceded number of the team with a position lower than 8 and more than 2 wins?`: ```sql
SELECT AVG("scored") FROM "torneo_apertura" WHERE "draws"<6 AND "team"='guaranΓ­' AND "losses"<5;
## Task Generate a SQL query to answer the following question: `What is the averaged scored number of team guaranΓ­, which has less than 6 draws and less than 5 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the averaged scored number of team guaranΓ­, which has less than 6 draws and less than 5 losses?`: ```sql
SELECT COUNT("scored") FROM "torneo_apertura" WHERE "position">10;
## Task Generate a SQL query to answer the following question: `What is the total number scored of the team positioned lower than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number scored of the team positioned lower than 10?`: ```sql
SELECT MIN("wins") FROM "torneo_apertura" WHERE "scored"<24 AND "conceded"=27 AND "played">18;
## Task Generate a SQL query to answer the following question: `What is the lowest number of wins of the team with less than 24 scored, 27 conceded, and more than 18 played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number of wins of the team with less than 24 scored, 27 conceded, and more than 18 played?`: ```sql
SELECT MIN("points") FROM "torneo_apertura" WHERE "losses"=2 AND "position">1;
## Task Generate a SQL query to answer the following question: `What is the lowest number of points of the team with 2 losses and a lower than 1 position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number of points of the team with 2 losses and a lower than 1 position?`: ```sql
SELECT "intercontinental_cup_1993" FROM "brazilian_clubs_in_international_competi" WHERE "supercopa_sudamericana_1993"='round of 16';
## Task Generate a SQL query to answer the following question: `What is the Intercontinental Cup 1993 result for a Supercopa Sudamericana 1993 result of round of 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "brazilian_clubs_in_international_competi" ( "team" text, "copa_libertadores_1993" text, "supercopa_sudamericana_1993" text, "copa_conmebol_1993" text, "recopa_sudamericana_1993" text, "intercontinental_cup_1993" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Intercontinental Cup 1993 result for a Supercopa Sudamericana 1993 result of round of 16?`: ```sql
SELECT "loss" FROM "game_log" WHERE "attendance">'50,589' AND "record"='71–57';
## Task Generate a SQL query to answer the following question: `Who received the Loss during the game with an Attendance larger than 50,589 and a Record of 71–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 `Who received the Loss during the game with an Attendance larger than 50,589 and a Record of 71–57?`: ```sql
SELECT MIN("november") FROM "regular_season" WHERE "game">22 AND "opponent"='toronto maple leafs';
## Task Generate a SQL query to answer the following question: `What is the earliest game in November with more than 22 Games and Toronto Maple Leafs as the Opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest game in November with more than 22 Games and Toronto Maple Leafs as the Opponent?`: ```sql
SELECT "family_friendly" FROM "wii_version" WHERE "decade"='1970s' AND "genre"='punk';
## Task Generate a SQL query to answer the following question: `What is the family friendly status of the punk genre song from the 1970s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wii_version" ( "song_title" text, "artist" text, "decade" text, "genre" text, "family_friendly" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the family friendly status of the punk genre song from the 1970s?`: ```sql
SELECT "artist" FROM "wii_version" WHERE "genre"='rock';
## Task Generate a SQL query to answer the following question: `Who is the artist of the rock song?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wii_version" ( "song_title" text, "artist" text, "decade" text, "genre" text, "family_friendly" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the artist of the rock song?`: ```sql
SELECT MAX("bronze") FROM "medal_table" WHERE "gold"<0;
## Task Generate a SQL query to answer the following question: `What is the highest number of bronze medals for nations with under 0 golds?` ### 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 `What is the highest number of bronze medals for nations with under 0 golds?`: ```sql
SELECT MIN("points") FROM "michigan_36_drake_4" WHERE "player"='stuart' AND "extra_points"<0;
## Task Generate a SQL query to answer the following question: `How many points did Stuart have when he had 0 extra points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_36_drake_4" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many points did Stuart have when he had 0 extra points?`: ```sql
SELECT MIN("field_goals") FROM "michigan_36_drake_4" WHERE "points"=10 AND "touchdowns">2;
## Task Generate a SQL query to answer the following question: `Who had the lowest field goals but had 10 points and more than 2 touchdowns?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_36_drake_4" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Who had the lowest field goals but had 10 points and more than 2 touchdowns?`: ```sql
SELECT SUM("points") FROM "michigan_36_drake_4" WHERE "player"='stuart' AND "touchdowns"<1;
## Task Generate a SQL query to answer the following question: `How many points did Stuart have when he had less than 1 touchdown?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_36_drake_4" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many points did Stuart have when he had less than 1 touchdown?`: ```sql
SELECT AVG("points") FROM "michigan_36_drake_4" WHERE "extra_points"=0 AND "field_goals">0;
## Task Generate a SQL query to answer the following question: `Who had a points average with 0 extra points and 0 field goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_36_drake_4" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Who had a points average with 0 extra points and 0 field goals?`: ```sql
SELECT "result" FROM "awards" WHERE "event"='golden reel awards';
## Task Generate a SQL query to answer the following question: `What was the result in the Golden Reel Awards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards" ( "year" real, "event" text, "award" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result in the Golden Reel Awards?`: ```sql
SELECT "attendance" FROM "game_log" WHERE "record"='16–29';
## Task Generate a SQL query to answer the following question: `Record of 16–29 is how many attendance?` ### 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 `Record of 16–29 is how many attendance?`: ```sql
SELECT "score" FROM "game_log" WHERE "loss"='peavy (4–3)';
## Task Generate a SQL query to answer the following question: `Loss of peavy (4–3) is what score?` ### 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 `Loss of peavy (4–3) is what score?`: ```sql
SELECT SUM("attendance") FROM "game_log" WHERE "score"='3–2' AND "opponent"='reds';
## Task Generate a SQL query to answer the following question: `Score of 3–2, and a Opponent of reds had what sum of attendance?` ### 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 `Score of 3–2, and a Opponent of reds had what sum of attendance?`: ```sql
SELECT "record" FROM "game_log" WHERE "score"='6–4' AND "opponent"='@ marlins';
## Task Generate a SQL query to answer the following question: `Score of 6–4, and a Opponent of @ marlins had what record?` ### 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 `Score of 6–4, and a Opponent of @ marlins had what record?`: ```sql
SELECT AVG("cuts_made") FROM "summary" WHERE "tournament"='totals' AND "wins"<11;
## Task Generate a SQL query to answer the following question: `Which Cuts made has a Tournament of totals, and Wins smaller than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Cuts made has a Tournament of totals, and Wins smaller than 11?`: ```sql
SELECT SUM("top_25") FROM "summary" WHERE "top_5"<0;
## Task Generate a SQL query to answer the following question: `Which Top-25 has a Top-5 smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Top-25 has a Top-5 smaller than 0?`: ```sql
SELECT SUM("top_25") FROM "summary" WHERE "top_5">9 AND "wins"<11;
## Task Generate a SQL query to answer the following question: `Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?`: ```sql
SELECT MAX("top_5") FROM "summary" WHERE "wins"=0 AND "events">6;
## Task Generate a SQL query to answer the following question: `Which Top-5 is the highest one that has Wins of 0, and Events larger than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Top-5 is the highest one that has Wins of 0, and Events larger than 6?`: ```sql
SELECT MIN("top_5") FROM "summary" WHERE "cuts_made"=10 AND "events">10;
## Task Generate a SQL query to answer the following question: `Which Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10?`: ```sql
SELECT MAX("events") FROM "summary" WHERE "top_10">7 AND "wins"<2;
## Task Generate a SQL query to answer the following question: `Which Events is the highest one that has a Top-10 larger than 7, and Wins smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Events is the highest one that has a Top-10 larger than 7, and Wins smaller than 2?`: ```sql
SELECT "score" FROM "singles_18_12_6" WHERE "surface"='clay' AND "tournament"='barcelona';
## Task Generate a SQL query to answer the following question: `When the surface is clay, and the tournament of barcelona what is the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_18_12_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `When the surface is clay, and the tournament of barcelona what is the score?`: ```sql
SELECT "surface" FROM "singles_18_12_6" WHERE "outcome"='winner' AND "opponent"='judith wiesner';
## Task Generate a SQL query to answer the following question: `What was the surface when the opponent was judith wiesner, and the outcome was winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_18_12_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the surface when the opponent was judith wiesner, and the outcome was winner?`: ```sql
SELECT "opponent" FROM "singles_18_12_6" WHERE "tournament"='rio de janeiro';
## Task Generate a SQL query to answer the following question: `What is the opponent for the tournament of rio de janeiro?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_18_12_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the opponent for the tournament of rio de janeiro?`: ```sql
SELECT "opponent" FROM "singles_18_12_6" WHERE "outcome"='runner-up' AND "date"='19 september 1994';
## Task Generate a SQL query to answer the following question: `What is the opponent with the outcome of runner-up with a date of 19 september 1994?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_18_12_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the opponent with the outcome of runner-up with a date of 19 september 1994?`: ```sql
SELECT "opponent" FROM "singles_18_12_6" WHERE "tournament"='taranto';
## Task Generate a SQL query to answer the following question: `What was the opponent for the tournament of taranto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_18_12_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the opponent for the tournament of taranto?`: ```sql
SELECT "fastest_lap" FROM "season_calendar" WHERE "race_winner"='joan lascorz';
## Task Generate a SQL query to answer the following question: `Who had the fastest lap where Joan Lascorz was the winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_calendar" ( "date" text, "round" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the fastest lap where Joan Lascorz was the winner?`: ```sql
SELECT "race_winner" FROM "season_calendar" WHERE "round"='europe';
## Task Generate a SQL query to answer the following question: `Who won the round in Europe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_calendar" ( "date" text, "round" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the round in Europe?`: ```sql
SELECT COUNT("game") FROM "regular_season" WHERE "score"='3–0' AND "january">12;
## Task Generate a SQL query to answer the following question: `How many games have a Score of 3–0, and a January larger than 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many games have a Score of 3–0, and a January larger than 12?`: ```sql
SELECT "opponent" FROM "regular_season" WHERE "january">8 AND "game"<48 AND "score"='5–3';
## Task Generate a SQL query to answer the following question: `Which Opponent has a January larger than 8, and a Game smaller than 48, and a Score of 5–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent has a January larger than 8, and a Game smaller than 48, and a Score of 5–3?`: ```sql
SELECT MAX("game") FROM "regular_season" WHERE "january"=28;
## Task Generate a SQL query to answer the following question: `Which Game is the highest that has a January of 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Game is the highest that has a January of 28?`: ```sql
SELECT "score" FROM "regular_season" WHERE "game">47 AND "january"<25;
## Task Generate a SQL query to answer the following question: `Which Score has a Game larger than 47, and a January smaller than 25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Score has a Game larger than 47, and a January smaller than 25?`: ```sql
SELECT "stroke" FROM "engine_reference" WHERE "max_power"='109 ps(80kw)@4000 rpm';
## Task Generate a SQL query to answer the following question: `What stroke has a max power of 109 ps(80kw)@4000 rpm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_reference" ( "code" text, "vehicle" text, "year" text, "displacement" text, "bore" text, "stroke" text, "c_r" text, "max_power" text ); ### SQL Given the database schema, here is the SQL query that answers `What stroke has a max power of 109 ps(80kw)@4000 rpm?`: ```sql
SELECT "c_r" FROM "engine_reference" WHERE "vehicle"='nissan primera p12 nissan almera n16';
## Task Generate a SQL query to answer the following question: `The nissan primera p12 nissan almera n16 has what C.R.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_reference" ( "code" text, "vehicle" text, "year" text, "displacement" text, "bore" text, "stroke" text, "c_r" text, "max_power" text ); ### SQL Given the database schema, here is the SQL query that answers `The nissan primera p12 nissan almera n16 has what C.R.?`: ```sql
SELECT "displacement" FROM "engine_reference" WHERE "code"='yd22ddt';
## Task Generate a SQL query to answer the following question: `What displacement has the code yd22ddt?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_reference" ( "code" text, "vehicle" text, "year" text, "displacement" text, "bore" text, "stroke" text, "c_r" text, "max_power" text ); ### SQL Given the database schema, here is the SQL query that answers `What displacement has the code yd22ddt?`: ```sql
SELECT "code" FROM "engine_reference" WHERE "c_r"='16.7:1';
## Task Generate a SQL query to answer the following question: `What code has a C.R of 16.7:1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engine_reference" ( "code" text, "vehicle" text, "year" text, "displacement" text, "bore" text, "stroke" text, "c_r" text, "max_power" text ); ### SQL Given the database schema, here is the SQL query that answers `What code has a C.R of 16.7:1?`: ```sql
SELECT "outcome" FROM "singles" WHERE "date"='20 november 2011';
## Task Generate a SQL query to answer the following question: `What Outcome happened on a Date that was 20 november 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What Outcome happened on a Date that was 20 november 2011?`: ```sql
SELECT "away_team" FROM "fourth_round" WHERE "score"='0–3';
## Task Generate a SQL query to answer the following question: `Which Away team has a Score of 0–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Away team has a Score of 0–3?`: ```sql
SELECT "attendance" FROM "fourth_round" WHERE "tie_no"='5';
## Task Generate a SQL query to answer the following question: `Which Attendance has a Tie number of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Attendance has a Tie number of 5?`: ```sql
SELECT "score" FROM "fourth_round" WHERE "attendance"='23 january 1999' AND "tie_no"='6';
## Task Generate a SQL query to answer the following question: `Which Score has an Attendance of 23 january 1999, and a Tie # of 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Score has an Attendance of 23 january 1999, and a Tie # of 6?`: ```sql
SELECT "tie_no" FROM "fourth_round" WHERE "attendance"='54,591';
## Task Generate a SQL query to answer the following question: `Which Tie #has an Attendance of 54,591?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Tie #has an Attendance of 54,591?`: ```sql
SELECT "home_team" FROM "fourth_round" WHERE "score"='1–1' AND "away_team"='tottenham hotspur';
## Task Generate a SQL query to answer the following question: `Which Home team has a Score of 1–1, and an Away team of tottenham hotspur?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Home team has a Score of 1–1, and an Away team of tottenham hotspur?`: ```sql
SELECT "attendance" FROM "fourth_round" WHERE "tie_no"='15';
## Task Generate a SQL query to answer the following question: `Which Attendance has a Tie # of 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Attendance has a Tie # of 15?`: ```sql
SELECT COUNT("year") FROM "achievements" WHERE "position"='11th';
## Task Generate a SQL query to answer the following question: `In what Year was the Position 11th?` ### 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 `In what Year was the Position 11th?`: ```sql
SELECT "competition" FROM "achievements" WHERE "venue"='rome, italy';
## Task Generate a SQL query to answer the following question: `What was the name of the Competition in Rome, Italy?` ### 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 `What was the name of the Competition in Rome, Italy?`: ```sql
SELECT "notes" FROM "achievements" WHERE "year">1983 AND "position"='18th';
## Task Generate a SQL query to answer the following question: `What Notes after 1983 have a Position of 18th?` ### 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 `What Notes after 1983 have a Position of 18th?`: ```sql
SELECT "position" FROM "achievements" WHERE "year">1983 AND "venue"='seoul, south korea';
## Task Generate a SQL query to answer the following question: `After 1983, what was the Position in Seoul, South Korea?` ### 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 `After 1983, what was the Position in Seoul, South Korea?`: ```sql
SELECT COUNT("gold") FROM "medal_table" WHERE "rank"='1' AND "total"<2;
## Task Generate a SQL query to answer the following question: `How many Gold medals for the country with a Rank of 1 and less than 2 Total medals?` ### 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 `How many Gold medals for the country with a Rank of 1 and less than 2 Total medals?`: ```sql
SELECT COUNT("gold") FROM "medal_table" WHERE "silver"=2 AND "bronze">2;
## Task Generate a SQL query to answer the following question: `How many Gold medals does the country with 2 Silver and more than 2 Bronze have?` ### 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 `How many Gold medals does the country with 2 Silver and more than 2 Bronze have?`: ```sql
SELECT "age_as_of_1_february_2014" FROM "living_british_supercentenarians" WHERE "name"='dorothy peel';
## Task Generate a SQL query to answer the following question: `What is the Age of dorothy Peel as of 1 February 2014 ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "living_british_supercentenarians" ( "name" text, "birth_date" text, "age_as_of_1_february_2014" text, "country_of_birth" text, "place_of_residence" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Age of dorothy Peel as of 1 February 2014 ?`: ```sql
SELECT "name" FROM "living_british_supercentenarians" WHERE "age_as_of_1_february_2014"='111years, 358days';
## Task Generate a SQL query to answer the following question: `Who is 111years, 358days Age as of 1 February 2014?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "living_british_supercentenarians" ( "name" text, "birth_date" text, "age_as_of_1_february_2014" text, "country_of_birth" text, "place_of_residence" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is 111years, 358days Age as of 1 February 2014?`: ```sql
SELECT AVG("capacity") FROM "atp_tour_venues" WHERE "city"='london' AND "stadium"='queen''s club';
## Task Generate a SQL query to answer the following question: `Which Capacity has a City of london, and a Stadium of queen's club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atp_tour_venues" ( "rank" text, "stadium" text, "capacity" real, "city" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Capacity has a City of london, and a Stadium of queen's club?`: ```sql
SELECT AVG("rank") FROM "planica" WHERE "name"='thomas morgenstern' AND "points">368.9;
## Task Generate a SQL query to answer the following question: `Which Rank has a Name of thomas morgenstern, and Points larger than 368.9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planica" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Rank has a Name of thomas morgenstern, and Points larger than 368.9?`: ```sql
SELECT AVG("rank") FROM "planica" WHERE "overall_wc_points_rank"='1561 (2)' AND "1st_m">217;
## Task Generate a SQL query to answer the following question: `Which Rank has an Overall WC points (Rank) of 1561 (2), and a 1st (m) larger than 217?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planica" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Rank has an Overall WC points (Rank) of 1561 (2), and a 1st (m) larger than 217?`: ```sql
SELECT COUNT("rank") FROM "planica" WHERE "name"='janne happonen' AND "1st_m">203.5;
## Task Generate a SQL query to answer the following question: `How much Rank has a Name of janne happonen, and a 1st (m) larger than 203.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planica" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `How much Rank has a Name of janne happonen, and a 1st (m) larger than 203.5?`: ```sql
SELECT MIN("total") FROM "medal_table" WHERE "bronze">1 AND "gold">8 AND "silver"<10;
## Task Generate a SQL query to answer the following question: `What is the lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers?`: ```sql
SELECT MAX("silver") FROM "medal_table" WHERE "rank">7;
## Task Generate a SQL query to answer the following question: `What is the highest number of silvers for ranks over 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of silvers for ranks over 7?`: ```sql
SELECT "location" FROM "fixtures" WHERE "opponent"='maryland terrapins';
## Task Generate a SQL query to answer the following question: `Which location held a game against the Maryland Terrapins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fixtures" ( "date" text, "location" text, "opponent" text, "score" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which location held a game against the Maryland Terrapins?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "record"='64-78';
## Task Generate a SQL query to answer the following question: `Who was the opponent when the record recorded was 64-78?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "time" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent when the record recorded was 64-78?`: ```sql
SELECT "score" FROM "game_log" WHERE "record"='67-82';
## Task Generate a SQL query to answer the following question: `When the record was 67-82, what was the final score recorded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "time" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When the record was 67-82, what was the final score recorded?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "attendance"='54,136';
## Task Generate a SQL query to answer the following question: `Who was the opponent for the game played with 54,136 people in attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "time" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent for the game played with 54,136 people in attendance?`: ```sql
SELECT "position" FROM "nfl_draft" WHERE "player"='bert coan';
## Task Generate a SQL query to answer the following question: `Which position does bert coan play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which position does bert coan play?`: ```sql
SELECT "position" FROM "nfl_draft" WHERE "round"=1;
## Task Generate a SQL query to answer the following question: `What is round 1's position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is round 1's position?`: ```sql