cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What were the lowest goals when the matches were smaller than 29?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "top_goalkeepers" (
  "goalkeeper" text,
  "goals" real,
  "matches" real,
  "average" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the lowest goals when the matches were smaller than 29?`:
```sql
                SELECT MIN("goals") FROM "top_goalkeepers" WHERE "matches"<29;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest match for goals larger than 36?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "top_goalkeepers" (
  "goalkeeper" text,
  "goals" real,
  "matches" real,
  "average" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest match for goals larger than 36?`:
```sql
                SELECT MIN("matches") FROM "top_goalkeepers" WHERE "goals">36;
```
## Task
Generate a SQL query to answer the following question:
`For the 2013 completion schedule, what is the total S.no.?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "hydro_power_stations_under_construction" (
  "s_no" real,
  "power_plant" text,
  "state" text,
  "total_capacity_mw" real,
  "completion_schedule" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the 2013 completion schedule, what is the total S.no.?`:
```sql
                SELECT SUM("s_no") FROM "hydro_power_stations_under_construction" WHERE "completion_schedule"='2013';
```
## Task
Generate a SQL query to answer the following question:
`What is the completion schedule for himachal pradesh state with a total capacity (MW) of 800?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "hydro_power_stations_under_construction" (
  "s_no" real,
  "power_plant" text,
  "state" text,
  "total_capacity_mw" real,
  "completion_schedule" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the completion schedule for himachal pradesh state with a total capacity (MW) of 800?`:
```sql
                SELECT "completion_schedule" FROM "hydro_power_stations_under_construction" WHERE "state"='himachal pradesh' AND "total_capacity_mw"=800;
```
## Task
Generate a SQL query to answer the following question:
`When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "hydro_power_stations_under_construction" (
  "s_no" real,
  "power_plant" text,
  "state" text,
  "total_capacity_mw" real,
  "completion_schedule" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?`:
```sql
                SELECT MIN("s_no") FROM "hydro_power_stations_under_construction" WHERE "state"='jammu & kashmir' AND "completion_schedule"='2016';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "singles_performance_timeline" (
  "tournament" 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 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2011"='1r' AND "tournament"='shanghai masters';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2011 value of the paris masters, which had A in 2008, A in 2012, A in 2009?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "singles_performance_timeline" (
  "tournament" 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 2011 value of the paris masters, which had A in 2008, A in 2012, A in 2009?`:
```sql
                SELECT "2011" FROM "singles_performance_timeline" WHERE "2008"='a' AND "2012"='a' AND "2009"='a' AND "tournament"='paris masters';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2012 of the hamburg masters?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "singles_performance_timeline" (
  "tournament" 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 2012 of the hamburg masters?`:
```sql
                SELECT "2012" FROM "singles_performance_timeline" WHERE "tournament"='hamburg masters';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2008 value of the hamburg masters?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "singles_performance_timeline" (
  "tournament" 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 2008 value of the hamburg masters?`:
```sql
                SELECT "2008" FROM "singles_performance_timeline" WHERE "tournament"='hamburg masters';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2009 value with lq in 2012, 2r in 2011, and lq in 2008?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "singles_performance_timeline" (
  "tournament" 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 2009 value with lq in 2012, 2r in 2011, and lq in 2008?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2012"='lq' AND "2011"='2r' AND "2008"='lq';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2010 value of the monte carlo masters, which had A in 2012?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "singles_performance_timeline" (
  "tournament" 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 2010 value of the monte carlo masters, which had A in 2012?`:
```sql
                SELECT "2010" FROM "singles_performance_timeline" WHERE "2012"='a' AND "tournament"='monte carlo masters';
```
## Task
Generate a SQL query to answer the following question:
`What is the quantity when the DRG was E 62 01–E 62 05?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "electric_locomotives" (
  "class" text,
  "drg_number_s" text,
  "quantity" real,
  "year_s_of_manufacture" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the quantity when the DRG was E 62 01–E 62 05?`:
```sql
                SELECT COUNT("quantity") FROM "electric_locomotives" WHERE "drg_number_s"='e 62 01–e 62 05';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent in the final has a Partnering of graydon oliver?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "runners_up_6" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent in the final has a Partnering of graydon oliver?`:
```sql
                SELECT "opponent_in_the_final" FROM "runners_up_6" WHERE "partnering"='graydon oliver';
```
## Task
Generate a SQL query to answer the following question:
`which Score has a Partnering of dmitry tursunov?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "runners_up_6" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `which Score has a Partnering of dmitry tursunov?`:
```sql
                SELECT "score" FROM "runners_up_6" WHERE "partnering"='dmitry tursunov';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has an Opponent in the final of chris haggard robbie koenig?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "runners_up_6" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has an Opponent in the final of chris haggard robbie koenig?`:
```sql
                SELECT "score" FROM "runners_up_6" WHERE "opponent_in_the_final"='chris haggard robbie koenig';
```
## Task
Generate a SQL query to answer the following question:
`Which Partnering has a Score of 7–6 7 , 6–1?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "runners_up_6" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Partnering has a Score of 7–6 7 , 6–1?`:
```sql
                SELECT "partnering" FROM "runners_up_6" WHERE "score"='7–6 7 , 6–1';
```
## Task
Generate a SQL query to answer the following question:
`Name the Surface that of Tournament of valencia , spain?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "runners_up_6" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Surface that of Tournament of valencia , spain?`:
```sql
                SELECT "surface" FROM "runners_up_6" WHERE "tournament"='valencia , spain';
```
## Task
Generate a SQL query to answer the following question:
`Name the Opponent in the final on july 4, 2005?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "runners_up_6" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Opponent in the final on july 4, 2005?`:
```sql
                SELECT "opponent_in_the_final" FROM "runners_up_6" WHERE "date"='july 4, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What was the Result F–A on 21 February 2009, when the league position was 1st?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "premier_league" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real,
  "league_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Result F–A on 21 February 2009, when the league position was 1st?`:
```sql
                SELECT "result_f_a" FROM "premier_league" WHERE "league_position"='1st' AND "date"='21 february 2009';
```
## Task
Generate a SQL query to answer the following question:
`What club does John Westin play for?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "2010_draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club does John Westin play for?`:
```sql
                SELECT "college_junior_club_team_league" FROM "2010_draft_picks" WHERE "player"='john westin';
```
## Task
Generate a SQL query to answer the following question:
`In what round was a left wing drafted?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "2010_draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what round was a left wing drafted?`:
```sql
                SELECT "round" FROM "2010_draft_picks" WHERE "position"='left wing';
```
## Task
Generate a SQL query to answer the following question:
`What player was drafted in Round 5?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "2010_draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was drafted in Round 5?`:
```sql
                SELECT "player" FROM "2010_draft_picks" WHERE "round"=5;
```
## Task
Generate a SQL query to answer the following question:
`Where did the player who won in 1991 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 `Where did the player who won in 1991 finish?`:
```sql
                SELECT "finish" FROM "made_the_cut" WHERE "year_s_won"='1991';
```
## Task
Generate a SQL query to answer the following question:
`Which player is from scotland?`

### 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 player is from scotland?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "country"='scotland';
```
## Task
Generate a SQL query to answer the following question:
`What are the Lyrics (l) / Music (m) when the draw was 5?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "semi_final_3_7_february_2009" (
  "draw" real,
  "artist" text,
  "song" text,
  "lyrics_l_music_m" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Lyrics (l) / Music (m) when the draw was 5?`:
```sql
                SELECT "lyrics_l_music_m" FROM "semi_final_3_7_february_2009" WHERE "draw"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the Lyrics (l) / Music (m) when the draw was more than 3, and the results were Siste Sjansen, and song shows"shuffled"?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "semi_final_3_7_february_2009" (
  "draw" real,
  "artist" text,
  "song" text,
  "lyrics_l_music_m" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lyrics (l) / Music (m) when the draw was more than 3, and the results were Siste Sjansen, and song shows"shuffled"?`:
```sql
                SELECT "lyrics_l_music_m" FROM "semi_final_3_7_february_2009" WHERE "draw">3 AND "results"='siste sjansen' AND "song"='\"shuffled\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the Lyrics (l) / Music (m) when the results show out, and the song shows "left/right"?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "semi_final_3_7_february_2009" (
  "draw" real,
  "artist" text,
  "song" text,
  "lyrics_l_music_m" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lyrics (l) / Music (m) when the results show out, and the song shows "left/right"?`:
```sql
                SELECT "lyrics_l_music_m" FROM "semi_final_3_7_february_2009" WHERE "results"='out' AND "song"='\"left/right\"';
```
## Task
Generate a SQL query to answer the following question:
`What score has friendly as the competition?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has friendly as the competition?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='friendly';
```
## Task
Generate a SQL query to answer the following question:
`Playing against Chelmsford City on 15 November 1986, who was the home team?`

### 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 `Playing against Chelmsford City on 15 November 1986, who was the home team?`:
```sql
                SELECT "home_team" FROM "first_round_proper" WHERE "date"='15 november 1986' AND "away_team"='chelmsford city';
```
## Task
Generate a SQL query to answer the following question:
`When Lincoln City was the away team what is the tie number?`

### 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 `When Lincoln City was the away team what is the tie number?`:
```sql
                SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='lincoln city';
```
## Task
Generate a SQL query to answer the following question:
`When was the game played that had Rochdale as the away team?`

### 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 `When was the game played that had Rochdale as the away team?`:
```sql
                SELECT "date" FROM "first_round_proper" WHERE "away_team"='rochdale';
```
## Task
Generate a SQL query to answer the following question:
`Scunthorpe United as the home team has what tie number?`

### 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 `Scunthorpe United as the home team has what tie number?`:
```sql
                SELECT "tie_no" FROM "first_round_proper" WHERE "home_team"='scunthorpe united';
```
## Task
Generate a SQL query to answer the following question:
`The game played on 6 December 1986 had what score?`

### 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 `The game played on 6 December 1986 had what score?`:
```sql
                SELECT "score" FROM "first_round_proper" WHERE "date"='6 december 1986';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE TYPE WITH 124?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "express_train_locomotives" (
  "class" text,
  "number_range" text,
  "quantity" text,
  "year_s_built" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE TYPE WITH 124?`:
```sql
                SELECT "type" FROM "express_train_locomotives" WHERE "quantity"='124';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Total is "28:42"?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_of_32" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Total is "28:42"?`:
```sql
                SELECT "score" FROM "round_of_32" WHERE "total"='28:42';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Set 1 is "20:22"?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_of_32" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Set 1 is "20:22"?`:
```sql
                SELECT "date" FROM "round_of_32" WHERE "set_1"='20:22';
```
## Task
Generate a SQL query to answer the following question:
`What is Set 1, when Set 2 is "21:18"?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_of_32" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Set 1, when Set 2 is "21:18"?`:
```sql
                SELECT "set_1" FROM "round_of_32" WHERE "set_2"='21:18';
```
## Task
Generate a SQL query to answer the following question:
`What is Set 2, when Total is "52:44"?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "round_of_32" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Set 2, when Total is "52:44"?`:
```sql
                SELECT "set_2" FROM "round_of_32" WHERE "total"='52:44';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team with a 4 tie no.?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team with a 4 tie no.?`:
```sql
                SELECT "away_team" FROM "fifth_round_proper" WHERE "tie_no"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is the date southampton was the away team?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date southampton was the away team?`:
```sql
                SELECT "date" FROM "fifth_round_proper" WHERE "away_team"='southampton';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the home team tottenham hotspur?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the home team tottenham hotspur?`:
```sql
                SELECT "score" FROM "fifth_round_proper" WHERE "home_team"='tottenham hotspur';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game on 16 december 1987?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "second_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 of the game on 16 december 1987?`:
```sql
                SELECT "score" FROM "second_round_proper" WHERE "date"='16 december 1987';
```
## Task
Generate a SQL query to answer the following question:
`Who played against the away team hereford united?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "second_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 `Who played against the away team hereford united?`:
```sql
                SELECT "home_team" FROM "second_round_proper" WHERE "away_team"='hereford united';
```
## Task
Generate a SQL query to answer the following question:
`Who played against away team hereford united?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "second_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 `Who played against away team hereford united?`:
```sql
                SELECT "home_team" FROM "second_round_proper" WHERE "away_team"='hereford united';
```
## Task
Generate a SQL query to answer the following question:
`Which club was in Position 1 in 1959-1960?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "details_of_participants" (
  "clubs" text,
  "seasons_at_this_level" text,
  "settlements" text,
  "season_joined_league" text,
  "position_in_1959_1960" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club was in Position 1 in 1959-1960?`:
```sql
                SELECT "clubs" FROM "details_of_participants" WHERE "position_in_1959_1960"='1';
```
## Task
Generate a SQL query to answer the following question:
`In which season did the évora settlements join the league?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "details_of_participants" (
  "clubs" text,
  "seasons_at_this_level" text,
  "settlements" text,
  "season_joined_league" text,
  "position_in_1959_1960" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which season did the évora settlements join the league?`:
```sql
                SELECT "season_joined_league" FROM "details_of_participants" WHERE "settlements"='évora';
```
## Task
Generate a SQL query to answer the following question:
`What was the position in 1959-1960 for the club that had 14 seasons at this level?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "details_of_participants" (
  "clubs" text,
  "seasons_at_this_level" text,
  "settlements" text,
  "season_joined_league" text,
  "position_in_1959_1960" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position in 1959-1960 for the club that had 14 seasons at this level?`:
```sql
                SELECT "position_in_1959_1960" FROM "details_of_participants" WHERE "seasons_at_this_level"='14 seasons';
```
## Task
Generate a SQL query to answer the following question:
`What was the position in 1959-1960 for the Sporting De Braga club?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "details_of_participants" (
  "clubs" text,
  "seasons_at_this_level" text,
  "settlements" text,
  "season_joined_league" text,
  "position_in_1959_1960" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position in 1959-1960 for the Sporting De Braga club?`:
```sql
                SELECT "position_in_1959_1960" FROM "details_of_participants" WHERE "clubs"='sporting de braga';
```
## Task
Generate a SQL query to answer the following question:
`What is the "season joined league" for the club that had 15 seasons at this level?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "details_of_participants" (
  "clubs" text,
  "seasons_at_this_level" text,
  "settlements" text,
  "season_joined_league" text,
  "position_in_1959_1960" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the "season joined league" for the club that had 15 seasons at this level?`:
```sql
                SELECT "season_joined_league" FROM "details_of_participants" WHERE "seasons_at_this_level"='15 seasons';
```
## Task
Generate a SQL query to answer the following question:
`What country has a score of 71-66-72-72=281?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a score of 71-66-72-72=281?`:
```sql
                SELECT "country" FROM "final_round" WHERE "score"='71-66-72-72=281';
```
## Task
Generate a SQL query to answer the following question:
`What is the total amount of money that Payne Stewart has?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total amount of money that Payne Stewart has?`:
```sql
                SELECT SUM("money") FROM "final_round" WHERE "player"='payne stewart';
```
## Task
Generate a SQL query to answer the following question:
`What country has player Nick Faldo?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country has player Nick Faldo?`:
```sql
                SELECT "country" FROM "final_round" WHERE "player"='nick faldo';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par for the score 64-73-74-69=280?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par for the score 64-73-74-69=280?`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "score"='64-73-74-69=280';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank for China Eastern Airlines, Korean Air with more passengers than 97,055?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "busiest_international_routes_from_jeju_2" (
  "rank" real,
  "airport" text,
  "passengers" real,
  "aircraft_movements" real,
  "carriers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank for China Eastern Airlines, Korean Air with more passengers than 97,055?`:
```sql
                SELECT MIN("rank") FROM "busiest_international_routes_from_jeju_2" WHERE "carriers"='china eastern airlines, korean air' AND "passengers">'97,055';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest rank for passengers more than 73,754?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "busiest_international_routes_from_jeju_2" (
  "rank" real,
  "airport" text,
  "passengers" real,
  "aircraft_movements" real,
  "carriers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest rank for passengers more than 73,754?`:
```sql
                SELECT MIN("rank") FROM "busiest_international_routes_from_jeju_2" WHERE "passengers">'73,754';
```
## Task
Generate a SQL query to answer the following question:
`Which carrier is ranked 20?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "busiest_international_routes_from_jeju_2" (
  "rank" real,
  "airport" text,
  "passengers" real,
  "aircraft_movements" real,
  "carriers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which carrier is ranked 20?`:
```sql
                SELECT "carriers" FROM "busiest_international_routes_from_jeju_2" WHERE "rank"=20;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank when there are fewer than 124,296 passengers?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "busiest_international_routes_from_jeju_2" (
  "rank" real,
  "airport" text,
  "passengers" real,
  "aircraft_movements" real,
  "carriers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank when there are fewer than 124,296 passengers?`:
```sql
                SELECT MAX("rank") FROM "busiest_international_routes_from_jeju_2" WHERE "passengers"<'124,296';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2013 result for the grand slam tournaments?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2013 result for the grand slam tournaments?`:
```sql
                SELECT "2013" FROM "women_s_doubles_performance_timeline" WHERE "tournament"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2010 result when 2006 is a?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2010 result when 2006 is a?`:
```sql
                SELECT "2010" FROM "women_s_doubles_performance_timeline" WHERE "2006"='a';
```
## Task
Generate a SQL query to answer the following question:
`What tournament has a 2003 of a?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament has a 2003 of a?`:
```sql
                SELECT "tournament" FROM "women_s_doubles_performance_timeline" WHERE "2003"='a';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2007 result when 2003 is a?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2007 result when 2003 is a?`:
```sql
                SELECT "2007" FROM "women_s_doubles_performance_timeline" WHERE "2003"='a';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2011 result when 2010 is 2r and 2013 is w?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2011 result when 2010 is 2r and 2013 is w?`:
```sql
                SELECT "2011" FROM "women_s_doubles_performance_timeline" WHERE "2010"='2r' AND "2013"='w';
```
## Task
Generate a SQL query to answer the following question:
`What's the 2005 result when 2001 is sf?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 2005 result when 2001 is sf?`:
```sql
                SELECT "2005" FROM "women_s_doubles_performance_timeline" WHERE "2001"='sf';
```
## Task
Generate a SQL query to answer the following question:
`When the wolverhampton wanderers were the opponent, with a crowd larger than 41,415, what was the result?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "first_division" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the wolverhampton wanderers were the opponent, with a crowd larger than 41,415, what was the result?`:
```sql
                SELECT "result" FROM "first_division" WHERE "attendance">'41,415' AND "opponent"='wolverhampton wanderers';
```
## Task
Generate a SQL query to answer the following question:
`Which Binibining Pilipinas-World has a Second runner-up of sonia santiago?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "title_holders_from_1992_until_1999" (
  "year" real,
  "binibining_pilipinas_universe" text,
  "binibining_pilipinas_world" text,
  "binibining_pilipinas_international" text,
  "miss_maja_pilipinas" text,
  "first_runner_up" text,
  "second_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Binibining Pilipinas-World has a Second runner-up of sonia santiago?`:
```sql
                SELECT "binibining_pilipinas_world" FROM "title_holders_from_1992_until_1999" WHERE "second_runner_up"='sonia santiago';
```
## Task
Generate a SQL query to answer the following question:
`Which Year has a Binibining Pilipinas International of alma concepcion?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "title_holders_from_1992_until_1999" (
  "year" real,
  "binibining_pilipinas_universe" text,
  "binibining_pilipinas_world" text,
  "binibining_pilipinas_international" text,
  "miss_maja_pilipinas" text,
  "first_runner_up" text,
  "second_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has a Binibining Pilipinas International of alma concepcion?`:
```sql
                SELECT "year" FROM "title_holders_from_1992_until_1999" WHERE "binibining_pilipinas_international"='alma concepcion';
```
## Task
Generate a SQL query to answer the following question:
`Which Binibining Pilipinas International has a Binibining Pilipinas-World of sharmaine gutierrez?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "title_holders_from_1992_until_1999" (
  "year" real,
  "binibining_pilipinas_universe" text,
  "binibining_pilipinas_world" text,
  "binibining_pilipinas_international" text,
  "miss_maja_pilipinas" text,
  "first_runner_up" text,
  "second_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Binibining Pilipinas International has a Binibining Pilipinas-World of sharmaine gutierrez?`:
```sql
                SELECT "binibining_pilipinas_international" FROM "title_holders_from_1992_until_1999" WHERE "binibining_pilipinas_world"='sharmaine gutierrez';
```
## Task
Generate a SQL query to answer the following question:
`Which Result has a Site of rice stadium • houston, tx?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has a Site of rice stadium • houston, tx?`:
```sql
                SELECT "result" FROM "schedule" WHERE "site"='rice stadium • houston, tx';
```
## Task
Generate a SQL query to answer the following question:
`What Opponent has a Site of razorback stadium • fayetteville, ar, and a Date of october 7, 1967?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Opponent has a Site of razorback stadium • fayetteville, ar, and a Date of october 7, 1967?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "site"='razorback stadium • fayetteville, ar' AND "date"='october 7, 1967';
```
## Task
Generate a SQL query to answer the following question:
`What Opponent has a Site of war memorial stadium • little rock, ar, and a Result of l6–7?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Opponent has a Site of war memorial stadium • little rock, ar, and a Result of l6–7?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "site"='war memorial stadium • little rock, ar' AND "result"='l6–7';
```
## Task
Generate a SQL query to answer the following question:
`What Result has a Date of october 14, 1967?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Result has a Date of october 14, 1967?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='october 14, 1967';
```
## Task
Generate a SQL query to answer the following question:
`What Attendance has a Result of l12–21?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Attendance has a Result of l12–21?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "result"='l12–21';
```
## Task
Generate a SQL query to answer the following question:
`What Site has Attendance of 53,000, and a Date of october 21, 1967?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Site has Attendance of 53,000, and a Date of october 21, 1967?`:
```sql
                SELECT "site" FROM "schedule" WHERE "attendance"='53,000' AND "date"='october 21, 1967';
```
## Task
Generate a SQL query to answer the following question:
`What region is the toshiba emi label with a cd format?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "recording_and_release_details" (
  "region" text,
  "date" text,
  "label" text,
  "format_s" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What region is the toshiba emi label with a cd format?`:
```sql
                SELECT "region" FROM "recording_and_release_details" WHERE "format_s"='cd' AND "label"='toshiba emi';
```
## Task
Generate a SQL query to answer the following question:
`What is the dage of catalog asw 28033?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "recording_and_release_details" (
  "region" text,
  "date" text,
  "label" text,
  "format_s" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the dage of catalog asw 28033?`:
```sql
                SELECT "date" FROM "recording_and_release_details" WHERE "catalog"='asw 28033';
```
## Task
Generate a SQL query to answer the following question:
`What is the date with a Japan region?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "recording_and_release_details" (
  "region" text,
  "date" text,
  "label" text,
  "format_s" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date with a Japan region?`:
```sql
                SELECT "date" FROM "recording_and_release_details" WHERE "region"='japan';
```
## Task
Generate a SQL query to answer the following question:
`What region has a lp format on 4 August 2008?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "recording_and_release_details" (
  "region" text,
  "date" text,
  "label" text,
  "format_s" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What region has a lp format on 4 August 2008?`:
```sql
                SELECT "region" FROM "recording_and_release_details" WHERE "format_s"='lp' AND "date"='4 august 2008';
```
## Task
Generate a SQL query to answer the following question:
`What region is on 11 August 2008?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "recording_and_release_details" (
  "region" text,
  "date" text,
  "label" text,
  "format_s" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What region is on 11 August 2008?`:
```sql
                SELECT "region" FROM "recording_and_release_details" WHERE "date"='11 august 2008';
```