output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "home_team" FROM "ties" WHERE "tie_no"=23;
## Task Generate a SQL query to answer the following question: `Who was the Home team in Tie #23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ties" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Home team in Tie #23?`: ```sql
SELECT "score" FROM "ties" WHERE "tie_no"=28;
## Task Generate a SQL query to answer the following question: `What was the final score in Tie #28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ties" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the final score in Tie #28?`: ```sql
SELECT "score" FROM "final_leaderboard" WHERE "to_par">15 AND "money">116 AND "player"='billy burke';
## Task Generate a SQL query to answer the following question: `What score has a to par greater than 15, money ($) greater than 116, with billy burke as the player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What score has a to par greater than 15, money ($) greater than 116, with billy burke as the player?`: ```sql
SELECT "player" FROM "final_leaderboard" WHERE "place"='t3' AND "country"='england united states';
## Task Generate a SQL query to answer the following question: `What player has t3 as the place, with england united states as the country?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What player has t3 as the place, with england united states as the country?`: ```sql
SELECT MIN("money") FROM "final_leaderboard" WHERE "place"='t8' AND "to_par">19;
## Task Generate a SQL query to answer the following question: `What is the lowest money ($) that has t8 as the place, with a to par greater than 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest money ($) that has t8 as the place, with a to par greater than 19?`: ```sql
SELECT "score" FROM "final_leaderboard" WHERE "money">400 AND "player"='gene sarazen';
## Task Generate a SQL query to answer the following question: `What score has money ($) greater than 400, with gene sarazen as the player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What score has money ($) greater than 400, with gene sarazen as the player?`: ```sql
SELECT "country" FROM "missed_the_cut" WHERE "to_par"<7 AND "total"=148;
## Task Generate a SQL query to answer the following question: `Which Country has a To par smaller than 7, and a Total of 148?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Country has a To par smaller than 7, and a Total of 148?`: ```sql
SELECT "player" FROM "missed_the_cut" WHERE "country"='south africa';
## Task Generate a SQL query to answer the following question: `Which player is from south africa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `Which player is from south africa?`: ```sql
SELECT "year_s_won" FROM "missed_the_cut" WHERE "total">148 AND "to_par"<17 AND "country"='new zealand';
## Task Generate a SQL query to answer the following question: `Which Year(s) won has a Total larger than 148, and a To par smaller than 17, and a Country of new zealand?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Year(s) won has a Total larger than 148, and a To par smaller than 17, and a Country of new zealand?`: ```sql
SELECT "event" FROM "list_of_medallists" WHERE "name"='dorcus inzikuru';
## Task Generate a SQL query to answer the following question: `In what Event did Dorcus Inzikuru compete?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_medallists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Event did Dorcus Inzikuru compete?`: ```sql
SELECT "games" FROM "list_of_medallists" WHERE "name"='patrick etolu';
## Task Generate a SQL query to answer the following question: `In what Games did Patrick Etolu compete?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_medallists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Games did Patrick Etolu compete?`: ```sql
SELECT "medal" FROM "list_of_medallists" WHERE "sport"='boxing' AND "games"='1970 edinburgh' AND "name"='james odwori';
## Task Generate a SQL query to answer the following question: `What Medal did James Odwori receive for Boxing in the 1970 Edinburgh Games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_medallists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `What Medal did James Odwori receive for Boxing in the 1970 Edinburgh Games?`: ```sql
SELECT "medal" FROM "list_of_medallists" WHERE "event"='light heavyweight';
## Task Generate a SQL query to answer the following question: `What is the Medal for the Player in the Light Heavyweight event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_medallists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Medal for the Player in the Light Heavyweight event?`: ```sql
SELECT "games" FROM "list_of_medallists" WHERE "medal"='silver' AND "event"='light heavyweight';
## Task Generate a SQL query to answer the following question: `At what Games did the competitor win a Silver medal in the light heavyweight event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_medallists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `At what Games did the competitor win a Silver medal in the light heavyweight event?`: ```sql
SELECT "tie_no" FROM "sixth_round_proper" WHERE "away_team"='ipswich town';
## Task Generate a SQL query to answer the following question: `What is the Tie no for Away Team Ipswich Town?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Tie no for Away Team Ipswich Town?`: ```sql
SELECT "date" FROM "sixth_round_proper" WHERE "home_team"='middlesbrough';
## Task Generate a SQL query to answer the following question: `What is the Date of the Middlesbrough Home game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of the Middlesbrough Home game?`: ```sql
SELECT "home_team" FROM "sixth_round_proper" WHERE "score"='1–0';
## Task Generate a SQL query to answer the following question: `What is the Home team in the Game with a Score of 1–0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Home team in the Game with a Score of 1–0?`: ```sql
SELECT "date" FROM "sixth_round_proper" WHERE "away_team"='everton';
## Task Generate a SQL query to answer the following question: `What is the Date of the Everton Away game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of the Everton Away game?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "finish"='t31';
## Task Generate a SQL query to answer the following question: `When the finish was t31 what was the To par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `When the finish was t31 what was the To par?`: ```sql
SELECT "player" FROM "made_the_cut" WHERE "finish"='t15';
## Task Generate a SQL query to answer the following question: `Who had a finish of t15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had a finish of t15?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "total"=290;
## Task Generate a SQL query to answer the following question: `When the total was 290 what was the To par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `When the total was 290 what was the To par?`: ```sql
SELECT SUM("total") FROM "made_the_cut" WHERE "player"='seve ballesteros';
## Task Generate a SQL query to answer the following question: `What is the Total for Seve Ballesteros?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Total for Seve Ballesteros?`: ```sql
SELECT "result" FROM "1993_london_revival" WHERE "nominee"='declan donnellan';
## Task Generate a SQL query to answer the following question: `What was the result of Declan Donnellan's nomination?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1993_london_revival" ( "year" real, "award_ceremony" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of Declan Donnellan's nomination?`: ```sql
SELECT "result" FROM "1993_london_revival" WHERE "category"='best actor in a musical';
## Task Generate a SQL query to answer the following question: `What was the result of the Best Actor in a Musical category?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1993_london_revival" ( "year" real, "award_ceremony" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the Best Actor in a Musical category?`: ```sql
SELECT "player" FROM "made_the_cut" WHERE "total"=287;
## Task Generate a SQL query to answer the following question: `WHAT IS THE PLAYER WITH 287?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE PLAYER WITH 287?`: ```sql
SELECT "country" FROM "made_the_cut" WHERE "player"='jack nicklaus';
## Task Generate a SQL query to answer the following question: `WHAT COUNTRY HAS A PLAYER NAMED JACK NICKLAUS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT COUNTRY HAS A PLAYER NAMED JACK NICKLAUS?`: ```sql
SELECT "player" FROM "final_leaderboard" WHERE "country"='united states' AND "place"='6';
## Task Generate a SQL query to answer the following question: `What is Player, when Country is "United States", and when Place is "6"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Player, when Country is "United States", and when Place is "6"?`: ```sql
SELECT AVG("money") FROM "final_leaderboard" WHERE "score"='69-69-76-69=283';
## Task Generate a SQL query to answer the following question: `What is the average Money ( $ ), when Score is "69-69-76-69=283"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Money ( $ ), when Score is "69-69-76-69=283"?`: ```sql
SELECT "country" FROM "final_leaderboard" WHERE "to_par"='+1' AND "score"='72-71-70-72=285';
## Task Generate a SQL query to answer the following question: `What is Country, when To par is "+1", and when Score is "72-71-70-72=285"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Country, when To par is "+1", and when Score is "72-71-70-72=285"?`: ```sql
SELECT "place" FROM "final_leaderboard" WHERE "score"='70-70-68-70=278';
## Task Generate a SQL query to answer the following question: `What is Place, when Score is "70-70-68-70=278"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Place, when Score is "70-70-68-70=278"?`: ```sql
SELECT "network" FROM "1990s" WHERE "year">1990 AND "colour_commentator_s"='chris walby';
## Task Generate a SQL query to answer the following question: `For which network was Chris Walby the color commentator after 1990?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "year" real, "network" text, "play_by_play" text, "colour_commentator_s" text, "pregame_host" text ); ### SQL Given the database schema, here is the SQL query that answers `For which network was Chris Walby the color commentator after 1990?`: ```sql
SELECT "pregame_host" FROM "1990s" WHERE "year"<1992 AND "play_by_play"='bob irving';
## Task Generate a SQL query to answer the following question: `Who was the pregame host before 1992 when there was a play by play of Bob Irving?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "year" real, "network" text, "play_by_play" text, "colour_commentator_s" text, "pregame_host" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the pregame host before 1992 when there was a play by play of Bob Irving?`: ```sql
SELECT COUNT("total") FROM "missed_the_cut" WHERE "year_won"<1991 AND "to_par"<14;
## Task Generate a SQL query to answer the following question: `What is the total of the player who won before 1991 and has a to par less than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_won" real, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total of the player who won before 1991 and has a to par less than 14?`: ```sql
SELECT COUNT("to_par") FROM "missed_the_cut" WHERE "year_won"<1993 AND "player"='jeff sluman' AND "total">154;
## Task Generate a SQL query to answer the following question: `What is the total to par of player jeff sluman, who won before 1993 and has a total greater than 154?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_won" real, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total to par of player jeff sluman, who won before 1993 and has a total greater than 154?`: ```sql
SELECT SUM("total") FROM "missed_the_cut" WHERE "player"='rich beem' AND "to_par">17;
## Task Generate a SQL query to answer the following question: `What is the sum of the total of player rich beem, who has a to par greater than 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_won" real, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the total of player rich beem, who has a to par greater than 17?`: ```sql
SELECT "away" FROM "european_cup_history" WHERE "round"='semifinals';
## Task Generate a SQL query to answer the following question: `Who was the away team in the semifinals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_cup_history" ( "season" text, "competition" text, "round" text, "club" text, "home" text, "away" text, "aggregate" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team in the semifinals?`: ```sql
SELECT "home" FROM "european_cup_history" WHERE "club"='auxerre';
## Task Generate a SQL query to answer the following question: `What is the home record for the Auxerre club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_cup_history" ( "season" text, "competition" text, "round" text, "club" text, "home" text, "away" text, "aggregate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home record for the Auxerre club?`: ```sql
SELECT "home" FROM "european_cup_history" WHERE "club"='maccabi tel-aviv';
## Task Generate a SQL query to answer the following question: `What is the home record for the Maccabi Tel-Aviv club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_cup_history" ( "season" text, "competition" text, "round" text, "club" text, "home" text, "away" text, "aggregate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home record for the Maccabi Tel-Aviv club?`: ```sql
SELECT COUNT("against") FROM "1996" WHERE "date"='16/03/1996';
## Task Generate a SQL query to answer the following question: `What is the total number of Against, when Date is "16/03/1996"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1996" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Against, when Date is "16/03/1996"?`: ```sql
SELECT "venue" FROM "1996" WHERE "against">9 AND "date"='03/02/1996';
## Task Generate a SQL query to answer the following question: `What is Venue, when Against is greater than 9, and when Date is "03/02/1996"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1996" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Venue, when Against is greater than 9, and when Date is "03/02/1996"?`: ```sql
SELECT "status" FROM "1996" WHERE "opposing_teams"='scotland';
## Task Generate a SQL query to answer the following question: `What is Status, when Opposing Teams is "Scotland"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1996" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Status, when Opposing Teams is "Scotland"?`: ```sql
SELECT "venue" FROM "1996" WHERE "date"='14/12/1996';
## Task Generate a SQL query to answer the following question: `What is Venue, when Date is "14/12/1996"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1996" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Venue, when Date is "14/12/1996"?`: ```sql
SELECT AVG("against") FROM "1996" WHERE "status"='five nations' AND "date"='16/03/1996';
## Task Generate a SQL query to answer the following question: `What is the average Against, when Status is "Five Nations", and when Date is "16/03/1996"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1996" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Against, when Status is "Five Nations", and when Date is "16/03/1996"?`: ```sql
SELECT COUNT("year") FROM "24_hours_of_le_mans_results" WHERE "team"='aston martin racing' AND "pos"='6th';
## Task Generate a SQL query to answer the following question: `In what year did the team of aston martin racing have a position of 6th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); ### SQL Given the database schema, here is the SQL query that answers `In what year did the team of aston martin racing have a position of 6th?`: ```sql
SELECT MAX("year") FROM "24_hours_of_le_mans_results" WHERE "team"='pescarolo sport' AND "class_pos"='7th';
## Task Generate a SQL query to answer the following question: `Which year did the team of pescarolo sport have a Class Position of 7th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); ### SQL Given the database schema, here is the SQL query that answers `Which year did the team of pescarolo sport have a Class Position of 7th?`: ```sql
SELECT "co_drivers" FROM "24_hours_of_le_mans_results" WHERE "class_pos"='7th' AND "pos"='7th';
## Task Generate a SQL query to answer the following question: `Who were the co-drivers of the vehicle that had both a Class position and position of 7th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the co-drivers of the vehicle that had both a Class position and position of 7th?`: ```sql
SELECT "highest_rank" FROM "slowest_progress_to_top_division" WHERE "name"='yoshiazuma';
## Task Generate a SQL query to answer the following question: `Which Rank is Highest for Yoshiazuma?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "slowest_progress_to_top_division" ( "name" text, "tournaments" real, "pro_debut" text, "top_division_debut" text, "highest_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Rank is Highest for Yoshiazuma?`: ```sql
SELECT "top_division_debut" FROM "slowest_progress_to_top_division" WHERE "tournaments"<88 AND "name"='kitazakura';
## Task Generate a SQL query to answer the following question: `Which Top Division debut for Kitazakura has Tournaments less than 88?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "slowest_progress_to_top_division" ( "name" text, "tournaments" real, "pro_debut" text, "top_division_debut" text, "highest_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Top Division debut for Kitazakura has Tournaments less than 88?`: ```sql
SELECT MIN("tournaments") FROM "slowest_progress_to_top_division" WHERE "highest_rank"='maegashira 13';
## Task Generate a SQL query to answer the following question: `What is the lowest Tournaments with Highest Rank of Maegashira 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "slowest_progress_to_top_division" ( "name" text, "tournaments" real, "pro_debut" text, "top_division_debut" text, "highest_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Tournaments with Highest Rank of Maegashira 13?`: ```sql
SELECT "city" FROM "finals" WHERE "winner"='hallescher fc' AND "year"=2008;
## Task Generate a SQL query to answer the following question: `What was the city where Hallescher FC won in 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finals" ( "year" real, "winner" text, "finalist" text, "result" text, "city" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the city where Hallescher FC won in 2008?`: ```sql
SELECT "winner" FROM "finals" WHERE "finalist"='fc grün-weiß wolfen';
## Task Generate a SQL query to answer the following question: `Who was the winner of fc grün-weiß wolfen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finals" ( "year" real, "winner" text, "finalist" text, "result" text, "city" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner of fc grün-weiß wolfen?`: ```sql
SELECT "stadium" FROM "finals" WHERE "year">2012;
## Task Generate a SQL query to answer the following question: `What was the stadium past 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finals" ( "year" real, "winner" text, "finalist" text, "result" text, "city" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the stadium past 2012?`: ```sql
SELECT AVG("year") FROM "workplace_killings" WHERE "country"='u.s.' AND "location"='edmond , ok';
## Task Generate a SQL query to answer the following question: `What is the average Year, when Country is "U.S.", and when Location is "Edmond , OK"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "workplace_killings" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" real, "injured" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Year, when Country is "U.S.", and when Location is "Edmond , OK"?`: ```sql
SELECT MIN("killed") FROM "workplace_killings" WHERE "perpetrator"='sherrill, patrick henry , 44';
## Task Generate a SQL query to answer the following question: `What is the lowest Killed, when Perpetrator is "Sherrill, Patrick Henry , 44"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "workplace_killings" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" real, "injured" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Killed, when Perpetrator is "Sherrill, Patrick Henry , 44"?`: ```sql
SELECT MAX("goals_for") FROM "group_i" WHERE "losses"<16 AND "wins"<11 AND "goal_difference">-9;
## Task Generate a SQL query to answer the following question: `What was the highest goals with fewer than 16 losses, fewer than 11 wins, and a goal difference greater than -9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest goals with fewer than 16 losses, fewer than 11 wins, and a goal difference greater than -9?`: ```sql
SELECT MAX("wins") FROM "group_i" WHERE "goals_against"<51 AND "points">39 AND "goal_difference"<13;
## Task Generate a SQL query to answer the following question: `What is the highest wins entry with fewer than 51 goals, more than 39 points, and a goal difference smaller than 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest wins entry with fewer than 51 goals, more than 39 points, and a goal difference smaller than 13?`: ```sql
SELECT MIN("wins") FROM "group_i" WHERE "goal_difference"<33 AND "position"<13 AND "goals_for"=42;
## Task Generate a SQL query to answer the following question: `What is the lowest wins entry that has a goal difference less than 33, position higher than 13, and 42 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest wins entry that has a goal difference less than 33, position higher than 13, and 42 goals?`: ```sql
SELECT COUNT("goals_for") FROM "group_i" WHERE "draws">7 AND "wins">8 AND "losses">5;
## Task Generate a SQL query to answer the following question: `What is the total number of goals for entries that have more than 7 draws, 8 wins, and more than 5 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of goals for entries that have more than 7 draws, 8 wins, and more than 5 losses?`: ```sql
SELECT "city" FROM "team_summaries" WHERE "stadium"='estádio dr. magalhães pessoa';
## Task Generate a SQL query to answer the following question: `What city is the Stadium estádio dr. magalhães pessoa in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2002_2003_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What city is the Stadium estádio dr. magalhães pessoa in?`: ```sql
SELECT "city" FROM "team_summaries" WHERE "stadium"='estádio cidade de barcelos';
## Task Generate a SQL query to answer the following question: `What city is the Stadium estádio cidade de barcelos in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2002_2003_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What city is the Stadium estádio cidade de barcelos in?`: ```sql
SELECT "club" FROM "team_summaries" WHERE "head_coach"='casemiro mior';
## Task Generate a SQL query to answer the following question: `Head Coach casemiro mior is at which Club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2002_2003_season" text ); ### SQL Given the database schema, here is the SQL query that answers `Head Coach casemiro mior is at which Club?`: ```sql
SELECT "city" FROM "team_summaries" WHERE "club"='braga';
## Task Generate a SQL query to answer the following question: `What City is the Club braga in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2002_2003_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What City is the Club braga in?`: ```sql
SELECT "2002_2003_season" FROM "team_summaries" WHERE "city"='aveiro';
## Task Generate a SQL query to answer the following question: `What place is listed in the 2002-2003 season for the City of Aveiro?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "head_coach" text, "city" text, "stadium" text, "2002_2003_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What place is listed in the 2002-2003 season for the City of Aveiro?`: ```sql
SELECT "1st_round" FROM "round_of_16" WHERE "team_1"='fc nantes (d1)';
## Task Generate a SQL query to answer the following question: `What is the 1st round with fc nantes (d1) as team 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1st round with fc nantes (d1) as team 1?`: ```sql
SELECT "team_1" FROM "round_of_16" WHERE "team_2"='nîmes olympique (d2)';
## Task Generate a SQL query to answer the following question: `What is the team 1 with nîmes olympique (d2) as team 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the team 1 with nîmes olympique (d2) as team 2?`: ```sql
SELECT "lyrics" FROM "release_history" WHERE "date"='august 10, 2005' AND "catalog_number"='tocp-66427';
## Task Generate a SQL query to answer the following question: `In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog_number" text, "lyrics" text ); ### SQL Given the database schema, here is the SQL query that answers `In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427?`: ```sql
SELECT "label" FROM "release_history" WHERE "date"='june 6, 2005' AND "region"='germany' AND "format"='cd';
## Task Generate a SQL query to answer the following question: `What is the Label of the CD released in Germany on June 6, 2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog_number" text, "lyrics" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Label of the CD released in Germany on June 6, 2005?`: ```sql
SELECT "region" FROM "release_history" WHERE "label"='emi' AND "format"='4 x vinyl' AND "catalog_number"='560 6111';
## Task Generate a SQL query to answer the following question: `What is the Region of the EMI 4 x vinyl release bearing Catalog number 560 6111?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog_number" text, "lyrics" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Region of the EMI 4 x vinyl release bearing Catalog number 560 6111?`: ```sql
SELECT "lyrics" FROM "release_history" WHERE "catalog_number"='560 6111';
## Task Generate a SQL query to answer the following question: `What language is the Lyrics of the release with Catalog number 560 6111?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog_number" text, "lyrics" text ); ### SQL Given the database schema, here is the SQL query that answers `What language is the Lyrics of the release with Catalog number 560 6111?`: ```sql
SELECT "region" FROM "release_history" WHERE "catalog_number"='3 12046 2';
## Task Generate a SQL query to answer the following question: `What is the Region of the release with Catalog number 3 12046 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog_number" text, "lyrics" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Region of the release with Catalog number 3 12046 2?`: ```sql
SELECT "label" FROM "release_history" WHERE "date"='september 19, 2008' AND "region"='germany';
## Task Generate a SQL query to answer the following question: `What is the Label of the September 19, 2008 release in Germany?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "format_s" text, "edition_s" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Label of the September 19, 2008 release in Germany?`: ```sql
SELECT "edition_s" FROM "release_history" WHERE "region"='germany';
## Task Generate a SQL query to answer the following question: `What is the Edition of the release in Germany?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "format_s" text, "edition_s" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Edition of the release in Germany?`: ```sql
SELECT "format_s" FROM "release_history" WHERE "date"='september 23, 2008';
## Task Generate a SQL query to answer the following question: `What is the Format(s) of the release on September 23, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "format_s" text, "edition_s" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Format(s) of the release on September 23, 2008?`: ```sql
SELECT "label" FROM "release_history" WHERE "region"='germany' AND "date"='april 24, 2009';
## Task Generate a SQL query to answer the following question: `What is the Label of the release on April 24, 2009 in Germany?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "format_s" text, "edition_s" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Label of the release on April 24, 2009 in Germany?`: ```sql
SELECT "l2_cache" FROM "ultra_low_voltage_processors" WHERE "idle_power"='100mw' AND "model_number"='nano u3400';
## Task Generate a SQL query to answer the following question: `What is the L2 Cache for Model Number nano u3400 with an Idle Power of 100mw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ultra_low_voltage_processors" ( "model_number" text, "clock_speed" text, "l1_cache" text, "l2_cache" text, "fsb_speed" text, "clock_multiplier" text, "idle_power" text, "socket" text, "cores" real, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the L2 Cache for Model Number nano u3400 with an Idle Power of 100mw?`: ```sql
SELECT COUNT("cores") FROM "ultra_low_voltage_processors" WHERE "clock_speed"='1.3ghz';
## Task Generate a SQL query to answer the following question: `What is the total Cores with a Clock Speed of 1.3ghz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ultra_low_voltage_processors" ( "model_number" text, "clock_speed" text, "l1_cache" text, "l2_cache" text, "fsb_speed" text, "clock_multiplier" text, "idle_power" text, "socket" text, "cores" real, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total Cores with a Clock Speed of 1.3ghz?`: ```sql
SELECT "to_par" FROM "final_leaderboard" WHERE "score"='68-74-71-77=290';
## Task Generate a SQL query to answer the following question: `What's the to par for the score of 68-74-71-77=290?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the to par for the score of 68-74-71-77=290?`: ```sql
SELECT "money" FROM "final_leaderboard" WHERE "place"='t3' AND "score"='74-74-71-69=288';
## Task Generate a SQL query to answer the following question: `What's the money ($) for the t3 place and the score of 74-74-71-69=288?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the money ($) for the t3 place and the score of 74-74-71-69=288?`: ```sql
SELECT "score" FROM "final_leaderboard" WHERE "money"='22,500';
## Task Generate a SQL query to answer the following question: `What's the score for $22,500?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the score for $22,500?`: ```sql
SELECT "to_par" FROM "final_leaderboard" WHERE "place"='t1' AND "score"='70-72-73-72=287';
## Task Generate a SQL query to answer the following question: `What's the to par for the t1 place with a score of 70-72-73-72=287?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the to par for the t1 place with a score of 70-72-73-72=287?`: ```sql
SELECT AVG("annual_interchanges_millions_2011_12") FROM "references" WHERE "rank">26 AND "location"='liverpool' AND "annual_entry_exit_millions_2011_12"<14.209 AND "number_of_platforms">10;
## Task Generate a SQL query to answer the following question: `What's the average annual interchange for a rank over 26 in liverpool with an annual entry/exit less than 14.209 and more than 10 platforms?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "rank" real, "railway_station" text, "annual_entry_exit_millions_2011_12" real, "annual_interchanges_millions_2011_12" real, "total_passengers_millions_2011_12" real, "location" text, "number_of_platforms" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the average annual interchange for a rank over 26 in liverpool with an annual entry/exit less than 14.209 and more than 10 platforms?`: ```sql
SELECT MAX("annual_interchanges_millions_2011_12") FROM "references" WHERE "railway_station"='wimbledon';
## Task Generate a SQL query to answer the following question: `What's the highest annual interchange for wimbledon railway station?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "rank" real, "railway_station" text, "annual_entry_exit_millions_2011_12" real, "annual_interchanges_millions_2011_12" real, "total_passengers_millions_2011_12" real, "location" text, "number_of_platforms" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the highest annual interchange for wimbledon railway station?`: ```sql
SELECT MIN("total_passengers_millions_2011_12") FROM "references" WHERE "annual_entry_exit_millions_2011_12"=36.609;
## Task Generate a SQL query to answer the following question: `What's the lowest number of total passengers (millions) for an annual entry/exit of 36.609?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "rank" real, "railway_station" text, "annual_entry_exit_millions_2011_12" real, "annual_interchanges_millions_2011_12" real, "total_passengers_millions_2011_12" real, "location" text, "number_of_platforms" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the lowest number of total passengers (millions) for an annual entry/exit of 36.609?`: ```sql
SELECT "rank" FROM "references" WHERE "annual_interchanges_millions_2011_12"<1.99 AND "annual_entry_exit_millions_2011_12"<13.835 AND "total_passengers_millions_2011_12">13.772;
## Task Generate a SQL query to answer the following question: `What rank has an annual interchange less than 1.99 million, an annual entry/exit less than 13.835 million, and more than 13.772 million total passengers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "rank" real, "railway_station" text, "annual_entry_exit_millions_2011_12" real, "annual_interchanges_millions_2011_12" real, "total_passengers_millions_2011_12" real, "location" text, "number_of_platforms" real ); ### SQL Given the database schema, here is the SQL query that answers `What rank has an annual interchange less than 1.99 million, an annual entry/exit less than 13.835 million, and more than 13.772 million total passengers?`: ```sql
SELECT COUNT("rank") FROM "references" WHERE "location"='liverpool' AND "number_of_platforms">3 AND "annual_interchanges_millions_2011_12"<0.778;
## Task Generate a SQL query to answer the following question: `How many ranks are in liverpool with more than 3 platforms and an annual interchange less than 0.778 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "rank" real, "railway_station" text, "annual_entry_exit_millions_2011_12" real, "annual_interchanges_millions_2011_12" real, "total_passengers_millions_2011_12" real, "location" text, "number_of_platforms" real ); ### SQL Given the database schema, here is the SQL query that answers `How many ranks are in liverpool with more than 3 platforms and an annual interchange less than 0.778 million?`: ```sql
SELECT AVG("number_of_households") FROM "minnesota_counties_ranked_by_per_capita_" WHERE "per_capita_income"='$21,571' AND "population"<'9,783';
## Task Generate a SQL query to answer the following question: `Which Number of households has Per capita income of $21,571, and a Population smaller than 9,783?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "minnesota_counties_ranked_by_per_capita_" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Number of households has Per capita income of $21,571, and a Population smaller than 9,783?`: ```sql
SELECT AVG("number_of_households") FROM "minnesota_counties_ranked_by_per_capita_" WHERE "county"='cook' AND "population"<'5,176';
## Task Generate a SQL query to answer the following question: `Which Number of households has a County of cook, and Population smaller than 5,176?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "minnesota_counties_ranked_by_per_capita_" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Number of households has a County of cook, and Population smaller than 5,176?`: ```sql
SELECT "per_capita_income" FROM "minnesota_counties_ranked_by_per_capita_" WHERE "median_family_income"='$50,755';
## Task Generate a SQL query to answer the following question: `What Per capita income has a Median family income of $50,755?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "minnesota_counties_ranked_by_per_capita_" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real ); ### SQL Given the database schema, here is the SQL query that answers `What Per capita income has a Median family income of $50,755?`: ```sql
SELECT "number_of_households" FROM "minnesota_counties_ranked_by_per_capita_" WHERE "median_family_income"='$58,491';
## Task Generate a SQL query to answer the following question: `What Number of households have a Median family income of $58,491?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "minnesota_counties_ranked_by_per_capita_" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real ); ### SQL Given the database schema, here is the SQL query that answers `What Number of households have a Median family income of $58,491?`: ```sql
SELECT "score" FROM "second_round" WHERE "country"='scotland';
## Task Generate a SQL query to answer the following question: `What was the score of the golfer representing Scotland?` ### 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 was the score of the golfer representing Scotland?`: ```sql
SELECT "to_par" FROM "second_round" WHERE "score"='68-70=138';
## Task Generate a SQL query to answer the following question: `What was the to par score of the golfer that had a score of 68-70=138?` ### 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 was the to par score of the golfer that had a score of 68-70=138?`: ```sql
SELECT "player" FROM "second_round" WHERE "score"='69-71=140';
## Task Generate a SQL query to answer the following question: `Which golfer had 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 `Which golfer had a score of 69-71=140?`: ```sql
SELECT "country" FROM "final_round" WHERE "place"='t3' AND "player"='billy mayfair';
## Task Generate a SQL query to answer the following question: `Which country is t3 finisher billy mayfair from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Which country is t3 finisher billy mayfair from?`: ```sql
SELECT "country" FROM "final_round" WHERE "player"='jodie mudd';
## Task Generate a SQL query to answer the following question: `Which Country has a Player of jodie mudd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Country has a Player of jodie mudd?`: ```sql
SELECT COUNT("money") FROM "final_round" WHERE "player"='jodie mudd';
## Task Generate a SQL query to answer the following question: `Which Money (£) has a Player of jodie mudd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Money (£) has a Player of jodie mudd?`: ```sql
SELECT SUM("money") FROM "final_round" WHERE "player"='nick faldo';
## Task Generate a SQL query to answer the following question: `What is the total Money (£) of Player of nick faldo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total Money (£) of Player of nick faldo?`: ```sql
SELECT COUNT("money") FROM "final_round" WHERE "place"='t6' AND "player"='ian baker-finch';
## Task Generate a SQL query to answer the following question: `What is the total Money (£) with a Place of t6, and a Player of ian baker-finch?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total Money (£) with a Place of t6, and a Player of ian baker-finch?`: ```sql
SELECT AVG("position") FROM "first_division_final_table" WHERE "goals_against"<63 AND "lost"<6;
## Task Generate a SQL query to answer the following question: `What position was the team who had less then 63 goals against and less than 6 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); ### SQL Given the database schema, here is the SQL query that answers `What position was the team who had less then 63 goals against and less than 6 losses?`: ```sql
SELECT MIN("lost") FROM "first_division_final_table" WHERE "points_1"='37' AND "goals_against"<60;
## Task Generate a SQL query to answer the following question: `How many times did the team lose who had 1 of 37 points and less than 60 goals against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times did the team lose who had 1 of 37 points and less than 60 goals against?`: ```sql
SELECT MIN("lost") FROM "first_division_final_table" WHERE "goal_difference"='+2' AND "goals_for"=52 AND "drawn"<9;
## Task Generate a SQL query to answer the following question: `How many times did the team lose who had a goal difference of +2, 52 goals for, and less than 9 draws?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times did the team lose who had a goal difference of +2, 52 goals for, and less than 9 draws?`: ```sql