output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "opponent" FROM "schedule" WHERE "week"<8 AND "result"='l 28-17';
## Task Generate a SQL query to answer the following question: `Who was the opponent before week 8 when the result was l 28-17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent before week 8 when the result was l 28-17?`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "date"='october 12, 1975' AND "attendance">'44,043';
## Task Generate a SQL query to answer the following question: `In which week was the game played on October 12, 1975 and the crowd was larger than 44,043?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `In which week was the game played on October 12, 1975 and the crowd was larger than 44,043?`: ```sql
SELECT "berlin" FROM "champions_of_pre_bundesliga_oberligen" WHERE "s_dwest"='fk pirmasens' AND "west"='westfalia herne';
## Task Generate a SQL query to answer the following question: `What was Berlin when fk pirmasens was Südwest and westfalia herne was west?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_of_pre_bundesliga_oberligen" ( "year" real, "nord" text, "west" text, "s_dwest" text, "berlin" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Berlin when fk pirmasens was Südwest and westfalia herne was west?`: ```sql
SELECT MIN("year") FROM "champions_of_pre_bundesliga_oberligen" WHERE "west"='borussia dortmund' AND "berlin"='bfc viktoria 1889';
## Task Generate a SQL query to answer the following question: `What is the earliest year borussia dortmund was west and bfc viktoria 1889 was Berlin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_of_pre_bundesliga_oberligen" ( "year" real, "nord" text, "west" text, "s_dwest" text, "berlin" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest year borussia dortmund was west and bfc viktoria 1889 was Berlin?`: ```sql
SELECT "nord" FROM "champions_of_pre_bundesliga_oberligen" WHERE "berlin"='tennis borussia berlin' AND "year"=1952;
## Task Generate a SQL query to answer the following question: `What is the Nord in 1952, when tennis borussia berlin was Berlin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "champions_of_pre_bundesliga_oberligen" ( "year" real, "nord" text, "west" text, "s_dwest" text, "berlin" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Nord in 1952, when tennis borussia berlin was Berlin?`: ```sql
SELECT "place" FROM "final_leaderboard" WHERE "country"='japan';
## Task Generate a SQL query to answer the following question: `Where did Japan place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Where did Japan place?`: ```sql
SELECT "away_team" FROM "second_round" WHERE "attendance"='206';
## Task Generate a SQL query to answer the following question: `Who was the away team when the attendance was 206?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team when the attendance was 206?`: ```sql
SELECT "away_team" FROM "second_round" WHERE "tie_no"='34';
## Task Generate a SQL query to answer the following question: `Who was the away team when the Tie no was 34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team when the Tie no was 34?`: ```sql
SELECT "away_team" FROM "second_round" WHERE "attendance"='76';
## Task Generate a SQL query to answer the following question: `Who was the away team when the attendance was 76?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team when the attendance was 76?`: ```sql
SELECT "home_team" FROM "second_round" WHERE "tie_no"='7';
## Task Generate a SQL query to answer the following question: `Who was the home team when the Tie no was 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team when the Tie no was 7?`: ```sql
SELECT "tie_no" FROM "second_round" WHERE "away_team"='east thurrock united';
## Task Generate a SQL query to answer the following question: `What was the Tie no when the away team was east thurrock united?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Tie no when the away team was east thurrock united?`: ```sql
SELECT MIN("turnout") FROM "plebiscite" WHERE "electorate">'47,822' AND "spoilt"='2,333';
## Task Generate a SQL query to answer the following question: `WHAT IS THE LOWEST TURNOUT FOR AN ELECTORATE LARGER THAN 47,822 AND SPOILT OF 2,333?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "plebiscite" ( "constituency" text, "electorate" real, "votes" real, "turnout" real, "spoilt" real, "percent_yes" real ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE LOWEST TURNOUT FOR AN ELECTORATE LARGER THAN 47,822 AND SPOILT OF 2,333?`: ```sql
SELECT AVG("votes") FROM "plebiscite" WHERE "constituency"='dublin south' AND "spoilt"<'3,387';
## Task Generate a SQL query to answer the following question: `WHAT IS THE AVERAGE VOTE FOR DUBLIN SOUTH, AND SPOILT SMALLER THAN 3,387?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "plebiscite" ( "constituency" text, "electorate" real, "votes" real, "turnout" real, "spoilt" real, "percent_yes" real ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE AVERAGE VOTE FOR DUBLIN SOUTH, AND SPOILT SMALLER THAN 3,387?`: ```sql
SELECT AVG("electorate") FROM "plebiscite" WHERE "votes"='28,475' AND "spoilt"<'5,779';
## Task Generate a SQL query to answer the following question: `WHAT IS AN AVERAGE ELECTORATE WITH VOTES OF 28,475 AND SPOILT SMALLER THAN 5,779?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "plebiscite" ( "constituency" text, "electorate" real, "votes" real, "turnout" real, "spoilt" real, "percent_yes" real ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS AN AVERAGE ELECTORATE WITH VOTES OF 28,475 AND SPOILT SMALLER THAN 5,779?`: ```sql
SELECT MIN("electorate") FROM "plebiscite" WHERE "votes"='31,511' AND "percent_yes"<57.2;
## Task Generate a SQL query to answer the following question: `WHAT IS THE LOWEST ELECTORATE WITH 31,511 VOTES, AND PERCENT YES SMALLER THAN 57.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "plebiscite" ( "constituency" text, "electorate" real, "votes" real, "turnout" real, "spoilt" real, "percent_yes" real ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE LOWEST ELECTORATE WITH 31,511 VOTES, AND PERCENT YES SMALLER THAN 57.2?`: ```sql
SELECT "location" FROM "pre_season_friendlies" WHERE "date"='january 23, 2008';
## Task Generate a SQL query to answer the following question: `Where was the game played on January 23, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pre_season_friendlies" ( "match" real, "date" text, "tournament" text, "location" text, "opponent_team" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the game played on January 23, 2008?`: ```sql
SELECT "location" FROM "pre_season_friendlies" WHERE "tournament"='singapore charity shield';
## Task Generate a SQL query to answer the following question: `Where was the Singapore Charity Shield tournament played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pre_season_friendlies" ( "match" real, "date" text, "tournament" text, "location" text, "opponent_team" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the Singapore Charity Shield tournament played?`: ```sql
SELECT "location" FROM "pre_season_friendlies" WHERE "date"='january 23, 2008';
## Task Generate a SQL query to answer the following question: `Where was the game located on January 23, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pre_season_friendlies" ( "match" real, "date" text, "tournament" text, "location" text, "opponent_team" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the game located on January 23, 2008?`: ```sql
SELECT "location" FROM "pre_season_friendlies" WHERE "match">1 AND "tournament"='friendly' AND "opponent_team"='super reds';
## Task Generate a SQL query to answer the following question: `Where is the location of the friendly match larger than 1 where the Super Reds were the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pre_season_friendlies" ( "match" real, "date" text, "tournament" text, "location" text, "opponent_team" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the location of the friendly match larger than 1 where the Super Reds were the opponent?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "team"='@ milwaukee';
## Task Generate a SQL query to answer the following question: `When the team is @ Milwaukee, what is the name of the location where the game is played?` ### 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, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When the team is @ Milwaukee, what is the name of the location where the game is played?`: ```sql
SELECT "score" FROM "game_log" WHERE "team"='@ chicago';
## Task Generate a SQL query to answer the following question: `For the game with team of @ Chicago, what was the final score?` ### 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, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `For the game with team of @ Chicago, what was the final score?`: ```sql
SELECT COUNT("weeks_on_top") FROM "see_also" WHERE "volume_issue"='12:4-6';
## Task Generate a SQL query to answer the following question: `How long was Volume:Issue 12:4-6 at the top?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" real, "song" text, "artist" text ); ### SQL Given the database schema, here is the SQL query that answers `How long was Volume:Issue 12:4-6 at the top?`: ```sql
SELECT "rank" FROM "highest_grossing_films_u_s" WHERE "title"='best friends';
## Task Generate a SQL query to answer the following question: `What rank did Best Friends receive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films_u_s" ( "rank" real, "title" text, "studio" text, "director" text, "gross" text ); ### SQL Given the database schema, here is the SQL query that answers `What rank did Best Friends receive?`: ```sql
SELECT "points_for" FROM "league_table" WHERE "club"='fall bay rfc';
## Task Generate a SQL query to answer the following question: `How many points are for the Fall Bay RFC club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points are for the Fall Bay RFC club?`: ```sql
SELECT "drawn" FROM "league_table" WHERE "bonus_points"='6' AND "points_against"='410';
## Task Generate a SQL query to answer the following question: `What was drawn for 6 bonus points and is against 410 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What was drawn for 6 bonus points and is against 410 points?`: ```sql
SELECT "club" FROM "league_table" WHERE "points_against"='431';
## Task Generate a SQL query to answer the following question: `What is the club had 431 points against them?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the club had 431 points against them?`: ```sql
SELECT "points_against" FROM "league_table" WHERE "points_difference"='points difference';
## Task Generate a SQL query to answer the following question: `What are the points against with a points difference?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the points against with a points difference?`: ```sql
SELECT "played" FROM "league_table" WHERE "points_difference"='points difference';
## Task Generate a SQL query to answer the following question: `What are the played points difference?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the played points difference?`: ```sql
SELECT "away_team_score" FROM "round_of_16" WHERE "home_team"='sydney';
## Task Generate a SQL query to answer the following question: `When the Home Team was Sydney, what did the Away team score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `When the Home Team was Sydney, what did the Away team score?`: ```sql
SELECT "ground" FROM "round_of_16" WHERE "home_team"='carlton';
## Task Generate a SQL query to answer the following question: `What was the Home team Carlton's Ground?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Home team Carlton's Ground?`: ```sql
SELECT "home_team_score" FROM "round_of_16" WHERE "away_team_score"='8.14 (62)' AND "away_team"='essendon';
## Task Generate a SQL query to answer the following question: `When Essendon scored 8.14 (62), what was the Home team score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `When Essendon scored 8.14 (62), what was the Home team score?`: ```sql
SELECT "player" FROM "first_round" WHERE "score"=71;
## Task Generate a SQL query to answer the following question: `Which player scored 71?` ### 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 player scored 71?`: ```sql
SELECT "circuit" FROM "race_calendar" WHERE "winner"='craig lowndes' AND "date"='19 apr';
## Task Generate a SQL query to answer the following question: `What is the circuit on 19 Apr with Craig Lowndes as the winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the circuit on 19 Apr with Craig Lowndes as the winner?`: ```sql
SELECT "circuit" FROM "race_calendar" WHERE "team"='volvo cars australia';
## Task Generate a SQL query to answer the following question: `What circuit has volvo cars australia as the team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What circuit has volvo cars australia as the team?`: ```sql
SELECT "series" FROM "race_calendar" WHERE "team"='dick johnson racing';
## Task Generate a SQL query to answer the following question: `What series was Dick Johnson Racing the team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What series was Dick Johnson Racing the team?`: ```sql
SELECT "city_state" FROM "race_calendar" WHERE "winner"='russell ingall larry perkins';
## Task Generate a SQL query to answer the following question: `What is the city/state of the circuit where Russell Ingall Larry Perkins was the winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the city/state of the circuit where Russell Ingall Larry Perkins was the winner?`: ```sql
SELECT "date" FROM "first_round_proper" WHERE "away_team"='gillingham';
## Task Generate a SQL query to answer the following question: `What date was the away team, team Gillingham?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the away team, team Gillingham?`: ```sql
SELECT "score" FROM "first_round_proper" WHERE "tie_no"='21';
## Task Generate a SQL query to answer the following question: `What was the score for a no. 21 tie?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score for a no. 21 tie?`: ```sql
SELECT "date" FROM "first_round_proper" WHERE "away_team"='southport';
## Task Generate a SQL query to answer the following question: `What was the date for the away team, team Southport?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date for the away team, team Southport?`: ```sql
SELECT "score" FROM "first_round_proper" WHERE "away_team"='southport';
## Task Generate a SQL query to answer the following question: `What was the score for the away team, southport?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score for the away team, southport?`: ```sql
SELECT "result" FROM "schedule" WHERE "attendance"='47,971';
## Task Generate a SQL query to answer the following question: `What was the result when the attendance was 47,971?` ### 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, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result when the attendance was 47,971?`: ```sql
SELECT "result" FROM "schedule" WHERE "attendance"='46,456';
## Task Generate a SQL query to answer the following question: `What was the result when the attendance was 46,456?` ### 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, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result when the attendance was 46,456?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "date"='september 27, 1998';
## Task Generate a SQL query to answer the following question: `Who was the opponent on september 27, 1998?` ### 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, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent on september 27, 1998?`: ```sql
SELECT "venue" FROM "results" WHERE "score"='0:0' AND "season">2010 AND "team_1"='t&t hanoi';
## Task Generate a SQL query to answer the following question: `Which Venue has a Score of 0:0, a Season larger than 2010, and a Team 1 of t&t hanoi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "season" real, "team_1" text, "score" text, "team_2" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Venue has a Score of 0:0, a Season larger than 2010, and a Team 1 of t&t hanoi?`: ```sql
SELECT "highest_league" FROM "list_of_csl_teams" WHERE "total_seasons"<4 AND "team"='nova scotia clippers';
## Task Generate a SQL query to answer the following question: `What's the highest league of the Nova Scotia Clippers with a total season of less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_csl_teams" ( "team" text, "city" text, "total_seasons" real, "seasons" text, "highest_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the highest league of the Nova Scotia Clippers with a total season of less than 4?`: ```sql
SELECT "seasons" FROM "list_of_csl_teams" WHERE "total_seasons"<5 AND "city"='ottawa, ontario';
## Task Generate a SQL query to answer the following question: `What is the season that has fewer than 5 total seasons and is in Ottawa, Ontario?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_csl_teams" ( "team" text, "city" text, "total_seasons" real, "seasons" text, "highest_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the season that has fewer than 5 total seasons and is in Ottawa, Ontario?`: ```sql
SELECT MIN("total_seasons") FROM "list_of_csl_teams" WHERE "team"='vancouver 86ers';
## Task Generate a SQL query to answer the following question: `What is the least total seasons of the Vancouver 86ers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_csl_teams" ( "team" text, "city" text, "total_seasons" real, "seasons" text, "highest_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the least total seasons of the Vancouver 86ers?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "week"=14;
## Task Generate a SQL query to answer the following question: `Who was the opponent in week 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent in week 14?`: ```sql
SELECT "date" FROM "season_4" WHERE "city"='punta del este';
## Task Generate a SQL query to answer the following question: `What is Date, when City is "Punta Del Este"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_4" ( "date" text, "city" text, "event" text, "winner" text, "prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when City is "Punta Del Este"?`: ```sql
SELECT "city" FROM "season_4" WHERE "prize"='$146,000';
## Task Generate a SQL query to answer the following question: `What is City, when Prize is "$146,000"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_4" ( "date" text, "city" text, "event" text, "winner" text, "prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is City, when Prize is "$146,000"?`: ```sql
SELECT "date" FROM "season_4" WHERE "winner"='murilo figueiredo';
## Task Generate a SQL query to answer the following question: `What is Date, when Winner is "Murilo Figueiredo"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_4" ( "date" text, "city" text, "event" text, "winner" text, "prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when Winner is "Murilo Figueiredo"?`: ```sql
SELECT "aspect" FROM "digital_channels" WHERE "programming"='saigon network television';
## Task Generate a SQL query to answer the following question: `What Aspect has a Programming of Saigon Network Television?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); ### SQL Given the database schema, here is the SQL query that answers `What Aspect has a Programming of Saigon Network Television?`: ```sql
SELECT "aspect" FROM "digital_channels" WHERE "programming"='latv';
## Task Generate a SQL query to answer the following question: `Which Aspect has a Programming of latv?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Aspect has a Programming of latv?`: ```sql
SELECT "programming" FROM "digital_channels" WHERE "channel">51.2 AND "psip_short_name"='kyaz-5';
## Task Generate a SQL query to answer the following question: `Which Programming has a Channel greater than 51.2 and a PSIP Short Name of kyaz-5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Programming has a Channel greater than 51.2 and a PSIP Short Name of kyaz-5?`: ```sql
SELECT "psip_short_name" FROM "digital_channels" WHERE "channel"<51.6;
## Task Generate a SQL query to answer the following question: `What is the PSIP Short name for the Channel that is less than 51.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "digital_channels" ( "channel" real, "video" text, "aspect" text, "psip_short_name" text, "programming" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the PSIP Short name for the Channel that is less than 51.6?`: ```sql
SELECT MAX("year") FROM "awards" WHERE "beer_name"='maggs magnificent mild' AND "competition"='camra reading branch beer festival' AND "category"='overall';
## Task Generate a SQL query to answer the following question: `What year did maggs magnificent mild bear win overall at the camra reading branch beer festival?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards" ( "year" real, "beer_name" text, "prize" text, "category" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did maggs magnificent mild bear win overall at the camra reading branch beer festival?`: ```sql
SELECT "prize" FROM "awards" WHERE "year">2002 AND "competition"='camra london and south east regional competition' AND "beer_name"='good old boy';
## Task Generate a SQL query to answer the following question: `What prize did good old boy win in 2002 at the camra london and south east regional competition?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards" ( "year" real, "beer_name" text, "prize" text, "category" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What prize did good old boy win in 2002 at the camra london and south east regional competition?`: ```sql
SELECT AVG("year") FROM "awards" WHERE "beer_name"='maggs magnificent mild' AND "prize"='gold medal' AND "category"='mild and porter' AND "competition"='siba south east region beer competition';
## Task Generate a SQL query to answer the following question: `What year did maggs magnificent mild win a gold medal in the mild and porter category at the siba south east region beer competition?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards" ( "year" real, "beer_name" text, "prize" text, "category" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did maggs magnificent mild win a gold medal in the mild and porter category at the siba south east region beer competition?`: ```sql
SELECT "beer_name" FROM "awards" WHERE "prize"='silver medal' AND "competition"='camra reading branch beer festival' AND "year"=2008;
## Task Generate a SQL query to answer the following question: `What beer won a silver medal at the camra reading branch beer festival in 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards" ( "year" real, "beer_name" text, "prize" text, "category" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What beer won a silver medal at the camra reading branch beer festival in 2008?`: ```sql
SELECT "model_number" FROM "45_nm" WHERE "part_number_s"='ay80609003987ab';
## Task Generate a SQL query to answer the following question: `What is Model Number, when Part Number(s) is AY80609003987AB?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "gpu_frequency" text, "l2_cache" text, "i_o_bus" text, "memory" text, "socket" text, "release_date" text, "part_number_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Model Number, when Part Number(s) is AY80609003987AB?`: ```sql
SELECT "frequency" FROM "45_nm" WHERE "part_number_s"='ay80609004002ac';
## Task Generate a SQL query to answer the following question: `What is Frequency, when Part Number(s) is AY80609004002AC?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "gpu_frequency" text, "l2_cache" text, "i_o_bus" text, "memory" text, "socket" text, "release_date" text, "part_number_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Frequency, when Part Number(s) is AY80609004002AC?`: ```sql
SELECT "s_spec_number" FROM "45_nm" WHERE "frequency"='1 ghz';
## Task Generate a SQL query to answer the following question: `What is sSpec Number, when Frequency is 1 GHZ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "gpu_frequency" text, "l2_cache" text, "i_o_bus" text, "memory" text, "socket" text, "release_date" text, "part_number_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is sSpec Number, when Frequency is 1 GHZ?`: ```sql
SELECT "release_date" FROM "45_nm" WHERE "s_spec_number"='slbze(c0)slbr8';
## Task Generate a SQL query to answer the following question: `What is Release Date, when sSpec Number is SLBZE(C0)SLBR8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "gpu_frequency" text, "l2_cache" text, "i_o_bus" text, "memory" text, "socket" text, "release_date" text, "part_number_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Release Date, when sSpec Number is SLBZE(C0)SLBR8?`: ```sql
SELECT "l2_cache" FROM "45_nm" WHERE "model_number"='atom z625';
## Task Generate a SQL query to answer the following question: `What is L2 Cache, when Model Number is Atom Z625?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "gpu_frequency" text, "l2_cache" text, "i_o_bus" text, "memory" text, "socket" text, "release_date" text, "part_number_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is L2 Cache, when Model Number is Atom Z625?`: ```sql
SELECT COUNT("pick") FROM "nfl_draft" WHERE "player"='renaldo wynn' AND "round"<1;
## Task Generate a SQL query to answer the following question: `Which Pick has a Player of renaldo wynn, and a Round smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Pick has a Player of renaldo wynn, and a Round smaller than 1?`: ```sql
SELECT SUM("round") FROM "nfl_draft" WHERE "player"='damon jones';
## Task Generate a SQL query to answer the following question: `Which Round has a Player of damon jones?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Round has a Player of damon jones?`: ```sql
SELECT "college" FROM "nfl_draft" WHERE "round"<2;
## Task Generate a SQL query to answer the following question: `Which College has a Round smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which College has a Round smaller than 2?`: ```sql
SELECT COUNT("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_jay_nixon"='48%' AND "poll_source"='rasmussen reports';
## Task Generate a SQL query to answer the following question: `What was the lead margin when Nixon had 48% and reporting was done by Rasmussen Reports?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_jay_nixon" text, "republican_kenny_hulshof" text, "lead_margin" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the lead margin when Nixon had 48% and reporting was done by Rasmussen Reports?`: ```sql
SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_kenny_hulshof"='37%' AND "democrat_jay_nixon"='48%';
## Task Generate a SQL query to answer the following question: `What are the dates where Hulshof had 37% and Nixon had 48%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_jay_nixon" text, "republican_kenny_hulshof" text, "lead_margin" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the dates where Hulshof had 37% and Nixon had 48%?`: ```sql
SELECT "event" FROM "records" WHERE "location"='northfield, mn';
## Task Generate a SQL query to answer the following question: `Which event is located in Northfield, Mn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "date" text, "distance" text, "handler" text, "event" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which event is located in Northfield, Mn?`: ```sql
SELECT "event" FROM "records" WHERE "distance"='ft10in (m)';
## Task Generate a SQL query to answer the following question: `Which event has a distance of ft10in (m)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "date" text, "distance" text, "handler" text, "event" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which event has a distance of ft10in (m)?`: ```sql
SELECT "distance" FROM "records" WHERE "event"='bass pro shops';
## Task Generate a SQL query to answer the following question: `What distance does the Bass Pro Shops event have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "date" text, "distance" text, "handler" text, "event" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What distance does the Bass Pro Shops event have?`: ```sql
SELECT "date" FROM "records" WHERE "handler"='mike jackson' AND "event"='indianapolis boat, sport & travel show';
## Task Generate a SQL query to answer the following question: `On what date was Mike Jackson a handler at the Indianapolis Boat, Sport & Travel Show?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "date" text, "distance" text, "handler" text, "event" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was Mike Jackson a handler at the Indianapolis Boat, Sport & Travel Show?`: ```sql
SELECT "opponent" FROM "january" WHERE "attendance"<751;
## Task Generate a SQL query to answer the following question: `Who did they play when there were only 751 in attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real, "competition" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `Who did they play when there were only 751 in attendance?`: ```sql
SELECT "date" FROM "january" WHERE "venue"='away' AND "opponent"='swindon wildcats';
## Task Generate a SQL query to answer the following question: `When did they play the swindon wildcats away?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real, "competition" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `When did they play the swindon wildcats away?`: ```sql
SELECT "man_of_the_match" FROM "january" WHERE "venue"='home' AND "opponent"='romford raiders';
## Task Generate a SQL query to answer the following question: `Who was the Man of the Match when they played the Romford Raiders at home?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real, "competition" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Man of the Match when they played the Romford Raiders at home?`: ```sql
SELECT "nat" FROM "players_out_on_loan" WHERE "app_l_c_e"='0 (0/0/0)' AND "name"='yahaya';
## Task Generate a SQL query to answer the following question: `What is the Nationality of the player named Yahaya, who has as App(L/C/E) of 0 (0/0/0)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_out_on_loan" ( "nat" text, "name" text, "since" text, "app_l_c_e" text, "goals_l_c_e" text, "ends" real, "transfer_fee" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Nationality of the player named Yahaya, who has as App(L/C/E) of 0 (0/0/0)?`: ```sql
SELECT "transfer_fee" FROM "players_out_on_loan" WHERE "app_l_c_e"='0 (0/0/0)' AND "notes"='to anagennisi karditsa';
## Task Generate a SQL query to answer the following question: `What was the transfer fee for the player who had an App(L/C/E) of 0 (0/0/0) and notes of to anagennisi karditsa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_out_on_loan" ( "nat" text, "name" text, "since" text, "app_l_c_e" text, "goals_l_c_e" text, "ends" real, "transfer_fee" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the transfer fee for the player who had an App(L/C/E) of 0 (0/0/0) and notes of to anagennisi karditsa?`: ```sql
SELECT "american_name" FROM "variations" WHERE "triple_dotted_value"='15/2 or 7 1/2';
## Task Generate a SQL query to answer the following question: `what is the american name when the triple dotted value is 15/2 or 7 1/2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "variations" ( "american_name" text, "british_name" text, "value" text, "dotted_value" text, "double_dotted_value" text, "triple_dotted_value" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the american name when the triple dotted value is 15/2 or 7 1/2?`: ```sql
SELECT "british_name" FROM "variations" WHERE "american_name"='sixteenth note';
## Task Generate a SQL query to answer the following question: `what is the british name when the american name is sixteenth note?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "variations" ( "american_name" text, "british_name" text, "value" text, "dotted_value" text, "double_dotted_value" text, "triple_dotted_value" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the british name when the american name is sixteenth note?`: ```sql
SELECT "value" FROM "variations" WHERE "british_name"='quaver';
## Task Generate a SQL query to answer the following question: `what is the value when the british name is quaver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "variations" ( "american_name" text, "british_name" text, "value" text, "dotted_value" text, "double_dotted_value" text, "triple_dotted_value" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the value when the british name is quaver?`: ```sql
SELECT "british_name" FROM "variations" WHERE "double_dotted_value"='7/32';
## Task Generate a SQL query to answer the following question: `what is the british name when the double dotted value is 7/32?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "variations" ( "american_name" text, "british_name" text, "value" text, "dotted_value" text, "double_dotted_value" text, "triple_dotted_value" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the british name when the double dotted value is 7/32?`: ```sql
SELECT "double_dotted_value" FROM "variations" WHERE "triple_dotted_value"='15/128';
## Task Generate a SQL query to answer the following question: `what is the double dotted value when the triple dotted value is 15/128?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "variations" ( "american_name" text, "british_name" text, "value" text, "dotted_value" text, "double_dotted_value" text, "triple_dotted_value" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the double dotted value when the triple dotted value is 15/128?`: ```sql
SELECT "value" FROM "variations" WHERE "british_name"='maxima';
## Task Generate a SQL query to answer the following question: `what is the value when the british name is maxima?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "variations" ( "american_name" text, "british_name" text, "value" text, "dotted_value" text, "double_dotted_value" text, "triple_dotted_value" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the value when the british name is maxima?`: ```sql
SELECT "home_team" FROM "fourth_round_proper" WHERE "date"='28 january 1984' AND "tie_no"='4';
## Task Generate a SQL query to answer the following question: `What is Home Team, when Date is "28 January 1984", and when Tie No is "4"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Home Team, when Date is "28 January 1984", and when Tie No is "4"?`: ```sql
SELECT "date" FROM "fourth_round_proper" WHERE "away_team"='gillingham';
## Task Generate a SQL query to answer the following question: `What is Date, when Away Team is "Gillingham"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when Away Team is "Gillingham"?`: ```sql
SELECT "home_team" FROM "fourth_round_proper" WHERE "date"='1 february 1984' AND "tie_no"='5';
## Task Generate a SQL query to answer the following question: `What is Home Team, when Date is "1 February 1984", and when Tie No is "5"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Home Team, when Date is "1 February 1984", and when Tie No is "5"?`: ```sql
SELECT "away_team" FROM "fourth_round_proper" WHERE "home_team"='sheffield wednesday';
## Task Generate a SQL query to answer the following question: `What is Away Team, when Home Team is "Sheffield Wednesday"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Away Team, when Home Team is "Sheffield Wednesday"?`: ```sql
SELECT "date" FROM "fourth_round_proper" WHERE "tie_no"='replay' AND "away_team"='crystal palace';
## Task Generate a SQL query to answer the following question: `What is Date, when Tie No is "Replay", and when Away Team is "Crystal Palace"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when Tie No is "Replay", and when Away Team is "Crystal Palace"?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "player"='tom kite';
## Task Generate a SQL query to answer the following question: `What to par has tom kite as the player?` ### 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 to par has tom kite as the player?`: ```sql
SELECT "player" FROM "made_the_cut" WHERE "finish"='t57';
## Task Generate a SQL query to answer the following question: `What player has a t57 as the finish?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What player has a t57 as the finish?`: ```sql
SELECT MIN("total") FROM "made_the_cut" WHERE "year_s_won"='1992';
## Task Generate a SQL query to answer the following question: `What is the lowest total that has 1992 as the year (s) won?` ### 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 lowest total that has 1992 as the year (s) won?`: ```sql
SELECT "player" FROM "made_the_cut" WHERE "to_par"='+21';
## Task Generate a SQL query to answer the following question: `What player has +21 as the to par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What player has +21 as the to par?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "total"<296;
## Task Generate a SQL query to answer the following question: `Which to par has a total less than 296?` ### 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 `Which to par has a total less than 296?`: ```sql
SELECT "finish" FROM "made_the_cut" WHERE "to_par"='+21';
## Task Generate a SQL query to answer the following question: `What finish has +21 as the to par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What finish has +21 as the to par?`: ```sql
SELECT COUNT("events") FROM "summary" WHERE "cuts_made"<34 AND "top_10">3;
## Task Generate a SQL query to answer the following question: `What is the total number of events that had 34 cuts and 3 in the top 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of events that had 34 cuts and 3 in the top 10?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "attendance">'51,901' AND "result"='t 13-13';
## Task Generate a SQL query to answer the following question: `Who played with more than 51,901 attendance and resulted in t 13-13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Who played with more than 51,901 attendance and resulted in t 13-13?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "date"='january 3';
## Task Generate a SQL query to answer the following question: `Who had the most rebounds on January 3?` ### 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 `Who had the most rebounds on January 3?`: ```sql
SELECT "surface" FROM "doubles_finals_53_26_27" WHERE "date">1982 AND "partner"='guy forget';
## Task Generate a SQL query to answer the following question: `Which surface had a date after 1982 and partner of Guy Forget?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_finals_53_26_27" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which surface had a date after 1982 and partner of Guy Forget?`: ```sql
SELECT "result" FROM "schedule" WHERE "week"=9;
## Task Generate a SQL query to answer the following question: `What was the result of the week 9 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the week 9 game?`: ```sql