output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MIN("gold") FROM "medal_table" WHERE "silver"=0 AND "bronze"=2;
## Task Generate a SQL query to answer the following question: `What is the lowest Gold, when Silver is 0, and when Bronze is 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Gold, when Silver is 0, and when Bronze is 2?`: ```sql
SELECT AVG("bronze") FROM "medal_table" WHERE "silver"=0 AND "rank"='19' AND "total">2;
## Task Generate a SQL query to answer the following question: `What is the average Bronze, when Silver is 0, when Rank is 19, and when Total is greater than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Bronze, when Silver is 0, when Rank is 19, and when Total is greater than 2?`: ```sql
SELECT MIN("pieces") FROM "versions" WHERE "release"=1984;
## Task Generate a SQL query to answer the following question: `What was the lowest number of pieces for a board released in 1984?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "versions" ( "release" real, "start" text, "pieces" real, "board_inches" text, "board_cm" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the lowest number of pieces for a board released in 1984?`: ```sql
SELECT "board_cm" FROM "versions" WHERE "start"='1940' AND "type"='theater' AND "release">2010;
## Task Generate a SQL query to answer the following question: `What is the dimensions in centimeters of a theater board who started in 1940, who was released after 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "versions" ( "release" real, "start" text, "pieces" real, "board_inches" text, "board_cm" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the dimensions in centimeters of a theater board who started in 1940, who was released after 2010?`: ```sql
SELECT AVG("pieces") FROM "versions" WHERE "start"='1941' AND "release">2001;
## Task Generate a SQL query to answer the following question: `What is the average number of pieces for boards that started in 1941 and were released after 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "versions" ( "release" real, "start" text, "pieces" real, "board_inches" text, "board_cm" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of pieces for boards that started in 1941 and were released after 2001?`: ```sql
SELECT "board_inches" FROM "versions" WHERE "release"<2004 AND "start"='1941';
## Task Generate a SQL query to answer the following question: `What are the dimensions in inches of the board released before 2004, that started in 1941?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "versions" ( "release" real, "start" text, "pieces" real, "board_inches" text, "board_cm" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the dimensions in inches of the board released before 2004, that started in 1941?`: ```sql
SELECT "venue" FROM "matches" WHERE "against"<30 AND "opposing_team"='new south wales';
## Task Generate a SQL query to answer the following question: `What is Venue, when Against is less than 30, and when Opposing Team is New South Wales?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Venue, when Against is less than 30, and when Opposing Team is New South Wales?`: ```sql
SELECT "status" FROM "matches" WHERE "date"='10/05/1975';
## Task Generate a SQL query to answer the following question: `What is Status, when Date is 10/05/1975?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Status, when Date is 10/05/1975?`: ```sql
SELECT MIN("against") FROM "matches" WHERE "opposing_team"='queensland';
## Task Generate a SQL query to answer the following question: `What is the lowest Against, when Opposing Team is Queensland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Against, when Opposing Team is Queensland?`: ```sql
SELECT "date" FROM "matches" WHERE "status"='second test';
## Task Generate a SQL query to answer the following question: `What is Date, when Status is Second Test?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when Status is Second Test?`: ```sql
SELECT "name" FROM "detailed_overview" WHERE "place_of_birth"='porsgrunn';
## Task Generate a SQL query to answer the following question: `Who was born in Porsgrunn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "detailed_overview" ( "name" text, "place_of_birth" text, "date_of_birth" text, "club_apps" text, "club_goals" text, "int_caps" text, "int_goals" text, "previous_club" text, "date_joined" text, "end_1" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was born in Porsgrunn?`: ```sql
SELECT "studio" FROM "top_grossing_films_international" WHERE "rank"<3 AND "director"='adrian lyne';
## Task Generate a SQL query to answer the following question: `Which Studio has a Rank smaller than 3, and a Director of adrian lyne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_grossing_films_international" ( "rank" real, "title" text, "studio" text, "director" text, "gross" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Studio has a Rank smaller than 3, and a Director of adrian lyne?`: ```sql
SELECT MIN("rank") FROM "top_grossing_films_international" WHERE "gross"='$54,215,416';
## Task Generate a SQL query to answer the following question: `Which Rank is the lowest one that has a Gross of $54,215,416?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_grossing_films_international" ( "rank" real, "title" text, "studio" text, "director" text, "gross" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Rank is the lowest one that has a Gross of $54,215,416?`: ```sql
SELECT "date" FROM "singles_finals_13_5_8" WHERE "opponent"='john mcenroe' AND "score"='3–6, 6–3, 2–6';
## Task Generate a SQL query to answer the following question: `What is the date of the match against John McEnroe with a Score of 3–6, 6–3, 2–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_finals_13_5_8" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the match against John McEnroe with a Score of 3–6, 6–3, 2–6?`: ```sql
SELECT "opponent" FROM "singles_finals_13_5_8" WHERE "date"=1989;
## Task Generate a SQL query to answer the following question: `What is the Opponent of the game in 1989?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_finals_13_5_8" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Opponent of the game in 1989?`: ```sql
SELECT MAX("pick") FROM "washington_redskins_draft_history" WHERE "name"='ron whaley';
## Task Generate a SQL query to answer the following question: `What is the highest pick of ron whaley?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest pick of ron whaley?`: ```sql
SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "pick"<8 AND "college"='western michigan';
## Task Generate a SQL query to answer the following question: `What is the overall sum of the game with a pick less than 8 from the college of western michigan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the overall sum of the game with a pick less than 8 from the college of western michigan?`: ```sql
SELECT "position" FROM "washington_redskins_draft_history" WHERE "college"='western michigan';
## Task Generate a SQL query to answer the following question: `What is the position of the player from the college of western michigan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of the player from the college of western michigan?`: ```sql
SELECT MIN("round") FROM "washington_redskins_draft_history" WHERE "pick">7 AND "name"='bob caldwell' AND "overall">162;
## Task Generate a SQL query to answer the following question: `What is the lowest round of bob caldwell, who has a pick greater than 7 and an overall larger than 162?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest round of bob caldwell, who has a pick greater than 7 and an overall larger than 162?`: ```sql
SELECT "college" FROM "washington_redskins_draft_history" WHERE "pick">7 AND "name"='dave adams';
## Task Generate a SQL query to answer the following question: `What is the college of dave adams, who has a pick greater than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the college of dave adams, who has a pick greater than 7?`: ```sql
SELECT "game" FROM "game_log" WHERE "date"='april 28';
## Task Generate a SQL query to answer the following question: `What game took place on April 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What game took place on April 28?`: ```sql
SELECT "east" FROM "landesliga" WHERE "west"='ev landsberg';
## Task Generate a SQL query to answer the following question: `What is the east with ev landsberg as the west?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "landesliga" ( "season" text, "north" text, "south" text, "east" text, "west" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the east with ev landsberg as the west?`: ```sql
SELECT "north" FROM "landesliga" WHERE "south"='sb rosenheim';
## Task Generate a SQL query to answer the following question: `What is the north with sb rosenheim as the south?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "landesliga" ( "season" text, "north" text, "south" text, "east" text, "west" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the north with sb rosenheim as the south?`: ```sql
SELECT "south" FROM "landesliga" WHERE "west"='ev lindau' AND "east"='svg burgkirchen';
## Task Generate a SQL query to answer the following question: `What is the south with ev lindau as the west and svg burgkirchen as the east?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "landesliga" ( "season" text, "north" text, "south" text, "east" text, "west" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the south with ev lindau as the west and svg burgkirchen as the east?`: ```sql
SELECT "season" FROM "landesliga" WHERE "south"='esc holzkirchen' AND "west"='esv buchloe' AND "north"='ehc bayreuth';
## Task Generate a SQL query to answer the following question: `What season has esc holzkirchen south, esv buchloe west, and ehc bayreuth north?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "landesliga" ( "season" text, "north" text, "south" text, "east" text, "west" text ); ### SQL Given the database schema, here is the SQL query that answers `What season has esc holzkirchen south, esv buchloe west, and ehc bayreuth north?`: ```sql
SELECT "south" FROM "landesliga" WHERE "east"='germering wanderers' AND "season"='2001-02';
## Task Generate a SQL query to answer the following question: `What is south in the 2001-02 season, which had germering wanderers east?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "landesliga" ( "season" text, "north" text, "south" text, "east" text, "west" text ); ### SQL Given the database schema, here is the SQL query that answers `What is south in the 2001-02 season, which had germering wanderers east?`: ```sql
SELECT "west" FROM "landesliga" WHERE "south"='ev fürstenfeldbruck';
## Task Generate a SQL query to answer the following question: `What was west when ev fürstenfeldbruck was south?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "landesliga" ( "season" text, "north" text, "south" text, "east" text, "west" text ); ### SQL Given the database schema, here is the SQL query that answers `What was west when ev fürstenfeldbruck was south?`: ```sql
SELECT SUM("earnings_per_share_p") FROM "bunzl_plc_financial_results" WHERE "year_ended"='2008' AND "revenue_million"<'4,177';
## Task Generate a SQL query to answer the following question: `When revenue is smaller than 4,177 million in year 2008, what is the sum of earnings per share?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bunzl_plc_financial_results" ( "year_ended" text, "revenue_million" real, "profit_loss_before_tax_m" real, "net_profit_m" real, "earnings_per_share_p" real ); ### SQL Given the database schema, here is the SQL query that answers `When revenue is smaller than 4,177 million in year 2008, what is the sum of earnings per share?`: ```sql
SELECT "earnings_per_share_p" FROM "bunzl_plc_financial_results" WHERE "year_ended"='2007';
## Task Generate a SQL query to answer the following question: `What is the year 2007 earnings per share?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bunzl_plc_financial_results" ( "year_ended" text, "revenue_million" real, "profit_loss_before_tax_m" real, "net_profit_m" real, "earnings_per_share_p" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the year 2007 earnings per share?`: ```sql
SELECT SUM("net_profit_m") FROM "bunzl_plc_financial_results" WHERE "earnings_per_share_p"=27.4 AND "profit_loss_before_tax_m"<194.6;
## Task Generate a SQL query to answer the following question: `What is the total net profit when earnings per share is 27.4, and profit/loss befor tax was smaller than 194.6 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bunzl_plc_financial_results" ( "year_ended" text, "revenue_million" real, "profit_loss_before_tax_m" real, "net_profit_m" real, "earnings_per_share_p" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total net profit when earnings per share is 27.4, and profit/loss befor tax was smaller than 194.6 million?`: ```sql
SELECT COUNT("profit_loss_before_tax_m") FROM "bunzl_plc_financial_results" WHERE "year_ended"='2011' AND "net_profit_m">123.8;
## Task Generate a SQL query to answer the following question: `In year 2011 what is sum of profit/loss before tax and net profit larger than 123.8 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bunzl_plc_financial_results" ( "year_ended" text, "revenue_million" real, "profit_loss_before_tax_m" real, "net_profit_m" real, "earnings_per_share_p" real ); ### SQL Given the database schema, here is the SQL query that answers `In year 2011 what is sum of profit/loss before tax and net profit larger than 123.8 million?`: ```sql
SELECT MAX("goals_for") FROM "division_one_final_table" WHERE "goals_against"<63 AND "points_1">65 AND "lost">10;
## Task Generate a SQL query to answer the following question: `What is the highest goals for less than 63 goals against, more than 65 points 1, and more than 10 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_one_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest goals for less than 63 goals against, more than 65 points 1, and more than 10 losses?`: ```sql
SELECT MAX("position") FROM "division_one_final_table" WHERE "played"<42;
## Task Generate a SQL query to answer the following question: `What is the highest position for less than 42 played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_one_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest position for less than 42 played?`: ```sql
SELECT AVG("december") FROM "schedule_and_results" WHERE "record"='16-3-4' AND "game"<23;
## Task Generate a SQL query to answer the following question: `What is the average day in December with a Record of 16-3-4 and a Game smaller than 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average day in December with a Record of 16-3-4 and a Game smaller than 23?`: ```sql
SELECT SUM("winners") FROM "winners" WHERE "runners_up">0;
## Task Generate a SQL query to answer the following question: `When the Runners-Up is larger than 0, what's the sum of winners?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "team" text, "winners" real, "runners_up" real, "years_won" text, "years_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `When the Runners-Up is larger than 0, what's the sum of winners?`: ```sql
SELECT MIN("runners_up") FROM "winners" WHERE "team"='pachuca' AND "winners">1;
## Task Generate a SQL query to answer the following question: `When there are more than 1 winners and the team playing is pachuca, what's the lowest runners-up found?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "team" text, "winners" real, "runners_up" real, "years_won" text, "years_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `When there are more than 1 winners and the team playing is pachuca, what's the lowest runners-up found?`: ```sql
SELECT "name" FROM "results" WHERE "assists"='lake (154) lake (5.1 apg)';
## Task Generate a SQL query to answer the following question: `Can you tell me the Name that has the Assists of lake (154) lake (5.1 apg)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "league" text, "season" text, "name" text, "place" real, "record" text, "head_coach" text, "points" text, "rebounds" text, "assists" text, "steals" text, "turnover" text ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the Name that has the Assists of lake (154) lake (5.1 apg)?`: ```sql
SELECT "name" FROM "results" WHERE "place"=1;
## Task Generate a SQL query to answer the following question: `Can you tell me the Name that has the Place of 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "league" text, "season" text, "name" text, "place" real, "record" text, "head_coach" text, "points" text, "rebounds" text, "assists" text, "steals" text, "turnover" text ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the Name that has the Place of 1?`: ```sql
SELECT "rebounds" FROM "results" WHERE "name"='pom baskets jena';
## Task Generate a SQL query to answer the following question: `Can you tell me the Rebounds that has the Name of pom baskets jena?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "league" text, "season" text, "name" text, "place" real, "record" text, "head_coach" text, "points" text, "rebounds" text, "assists" text, "steals" text, "turnover" text ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the Rebounds that has the Name of pom baskets jena?`: ```sql
SELECT "steals" FROM "results" WHERE "place"=6;
## Task Generate a SQL query to answer the following question: `Can you tell me the Steals that has the Place of 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "league" text, "season" text, "name" text, "place" real, "record" text, "head_coach" text, "points" text, "rebounds" text, "assists" text, "steals" text, "turnover" text ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the Steals that has the Place of 6?`: ```sql
SELECT "callsign" FROM "defunct_callsigns" WHERE "area_served"='brisbane' AND "freq_currently"='4rph';
## Task Generate a SQL query to answer the following question: `What is the Callsign in Brisbane with a Freq currently of 4rph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "band" text, "freq_currently" text, "purpose" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Callsign in Brisbane with a Freq currently of 4rph?`: ```sql
SELECT "freq_currently" FROM "defunct_callsigns" WHERE "callsign"='4gg';
## Task Generate a SQL query to answer the following question: `What is the Freq currently of the 4GG Callsign?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "band" text, "freq_currently" text, "purpose" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Freq currently of the 4GG Callsign?`: ```sql
SELECT "band" FROM "defunct_callsigns" WHERE "purpose"='community' AND "callsign"='4bcb';
## Task Generate a SQL query to answer the following question: `What is the Community Band with a 4BCB Callsign?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "band" text, "freq_currently" text, "purpose" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Community Band with a 4BCB Callsign?`: ```sql
SELECT "purpose" FROM "defunct_callsigns" WHERE "freq_currently"='4gld';
## Task Generate a SQL query to answer the following question: `What is the Purpose of the Callsign with a Freq currently of 4gld?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "band" text, "freq_currently" text, "purpose" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Purpose of the Callsign with a Freq currently of 4gld?`: ```sql
SELECT "purpose" FROM "defunct_callsigns" WHERE "freq_currently"='4rph';
## Task Generate a SQL query to answer the following question: `What is the Purpose of the Callsign with a Freq currently of 4rph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "band" text, "freq_currently" text, "purpose" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Purpose of the Callsign with a Freq currently of 4rph?`: ```sql
SELECT "press" FROM "records" WHERE "world_record"='olympic record' AND "roger_fran_ois"='jaan kikkas';
## Task Generate a SQL query to answer the following question: `What was the press like for the world olympic record holder Roger Francois and Jaan Kikkas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "press" text, "103_5" text, "roger_fran_ois" text, "paris_fra" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the press like for the world olympic record holder Roger Francois and Jaan Kikkas?`: ```sql
SELECT "paris_fra" FROM "records" WHERE "press"='press' AND "roger_fran_ois"='carlo galimberti';
## Task Generate a SQL query to answer the following question: `What was the press like in Paris for Roger Francois, and Carlo Galimberti?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "press" text, "103_5" text, "roger_fran_ois" text, "paris_fra" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the press like in Paris for Roger Francois, and Carlo Galimberti?`: ```sql
SELECT "roger_fran_ois" FROM "records" WHERE "world_record"='total';
## Task Generate a SQL query to answer the following question: `What is the total amount of world records for Roger Francois?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "press" text, "103_5" text, "roger_fran_ois" text, "paris_fra" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total amount of world records for Roger Francois?`: ```sql
SELECT "place" FROM "final_round" WHERE "score"='71-70-73-71=285';
## Task Generate a SQL query to answer the following question: `What place had a score of 71-70-73-71=285?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `What place had a score of 71-70-73-71=285?`: ```sql
SELECT COUNT("money") FROM "final_round" WHERE "place"='1' AND "to_par"<1;
## Task Generate a SQL query to answer the following question: `How much money for 1st place with a to par less than 1?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `How much money for 1st place with a to par less than 1?`: ```sql
SELECT "player" FROM "third_round" WHERE "to_par"='+1';
## Task Generate a SQL query to answer the following question: `What Player had a To par of +1?` ### 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 had a To par of +1?`: ```sql
SELECT "country" FROM "third_round" WHERE "to_par"='+4' AND "score"='73-71-73=217';
## Task Generate a SQL query to answer the following question: `What is the Country of the Player with a To par of +4 and 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 is the Country of the Player with a To par of +4 and Score of 73-71-73=217?`: ```sql
SELECT "place" FROM "third_round" WHERE "to_par"='+3' AND "score"='73-70-73=216';
## Task Generate a SQL query to answer the following question: `What is the Place of the Player with a To par of +3 and Score of 73-70-73=216?` ### 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 Place of the Player with a To par of +3 and Score of 73-70-73=216?`: ```sql
SELECT "place" FROM "third_round" WHERE "score"='72-70-72=214';
## Task Generate a SQL query to answer the following question: `What is the Place of the Player with a Score of 72-70-72=214?` ### 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 Place of the Player with a Score of 72-70-72=214?`: ```sql
SELECT "kitmaker" FROM "personnel_and_sponsoring" WHERE "team_captain"='robert enke';
## Task Generate a SQL query to answer the following question: `Who is the kitmaker for the team whose team captain is Robert Enke?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the kitmaker for the team whose team captain is Robert Enke?`: ```sql
SELECT "team" FROM "personnel_and_sponsoring" WHERE "kitmaker"='saller' AND "shirt_sponsor"='krombacher';
## Task Generate a SQL query to answer the following question: `Which team uses the kitmaker Saller and has Krombacher as their shirt sponsor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team uses the kitmaker Saller and has Krombacher as their shirt sponsor?`: ```sql
SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "head_coach"='felix magath';
## Task Generate a SQL query to answer the following question: `For the team led by head coach Felix Magath, who is the team captain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `For the team led by head coach Felix Magath, who is the team captain?`: ```sql
SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "shirt_sponsor"='krombacher';
## Task Generate a SQL query to answer the following question: `For the team whose shirt sponsor is Krombacher, who is the team captain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `For the team whose shirt sponsor is Krombacher, who is the team captain?`: ```sql
SELECT "kitmaker" FROM "personnel_and_sponsoring" WHERE "shirt_sponsor"='evonik';
## Task Generate a SQL query to answer the following question: `For the team whose shirt sponsor is Evonik, who is the kitmaker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `For the team whose shirt sponsor is Evonik, who is the kitmaker?`: ```sql
SELECT "shirt_back_sponsor" FROM "kit_sponsors_and_manufacturers" WHERE "shorts_sponsor"='telestet';
## Task Generate a SQL query to answer the following question: `Who is the Shirt Back Sponsor if the Shorts Sponsor is Telestet?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kit_sponsors_and_manufacturers" ( "period" text, "manufacturer" text, "shirt_main_sponsor" text, "shirt_back_sponsor" text, "shorts_sponsor" text, "sleeves_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Shirt Back Sponsor if the Shorts Sponsor is Telestet?`: ```sql
SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='ryan scheepe';
## Task Generate a SQL query to answer the following question: `Which of the Res., has Ryan Scheepe as an opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `Which of the Res., has Ryan Scheepe as an opponent?`: ```sql
SELECT "position" FROM "round_five" WHERE "player"='jeff brown';
## Task Generate a SQL query to answer the following question: `What position is Jeff Brown?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What position is Jeff Brown?`: ```sql
SELECT "player" FROM "round_five" WHERE "cfl_team"='hamilton';
## Task Generate a SQL query to answer the following question: `which player played on Team Hamilton?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `which player played on Team Hamilton?`: ```sql
SELECT "cfl_team" FROM "round_five" WHERE "player"='jeff brown';
## Task Generate a SQL query to answer the following question: `What CFL team does Jeff brown play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What CFL team does Jeff brown play for?`: ```sql
SELECT COUNT("pick_num") FROM "round_five" WHERE "college"='calgary';
## Task Generate a SQL query to answer the following question: `What is the total number of picks for Calgary College?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of picks for Calgary College?`: ```sql
SELECT "home" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "record"='2-3';
## Task Generate a SQL query to answer the following question: `Who was the home team when the record was 2-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team when the record was 2-3?`: ```sql
SELECT "record" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "date"='april 10';
## Task Generate a SQL query to answer the following question: `What was the record on April 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record on April 10?`: ```sql
SELECT "spacecraft" FROM "ev_as" WHERE "end_time"='17:28';
## Task Generate a SQL query to answer the following question: `What spacecraft had an EVA that ended at 17:28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); ### SQL Given the database schema, here is the SQL query that answers `What spacecraft had an EVA that ended at 17:28?`: ```sql
SELECT "crew" FROM "ev_as" WHERE "start_date_time"='20 february 20:09';
## Task Generate a SQL query to answer the following question: `What crew's EVA started on 20 February 20:09?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); ### SQL Given the database schema, here is the SQL query that answers `What crew's EVA started on 20 February 20:09?`: ```sql
SELECT "duration" FROM "ev_as" WHERE "start_date_time"='8 july 12:38';
## Task Generate a SQL query to answer the following question: `The EVA that started on 8 July 12:38 went for how long?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); ### SQL Given the database schema, here is the SQL query that answers `The EVA that started on 8 July 12:38 went for how long?`: ```sql
SELECT "spacecraft" FROM "ev_as" WHERE "start_date_time"='8 july 12:38';
## Task Generate a SQL query to answer the following question: `The EVA that started 8 July 12:38 was from what spacecraft?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text ); ### SQL Given the database schema, here is the SQL query that answers `The EVA that started 8 July 12:38 was from what spacecraft?`: ```sql
SELECT "assists" FROM "members" WHERE "competition"='k-league' AND "total_gs">20 AND "team"='pohang steelers' AND "opponent"='chunnam dragons';
## Task Generate a SQL query to answer the following question: `How many assists were in the k-league competition, which has more than 20 total Gs, the pohang steelers team, and chunnam dragons as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_gs" real, "total_as" real ); ### SQL Given the database schema, here is the SQL query that answers `How many assists were in the k-league competition, which has more than 20 total Gs, the pohang steelers team, and chunnam dragons as the opponent?`: ```sql
SELECT AVG("goals") FROM "members" WHERE "competition"='k-league' AND "team"='pohang steelers' AND "name"='park sung-ho' AND "total_gs"<46;
## Task Generate a SQL query to answer the following question: `What is the average number of goals of park sung-ho at the k-league competition, which has the pohang steelers team and less than 46 total Gs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_gs" real, "total_as" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of goals of park sung-ho at the k-league competition, which has the pohang steelers team and less than 46 total Gs?`: ```sql
SELECT "date" FROM "members" WHERE "venue"='jeonju' AND "goals"<28 AND "competition"='k-league cup';
## Task Generate a SQL query to answer the following question: `What is the date of the k-league cup, which has less than 28 goals, at the jeonju venue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_gs" real, "total_as" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the k-league cup, which has less than 28 goals, at the jeonju venue?`: ```sql
SELECT SUM("total_as") FROM "members" WHERE "team"='bucheon sk' AND "opponent"='chunnam dragons' AND "venue"='bucheon';
## Task Generate a SQL query to answer the following question: `What is the sum of the total As of team bucheon sk, who had the chunnam dragons as their opponent at the bucheon venue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_gs" real, "total_as" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the total As of team bucheon sk, who had the chunnam dragons as their opponent at the bucheon venue?`: ```sql
SELECT SUM("assists") FROM "members" WHERE "venue"='ulsan' AND "competition"='k-league' AND "name"='kang jae-soon';
## Task Generate a SQL query to answer the following question: `What is the sum of the assists kang jae-soon had in the k-league competition in ulsan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_gs" real, "total_as" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the assists kang jae-soon had in the k-league competition in ulsan?`: ```sql
SELECT SUM("goals") FROM "members" WHERE "date"='2007-06-16';
## Task Generate a SQL query to answer the following question: `What is the sum of the goals on 2007-06-16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_gs" real, "total_as" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the goals on 2007-06-16?`: ```sql
SELECT "to_par" FROM "second_round" WHERE "player"='bill glasson';
## Task Generate a SQL query to answer the following question: `What was Bill Glasson's score to par after 2 rounds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Bill Glasson's score to par after 2 rounds?`: ```sql
SELECT "to_par" FROM "second_round" WHERE "player"='phil mickelson';
## Task Generate a SQL query to answer the following question: `What was Phil Mickelson's score to par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Phil Mickelson's score to par?`: ```sql
SELECT "place" FROM "second_round" WHERE "player"='bill glasson';
## Task Generate a SQL query to answer the following question: `What place was Bill Glasson in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What place was Bill Glasson in?`: ```sql
SELECT AVG("pick") FROM "washington_redskins_draft_history" WHERE "overall"=85 AND "round"<3;
## Task Generate a SQL query to answer the following question: `What is the average pick with 85 overall in a round lower than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average pick with 85 overall in a round lower than 3?`: ```sql
SELECT "2009" FROM "singles_performance_timeline" WHERE "2010"='q1' AND "2011"='a';
## Task Generate a SQL query to answer the following question: `What was the 2009 results that has q1 for 2010, and A as the result for 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the 2009 results that has q1 for 2010, and A as the result for 2011?`: ```sql
SELECT "2009" FROM "singles_performance_timeline" WHERE "2010"='0';
## Task Generate a SQL query to answer the following question: `What were the 2009 results that has 0 in 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the 2009 results that has 0 in 2010?`: ```sql
SELECT "2006" FROM "singles_performance_timeline" WHERE "2011"='0';
## Task Generate a SQL query to answer the following question: `With a 2011 of 0 what was the 2006 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `With a 2011 of 0 what was the 2006 result?`: ```sql
SELECT "2004" FROM "singles_performance_timeline" WHERE "2005"='a' AND "2009"='q1';
## Task Generate a SQL query to answer the following question: `What is the result for 2004 when A is the result for 2005, and the result of q1 when 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result for 2004 when A is the result for 2005, and the result of q1 when 2009?`: ```sql
SELECT "2007" FROM "singles_performance_timeline" WHERE "2008"='153';
## Task Generate a SQL query to answer the following question: `With a 2008 result of 153 what is the result for 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `With a 2008 result of 153 what is the result for 2007?`: ```sql
SELECT "2008" FROM "singles_performance_timeline" WHERE "2009"='0' AND "tournament"='atp tournaments won';
## Task Generate a SQL query to answer the following question: `What are the results in 2008 when 2009 is 0, and the ATP Tournaments Won is the tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the results in 2008 when 2009 is 0, and the ATP Tournaments Won is the tournament?`: ```sql
SELECT "team" FROM "motorcycle_grand_prix_results" WHERE "year"=1951;
## Task Generate a SQL query to answer the following question: `Which team was in 1951?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Which team was in 1951?`: ```sql
SELECT "date" FROM "singles_23_14_9" WHERE "opponent_in_the_final"='arnaud di pasquale';
## Task Generate a SQL query to answer the following question: `What is the date of the match with arnaud di pasquale as the opponent in the final?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_23_14_9" ( "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 is the date of the match with arnaud di pasquale as the opponent in the final?`: ```sql
SELECT "date" FROM "singles_23_14_9" WHERE "outcome"='winner' AND "opponent_in_the_final"='jim courier';
## Task Generate a SQL query to answer the following question: `What is the date of the match with a winner outcome and jim courier as the opponent in the final?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_23_14_9" ( "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 is the date of the match with a winner outcome and jim courier as the opponent in the final?`: ```sql
SELECT "surface" FROM "singles_23_14_9" WHERE "championship"='palermo, italy';
## Task Generate a SQL query to answer the following question: `What is the surface of the palermo, italy championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_23_14_9" ( "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 is the surface of the palermo, italy championship?`: ```sql
SELECT SUM("round") FROM "cfl_draft" WHERE "position"='ol' AND "player"='richard zulys';
## Task Generate a SQL query to answer the following question: `In what Round was OL Player Richard Zulys picked?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Round was OL Player Richard Zulys picked?`: ```sql
SELECT "player" FROM "cfl_draft" WHERE "school_club_team"='mcgill';
## Task Generate a SQL query to answer the following question: `What is the Player from McGill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Player from McGill?`: ```sql
SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall"=171;
## Task Generate a SQL query to answer the following question: `Which College had an Overall pick of 171?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which College had an Overall pick of 171?`: ```sql
SELECT "name" FROM "washington_redskins_draft_history" WHERE "overall"=72;
## Task Generate a SQL query to answer the following question: `Who had the overall pick of 72?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the overall pick of 72?`: ```sql
SELECT "primary_conference" FROM "member_teams" WHERE "team_nickname"='phoenix';
## Task Generate a SQL query to answer the following question: `What primary conference does the team nicknamed Phoenix belongs to?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "member_teams" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text, "home_rink" text ); ### SQL Given the database schema, here is the SQL query that answers `What primary conference does the team nicknamed Phoenix belongs to?`: ```sql
SELECT "location" FROM "member_teams" WHERE "home_rink"='triangle sports plex/greensboro ice house';
## Task Generate a SQL query to answer the following question: `Where is the location for the home rink Triangle sports plex/Greensboro ice house?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "member_teams" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text, "home_rink" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the location for the home rink Triangle sports plex/Greensboro ice house?`: ```sql
SELECT SUM("pick") FROM "2000_indiana_fever_miami_sol_portland_fi" WHERE "former_wnba_team"='minnesota lynx';
## Task Generate a SQL query to answer the following question: `What pick was a player that previously played for the Minnesota Lynx?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_indiana_fever_miami_sol_portland_fi" ( "pick" real, "player" text, "nationality" text, "new_wnba_team" text, "former_wnba_team" text, "college_country_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What pick was a player that previously played for the Minnesota Lynx?`: ```sql
SELECT "player" FROM "2000_indiana_fever_miami_sol_portland_fi" WHERE "pick">23;
## Task Generate a SQL query to answer the following question: `Which player was picked after 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_indiana_fever_miami_sol_portland_fi" ( "pick" real, "player" text, "nationality" text, "new_wnba_team" text, "former_wnba_team" text, "college_country_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player was picked after 23?`: ```sql
SELECT "nationality" FROM "2000_indiana_fever_miami_sol_portland_fi" WHERE "college_country_team"='mississippi';
## Task Generate a SQL query to answer the following question: `What is the nationality of the player who went to college at Mississippi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_indiana_fever_miami_sol_portland_fi" ( "pick" real, "player" text, "nationality" text, "new_wnba_team" text, "former_wnba_team" text, "college_country_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality of the player who went to college at Mississippi?`: ```sql