output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "sport" FROM "former_professional_football_teams" WHERE "venue"='bosse field';
## Task Generate a SQL query to answer the following question: `What sport was played at the bosse field?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_professional_football_teams" ( "team" text, "sport" text, "played" text, "venue" text, "championships" text ); ### SQL Given the database schema, here is the SQL query that answers `What sport was played at the bosse field?`: ```sql
SELECT "sport" FROM "former_professional_football_teams" WHERE "played"='2008-2010';
## Task Generate a SQL query to answer the following question: `What sport was played between the years of 2008-2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_professional_football_teams" ( "team" text, "sport" text, "played" text, "venue" text, "championships" text ); ### SQL Given the database schema, here is the SQL query that answers `What sport was played between the years of 2008-2010?`: ```sql
SELECT "venue" FROM "former_professional_football_teams" WHERE "team"='evansville bluecats';
## Task Generate a SQL query to answer the following question: `What venue did the team, evansville bluecats play on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_professional_football_teams" ( "team" text, "sport" text, "played" text, "venue" text, "championships" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue did the team, evansville bluecats play on?`: ```sql
SELECT "team" FROM "former_professional_football_teams" WHERE "played"='2008-2010';
## Task Generate a SQL query to answer the following question: `What team played between the years of 2008-2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_professional_football_teams" ( "team" text, "sport" text, "played" text, "venue" text, "championships" text ); ### SQL Given the database schema, here is the SQL query that answers `What team played between the years of 2008-2010?`: ```sql
SELECT "score" FROM "second_round" WHERE "player"='craig stadler';
## Task Generate a SQL query to answer the following question: `Name the Score of craig stadler?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Score of craig stadler?`: ```sql
SELECT "score" FROM "second_round" WHERE "place"='t5' AND "player"='tom watson';
## Task Generate a SQL query to answer the following question: `Name the Score that has a Place of t5 of tom watson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Score that has a Place of t5 of tom watson?`: ```sql
SELECT "place" FROM "second_round" WHERE "score"='72-68=140';
## Task Generate a SQL query to answer the following question: `Name the Place with a Score of 72-68=140?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Place with a Score of 72-68=140?`: ```sql
SELECT "score" FROM "second_round" WHERE "country"='united states' AND "player"='jack nicklaus';
## Task Generate a SQL query to answer the following question: `Name the Score of jack nicklaus, united states, ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Score of jack nicklaus, united states, ?`: ```sql
SELECT "place" FROM "second_round" WHERE "player"='seve ballesteros';
## Task Generate a SQL query to answer the following question: `Name the Place of seve ballesteros?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Place of seve ballesteros?`: ```sql
SELECT "no_9" FROM "female_names" WHERE "no_4"='ava' AND "no_6"='addison';
## Task Generate a SQL query to answer the following question: `Who was No. 9 when Ava was No. 4 and Addison was No. 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was No. 9 when Ava was No. 4 and Addison was No. 6?`: ```sql
SELECT "no_6" FROM "female_names" WHERE "no_2"='emma' AND "no_3"='sophia';
## Task Generate a SQL query to answer the following question: `What was the No. 6 name when Emma was No. 2 and Sophia was No. 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the No. 6 name when Emma was No. 2 and Sophia was No. 3?`: ```sql
SELECT "no_8" FROM "female_names" WHERE "no_9"='chloe' AND "no_7"='abigail';
## Task Generate a SQL query to answer the following question: `What was the No. 8 name when Chloe was No. 9 and Abigail was No. 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the No. 8 name when Chloe was No. 9 and Abigail was No. 7?`: ```sql
SELECT "no_4" FROM "female_names" WHERE "no_5"='madison' AND "no_9"='abigail';
## Task Generate a SQL query to answer the following question: `What was the No. 4 name when Madison was No. 5 and Abigail was No. 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the No. 4 name when Madison was No. 5 and Abigail was No. 9?`: ```sql
SELECT "player" FROM "final_round" WHERE "to_par"='+2';
## Task Generate a SQL query to answer the following question: `Which player had a to par score of +2?` ### 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 player had a to par score of +2?`: ```sql
SELECT SUM("code") FROM "references" WHERE "density_inh_km"=621.68 AND "land_area_hectares">75.28;
## Task Generate a SQL query to answer the following question: `How many codes have a density of 621.68, and a Land area (hectares) larger than 75.28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "urban_area_locality" text, "population" real, "land_area_hectares" real, "density_inh_km" real, "code" real ); ### SQL Given the database schema, here is the SQL query that answers `How many codes have a density of 621.68, and a Land area (hectares) larger than 75.28?`: ```sql
SELECT AVG("density_inh_km") FROM "references" WHERE "land_area_hectares"=123.02 AND "code">2356;
## Task Generate a SQL query to answer the following question: `What is the average density with a land area of 123.02, and a Code larger than 2356?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "urban_area_locality" text, "population" real, "land_area_hectares" real, "density_inh_km" real, "code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average density with a land area of 123.02, and a Code larger than 2356?`: ```sql
SELECT AVG("land_area_hectares") FROM "references" WHERE "density_inh_km"=815.48 AND "population">411;
## Task Generate a SQL query to answer the following question: `What is the average land area with a density of 815.48, and a Population larger than 411?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "urban_area_locality" text, "population" real, "land_area_hectares" real, "density_inh_km" real, "code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average land area with a density of 815.48, and a Population larger than 411?`: ```sql
SELECT "date" FROM "doubles_finals_36_18_18" WHERE "partnering"='francesca lubiani' AND "opponent_in_final"='yuliya beygelzimer / jennifer hopkins';
## Task Generate a SQL query to answer the following question: `What is the Date, when Partnering is "Francesca Lubiani", and when Opponent in Final is "Yuliya Beygelzimer / Jennifer Hopkins"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_finals_36_18_18" ( "outcome" text, "date" text, "location" text, "surface" text, "partnering" text, "opponent_in_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date, when Partnering is "Francesca Lubiani", and when Opponent in Final is "Yuliya Beygelzimer / Jennifer Hopkins"?`: ```sql
SELECT "score" FROM "doubles_finals_36_18_18" WHERE "outcome"='winner' AND "partnering"='nicole sewell' AND "opponent_in_final"='victoria davies / kate warne-holland';
## Task Generate a SQL query to answer the following question: `What is Score, when Outcome is "winner", when Partnering is "Nicole Sewell", and when Opponent in Final is "Victoria Davies / Kate Warne-Holland"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_finals_36_18_18" ( "outcome" text, "date" text, "location" text, "surface" text, "partnering" text, "opponent_in_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Outcome is "winner", when Partnering is "Nicole Sewell", and when Opponent in Final is "Victoria Davies / Kate Warne-Holland"?`: ```sql
SELECT "tie_no" FROM "fourth_round_proper" WHERE "away_team"='manchester united';
## Task Generate a SQL query to answer the following question: `What is Tie No., when Away Team is "Manchester United"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_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 Tie No., when Away Team is "Manchester United"?`: ```sql
SELECT "away_team" FROM "fourth_round_proper" WHERE "home_team"='ipswich town' AND "date"='6 february 1986';
## Task Generate a SQL query to answer the following question: `What is Away Team, when Home Team is "Ipswich Town", and when Date is "6 February 1986"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_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 Away Team, when Home Team is "Ipswich Town", and when Date is "6 February 1986"?`: ```sql
SELECT "date" FROM "fourth_round_proper" WHERE "home_team"='luton town';
## Task Generate a SQL query to answer the following question: `What is Date, when Home Team is "Luton Town"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_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 Date, when Home Team is "Luton Town"?`: ```sql
SELECT "away_team" FROM "fourth_round_proper" WHERE "date"='25 january 1986' AND "tie_no"='6';
## Task Generate a SQL query to answer the following question: `What is Away Team, when Date is "25 January 1986", and when Tie No is "6"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_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 Away Team, when Date is "25 January 1986", and when Tie No is "6"?`: ```sql
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round">6;
## Task Generate a SQL query to answer the following question: `WHAT IS THE LEAGUE WITH A ROUND LARGER THAN 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE LEAGUE WITH A ROUND LARGER THAN 6?`: ```sql
SELECT COUNT("round") FROM "draft_picks" WHERE "player"='zach boychuk';
## Task Generate a SQL query to answer the following question: `WHAT IS THE ROUND FOR ZACH BOYCHUK?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE ROUND FOR ZACH BOYCHUK?`: ```sql
SELECT "position" FROM "draft_picks" WHERE "nationality"='canada' AND "round"<7 AND "player"='zach boychuk';
## Task Generate a SQL query to answer the following question: `WHAT IS THE POSITION FOR CANADA, ROUND SMALLER THAN 7, PLAYER ZACH BOYCHUK?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE POSITION FOR CANADA, ROUND SMALLER THAN 7, PLAYER ZACH BOYCHUK?`: ```sql
SELECT "date" FROM "schedule" WHERE "week"=8;
## Task Generate a SQL query to answer the following question: `What was the date of week 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of week 8?`: ```sql
SELECT "result" FROM "schedule" WHERE "date"='september 8, 1985';
## Task Generate a SQL query to answer the following question: `What was the result of the September 8, 1985 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the September 8, 1985 game?`: ```sql
SELECT "date" FROM "schedule" WHERE "bills_first_downs"<28 AND "opponent"='oakland raiders';
## Task Generate a SQL query to answer the following question: `Which date did the oakland raiders play as the opponent when the Bills first downs were under 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "bills_points" real, "opponents" real, "bills_first_downs" real, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which date did the oakland raiders play as the opponent when the Bills first downs were under 28?`: ```sql
SELECT "paraguay_scorers" FROM "2008_in_paraguayan_football" WHERE "date"='june 15, 2008';
## Task Generate a SQL query to answer the following question: `Who were the Paraguay scorers on June 15, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "paraguay_scorers" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the Paraguay scorers on June 15, 2008?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "finish"='t14';
## Task Generate a SQL query to answer the following question: `What is the To par of the player with a t14 Finish?` ### 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 To par of the player with a t14 Finish?`: ```sql
SELECT "country" FROM "made_the_cut" WHERE "player"='raymond floyd';
## Task Generate a SQL query to answer the following question: `What country is player Raymond Floyd from?` ### 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 is player Raymond Floyd from?`: ```sql
SELECT "year_s_won" FROM "made_the_cut" WHERE "country"='united states' AND "to_par"='+4';
## Task Generate a SQL query to answer the following question: `What is the Year(s) won from the United States as country with a To Par of +4?` ### 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 Year(s) won from the United States as country with a To Par of +4?`: ```sql
SELECT "player" FROM "first_round" WHERE "country"='united states' AND "place"='t2';
## Task Generate a SQL query to answer the following question: `Who is the player from the United States and a place of t2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the player from the United States and a place of t2?`: ```sql
SELECT SUM("category_1") FROM "acute_toxicity" WHERE "category_3"='300';
## Task Generate a SQL query to answer the following question: `What's the sum of all values in category 1 when category 3 is equal to 300?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "acute_toxicity" ( "method_of_administration_citation_needed" text, "category_1" real, "category_2" real, "category_3" text, "category_4" text, "category_5" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the sum of all values in category 1 when category 3 is equal to 300?`: ```sql
SELECT "category_3" FROM "acute_toxicity" WHERE "category_1"=0.05;
## Task Generate a SQL query to answer the following question: `If category 1 is 0.05, what is category 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "acute_toxicity" ( "method_of_administration_citation_needed" text, "category_1" real, "category_2" real, "category_3" text, "category_4" text, "category_5" text ); ### SQL Given the database schema, here is the SQL query that answers `If category 1 is 0.05, what is category 3?`: ```sql
SELECT "player" FROM "most_wickets" WHERE "average"=38.22;
## Task Generate a SQL query to answer the following question: `Which player has an average of 38.22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets" ( "player" text, "team" text, "matches" real, "wickets" real, "average" real, "best_bowling" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player has an average of 38.22?`: ```sql
SELECT MAX("matches") FROM "most_wickets" WHERE "wickets">13 AND "team"='australia' AND "best_bowling"='5/36' AND "average"<23.33;
## Task Generate a SQL query to answer the following question: `What is the highest number of matches for Australia when the wickets are more than 13, the average is less than 23.33, and the best bowling is 5/36?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets" ( "player" text, "team" text, "matches" real, "wickets" real, "average" real, "best_bowling" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of matches for Australia when the wickets are more than 13, the average is less than 23.33, and the best bowling is 5/36?`: ```sql
SELECT COUNT("average") FROM "most_wickets" WHERE "team"='england' AND "wickets"<18 AND "best_bowling"='4/138' AND "matches"<3;
## Task Generate a SQL query to answer the following question: `What is the total average for the England team when the wickets are less than 18, the best bowling is 4/138, and there are less than 3 matches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets" ( "player" text, "team" text, "matches" real, "wickets" real, "average" real, "best_bowling" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total average for the England team when the wickets are less than 18, the best bowling is 4/138, and there are less than 3 matches?`: ```sql
SELECT "to_par" FROM "final_leaderboard" WHERE "money">'5,500';
## Task Generate a SQL query to answer the following question: `Which To par has a Money ($) larger than 5,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" real ); ### SQL Given the database schema, here is the SQL query that answers `Which To par has a Money ($) larger than 5,500?`: ```sql
SELECT "score" FROM "final_leaderboard" WHERE "place"='4';
## Task Generate a SQL query to answer the following question: `Which Score has a Place of 4?` ### 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 `Which Score has a Place of 4?`: ```sql
SELECT "ethnic_group" FROM "religious_affiliation_by_geography_and_b" WHERE "other"='5%';
## Task Generate a SQL query to answer the following question: `Which ethnic group has 5% of people categorizing religion as other?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "religious_affiliation_by_geography_and_b" ( "ethnic_group" text, "main_regions" text, "population" real, "percentage_of_total_population" text, "christians" text, "muslims" text, "other" text ); ### SQL Given the database schema, here is the SQL query that answers `Which ethnic group has 5% of people categorizing religion as other?`: ```sql
SELECT "ethnic_group" FROM "religious_affiliation_by_geography_and_b" WHERE "muslims"='93%';
## Task Generate a SQL query to answer the following question: `Which ehtinc group consists of 93% muslims?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "religious_affiliation_by_geography_and_b" ( "ethnic_group" text, "main_regions" text, "population" real, "percentage_of_total_population" text, "christians" text, "muslims" text, "other" text ); ### SQL Given the database schema, here is the SQL query that answers `Which ehtinc group consists of 93% muslims?`: ```sql
SELECT "venue" FROM "international_goals" WHERE "score"='1 – 1' AND "result"='2 – 2';
## Task Generate a SQL query to answer the following question: `What is the Venue when the score was 1 – 1, and the result was 2 – 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Venue when the score was 1 – 1, and the result was 2 – 2?`: ```sql
SELECT "score" FROM "international_goals" WHERE "competition"='2006 fifa world cup qualification';
## Task Generate a SQL query to answer the following question: `What is the score of the 2006 Fifa World Cup Qualification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the 2006 Fifa World Cup Qualification?`: ```sql
SELECT "venue" FROM "international_goals" WHERE "score"='3 – 0';
## Task Generate a SQL query to answer the following question: `What venue was the game held at when the Score was 3 – 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue was the game held at when the Score was 3 – 0?`: ```sql
SELECT "result" FROM "international_goals" WHERE "competition"='friendly match' AND "score"='1 – 1';
## Task Generate a SQL query to answer the following question: `What is the result of the game when the competition was a friendly match, and the Score was 1 – 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result of the game when the competition was a friendly match, and the Score was 1 – 1?`: ```sql
SELECT "race_1" FROM "tac_v8_supercar_showdown" WHERE "race_4"='1';
## Task Generate a SQL query to answer the following question: `What is Race 1, when Race 4 is 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tac_v8_supercar_showdown" ( "driver" text, "race_1" text, "race_2" text, "race_3" text, "race_4" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Race 1, when Race 4 is 1?`: ```sql
SELECT "race_2" FROM "tac_v8_supercar_showdown" WHERE "race_1"='30';
## Task Generate a SQL query to answer the following question: `What is Race 2, when Race 1 is 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tac_v8_supercar_showdown" ( "driver" text, "race_1" text, "race_2" text, "race_3" text, "race_4" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Race 2, when Race 1 is 30?`: ```sql
SELECT "race_2" FROM "tac_v8_supercar_showdown" WHERE "driver"='john faulkner';
## Task Generate a SQL query to answer the following question: `What is Race 2, when Driver is John Faulkner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tac_v8_supercar_showdown" ( "driver" text, "race_1" text, "race_2" text, "race_3" text, "race_4" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Race 2, when Driver is John Faulkner?`: ```sql
SELECT "driver" FROM "tac_v8_supercar_showdown" WHERE "race_2"='14';
## Task Generate a SQL query to answer the following question: `What is Driver, when Race 2 is 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tac_v8_supercar_showdown" ( "driver" text, "race_1" text, "race_2" text, "race_3" text, "race_4" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Driver, when Race 2 is 14?`: ```sql
SELECT "race_4" FROM "tac_v8_supercar_showdown" WHERE "race_1"='28';
## Task Generate a SQL query to answer the following question: `What is Race 4, when Race 1 is 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tac_v8_supercar_showdown" ( "driver" text, "race_1" text, "race_2" text, "race_3" text, "race_4" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Race 4, when Race 1 is 28?`: ```sql
SELECT "race_2" FROM "tac_v8_supercar_showdown" WHERE "race_4"='28';
## Task Generate a SQL query to answer the following question: `What is Race 2, when Race 4 is 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tac_v8_supercar_showdown" ( "driver" text, "race_1" text, "race_2" text, "race_3" text, "race_4" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Race 2, when Race 4 is 28?`: ```sql
SELECT "score" FROM "international" WHERE "competition_round"='copa libertadores group 3' AND "date"='2 february 1994';
## Task Generate a SQL query to answer the following question: `What is the score of the copa libertadores group 3 competition round on 2 February 1994?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international" ( "season" real, "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "competition_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the copa libertadores group 3 competition round on 2 February 1994?`: ```sql
SELECT "score" FROM "international" WHERE "competition_round"='copa libertadores group 4' AND "away_team"='universitario' AND "date"='14 march 1972';
## Task Generate a SQL query to answer the following question: `What is the score of the copa libertadores group 4 competition round on 14 March 1972 with universitario as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international" ( "season" real, "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "competition_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the copa libertadores group 4 competition round on 14 March 1972 with universitario as the away team?`: ```sql
SELECT "venue" FROM "international" WHERE "home_team"='alianza lima' AND "season"=1983;
## Task Generate a SQL query to answer the following question: `What is the venue of season 1983, which had alianza lima as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international" ( "season" real, "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "competition_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the venue of season 1983, which had alianza lima as the home team?`: ```sql
SELECT "score" FROM "international" WHERE "venue"='estadio nacional' AND "date"='3 march 1988';
## Task Generate a SQL query to answer the following question: `What is the score of the match on 3 March 1988 at the estadio nacional?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international" ( "season" real, "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "competition_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the match on 3 March 1988 at the estadio nacional?`: ```sql
SELECT MAX("points") FROM "game_log" WHERE "date"='december 13';
## Task Generate a SQL query to answer the following question: `What were the Points on December 13?` ### 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, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What were the Points on December 13?`: ```sql
SELECT "established" FROM "current_women_s_teams" WHERE "institution"='north jersey phoenix';
## Task Generate a SQL query to answer the following question: `What is the year established of North Jersey Phoenix?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_women_s_teams" ( "institution" text, "location" text, "nickname" text, "enrollment" text, "established" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the year established of North Jersey Phoenix?`: ```sql
SELECT "nickname" FROM "current_women_s_teams" WHERE "established"=2009;
## Task Generate a SQL query to answer the following question: `What is the nickname of the school established in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_women_s_teams" ( "institution" text, "location" text, "nickname" text, "enrollment" text, "established" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the nickname of the school established in 2009?`: ```sql
SELECT "location" FROM "current_women_s_teams" WHERE "established"=2013;
## Task Generate a SQL query to answer the following question: `What is the location of the school established in 2013?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_women_s_teams" ( "institution" text, "location" text, "nickname" text, "enrollment" text, "established" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of the school established in 2013?`: ```sql
SELECT "nickname" FROM "current_women_s_teams" WHERE "institution"='columbia university';
## Task Generate a SQL query to answer the following question: `What is the nickname of Columbia University?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_women_s_teams" ( "institution" text, "location" text, "nickname" text, "enrollment" text, "established" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the nickname of Columbia University?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='valentijn overeem';
## Task Generate a SQL query to answer the following question: `The match against Valentijn Overeem had what method?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `The match against Valentijn Overeem had what method?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "method"='tko';
## Task Generate a SQL query to answer the following question: `Where was the match held when the result was win, and tko as the method?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the match held when the result was win, and tko as the method?`: ```sql
SELECT "round" FROM "mixed_martial_arts_record" WHERE "event"='bars - moscow vs st. petersburg';
## Task Generate a SQL query to answer the following question: `What round did the match go to when the event was Bars - Moscow vs St. Petersburg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What round did the match go to when the event was Bars - Moscow vs St. Petersburg?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='tko (kick)';
## Task Generate a SQL query to answer the following question: `With a method of tko (kick) what is the record of the match?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `With a method of tko (kick) what is the record of the match?`: ```sql
SELECT "round" FROM "mixed_martial_arts_record" WHERE "method"='tko (cut)';
## Task Generate a SQL query to answer the following question: `What round did the match go to when tko (cut) was the method?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What round did the match go to when tko (cut) was the method?`: ```sql
SELECT "place" FROM "final_round" WHERE "score"='68-72-77-74=291';
## Task Generate a SQL query to answer the following question: `what is the place when the score is 68-72-77-74=291?` ### 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" real, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the place when the score is 68-72-77-74=291?`: ```sql
SELECT COUNT("to_par") FROM "final_round" WHERE "country"='united states' AND "score"='72-71-73-73=289';
## Task Generate a SQL query to answer the following question: `how many times is the country united states and the score 72-71-73-73=289?` ### 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" real, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times is the country united states and the score 72-71-73-73=289?`: ```sql
SELECT "player" FROM "final_round" WHERE "to_par">11 AND "score"='71-71-71-79=292';
## Task Generate a SQL query to answer the following question: `Who is the player when the to par is more than 11 and the score is 71-71-71-79=292?` ### 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" real, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the player when the to par is more than 11 and the score is 71-71-71-79=292?`: ```sql
SELECT "country" FROM "final_round" WHERE "player"='bill nary';
## Task Generate a SQL query to answer the following question: `what is the country when the player is bill nary?` ### 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" real, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the country when the player is bill nary?`: ```sql
SELECT "score" FROM "final_round" WHERE "country"='united states' AND "player"='george fazio';
## Task Generate a SQL query to answer the following question: `what is the score when the country is united states and the player is george fazio?` ### 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" real, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the score when the country is united states and the player is george fazio?`: ```sql
SELECT "death" FROM "holders" WHERE "birth"='2 august 1424';
## Task Generate a SQL query to answer the following question: `WHAT IS THE DEATH WHEN BIRTH DATE IS 2 AUGUST 1424?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "holders" ( "name" text, "heir_of" text, "birth" text, "ceased_to_be_duke_of_girona" text, "death" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE DEATH WHEN BIRTH DATE IS 2 AUGUST 1424?`: ```sql
SELECT "ceased_to_be_duke_of_girona" FROM "holders" WHERE "heir_of"='peter iv';
## Task Generate a SQL query to answer the following question: `WHAT IS THE Ceased to be Duke of Girona THAT HAS PETER IV?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "holders" ( "name" text, "heir_of" text, "birth" text, "ceased_to_be_duke_of_girona" text, "death" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE Ceased to be Duke of Girona THAT HAS PETER IV?`: ```sql
SELECT "birth" FROM "holders" WHERE "ceased_to_be_duke_of_girona"='21 november 1582';
## Task Generate a SQL query to answer the following question: `WHAT IS THE BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 1582?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "holders" ( "name" text, "heir_of" text, "birth" text, "ceased_to_be_duke_of_girona" text, "death" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 1582?`: ```sql
SELECT "birth" FROM "holders" WHERE "death"='october 1389';
## Task Generate a SQL query to answer the following question: `WHAT IS THE BIRTH DATE WITH A DEATH OF OCTOBER 1389?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "holders" ( "name" text, "heir_of" text, "birth" text, "ceased_to_be_duke_of_girona" text, "death" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE BIRTH DATE WITH A DEATH OF OCTOBER 1389?`: ```sql
SELECT COUNT("laps") FROM "250cc_classification" WHERE "rider"='aleix espargaro';
## Task Generate a SQL query to answer the following question: `What is the total number of Laps, when Ride is Aleix Espargaro?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Laps, when Ride is Aleix Espargaro?`: ```sql
SELECT "start_date" FROM "list_of_ministers_for_the_police_force" WHERE "party"='lsap' AND "prime_minister"='jean-claude juncker';
## Task Generate a SQL query to answer the following question: `What was the start date for the party of LSAP with a Prime Minister of Jean-Claude Juncker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_ministers_for_the_police_force" ( "minister" text, "party" text, "start_date" text, "end_date" text, "prime_minister" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the start date for the party of LSAP with a Prime Minister of Jean-Claude Juncker?`: ```sql
SELECT "county" FROM "references" WHERE "name"='howard street tunnel';
## Task Generate a SQL query to answer the following question: `What is the County of Howard Street Tunnel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the County of Howard Street Tunnel?`: ```sql
SELECT "location" FROM "references" WHERE "built"='1869';
## Task Generate a SQL query to answer the following question: `What is the Location of the Bridge Built in 1869?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Location of the Bridge Built in 1869?`: ```sql
SELECT "listed" FROM "references" WHERE "county"='washington' AND "name"='b & o bridge';
## Task Generate a SQL query to answer the following question: `What is the date Listed of the B & O Bridge in Washington?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date Listed of the B & O Bridge in Washington?`: ```sql
SELECT "listed" FROM "references" WHERE "built"='ca.1876';
## Task Generate a SQL query to answer the following question: `What is the date Listed of the Bridge Built CA.1876?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date Listed of the Bridge Built CA.1876?`: ```sql
SELECT "listed" FROM "references" WHERE "built"='1864';
## Task Generate a SQL query to answer the following question: `What is the date Listed of the Bridge Built in 1864?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date Listed of the Bridge Built in 1864?`: ```sql
SELECT COUNT("draw") FROM "result_of_national_final" WHERE "televotes">1761 AND "song"='ils sont là' AND "place"<2;
## Task Generate a SQL query to answer the following question: `What is the total number of Draw(s), when Televotes is greater than 1761, when Song is "Ils Sont Là", and when Place is less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "result_of_national_final" ( "draw" real, "song" text, "artist" text, "televotes" real, "place" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Draw(s), when Televotes is greater than 1761, when Song is "Ils Sont Là", and when Place is less than 2?`: ```sql
SELECT MIN("place") FROM "result_of_national_final" WHERE "televotes"=15424;
## Task Generate a SQL query to answer the following question: `What is the lowest Place, when Televotes is 15424?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "result_of_national_final" ( "draw" real, "song" text, "artist" text, "televotes" real, "place" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Place, when Televotes is 15424?`: ```sql
SELECT AVG("place") FROM "result_of_national_final" WHERE "song"='dis oui';
## Task Generate a SQL query to answer the following question: `What is the average Place, when Song is "Dis Oui"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "result_of_national_final" ( "draw" real, "song" text, "artist" text, "televotes" real, "place" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Place, when Song is "Dis Oui"?`: ```sql
SELECT "to_club" FROM "first_team" WHERE "transfer_fee"='free' AND "pos"='df';
## Task Generate a SQL query to answer the following question: `What club received a DF player for free?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_team" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What club received a DF player for free?`: ```sql
SELECT "player" FROM "first_team" WHERE "to_club"='reggina';
## Task Generate a SQL query to answer the following question: `Which player was transferred to Reggina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_team" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player was transferred to Reggina?`: ```sql
SELECT "exit_date" FROM "first_team" WHERE "transfer_fee"='free' AND "to_club"='reggina';
## Task Generate a SQL query to answer the following question: `What is the exit date of the player transferred to Reggina for free?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_team" ( "exit_date" text, "pos" text, "player" text, "to_club" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the exit date of the player transferred to Reggina for free?`: ```sql
SELECT MIN("position") FROM "overall_results" WHERE "country"='germany' AND "pilot"='mario kiessling';
## Task Generate a SQL query to answer the following question: `What is the lowest position of pilot mario kiessling from Germany?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overall_results" ( "position" real, "pilot" text, "country" text, "glider" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest position of pilot mario kiessling from Germany?`: ```sql
SELECT AVG("position") FROM "overall_results" WHERE "points"<11 AND "pilot"='petr krejcirik';
## Task Generate a SQL query to answer the following question: `What is the average position of pilot petr krejcirik, who has less than 11 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overall_results" ( "position" real, "pilot" text, "country" text, "glider" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average position of pilot petr krejcirik, who has less than 11 points?`: ```sql
SELECT "career_sr" FROM "grand_slam_singles_tournament_timeline" WHERE "1985"='1r';
## Task Generate a SQL query to answer the following question: `What is the career SR with a 1r in 1985?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_singles_tournament_timeline" ( "tournament" text, "1980" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "career_sr" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the career SR with a 1r in 1985?`: ```sql
SELECT "tournament" FROM "grand_slam_singles_tournament_timeline" WHERE "1983"='3r';
## Task Generate a SQL query to answer the following question: `What tournament has a 3r in 1983?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_singles_tournament_timeline" ( "tournament" text, "1980" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "career_sr" text ); ### SQL Given the database schema, here is the SQL query that answers `What tournament has a 3r in 1983?`: ```sql
SELECT "1980" FROM "grand_slam_singles_tournament_timeline" WHERE "1984"='1r' AND "1981"='1r';
## Task Generate a SQL query to answer the following question: `What is the 1980 value with a 1r in 1984 and a 1r in 1981?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_singles_tournament_timeline" ( "tournament" text, "1980" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "career_sr" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1980 value with a 1r in 1984 and a 1r in 1981?`: ```sql
SELECT "finish" FROM "made_the_cut" WHERE "country"='australia';
## Task Generate a SQL query to answer the following question: `What is the finish of Australia?` ### 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 finish of Australia?`: ```sql
SELECT "total" FROM "made_the_cut" WHERE "to_par"='+4';
## Task Generate a SQL query to answer the following question: `What is the total with a +4 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 `What is the total with a +4 to par?`: ```sql
SELECT "country" FROM "made_the_cut" WHERE "to_par"='+3';
## Task Generate a SQL query to answer the following question: `What country has a +3 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 `What country has a +3 to par?`: ```sql
SELECT MIN("year") FROM "top_ten_best_selling_albums_recorded_by_" WHERE "artist"='every little thing' AND "rank"<10;
## Task Generate a SQL query to answer the following question: `What was the first year that the artist of every little thing ranked lower than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_ten_best_selling_albums_recorded_by_" ( "rank" real, "year" real, "title" text, "artist" text, "sales" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the first year that the artist of every little thing ranked lower than 10?`: ```sql
SELECT "championship" FROM "wins_13" WHERE "runner_s_up"='louise suggs' AND "margin"='3 strokes';
## Task Generate a SQL query to answer the following question: `Which Championship was louise suggs the runner-up by 3 strokes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_13" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Championship was louise suggs the runner-up by 3 strokes?`: ```sql
SELECT MAX("year") FROM "wins_13" WHERE "runner_s_up"='kathy whitworth';
## Task Generate a SQL query to answer the following question: `When was the most recent year that kathy whitworth was the runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_13" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the most recent year that kathy whitworth was the runner-up?`: ```sql