output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "championship" FROM "singles_5_3_2" WHERE "score_in_the_final"='2–6, 6–2, 7–5';
## Task Generate a SQL query to answer the following question: `What Championship has a Score in the final of 2–6, 6–2, 7–5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_3_2" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What Championship has a Score in the final of 2–6, 6–2, 7–5?`: ```sql
SELECT MIN("pick_num") FROM "2004_nfl_draft" WHERE "overall"=86;
## Task Generate a SQL query to answer the following question: `What was the lowest pick number with an overall 86?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_nfl_draft" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the lowest pick number with an overall 86?`: ```sql
SELECT "name" FROM "2004_nfl_draft" WHERE "pick_num">5 AND "college"='washington';
## Task Generate a SQL query to answer the following question: `What is the name of a pick more than 5 at Washington College?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_nfl_draft" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of a pick more than 5 at Washington College?`: ```sql
SELECT SUM("pick_num") FROM "2004_nfl_draft" WHERE "name"='anthony maddox';
## Task Generate a SQL query to answer the following question: `What is the sum of the Pick # Anthony Maddox?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_nfl_draft" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the Pick # Anthony Maddox?`: ```sql
SELECT "standard_order" FROM "list_of_contents" WHERE "traditional_chinese"='國殤';
## Task Generate a SQL query to answer the following question: `Which number is 國殤?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_contents" ( "standard_order" real, "english_translation" text, "transcription_based_on_pinyin" text, "traditional_chinese" text, "simplified_chinese" text ); ### SQL Given the database schema, here is the SQL query that answers `Which number is 國殤?`: ```sql
SELECT "traditional_chinese" FROM "list_of_contents" WHERE "standard_order">9 AND "simplified_chinese"='国殇';
## Task Generate a SQL query to answer the following question: `What is the Traditional Chinese of 国殇 which is over 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_contents" ( "standard_order" real, "english_translation" text, "transcription_based_on_pinyin" text, "traditional_chinese" text, "simplified_chinese" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Traditional Chinese of 国殇 which is over 9?`: ```sql
SELECT "english_translation" FROM "list_of_contents" WHERE "simplified_chinese"='山鬼';
## Task Generate a SQL query to answer the following question: `What is the English translation of 山鬼?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_contents" ( "standard_order" real, "english_translation" text, "transcription_based_on_pinyin" text, "traditional_chinese" text, "simplified_chinese" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the English translation of 山鬼?`: ```sql
SELECT COUNT("total") FROM "most_assists" WHERE "mls_cup"=4 AND "u_s_open_cup">1;
## Task Generate a SQL query to answer the following question: `What is the total where there are 4 MLS Cups and more US Open Cups than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_assists" ( "name" text, "years" text, "mls_cup" real, "u_s_open_cup" real, "concacaf" real, "other" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total where there are 4 MLS Cups and more US Open Cups than 1?`: ```sql
SELECT "race_3" FROM "winfield_triple_challenge" WHERE "points">36 AND "race_1"=2;
## Task Generate a SQL query to answer the following question: `Which race 3 has points greater than 36, and 2 as the race 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winfield_triple_challenge" ( "driver" text, "race_1" real, "race_2" text, "race_3" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which race 3 has points greater than 36, and 2 as the race 1?`: ```sql
SELECT SUM("race_1") FROM "winfield_triple_challenge" WHERE "race_3"='5' AND "points"<59;
## Task Generate a SQL query to answer the following question: `How many race 1's have 5 as the race 3, with points less than 59?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winfield_triple_challenge" ( "driver" text, "race_1" real, "race_2" text, "race_3" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many race 1's have 5 as the race 3, with points less than 59?`: ```sql
SELECT "driver" FROM "winfield_triple_challenge" WHERE "points"<17;
## Task Generate a SQL query to answer the following question: `What driver has points less than 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winfield_triple_challenge" ( "driver" text, "race_1" real, "race_2" text, "race_3" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What driver has points less than 17?`: ```sql
SELECT "player" FROM "final_round" WHERE "country"='south africa' AND "score"='76-75-73-71=295';
## Task Generate a SQL query to answer the following question: `Who is from south africa and has a score of 76-75-73-71=295?` ### 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 from south africa and has a score of 76-75-73-71=295?`: ```sql
SELECT MIN("to_par") FROM "final_round" WHERE "country"='australia' AND "score"='76-70-75-72=293';
## Task Generate a SQL query to answer the following question: `What is the lowest to par of a player from australia with a score of 76-70-75-72=293?` ### 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 lowest to par of a player from australia with a score of 76-70-75-72=293?`: ```sql
SELECT "money" FROM "final_round" WHERE "score"='76-70-75-72=293';
## Task Generate a SQL query to answer the following question: `What is the money with a Score of 76-70-75-72=293?` ### 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 money with a Score of 76-70-75-72=293?`: ```sql
SELECT "title" FROM "zune_hd_games" WHERE "developer"='2play mobile' AND "genre"='action';
## Task Generate a SQL query to answer the following question: `What is Title, when Developer is "2Play Mobile", and when Genre is "Action"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "zune_hd_games" ( "title" text, "developer" text, "genre" text, "release_date" text, "version" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Title, when Developer is "2Play Mobile", and when Genre is "Action"?`: ```sql
SELECT MAX("version") FROM "zune_hd_games" WHERE "release_date"='2011-04-01';
## Task Generate a SQL query to answer the following question: `What is the highest Version, when Release Date is "2011-04-01"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "zune_hd_games" ( "title" text, "developer" text, "genre" text, "release_date" text, "version" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Version, when Release Date is "2011-04-01"?`: ```sql
SELECT "version" FROM "zune_hd_games" WHERE "genre"='action' AND "title"='hairball';
## Task Generate a SQL query to answer the following question: `What is Version, when Genre is "Action", and when Title is "Hairball"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "zune_hd_games" ( "title" text, "developer" text, "genre" text, "release_date" text, "version" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Version, when Genre is "Action", and when Title is "Hairball"?`: ```sql
SELECT "set_1" FROM "round_of_16" WHERE "total"='45:40';
## Task Generate a SQL query to answer the following question: `What is the Set 1 of the 45:40 Total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "date" text, "score" text, "set_1" text, "set_2" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Set 1 of the 45:40 Total?`: ```sql
SELECT "total" FROM "round_of_16" WHERE "set_1"='24:26';
## Task Generate a SQL query to answer the following question: `What is the Total of the 24:26 Set 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "date" text, "score" text, "set_1" text, "set_2" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Total of the 24:26 Set 1?`: ```sql
SELECT "total" FROM "round_of_16" WHERE "set_2"='21:12';
## Task Generate a SQL query to answer the following question: `What is the Total of Set 2 of 21:12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "date" text, "score" text, "set_1" text, "set_2" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Total of Set 2 of 21:12?`: ```sql
SELECT "total" FROM "round_of_16" WHERE "set_2"='24:22';
## Task Generate a SQL query to answer the following question: `What is the Total of Set 2 of 24:22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "date" text, "score" text, "set_1" text, "set_2" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Total of Set 2 of 24:22?`: ```sql
SELECT "date" FROM "round_of_16" WHERE "set_2"='21:12';
## Task Generate a SQL query to answer the following question: `What is the date of the 21:12 Set 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "date" text, "score" text, "set_1" text, "set_2" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the 21:12 Set 2?`: ```sql
SELECT "torque" FROM "engines" WHERE "engine"='5.8l v12';
## Task Generate a SQL query to answer the following question: `What is the torque of the 5.8l v12 engine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "engine" text, "power" text, "torque" text, "0_100km_h_62mph" text, "top_speed" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the torque of the 5.8l v12 engine?`: ```sql
SELECT "torque" FROM "engines" WHERE "engine"='6.3l v12';
## Task Generate a SQL query to answer the following question: `What is the torque of the 6.3l v12 engine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "engine" text, "power" text, "torque" text, "0_100km_h_62mph" text, "top_speed" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the torque of the 6.3l v12 engine?`: ```sql
SELECT "0_100km_h_62mph" FROM "engines" WHERE "engine"='supercharged 5.4l v8';
## Task Generate a SQL query to answer the following question: `What is the 0-100km/h (62mph) of the supercharged 5.4l v8 engine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "engine" text, "power" text, "torque" text, "0_100km_h_62mph" text, "top_speed" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 0-100km/h (62mph) of the supercharged 5.4l v8 engine?`: ```sql
SELECT SUM("population") FROM "mississippi_counties_ranked_by_per_capit" WHERE "per_capita_income"='$18,884' AND "number_of_households"<'14,485';
## Task Generate a SQL query to answer the following question: `What is the population when the Per capita income of $18,884, and a Number of households smaller than 14,485?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mississippi_counties_ranked_by_per_capit" ( "county" text, "per_capita_income" text, "median_household_income" text, "population" real, "number_of_households" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the population when the Per capita income of $18,884, and a Number of households smaller than 14,485?`: ```sql
SELECT "place" FROM "final_round" WHERE "player"='ben crenshaw';
## Task Generate a SQL query to answer the following question: `What is Place, when Player is "Ben Crenshaw"?` ### 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 Place, when Player is "Ben Crenshaw"?`: ```sql
SELECT MAX("kneel") FROM "results" WHERE "stand"<187 AND "prone"=197 AND "qual">576;
## Task Generate a SQL query to answer the following question: `What is the highest kneel with a stand less than 187, and a 197 prone, and a qual more than 576?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "shooter" text, "prone" real, "stand" real, "kneel" real, "qual" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest kneel with a stand less than 187, and a 197 prone, and a qual more than 576?`: ```sql
SELECT SUM("stand") FROM "results" WHERE "qual">589;
## Task Generate a SQL query to answer the following question: `What is the sum of the stand with a qual more than 589?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "shooter" text, "prone" real, "stand" real, "kneel" real, "qual" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the stand with a qual more than 589?`: ```sql
SELECT "1st_leg" FROM "round_of_sixteen" WHERE "team_1"='remo (pa)';
## Task Generate a SQL query to answer the following question: `What is the 1st leg in the match where Remo (PA) is team 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_sixteen" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1st leg in the match where Remo (PA) is team 1?`: ```sql
SELECT "team_1" FROM "round_of_sixteen" WHERE "team_2"='fluminense (rj)';
## Task Generate a SQL query to answer the following question: `Who is team 1 where team 2 is Fluminense (RJ)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_sixteen" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is team 1 where team 2 is Fluminense (RJ)?`: ```sql
SELECT "score" FROM "international_goals" WHERE "competition"='friendly' AND "venue"='dreisamstadion, freiburg';
## Task Generate a SQL query to answer the following question: `What is the venue for the friendly competition at Dreisamstadion, Freiburg?` ### 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 for the friendly competition at Dreisamstadion, Freiburg?`: ```sql
SELECT "result" FROM "international_goals" WHERE "venue"='dreisamstadion, freiburg';
## Task Generate a SQL query to answer the following question: `What is the result at Dreisamstadion, Freiburg?` ### 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 at Dreisamstadion, Freiburg?`: ```sql
SELECT "team" FROM "first_round_selections" WHERE "position"='lhp' AND "pick"=23;
## Task Generate a SQL query to answer the following question: `What is Team, when Position is "LHP", and when Pick is "23"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Team, when Position is "LHP", and when Pick is "23"?`: ```sql
SELECT MAX("pick") FROM "first_round_selections" WHERE "player"='todd van poppel';
## Task Generate a SQL query to answer the following question: `What is the highest Pick, when Player is "Todd Van Poppel"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Pick, when Player is "Todd Van Poppel"?`: ```sql
SELECT "player" FROM "first_round_selections" WHERE "pick"=26;
## Task Generate a SQL query to answer the following question: `What is Player, when Pick is "26"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Player, when Pick is "26"?`: ```sql
SELECT "position" FROM "first_round_selections" WHERE "hometown_school"='westlake, california';
## Task Generate a SQL query to answer the following question: `What is Posititon, when Hometown/School is "Westlake, California"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Posititon, when Hometown/School is "Westlake, California"?`: ```sql
SELECT "player" FROM "first_round_selections" WHERE "position"='ss' AND "pick"=11;
## Task Generate a SQL query to answer the following question: `What is Player, when Position is "SS", and when Pick is "11"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Player, when Position is "SS", and when Pick is "11"?`: ```sql
SELECT "population" FROM "north_dakota_counties_by_per_capita_inco" WHERE "county"='sargent';
## Task Generate a SQL query to answer the following question: `What is the Population of Sargent County?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "north_dakota_counties_by_per_capita_inco" ( "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 is the Population of Sargent County?`: ```sql
SELECT SUM("rank") FROM "medals_table" WHERE "silver"=0 AND "total">2;
## Task Generate a SQL query to answer the following question: `What is the rank for the nation with 0 silver medals and a total larger than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank for the nation with 0 silver medals and a total larger than 2?`: ```sql
SELECT MIN("silver") FROM "medals_table" WHERE "bronze"=39 AND "total"<120;
## Task Generate a SQL query to answer the following question: `What is the least silvers where there are 39 bronzes and the total is less than 120?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the least silvers where there are 39 bronzes and the total is less than 120?`: ```sql
SELECT "general_classification" FROM "jersey_progress" WHERE "mountains_classification"='david loosli' AND "stage"='3';
## Task Generate a SQL query to answer the following question: `What's the general classification of stage 3 with David Loosli as the mountains classification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jersey_progress" ( "stage" text, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "sprints_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the general classification of stage 3 with David Loosli as the mountains classification?`: ```sql
SELECT "points_classification" FROM "jersey_progress" WHERE "stage"='final';
## Task Generate a SQL query to answer the following question: `What's the points classification when the stage was final?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jersey_progress" ( "stage" text, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "sprints_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the points classification when the stage was final?`: ```sql
SELECT "stage" FROM "jersey_progress" WHERE "team_classification"='gerolsteiner';
## Task Generate a SQL query to answer the following question: `What is the stage of Gerolsteiner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jersey_progress" ( "stage" text, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "sprints_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the stage of Gerolsteiner?`: ```sql
SELECT "mountains_classification" FROM "jersey_progress" WHERE "general_classification"='kim kirchen' AND "stage"='7';
## Task Generate a SQL query to answer the following question: `What's the mountains classification of Stage 7 when Kim Kirchen was the general classification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jersey_progress" ( "stage" text, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "sprints_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the mountains classification of Stage 7 when Kim Kirchen was the general classification?`: ```sql
SELECT "team_classification" FROM "jersey_progress" WHERE "general_classification"='kim kirchen';
## Task Generate a SQL query to answer the following question: `What was Kim Kirchen's team classification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jersey_progress" ( "stage" text, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "sprints_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Kim Kirchen's team classification?`: ```sql
SELECT "player" FROM "third_round" WHERE "to_par"='+1' AND "score"='73-71-71=217';
## Task Generate a SQL query to answer the following question: `What Player has a To par of +1 and a Score of 73-71-71=217?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What Player has a To par of +1 and a Score of 73-71-71=217?`: ```sql
SELECT "player" FROM "third_round" WHERE "to_par"='+1' AND "score"='73-71-73=217';
## Task Generate a SQL query to answer the following question: `What Player's had a To par of +1 and a Score of 73-71-73=217?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What Player's had a To par of +1 and a Score of 73-71-73=217?`: ```sql
SELECT "score" FROM "third_round" WHERE "player"='fuzzy zoeller';
## Task Generate a SQL query to answer the following question: `What is Fuzzy Zoeller's Score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Fuzzy Zoeller's Score?`: ```sql
SELECT "country" FROM "third_round" WHERE "score"='71-73-71=215';
## Task Generate a SQL query to answer the following question: `What is the Country of the Player with a Score of 71-73-71=215?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Country of the Player with a Score of 71-73-71=215?`: ```sql
SELECT "country" FROM "third_round" WHERE "to_par"='–4';
## Task Generate a SQL query to answer the following question: `What is the Country of the Player with a To par of –4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Country of the Player with a To par of –4?`: ```sql
SELECT "country" FROM "third_round" WHERE "to_par"='+1' AND "score"='75-69-73=217';
## Task Generate a SQL query to answer the following question: `What is the Country of the Player with a To par of +1 and a Score of 75-69-73=217?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Country of the Player with a To par of +1 and a Score of 75-69-73=217?`: ```sql
SELECT MAX("position") FROM "group_ii" WHERE "goals_against"=24 AND "played"<30;
## Task Generate a SQL query to answer the following question: `Which Position has 24 Goals against, and a Played smaller than 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "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 `Which Position has 24 Goals against, and a Played smaller than 30?`: ```sql
SELECT MAX("points") FROM "group_ii" WHERE "club"='cf calvo sotelo' AND "goal_difference">-3;
## Task Generate a SQL query to answer the following question: `Which Points have a Club of cf calvo sotelo, and a Goal Difference larger than -3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "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 `Which Points have a Club of cf calvo sotelo, and a Goal Difference larger than -3?`: ```sql
SELECT MIN("draws") FROM "group_ii" WHERE "position"=16 AND "goals_against"<58;
## Task Generate a SQL query to answer the following question: `Which Draws have a Position of 16, and less than 58 Goals against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "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 `Which Draws have a Position of 16, and less than 58 Goals against?`: ```sql
SELECT MIN("losses") FROM "group_ii" WHERE "draws">6 AND "club"='cd mestalla' AND "goals_against">44;
## Task Generate a SQL query to answer the following question: `Which Losses have Draws larger than 6, and a Club of cd mestalla, and Goals against larger than 44?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "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 `Which Losses have Draws larger than 6, and a Club of cd mestalla, and Goals against larger than 44?`: ```sql
SELECT SUM("goals_against") FROM "group_ii" WHERE "goals_for"<33 AND "points"<16;
## Task Generate a SQL query to answer the following question: `How many Goals against have Goals for smaller than 33, and Points smaller than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "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 `How many Goals against have Goals for smaller than 33, and Points smaller than 16?`: ```sql
SELECT "date" FROM "schedule" WHERE "game_site"='griffith stadium';
## Task Generate a SQL query to answer the following question: `What Date was the Game at Griffith Stadium?` ### 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, "game_site" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What Date was the Game at Griffith Stadium?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "date"='bye';
## Task Generate a SQL query to answer the following question: `What attendance is listed against the date of bye?` ### 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, "game_site" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What attendance is listed against the date of bye?`: ```sql
SELECT "date" FROM "schedule" WHERE "week"=3;
## Task Generate a SQL query to answer the following question: `What date is week 3?` ### 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, "game_site" text, "record" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What date is week 3?`: ```sql
SELECT "floors" FROM "timeline_of_tallest_buildings_and_struct" WHERE "location"='tower hill';
## Task Generate a SQL query to answer the following question: `Which Floors has a Location of tower hill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings_and_struct" ( "name" text, "location" text, "years_as_tallest" text, "height_metres_ft" text, "floors" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Floors has a Location of tower hill?`: ```sql
SELECT "location" FROM "timeline_of_tallest_buildings_and_struct" WHERE "floors"='03.0 n/a';
## Task Generate a SQL query to answer the following question: `Which Location has a Floors of 03.0 n/a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings_and_struct" ( "name" text, "location" text, "years_as_tallest" text, "height_metres_ft" text, "floors" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Location has a Floors of 03.0 n/a?`: ```sql
SELECT "height_metres_ft" FROM "timeline_of_tallest_buildings_and_struct" WHERE "floors"='05.0 n/a';
## Task Generate a SQL query to answer the following question: `Name the Height metres / ft of Floors of 05.0 n/a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings_and_struct" ( "name" text, "location" text, "years_as_tallest" text, "height_metres_ft" text, "floors" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Height metres / ft of Floors of 05.0 n/a?`: ```sql
SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings_and_struct" WHERE "height_metres_ft"='01.0 27 / 90';
## Task Generate a SQL query to answer the following question: `Name the Years as tallest that has Height metres / ft of 01.0 27 / 90?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings_and_struct" ( "name" text, "location" text, "years_as_tallest" text, "height_metres_ft" text, "floors" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Years as tallest that has Height metres / ft of 01.0 27 / 90?`: ```sql
SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings_and_struct" WHERE "height_metres_ft"='07.0 150 / 493 [b ]';
## Task Generate a SQL query to answer the following question: `Name the Years as tallest has a Height metres / ft of 07.0 150 / 493 [b ]?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings_and_struct" ( "name" text, "location" text, "years_as_tallest" text, "height_metres_ft" text, "floors" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Years as tallest has a Height metres / ft of 07.0 150 / 493 [b ]?`: ```sql
SELECT "height_metres_ft" FROM "timeline_of_tallest_buildings_and_struct" WHERE "years_as_tallest"='1098–1310';
## Task Generate a SQL query to answer the following question: `Name the Height metres / ft of Years with tallest of 1098–1310?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings_and_struct" ( "name" text, "location" text, "years_as_tallest" text, "height_metres_ft" text, "floors" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Height metres / ft of Years with tallest of 1098–1310?`: ```sql
SELECT COUNT("score") FROM "first_round" WHERE "place"='t5';
## Task Generate a SQL query to answer the following question: `How many scores have a Place of t5?` ### 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 `How many scores have a Place of t5?`: ```sql
SELECT "to_par" FROM "first_round" WHERE "score"<70 AND "player"='matt kowal';
## Task Generate a SQL query to answer the following question: `Which To Par has a Score smaller than 70, and a Player of matt kowal?` ### 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 `Which To Par has a Score smaller than 70, and a Player of matt kowal?`: ```sql
SELECT MIN("score") FROM "first_round" WHERE "to_par"='–1';
## Task Generate a SQL query to answer the following question: `Which Score has a To Par of –1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Score has a To Par of –1?`: ```sql
SELECT "date" FROM "release_history" WHERE "catalog"=88697185162 AND "region"='canada';
## Task Generate a SQL query to answer the following question: `what is the date for catolog 88697185162 when the region is canada?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the date for catolog 88697185162 when the region is canada?`: ```sql
SELECT "parish_prestegjeld" FROM "churches_in_vik" WHERE "church_name"='vangsnes kyrkje';
## Task Generate a SQL query to answer the following question: `Which parish has a church named Vangsnes Kyrkje?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_vik" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `Which parish has a church named Vangsnes Kyrkje?`: ```sql
SELECT "sub_parish_sokn" FROM "churches_in_vik" WHERE "year_built"='1866';
## Task Generate a SQL query to answer the following question: `Which Sub-Parish has a church built in 1866?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_vik" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Sub-Parish has a church built in 1866?`: ```sql
SELECT "year_built" FROM "churches_in_vik" WHERE "church_name"='hopperstad stavkyrkje';
## Task Generate a SQL query to answer the following question: `When was the Hopperstad Stavkyrkje built?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_vik" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the Hopperstad Stavkyrkje built?`: ```sql
SELECT "year_built" FROM "churches_in_vik" WHERE "location_of_the_church"='arnafjord';
## Task Generate a SQL query to answer the following question: `When was the church in Arnafjord built?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_vik" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the church in Arnafjord built?`: ```sql
SELECT "sub_parish_sokn" FROM "churches_in_vik" WHERE "location_of_the_church"='fresvik';
## Task Generate a SQL query to answer the following question: `What is the Sub-Parish called that has a church located in Fresvik?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_vik" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Sub-Parish called that has a church located in Fresvik?`: ```sql
SELECT "church_name" FROM "churches_in_vik" WHERE "sub_parish_sokn"='fresvik';
## Task Generate a SQL query to answer the following question: `What is the church in the Sub-Parish of Fresvik called?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_vik" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the church in the Sub-Parish of Fresvik called?`: ```sql
SELECT "time" FROM "dates" WHERE "city"='sheffield';
## Task Generate a SQL query to answer the following question: `What is the time for Sheffield?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "dates" ( "date" text, "city" text, "country" text, "venue" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the time for Sheffield?`: ```sql
SELECT "total" FROM "final_standings" WHERE "slalom_points"='3.18';
## Task Generate a SQL query to answer the following question: `What are the total points for the skier with 3.18 slalom points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standings" ( "place" text, "competitor" text, "downhill_points" real, "slalom_points" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the total points for the skier with 3.18 slalom points?`: ```sql
SELECT "place" FROM "final_standings" WHERE "downhill_points"=7.73;
## Task Generate a SQL query to answer the following question: `What place is the skier with 7.73 downhill points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standings" ( "place" text, "competitor" text, "downhill_points" real, "slalom_points" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What place is the skier with 7.73 downhill points?`: ```sql
SELECT SUM("downhill_points") FROM "final_standings" WHERE "total"='9.31';
## Task Generate a SQL query to answer the following question: `What are the downhill points for the skier with total of 9.31 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standings" ( "place" text, "competitor" text, "downhill_points" real, "slalom_points" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the downhill points for the skier with total of 9.31 points?`: ```sql
SELECT "rank_points" FROM "qualification" WHERE "score_points"='11';
## Task Generate a SQL query to answer the following question: `What is the rank for the player where there are 11 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank for the player where there are 11 points?`: ```sql
SELECT "shooter" FROM "qualification" WHERE "total"='11' AND "event"='wc munich' AND "score_points"='6';
## Task Generate a SQL query to answer the following question: `Which shooter had a total of 11 at the WC Munich with a score of 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `Which shooter had a total of 11 at the WC Munich with a score of 6?`: ```sql
SELECT "event" FROM "qualification" WHERE "score_points"='10';
## Task Generate a SQL query to answer the following question: `What is the event where there are 10 score points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the event where there are 10 score points?`: ```sql
SELECT "shooter" FROM "qualification" WHERE "total"='defending champion';
## Task Generate a SQL query to answer the following question: `Who is the shooter that is the Defending Champion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the shooter that is the Defending Champion?`: ```sql
SELECT "owner" FROM "nationwide_free_to_air_dvb_t_television_" WHERE "name"='mrt 1 hd';
## Task Generate a SQL query to answer the following question: `Which owner had MRT 1 HD?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nationwide_free_to_air_dvb_t_television_" ( "name" text, "owner" text, "programming" text, "type" text, "encryption" text ); ### SQL Given the database schema, here is the SQL query that answers `Which owner had MRT 1 HD?`: ```sql
SELECT "programming" FROM "nationwide_free_to_air_dvb_t_television_" WHERE "name"='mrt sobraniski kanal';
## Task Generate a SQL query to answer the following question: `What is the programming for mrt sobraniski kanal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nationwide_free_to_air_dvb_t_television_" ( "name" text, "owner" text, "programming" text, "type" text, "encryption" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the programming for mrt sobraniski kanal?`: ```sql
SELECT "type" FROM "nationwide_free_to_air_dvb_t_television_" WHERE "programming"='general' AND "owner"='tv kanal 5';
## Task Generate a SQL query to answer the following question: `What is the type for a general programming and the owner tv kanal 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nationwide_free_to_air_dvb_t_television_" ( "name" text, "owner" text, "programming" text, "type" text, "encryption" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the type for a general programming and the owner tv kanal 5?`: ```sql
SELECT "programming" FROM "nationwide_free_to_air_dvb_t_television_" WHERE "name"='kanal 5';
## Task Generate a SQL query to answer the following question: `What is the programming for Kanal 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nationwide_free_to_air_dvb_t_television_" ( "name" text, "owner" text, "programming" text, "type" text, "encryption" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the programming for Kanal 5?`: ```sql
SELECT "21_00" FROM "schedule" WHERE "20_00"='dot above i';
## Task Generate a SQL query to answer the following question: `What show comes on at 21:00 when Dot Above I comes on at 20:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "weekdays" text, "5_55" text, "10_00" text, "15_00" text, "16_00" text, "17_30" text, "18_00" text, "19_15" text, "19_26" text, "20_00" text, "20_30" text, "21_00" text, "21_30" text, "22_00" text, "23_00" text ); ### SQL Given the database schema, here is the SQL query that answers `What show comes on at 21:00 when Dot Above I comes on at 20:00?`: ```sql
SELECT "surface" FROM "doubles_3_2" WHERE "date"='march 2, 1997';
## Task Generate a SQL query to answer the following question: `What was the surface on march 2, 1997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_3_2" ( "edition" text, "round" text, "date" text, "partner" text, "surface" text, "opponents" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the surface on march 2, 1997?`: ```sql
SELECT "result" FROM "doubles_3_2" WHERE "partner"='magdalena maleeva';
## Task Generate a SQL query to answer the following question: `What was the result when the partner was magdalena maleeva?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_3_2" ( "edition" text, "round" text, "date" text, "partner" text, "surface" text, "opponents" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result when the partner was magdalena maleeva?`: ```sql
SELECT "edition" FROM "doubles_3_2" WHERE "partner"='magdalena maleeva';
## Task Generate a SQL query to answer the following question: `What edition had magdalena maleeva as partner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_3_2" ( "edition" text, "round" text, "date" text, "partner" text, "surface" text, "opponents" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What edition had magdalena maleeva as partner?`: ```sql
SELECT "partner" FROM "doubles_3_2" WHERE "edition"='1988 world group i';
## Task Generate a SQL query to answer the following question: `Who was partner for the 1988 world group i edition?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_3_2" ( "edition" text, "round" text, "date" text, "partner" text, "surface" text, "opponents" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was partner for the 1988 world group i edition?`: ```sql
SELECT "result" FROM "doubles_3_2" WHERE "date"='july 16, 1992';
## Task Generate a SQL query to answer the following question: `What was the result on july 16, 1992?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_3_2" ( "edition" text, "round" text, "date" text, "partner" text, "surface" text, "opponents" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result on july 16, 1992?`: ```sql
SELECT "event" FROM "achievements" WHERE "position"='8th';
## Task Generate a SQL query to answer the following question: `What is the event that is in 8th position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the event that is in 8th position?`: ```sql
SELECT "event" FROM "achievements" WHERE "year"<1989;
## Task Generate a SQL query to answer the following question: `What is the event in a year before 1989?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the event in a year before 1989?`: ```sql
SELECT MIN("total") FROM "made_the_cut" WHERE "year_s_won"='1964';
## Task Generate a SQL query to answer the following question: `What is the total medals in 1964?` ### 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 medals in 1964?`: ```sql
SELECT COUNT("kills") FROM "college_career_statistics" WHERE "percentage">0.313 AND "total_attempts">1035 AND "assists">57;
## Task Generate a SQL query to answer the following question: `How many kills when percentage is more than 0.313, attempts are more than 1035 and assists are larger than 57?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college_career_statistics" ( "season" text, "gp_mp" text, "kills" real, "k_game" real, "errors" real, "total_attempts" real, "percentage" real, "assists" real, "service_aces" real, "digs" real, "solo_blocks" real, "block_assists" real, "total_blocks" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many kills when percentage is more than 0.313, attempts are more than 1035 and assists are larger than 57?`: ```sql
SELECT MAX("percentage") FROM "college_career_statistics" WHERE "total_blocks">361;
## Task Generate a SQL query to answer the following question: `What is the highest percentage when there are more than 361 blocks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college_career_statistics" ( "season" text, "gp_mp" text, "kills" real, "k_game" real, "errors" real, "total_attempts" real, "percentage" real, "assists" real, "service_aces" real, "digs" real, "solo_blocks" real, "block_assists" real, "total_blocks" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest percentage when there are more than 361 blocks?`: ```sql
SELECT AVG("total_blocks") FROM "college_career_statistics" WHERE "digs"<210 AND "total_attempts">1116;
## Task Generate a SQL query to answer the following question: `What is the total blocks when there are less than 210 digs and the total attempts are more than 1116?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "college_career_statistics" ( "season" text, "gp_mp" text, "kills" real, "k_game" real, "errors" real, "total_attempts" real, "percentage" real, "assists" real, "service_aces" real, "digs" real, "solo_blocks" real, "block_assists" real, "total_blocks" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total blocks when there are less than 210 digs and the total attempts are more than 1116?`: ```sql