cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Can you tell me the average Average that has the Rank larger than 4, and the Player of dean minors?`

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

CREATE TABLE "one_day_internationals" (
  "rank" real,
  "player" text,
  "runs" real,
  "average" real,
  "career" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the average Average that has the Rank larger than 4, and the Player of dean minors?`:
```sql
                SELECT AVG("average") FROM "one_day_internationals" WHERE "rank">4 AND "player"='dean minors';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue where john zibnack was the runner-up?`

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

CREATE TABLE "winners" (
  "year" text,
  "winner" text,
  "runner_up" text,
  "venue" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue where john zibnack was the runner-up?`:
```sql
                SELECT "venue" FROM "winners" WHERE "runner_up"='john zibnack';
```
## Task
Generate a SQL query to answer the following question:
`Who is the winner in des moines, iowa where p.h. finkbank was the runner-up?`

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

CREATE TABLE "winners" (
  "year" text,
  "winner" text,
  "runner_up" text,
  "venue" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the winner in des moines, iowa where p.h. finkbank was the runner-up?`:
```sql
                SELECT "winner" FROM "winners" WHERE "location"='des moines, iowa' AND "runner_up"='p.h. finkbank';
```
## Task
Generate a SQL query to answer the following question:
`What is the location where ed c. kingsley was the runner-up in 1939?`

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

CREATE TABLE "winners" (
  "year" text,
  "winner" text,
  "runner_up" text,
  "venue" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location where ed c. kingsley was the runner-up in 1939?`:
```sql
                SELECT "location" FROM "winners" WHERE "runner_up"='ed c. kingsley' AND "year"='1939';
```
## Task
Generate a SQL query to answer the following question:
`Who is the winner when mark fuller was the runner-up?`

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

CREATE TABLE "winners" (
  "year" text,
  "winner" text,
  "runner_up" text,
  "venue" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the winner when mark fuller was the runner-up?`:
```sql
                SELECT "winner" FROM "winners" WHERE "runner_up"='mark fuller';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue in 2002?`

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

CREATE TABLE "winners" (
  "year" text,
  "winner" text,
  "runner_up" text,
  "venue" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue in 2002?`:
```sql
                SELECT "venue" FROM "winners" WHERE "year"='2002';
```
## Task
Generate a SQL query to answer the following question:
`Who is the runner-up in 1901?`

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

CREATE TABLE "winners" (
  "year" text,
  "winner" text,
  "runner_up" text,
  "venue" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the runner-up in 1901?`:
```sql
                SELECT "runner_up" FROM "winners" WHERE "year"='1901';
```
## Task
Generate a SQL query to answer the following question:
`What Australian sound is equivalent to e /ɛ/?`

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

CREATE TABLE "short_vowels" (
  "short_vowels" text,
  "17th_c" text,
  "american" text,
  "british" text,
  "australian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Australian sound is equivalent to e /ɛ/?`:
```sql
                SELECT "australian" FROM "short_vowels" WHERE "short_vowels"='e /ɛ/';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when they played at new york islanders?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game when they played at new york islanders?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "home"='new york islanders';
```
## Task
Generate a SQL query to answer the following question:
`Which of the R. Epp, has J Thiessen of Tjoatj?`

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

CREATE TABLE "spelling" (
  "a_dyck" text,
  "h_rempel" text,
  "r_epp" text,
  "j_thiessen" text,
  "j_j_neufeld" text,
  "ed_zacharias" text,
  "word_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which of the R. Epp, has J Thiessen of Tjoatj?`:
```sql
                SELECT "r_epp" FROM "spelling" WHERE "j_thiessen"='tjoatj';
```
## Task
Generate a SQL query to answer the following question:
`Which of the R. Epp, has Ed Zacharias from Rollen, Jerolt, Golt?`

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

CREATE TABLE "spelling" (
  "a_dyck" text,
  "h_rempel" text,
  "r_epp" text,
  "j_thiessen" text,
  "j_j_neufeld" text,
  "ed_zacharias" text,
  "word_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which of the R. Epp, has Ed Zacharias from Rollen, Jerolt, Golt?`:
```sql
                SELECT "r_epp" FROM "spelling" WHERE "ed_zacharias"='rollen, jerolt, golt';
```
## Task
Generate a SQL query to answer the following question:
`Which of the A. Dyck has J. Thiessen of Du?`

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

CREATE TABLE "spelling" (
  "a_dyck" text,
  "h_rempel" text,
  "r_epp" text,
  "j_thiessen" text,
  "j_j_neufeld" text,
  "ed_zacharias" text,
  "word_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which of the A. Dyck has J. Thiessen of Du?`:
```sql
                SELECT "a_dyck" FROM "spelling" WHERE "j_thiessen"='du';
```
## Task
Generate a SQL query to answer the following question:
`Which of the H. Rempel has J. J. Neufeld of Sajen?`

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

CREATE TABLE "spelling" (
  "a_dyck" text,
  "h_rempel" text,
  "r_epp" text,
  "j_thiessen" text,
  "j_j_neufeld" text,
  "ed_zacharias" text,
  "word_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which of the H. Rempel has J. J. Neufeld of Sajen?`:
```sql
                SELECT "h_rempel" FROM "spelling" WHERE "j_j_neufeld"='sajen';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Against, when Status is "Six Nations", and when Date is "30/03/2003"?`

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

CREATE TABLE "2003" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Against, when Status is "Six Nations", and when Date is "30/03/2003"?`:
```sql
                SELECT SUM("against") FROM "2003" WHERE "status"='six nations' AND "date"='30/03/2003';
```
## Task
Generate a SQL query to answer the following question:
`What is Opposing Teams, when Against is less than 6?`

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

CREATE TABLE "2003" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opposing Teams, when Against is less than 6?`:
```sql
                SELECT "opposing_teams" FROM "2003" WHERE "against"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Against is "22"?`

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

CREATE TABLE "2003" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Against is "22"?`:
```sql
                SELECT "date" FROM "2003" WHERE "against"=22;
```
## Task
Generate a SQL query to answer the following question:
`What shows for money (£) when South Africa is the country?`

### 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 shows for money (£) when South Africa is the country?`:
```sql
                SELECT MAX("money") FROM "final_round" WHERE "country"='south africa';
```
## Task
Generate a SQL query to answer the following question:
`What is the To par when Lanny Wadkins is the player?`

### 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 when Lanny Wadkins is the player?`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "player"='lanny wadkins';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the marco island tournament match when Kathleen Horvath won runner-up?`

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

CREATE TABLE "singles_9_6_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the marco island tournament match when Kathleen Horvath won runner-up?`:
```sql
                SELECT "score" FROM "singles_9_6_3" WHERE "outcome"='runner-up' AND "tournament"='marco island';
```
## Task
Generate a SQL query to answer the following question:
`What was the tournament that was on july 6, 1987?`

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

CREATE TABLE "singles_9_6_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tournament that was on july 6, 1987?`:
```sql
                SELECT "tournament" FROM "singles_9_6_3" WHERE "date"='july 6, 1987';
```
## Task
Generate a SQL query to answer the following question:
`What is pick 246's position?`

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

CREATE TABLE "1962_pro_draftees" (
  "player" text,
  "draft" text,
  "round" real,
  "pick" real,
  "position" text,
  "nfl_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is pick 246's position?`:
```sql
                SELECT "position" FROM "1962_pro_draftees" WHERE "pick"=246;
```
## Task
Generate a SQL query to answer the following question:
`Which Pick has a Player of chuck bryant, and an NFL Club of san diego chargers?`

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

CREATE TABLE "1962_pro_draftees" (
  "player" text,
  "draft" text,
  "round" real,
  "pick" real,
  "position" text,
  "nfl_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pick has a Player of chuck bryant, and an NFL Club of san diego chargers?`:
```sql
                SELECT "pick" FROM "1962_pro_draftees" WHERE "player"='chuck bryant' AND "nfl_club"='san diego chargers';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the pittsburgh steelers?`

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

CREATE TABLE "1962_pro_draftees" (
  "player" text,
  "draft" text,
  "round" real,
  "pick" real,
  "position" text,
  "nfl_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the pittsburgh steelers?`:
```sql
                SELECT "position" FROM "1962_pro_draftees" WHERE "nfl_club"='pittsburgh steelers';
```
## Task
Generate a SQL query to answer the following question:
`Which NFL Club has a Player of sam tidmore, and a Pick of 81?`

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

CREATE TABLE "1962_pro_draftees" (
  "player" text,
  "draft" text,
  "round" real,
  "pick" real,
  "position" text,
  "nfl_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which NFL Club has a Player of sam tidmore, and a Pick of 81?`:
```sql
                SELECT "nfl_club" FROM "1962_pro_draftees" WHERE "player"='sam tidmore' AND "pick"=81;
```
## Task
Generate a SQL query to answer the following question:
`Which club had round of group stage round 1 and 5?`

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

CREATE TABLE "european_history" (
  "round" text,
  "club" text,
  "home" text,
  "away" text,
  "aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club had round of group stage round 1 and 5?`:
```sql
                SELECT "club" FROM "european_history" WHERE "round"='group stage round 1 and 5';
```
## Task
Generate a SQL query to answer the following question:
`What is the aggregate for the first round for K.S.V. Waregem?`

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

CREATE TABLE "european_history" (
  "round" text,
  "club" text,
  "home" text,
  "away" text,
  "aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the aggregate for the first round for K.S.V. Waregem?`:
```sql
                SELECT "aggregate" FROM "european_history" WHERE "round"='first round' AND "club"='k.s.v. waregem';
```
## Task
Generate a SQL query to answer the following question:
`What is the away where the round is the second round?`

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

CREATE TABLE "european_history" (
  "round" text,
  "club" text,
  "home" text,
  "away" text,
  "aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away where the round is the second round?`:
```sql
                SELECT "away" FROM "european_history" WHERE "round"='second round';
```
## Task
Generate a SQL query to answer the following question:
`Which Team 1 has a 2nd leg of 1-3?`

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

CREATE TABLE "round_16_matches" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team 1 has a 2nd leg of 1-3?`:
```sql
                SELECT "team_1" FROM "round_16_matches" WHERE "2nd_leg"='1-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the Agg for 1st Leg 1-2 and 2nd leg of Withdrew?`

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

CREATE TABLE "round_16_matches" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Agg for 1st Leg 1-2 and 2nd leg of Withdrew?`:
```sql
                SELECT "agg" FROM "round_16_matches" WHERE "1st_leg"='1-2' AND "2nd_leg"='withdrew';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg if the 1st leg is 3-1 and the Team 2 is union sportive de la médina d'alger?`

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

CREATE TABLE "round_16_matches" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg if the 1st leg is 3-1 and the Team 2 is union sportive de la médina d'alger?`:
```sql
                SELECT "2nd_leg" FROM "round_16_matches" WHERE "1st_leg"='3-1' AND "team_2"='union sportive de la médina d''alger';
```
## Task
Generate a SQL query to answer the following question:
`What is Team 2 if the 1st Leg is 3-1 and the 2nd Leg is 4-1?`

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

CREATE TABLE "round_16_matches" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team 2 if the 1st Leg is 3-1 and the 2nd Leg is 4-1?`:
```sql
                SELECT "team_2" FROM "round_16_matches" WHERE "1st_leg"='3-1' AND "2nd_leg"='4-1';
```
## Task
Generate a SQL query to answer the following question:
`What was the broadcaste date for the episode with a run time of 24:44?`

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

CREATE TABLE "serial_details_by_episode" (
  "episode" text,
  "broadcast_date" text,
  "run_time" text,
  "viewers_in_millions" text,
  "archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the broadcaste date for the episode with a run time of 24:44?`:
```sql
                SELECT "broadcast_date" FROM "serial_details_by_episode" WHERE "run_time"='24:44';
```
## Task
Generate a SQL query to answer the following question:
`Which Episode had 9.1 million viewers?`

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

CREATE TABLE "serial_details_by_episode" (
  "episode" text,
  "broadcast_date" text,
  "run_time" text,
  "viewers_in_millions" text,
  "archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Episode had 9.1 million viewers?`:
```sql
                SELECT "episode" FROM "serial_details_by_episode" WHERE "viewers_in_millions"='9.1';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Previous Team (League) is "Kingston Frontenacs ( OHL )", and when Player is "Anthony Stewart Category:Articles with hCards"?`

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

CREATE TABLE "first_round_history" (
  "year" real,
  "pick" text,
  "player" text,
  "position" text,
  "country" text,
  "previous_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Previous Team (League) is "Kingston Frontenacs ( OHL )", and when Player is "Anthony Stewart Category:Articles with hCards"?`:
```sql
                SELECT "country" FROM "first_round_history" WHERE "previous_team_league"='kingston frontenacs ( ohl )' AND "player"='anthony stewart category:articles with hcards';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when Pick is "3", when Position is "Defense", and when Year is less than 2010?`

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

CREATE TABLE "first_round_history" (
  "year" real,
  "pick" text,
  "player" text,
  "position" text,
  "country" text,
  "previous_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Pick is "3", when Position is "Defense", and when Year is less than 2010?`:
```sql
                SELECT "player" FROM "first_round_history" WHERE "pick"='3' AND "position"='defense' AND "year"<2010;
```
## Task
Generate a SQL query to answer the following question:
`What is Position, when Year is less than 2000, and when Player is "Radek Dvorak Category:Articles with hCards"?`

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

CREATE TABLE "first_round_history" (
  "year" real,
  "pick" text,
  "player" text,
  "position" text,
  "country" text,
  "previous_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Position, when Year is less than 2000, and when Player is "Radek Dvorak Category:Articles with hCards"?`:
```sql
                SELECT "position" FROM "first_round_history" WHERE "year"<2000 AND "player"='radek dvorak category:articles with hcards';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when Previous Team (League) is "Medicine Hat Tigers ( WHL )", and when Year is less than 2002?`

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

CREATE TABLE "first_round_history" (
  "year" real,
  "pick" text,
  "player" text,
  "position" text,
  "country" text,
  "previous_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Previous Team (League) is "Medicine Hat Tigers ( WHL )", and when Year is less than 2002?`:
```sql
                SELECT "player" FROM "first_round_history" WHERE "previous_team_league"='medicine hat tigers ( whl )' AND "year"<2002;
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Year is "1994"?`

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

CREATE TABLE "first_round_history" (
  "year" real,
  "pick" text,
  "player" text,
  "position" text,
  "country" text,
  "previous_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Year is "1994"?`:
```sql
                SELECT "country" FROM "first_round_history" WHERE "year"=1994;
```
## Task
Generate a SQL query to answer the following question:
`What episode has 7.8 million viewers?`

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

CREATE TABLE "serial_details_by_episode" (
  "episode" text,
  "broadcast_date" text,
  "run_time" text,
  "viewers_in_millions" text,
  "archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode has 7.8 million viewers?`:
```sql
                SELECT "episode" FROM "serial_details_by_episode" WHERE "viewers_in_millions"='7.8';
```
## Task
Generate a SQL query to answer the following question:
`What episode has a run time of 25:12?`

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

CREATE TABLE "serial_details_by_episode" (
  "episode" text,
  "broadcast_date" text,
  "run_time" text,
  "viewers_in_millions" text,
  "archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode has a run time of 25:12?`:
```sql
                SELECT "episode" FROM "serial_details_by_episode" WHERE "run_time"='25:12';
```
## Task
Generate a SQL query to answer the following question:
`What is the broadcast date with 7.0 million viewers?`

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

CREATE TABLE "serial_details_by_episode" (
  "episode" text,
  "broadcast_date" text,
  "run_time" text,
  "viewers_in_millions" text,
  "archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the broadcast date with 7.0 million viewers?`:
```sql
                SELECT "broadcast_date" FROM "serial_details_by_episode" WHERE "viewers_in_millions"='7.0';
```
## Task
Generate a SQL query to answer the following question:
`What is the average total for Dave Stockton?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total for Dave Stockton?`:
```sql
                SELECT AVG("total") FROM "missed_the_cut" WHERE "player"='dave stockton';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the to par for the United States in the winning year of 1967, and has a total of more than 146?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the to par for the United States in the winning year of 1967, and has a total of more than 146?`:
```sql
                SELECT SUM("to_par") FROM "missed_the_cut" WHERE "country"='united states' AND "year_s_won"='1967' AND "total">146;
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the game in which Arsenal was the away team?`

### 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,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the game in which Arsenal was the away team?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "away_team"='arsenal';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the tie number 15?`

### 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,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the tie number 15?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='15';
```
## Task
Generate a SQL query to answer the following question:
`What Outgoing manager left at his end of tenure as caretaker and was Replaced by Jesper Hansen?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Outgoing manager left at his end of tenure as caretaker and was Replaced by Jesper Hansen?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "manner_of_departure"='end of tenure as caretaker' AND "replaced_by"='jesper hansen';
```
## Task
Generate a SQL query to answer the following question:
`What Team's Pre-Season Manager's manner of departure was the end of tenure as caretaker?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Team's Pre-Season Manager's manner of departure was the end of tenure as caretaker?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "position_in_table"='pre-season' AND "manner_of_departure"='end of tenure as caretaker';
```
## Task
Generate a SQL query to answer the following question:
`What place is Fredrik Jacobson from?`

### 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 `What place is Fredrik Jacobson from?`:
```sql
                SELECT "place" FROM "first_round" WHERE "player"='fredrik jacobson';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par of Tiger Woods, where his score was less than 67, and he was in t1 place?`

### 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 `What is the to par of Tiger Woods, where his score was less than 67, and he was in t1 place?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "score"<67 AND "place"='t1' AND "player"='tiger woods';
```
## Task
Generate a SQL query to answer the following question:
`What place is player Brad Faxon from?`

### 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 `What place is player Brad Faxon from?`:
```sql
                SELECT "place" FROM "first_round" WHERE "player"='brad faxon';
```
## Task
Generate a SQL query to answer the following question:
`What is Sweden's lowest score?`

### 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 `What is Sweden's lowest score?`:
```sql
                SELECT MIN("score") FROM "first_round" WHERE "country"='sweden';
```
## Task
Generate a SQL query to answer the following question:
`Which Sub-Parish (Sogn) was built after 1894 in the Parish (Prestegjeld) of jostedal parish?`

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

CREATE TABLE "churches_in_luster" (
  "parish_prestegjeld" text,
  "sub_parish_sogn" text,
  "church_name" text,
  "year_built" real,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sub-Parish (Sogn) was built after 1894 in the Parish (Prestegjeld) of jostedal parish?`:
```sql
                SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "year_built">1894 AND "parish_prestegjeld"='jostedal parish';
```
## Task
Generate a SQL query to answer the following question:
`Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and has a church called Hafslo Kyrkje?`

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

CREATE TABLE "churches_in_luster" (
  "parish_prestegjeld" text,
  "sub_parish_sogn" text,
  "church_name" text,
  "year_built" real,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and has a church called Hafslo Kyrkje?`:
```sql
                SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "parish_prestegjeld"='hafslo parish' AND "church_name"='hafslo kyrkje';
```
## Task
Generate a SQL query to answer the following question:
`Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and is located in the Church of Urnes?`

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

CREATE TABLE "churches_in_luster" (
  "parish_prestegjeld" text,
  "sub_parish_sogn" text,
  "church_name" text,
  "year_built" real,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and is located in the Church of Urnes?`:
```sql
                SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "parish_prestegjeld"='hafslo parish' AND "location_of_the_church"='urnes';
```
## Task
Generate a SQL query to answer the following question:
`Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne?`

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

CREATE TABLE "churches_in_luster" (
  "parish_prestegjeld" text,
  "sub_parish_sogn" text,
  "church_name" text,
  "year_built" real,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne?`:
```sql
                SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "year_built"<1883 AND "parish_prestegjeld"='jostedal parish' AND "location_of_the_church"='gaupne';
```
## Task
Generate a SQL query to answer the following question:
`Which Sub-Parish (Sogn) has a church named Jostedal Kyrkje?`

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

CREATE TABLE "churches_in_luster" (
  "parish_prestegjeld" text,
  "sub_parish_sogn" text,
  "church_name" text,
  "year_built" real,
  "location_of_the_church" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sub-Parish (Sogn) has a church named Jostedal Kyrkje?`:
```sql
                SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "church_name"='jostedal kyrkje';
```
## Task
Generate a SQL query to answer the following question:
`What's the national title of miss international ikumi yoshimatsu?`

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

CREATE TABLE "titleholders" (
  "year" real,
  "country_territory" text,
  "miss_international" text,
  "national_title" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the national title of miss international ikumi yoshimatsu?`:
```sql
                SELECT "national_title" FROM "titleholders" WHERE "miss_international"='ikumi yoshimatsu';
```
## Task
Generate a SQL query to answer the following question:
`What's the earliest year the philippines won?`

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

CREATE TABLE "titleholders" (
  "year" real,
  "country_territory" text,
  "miss_international" text,
  "national_title" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the earliest year the philippines won?`:
```sql
                SELECT MIN("year") FROM "titleholders" WHERE "country_territory"='philippines';
```
## Task
Generate a SQL query to answer the following question:
`What's the average year lebanon won?`

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

CREATE TABLE "titleholders" (
  "year" real,
  "country_territory" text,
  "miss_international" text,
  "national_title" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average year lebanon won?`:
```sql
                SELECT AVG("year") FROM "titleholders" WHERE "country_territory"='lebanon';
```
## Task
Generate a SQL query to answer the following question:
`What country or territory is małgorzata rożniecka from?`

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

CREATE TABLE "titleholders" (
  "year" real,
  "country_territory" text,
  "miss_international" text,
  "national_title" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country or territory is małgorzata rożniecka from?`:
```sql
                SELECT "country_territory" FROM "titleholders" WHERE "miss_international"='małgorzata rożniecka';
```
## Task
Generate a SQL query to answer the following question:
`Which team had a league of regionalliga süd?`

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

CREATE TABLE "bc_augsburg_versus_tsv_schwaben_augsburg" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had a league of regionalliga süd?`:
```sql
                SELECT "teams" FROM "bc_augsburg_versus_tsv_schwaben_augsburg" WHERE "league"='regionalliga süd';
```
## Task
Generate a SQL query to answer the following question:
`What was the home for season 1949-50?`

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

CREATE TABLE "bc_augsburg_versus_tsv_schwaben_augsburg" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the home for season 1949-50?`:
```sql
                SELECT "home" FROM "bc_augsburg_versus_tsv_schwaben_augsburg" WHERE "season"='1949-50';
```
## Task
Generate a SQL query to answer the following question:
`Which season had a home 2-3?`

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

CREATE TABLE "bc_augsburg_versus_tsv_schwaben_augsburg" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season had a home 2-3?`:
```sql
                SELECT "season" FROM "bc_augsburg_versus_tsv_schwaben_augsburg" WHERE "home"='2-3';
```
## Task
Generate a SQL query to answer the following question:
`Which team had a season 1954-55?`

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

CREATE TABLE "bc_augsburg_versus_tsv_schwaben_augsburg" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had a season 1954-55?`:
```sql
                SELECT "teams" FROM "bc_augsburg_versus_tsv_schwaben_augsburg" WHERE "season"='1954-55';
```
## Task
Generate a SQL query to answer the following question:
`What season has an away 2-0?`

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

CREATE TABLE "bc_augsburg_versus_tsv_schwaben_augsburg" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season has an away 2-0?`:
```sql
                SELECT "season" FROM "bc_augsburg_versus_tsv_schwaben_augsburg" WHERE "away"='2-0';
```
## Task
Generate a SQL query to answer the following question:
`What team has a home of 2-3?`

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

CREATE TABLE "bc_augsburg_versus_tsv_schwaben_augsburg" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team has a home of 2-3?`:
```sql
                SELECT "teams" FROM "bc_augsburg_versus_tsv_schwaben_augsburg" WHERE "home"='2-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the total that wehn Lithuania is the nation, and Silver is more than 0?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total that wehn Lithuania is the nation, and Silver is more than 0?`:
```sql
                SELECT MIN("total") FROM "medals_table" WHERE "nation"='lithuania' AND "silver">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank when bronze was more than 0, gold more than 1, Nation is japan, and silver less than 0?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank when bronze was more than 0, gold more than 1, Nation is japan, and silver less than 0?`:
```sql
                SELECT AVG("rank") FROM "medals_table" WHERE "bronze">0 AND "gold">1 AND "nation"='japan' AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank when the total is less than 1?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank when the total is less than 1?`:
```sql
                SELECT MIN("rank") FROM "medals_table" WHERE "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total when silver is more than 0, and bronze less than 0?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total when silver is more than 0, and bronze less than 0?`:
```sql
                SELECT MAX("total") FROM "medals_table" WHERE "silver">0 AND "bronze"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank that when Serbia is the nation, and gold is larger than 0?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank that when Serbia is the nation, and gold is larger than 0?`:
```sql
                SELECT SUM("rank") FROM "medals_table" WHERE "nation"='serbia' AND "gold">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Year(s) won has a To par smaller than 12, and a Player of john daly?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year(s) won has a To par smaller than 12, and a Player of john daly?`:
```sql
                SELECT "year_s_won" FROM "missed_the_cut" WHERE "to_par"<12 AND "player"='john daly';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a To par of 12, and a Country of fiji?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a To par of 12, and a Country of fiji?`:
```sql
                SELECT "player" FROM "missed_the_cut" WHERE "to_par"=12 AND "country"='fiji';
```
## Task
Generate a SQL query to answer the following question:
`Which Total has a To par larger than 12?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a To par larger than 12?`:
```sql
                SELECT MIN("total") FROM "missed_the_cut" WHERE "to_par">12;
```
## Task
Generate a SQL query to answer the following question:
`How much To par has a Total larger than 149, and a Country of united states, and a Year(s) won of 1997?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much To par has a Total larger than 149, and a Country of united states, and a Year(s) won of 1997?`:
```sql
                SELECT SUM("to_par") FROM "missed_the_cut" WHERE "total">149 AND "country"='united states' AND "year_s_won"='1997';
```
## Task
Generate a SQL query to answer the following question:
`Which Network has a Rank larger than 5, a Show of 2012 summer olympics closing ceremony in london?`

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

CREATE TABLE "list_of_most_watched_television_broadcas" (
  "rank" real,
  "show" text,
  "number_of_viewers" text,
  "date" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Network has a Rank larger than 5, a Show of 2012 summer olympics closing ceremony in london?`:
```sql
                SELECT "network" FROM "list_of_most_watched_television_broadcas" WHERE "rank">5 AND "show"='2012 summer olympics closing ceremony in london';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2`

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

CREATE TABLE "list_of_most_watched_television_broadcas" (
  "rank" real,
  "show" text,
  "number_of_viewers" text,
  "date" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2`:
```sql
                SELECT SUM("rank") FROM "list_of_most_watched_television_broadcas" WHERE "network"='bbc one' AND "number_of_viewers"='30.15million';
```
## Task
Generate a SQL query to answer the following question:
`When has a Rank larger than 2 and a Network of itv?`

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

CREATE TABLE "list_of_most_watched_television_broadcas" (
  "rank" real,
  "show" text,
  "number_of_viewers" text,
  "date" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Rank larger than 2 and a Network of itv?`:
```sql
                SELECT "date" FROM "list_of_most_watched_television_broadcas" WHERE "rank">2 AND "network"='itv';
```
## Task
Generate a SQL query to answer the following question:
`What is the Term of office for Leonard Reynolds of NSW?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_of_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Term of office for Leonard Reynolds of NSW?`:
```sql
                SELECT "term_of_office" FROM "see_also" WHERE "state"='nsw' AND "member"='leonard reynolds';
```