cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0?`

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

CREATE TABLE "appearances_through_the_2011_12_season" (
  "seasons" real,
  "team" text,
  "ch_wins" real,
  "promotions" real,
  "relegations" real
);
### SQL
Given the database schema, here is the SQL query that answers `Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0?`:
```sql
                SELECT MAX("promotions") FROM "appearances_through_the_2011_12_season" WHERE "team"='pallacanestro messina' AND "relegations">0;
```
## Task
Generate a SQL query to answer the following question:
`What are the lowest points with a Chassis of zakspeed 841, and a Year smaller than 1985?`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "chassis" text,
  "engine_s" text,
  "tyres" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lowest points with a Chassis of zakspeed 841, and a Year smaller than 1985?`:
```sql
                SELECT MIN("points") FROM "complete_world_championship_formula_one_" WHERE "chassis"='zakspeed 841' AND "year"<1985;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest year with tyres in g and less than 0 points?`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "chassis" text,
  "engine_s" text,
  "tyres" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest year with tyres in g and less than 0 points?`:
```sql
                SELECT MIN("year") FROM "complete_world_championship_formula_one_" WHERE "tyres"='g' AND "points"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which year has an Engine(s) of yamaha v8?`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "chassis" text,
  "engine_s" text,
  "tyres" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which year has an Engine(s) of yamaha v8?`:
```sql
                SELECT "year" FROM "complete_world_championship_formula_one_" WHERE "engine_s"='yamaha v8';
```
## Task
Generate a SQL query to answer the following question:
`What are the average points with a Chassis of zakspeed 881?`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "chassis" text,
  "engine_s" text,
  "tyres" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average points with a Chassis of zakspeed 881?`:
```sql
                SELECT AVG("points") FROM "complete_world_championship_formula_one_" WHERE "chassis"='zakspeed 881';
```
## Task
Generate a SQL query to answer the following question:
`Which League has a Venue of martin luther king, jr. recreation center?`

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

CREATE TABLE "minor_sports_teams" (
  "club" text,
  "sport" text,
  "league" text,
  "venue" text,
  "championships_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which League has a Venue of martin luther king, jr. recreation center?`:
```sql
                SELECT "league" FROM "minor_sports_teams" WHERE "venue"='martin luther king, jr. recreation center';
```
## Task
Generate a SQL query to answer the following question:
`Which Championships (Years) have a League of milb, florida state league, and a Venue of ed smith stadium?`

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

CREATE TABLE "minor_sports_teams" (
  "club" text,
  "sport" text,
  "league" text,
  "venue" text,
  "championships_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Championships (Years) have a League of milb, florida state league, and a Venue of ed smith stadium?`:
```sql
                SELECT "championships_years" FROM "minor_sports_teams" WHERE "league"='milb, florida state league' AND "venue"='ed smith stadium';
```
## Task
Generate a SQL query to answer the following question:
`Which Sport has a League of continental basketball league, and a Venue of avalon middle school?`

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

CREATE TABLE "minor_sports_teams" (
  "club" text,
  "sport" text,
  "league" text,
  "venue" text,
  "championships_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Sport has a League of continental basketball league, and a Venue of avalon middle school?`:
```sql
                SELECT "sport" FROM "minor_sports_teams" WHERE "league"='continental basketball league' AND "venue"='avalon middle school';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has a Sport of baseball, Championships (Years) of 0, a League of milb, florida state league, and a Club of jupiter hammerheads?`

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

CREATE TABLE "minor_sports_teams" (
  "club" text,
  "sport" text,
  "league" text,
  "venue" text,
  "championships_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has a Sport of baseball, Championships (Years) of 0, a League of milb, florida state league, and a Club of jupiter hammerheads?`:
```sql
                SELECT "venue" FROM "minor_sports_teams" WHERE "sport"='baseball' AND "championships_years"='0' AND "league"='milb, florida state league' AND "club"='jupiter hammerheads';
```
## Task
Generate a SQL query to answer the following question:
`Which club has a League of american basketball association, and a Venue of tba?`

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

CREATE TABLE "minor_sports_teams" (
  "club" text,
  "sport" text,
  "league" text,
  "venue" text,
  "championships_years" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club has a League of american basketball association, and a Venue of tba?`:
```sql
                SELECT "club" FROM "minor_sports_teams" WHERE "league"='american basketball association' AND "venue"='tba';
```
## Task
Generate a SQL query to answer the following question:
`Which area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school?`

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

CREATE TABLE "hurunui_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school?`:
```sql
                SELECT "area" FROM "hurunui_district" WHERE "years"='1–8' AND "decile"<7 AND "name"='waikari school';
```
## Task
Generate a SQL query to answer the following question:
`What is the average decile with Years of 1–8, and an Area of waipara?`

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

CREATE TABLE "hurunui_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average decile with Years of 1–8, and an Area of waipara?`:
```sql
                SELECT AVG("decile") FROM "hurunui_district" WHERE "years"='1–8' AND "area"='waipara';
```
## Task
Generate a SQL query to answer the following question:
`Which area has Years of 1–8, and a Name of broomfield school?`

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

CREATE TABLE "hurunui_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which area has Years of 1–8, and a Name of broomfield school?`:
```sql
                SELECT "area" FROM "hurunui_district" WHERE "years"='1–8' AND "name"='broomfield school';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest roll with a Decile larger than 6, and a Name of broomfield school?`

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

CREATE TABLE "hurunui_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest roll with a Decile larger than 6, and a Name of broomfield school?`:
```sql
                SELECT MIN("roll") FROM "hurunui_district" WHERE "decile">6 AND "name"='broomfield school';
```
## Task
Generate a SQL query to answer the following question:
`Which name has a Roll of 270?`

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

CREATE TABLE "hurunui_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which name has a Roll of 270?`:
```sql
                SELECT "name" FROM "hurunui_district" WHERE "roll"=270;
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode written by Dan Serafin and aired on July 23, 2008?`

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

CREATE TABLE "season_1_2007_2009" (
  "prod_no" text,
  "title" text,
  "written_by" text,
  "directed_by" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode written by Dan Serafin and aired on July 23, 2008?`:
```sql
                SELECT "directed_by" FROM "season_1_2007_2009" WHERE "written_by"='dan serafin' AND "original_airdate"='july 23, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode originally aired on February 2, 2008?`

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

CREATE TABLE "season_1_2007_2009" (
  "prod_no" text,
  "title" text,
  "written_by" text,
  "directed_by" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode originally aired on February 2, 2008?`:
```sql
                SELECT "title" FROM "season_1_2007_2009" WHERE "original_airdate"='february 2, 2008';
```
## Task
Generate a SQL query to answer the following question:
`How much money did James Seddon request?`

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

CREATE TABLE "series_3" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much money did James Seddon request?`:
```sql
                SELECT "money_requested" FROM "series_3" WHERE "entrepreneur_s"='james seddon';
```
## Task
Generate a SQL query to answer the following question:
`Which Entrepreneur(s) first aired on 24 August 2006?`

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

CREATE TABLE "series_3" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Entrepreneur(s) first aired on 24 August 2006?`:
```sql
                SELECT "entrepreneur_s" FROM "series_3" WHERE "first_aired"='24 august 2006';
```
## Task
Generate a SQL query to answer the following question:
`Which Entrepreneur(s) have mixalbum?`

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

CREATE TABLE "series_3" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Entrepreneur(s) have mixalbum?`:
```sql
                SELECT "entrepreneur_s" FROM "series_3" WHERE "company_or_product_name"='mixalbum';
```
## Task
Generate a SQL query to answer the following question:
`How much money did Ian Chamings request?`

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

CREATE TABLE "series_3" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much money did Ian Chamings request?`:
```sql
                SELECT "money_requested" FROM "series_3" WHERE "entrepreneur_s"='ian chamings';
```
## Task
Generate a SQL query to answer the following question:
`Which Investing Dragon(s) requested 100,000 in money and has autosafe?`

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

CREATE TABLE "series_3" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Investing Dragon(s) requested 100,000 in money and has autosafe?`:
```sql
                SELECT "investing_dragon_s" FROM "series_3" WHERE "money_requested"='100,000' AND "company_or_product_name"='autosafe';
```
## Task
Generate a SQL query to answer the following question:
`How tall is the Anqing Bridge which opened prior to 2011?`

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

CREATE TABLE "completed" (
  "name" text,
  "height_of_bridge_structure" text,
  "longest_span" text,
  "type" text,
  "opened" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is the Anqing Bridge which opened prior to 2011?`:
```sql
                SELECT "height_of_bridge_structure" FROM "completed" WHERE "opened"<2011 AND "name"='anqing bridge';
```
## Task
Generate a SQL query to answer the following question:
`Where did the cable-stayed Badong Bridge  open in 2005?`

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

CREATE TABLE "completed" (
  "name" text,
  "height_of_bridge_structure" text,
  "longest_span" text,
  "type" text,
  "opened" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the cable-stayed Badong Bridge  open in 2005?`:
```sql
                SELECT "location" FROM "completed" WHERE "type"='cable-stayed' AND "opened"=2005 AND "name"='badong bridge';
```
## Task
Generate a SQL query to answer the following question:
`Name the average year for janaprakal chandruang`

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

CREATE TABLE "list_of_silpathorn_award_winners" (
  "year" real,
  "literature" text,
  "music" text,
  "film" text,
  "performing_arts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average year for janaprakal chandruang`:
```sql
                SELECT AVG("year") FROM "list_of_silpathorn_award_winners" WHERE "performing_arts"='janaprakal chandruang';
```
## Task
Generate a SQL query to answer the following question:
`Name the literature for pradit prasarttong`

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

CREATE TABLE "list_of_silpathorn_award_winners" (
  "year" real,
  "literature" text,
  "music" text,
  "film" text,
  "performing_arts" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the literature for pradit prasarttong`:
```sql
                SELECT "literature" FROM "list_of_silpathorn_award_winners" WHERE "performing_arts"='pradit prasarttong';
```
## Task
Generate a SQL query to answer the following question:
`What was the first year Fabrice Soulier was a runner-up?`

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

CREATE TABLE "main_event_winners" (
  "year" real,
  "winner" text,
  "winning_hand" text,
  "prize_money" text,
  "entrants" real,
  "runner_up" text,
  "losing_hand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the first year Fabrice Soulier was a runner-up?`:
```sql
                SELECT MIN("year") FROM "main_event_winners" WHERE "runner_up"='fabrice soulier';
```
## Task
Generate a SQL query to answer the following question:
`How many entrants were there in 2011?`

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

CREATE TABLE "main_event_winners" (
  "year" real,
  "winner" text,
  "winning_hand" text,
  "prize_money" text,
  "entrants" real,
  "runner_up" text,
  "losing_hand" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entrants were there in 2011?`:
```sql
                SELECT COUNT("entrants") FROM "main_event_winners" WHERE "year"=2011;
```
## Task
Generate a SQL query to answer the following question:
`What was the rank of Bobby Grim when he finished 1059 laps?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of Bobby Grim when he finished 1059 laps?`:
```sql
                SELECT "rank" FROM "indy_500_results" WHERE "laps"=1059;
```
## Task
Generate a SQL query to answer the following question:
`What is the rd., time of the match with a win result, a tko type, and Carlos Molina as the opponent?`

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

CREATE TABLE "professional_boxing_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "type" text,
  "rd_time" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rd., time of the match with a win result, a tko type, and Carlos Molina as the opponent?`:
```sql
                SELECT "rd_time" FROM "professional_boxing_record" WHERE "res"='win' AND "type"='tko' AND "opponent"='carlos molina';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the match on 2009-07-18?`

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

CREATE TABLE "professional_boxing_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "type" text,
  "rd_time" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the match on 2009-07-18?`:
```sql
                SELECT "record" FROM "professional_boxing_record" WHERE "date"='2009-07-18';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of the match with a win result and Michael Gomez as the opponent?`

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

CREATE TABLE "professional_boxing_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "type" text,
  "rd_time" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of the match with a win result and Michael Gomez as the opponent?`:
```sql
                SELECT "type" FROM "professional_boxing_record" WHERE "res"='win' AND "opponent"='michael gomez';
```
## Task
Generate a SQL query to answer the following question:
`What were the goals when the caps were set at 48?`

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

CREATE TABLE "internationally_capped_players" (
  "player" text,
  "country" text,
  "caps" real,
  "goals" text,
  "years_active" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the goals when the caps were set at 48?`:
```sql
                SELECT "goals" FROM "internationally_capped_players" WHERE "caps"=48;
```
## Task
Generate a SQL query to answer the following question:
`How many caps did the player Mile Sterjovski have?`

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

CREATE TABLE "internationally_capped_players" (
  "player" text,
  "country" text,
  "caps" real,
  "goals" text,
  "years_active" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many caps did the player Mile Sterjovski have?`:
```sql
                SELECT "caps" FROM "internationally_capped_players" WHERE "player"='mile sterjovski';
```
## Task
Generate a SQL query to answer the following question:
`What are the goals of Mile Sterjovski as a player?`

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

CREATE TABLE "internationally_capped_players" (
  "player" text,
  "country" text,
  "caps" real,
  "goals" text,
  "years_active" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the goals of Mile Sterjovski as a player?`:
```sql
                SELECT "goals" FROM "internationally_capped_players" WHERE "player"='mile sterjovski';
```
## Task
Generate a SQL query to answer the following question:
`How many caps did Mitchell Duke have overall?`

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

CREATE TABLE "internationally_capped_players" (
  "player" text,
  "country" text,
  "caps" real,
  "goals" text,
  "years_active" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many caps did Mitchell Duke have overall?`:
```sql
                SELECT COUNT("caps") FROM "internationally_capped_players" WHERE "player"='mitchell duke';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has a Date of 16 february 2003?`

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

CREATE TABLE "fa_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a Date of 16 february 2003?`:
```sql
                SELECT "opponent" FROM "fa_cup" WHERE "date"='16 february 2003';
```
## Task
Generate a SQL query to answer the following question:
`Which date has an A venue with an Opponent of stoke city?`

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

CREATE TABLE "fa_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has an A venue with an Opponent of stoke city?`:
```sql
                SELECT "date" FROM "fa_cup" WHERE "venue"='a' AND "opponent"='stoke city';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has a Round of r5?`

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

CREATE TABLE "fa_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a Round of r5?`:
```sql
                SELECT "opponent" FROM "fa_cup" WHERE "round"='r5';
```
## Task
Generate a SQL query to answer the following question:
`Which Scorers have a Venue of A, and an Opponent of arsenal?`

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

CREATE TABLE "fa_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Scorers have a Venue of A, and an Opponent of arsenal?`:
```sql
                SELECT "scorers" FROM "fa_cup" WHERE "venue"='a' AND "opponent"='arsenal';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Round of qf replay?`

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

CREATE TABLE "fa_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Round of qf replay?`:
```sql
                SELECT "opponent" FROM "fa_cup" WHERE "round"='qf replay';
```
## Task
Generate a SQL query to answer the following question:
`Who took the loss on the April 6 game?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who took the loss on the April 6 game?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "date"='april 6';
```
## Task
Generate a SQL query to answer the following question:
`What was the record after the April 15 game?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record after the April 15 game?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='april 15';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent that led to a 10-13 record?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent that led to a 10-13 record?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='10-13';
```
## Task
Generate a SQL query to answer the following question:
`What is the record after the April 6 game?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record after the April 6 game?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='april 6';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the April 12 game?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the April 12 game?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='april 12';
```
## Task
Generate a SQL query to answer the following question:
`What team has the most wins with at least 18 goals and less than 5 losses?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team has the most wins with at least 18 goals and less than 5 losses?`:
```sql
                SELECT MAX("wins") FROM "final_standing" WHERE "goals_for"=18 AND "losses"<5;
```
## Task
Generate a SQL query to answer the following question:
`How many times has the Cornwall HC team, that has scored more than 18 goals, lost ?`

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

CREATE TABLE "final_standing" (
  "team" text,
  "games_played" real,
  "wins" real,
  "losses" real,
  "ties" real,
  "goals_for" real,
  "goals_against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times has the Cornwall HC team, that has scored more than 18 goals, lost ?`:
```sql
                SELECT COUNT("losses") FROM "final_standing" WHERE "team"='cornwall hc' AND "goals_for">18;
```
## Task
Generate a SQL query to answer the following question:
`What is the series number that has a production code of 50021–50025?`

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

CREATE TABLE "season_5_1992" (
  "number_in_series" real,
  "number_in_season" real,
  "title" text,
  "directed_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series number that has a production code of 50021–50025?`:
```sql
                SELECT MAX("number_in_series") FROM "season_5_1992" WHERE "production_code"='50021–50025';
```
## Task
Generate a SQL query to answer the following question:
`Which county team has jimmy finn as the player?`

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

CREATE TABLE "references" (
  "position" text,
  "player" text,
  "county_team" text,
  "club_team_s" text,
  "team_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which county team has jimmy finn as the player?`:
```sql
                SELECT "county_team" FROM "references" WHERE "player"='jimmy finn';
```
## Task
Generate a SQL query to answer the following question:
`How many team numbers have john keane as the player?`

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

CREATE TABLE "references" (
  "position" text,
  "player" text,
  "county_team" text,
  "club_team_s" text,
  "team_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many team numbers have john keane as the player?`:
```sql
                SELECT COUNT("team_number") FROM "references" WHERE "player"='john keane';
```
## Task
Generate a SQL query to answer the following question:
`Which position has john keane as the player?`

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

CREATE TABLE "references" (
  "position" text,
  "player" text,
  "county_team" text,
  "club_team_s" text,
  "team_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has john keane as the player?`:
```sql
                SELECT "position" FROM "references" WHERE "player"='john keane';
```
## Task
Generate a SQL query to answer the following question:
`What was the loss of the game when the record was 27-17?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loss of the game when the record was 27-17?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='27-17';
```
## Task
Generate a SQL query to answer the following question:
`Which average purse was earned by Erika Wicoff and has a winner's share greater than $9,750?`

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

CREATE TABLE "winners" (
  "year" text,
  "champion" text,
  "country" text,
  "score" text,
  "purse" real,
  "winner_s_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which average purse was earned by Erika Wicoff and has a winner's share greater than $9,750?`:
```sql
                SELECT AVG("purse") FROM "winners" WHERE "champion"='erika wicoff' AND "winner_s_share">'9,750';
```
## Task
Generate a SQL query to answer the following question:
`What are the smallest goals with wins smaller than 16, and a Draws larger than 14?`

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

CREATE TABLE "group_b_relegation" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the smallest goals with wins smaller than 16, and a Draws larger than 14?`:
```sql
                SELECT MIN("goals_against") FROM "group_b_relegation" WHERE "wins"<16 AND "draws">14;
```
## Task
Generate a SQL query to answer the following question:
`What are the average wins with a Points of 42-2, and Goals against of 67, and Played smaller than 44?`

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

CREATE TABLE "group_b_relegation" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average wins with a Points of 42-2, and Goals against of 67, and Played smaller than 44?`:
```sql
                SELECT AVG("wins") FROM "group_b_relegation" WHERE "points"='42-2' AND "goals_against"=67 AND "played"<44;
```
## Task
Generate a SQL query to answer the following question:
`Which average wins have a Club of barcelona atlètic, and Goals for larger than 56?`

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

CREATE TABLE "group_b_relegation" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which average wins have a Club of barcelona atlètic, and Goals for larger than 56?`:
```sql
                SELECT AVG("wins") FROM "group_b_relegation" WHERE "club"='barcelona atlètic' AND "goals_for">56;
```
## Task
Generate a SQL query to answer the following question:
`Which lowest position has goals against smaller than 78, Points of 42-2, and Wins larger than 15?`

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

CREATE TABLE "group_b_relegation" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which lowest position has goals against smaller than 78, Points of 42-2, and Wins larger than 15?`:
```sql
                SELECT MIN("position") FROM "group_b_relegation" WHERE "goals_against"<78 AND "points"='42-2' AND "wins">15;
```
## Task
Generate a SQL query to answer the following question:
`Which lowest played has a Position of 2, and Goals against larger than 53?`

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

CREATE TABLE "group_b_relegation" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which lowest played has a Position of 2, and Goals against larger than 53?`:
```sql
                SELECT MIN("played") FROM "group_b_relegation" WHERE "position"=2 AND "goals_against">53;
```
## Task
Generate a SQL query to answer the following question:
`How many goal differences have Played larger than 44?`

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

CREATE TABLE "group_b_relegation" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goal differences have Played larger than 44?`:
```sql
                SELECT SUM("goal_difference") FROM "group_b_relegation" WHERE "played">44;
```
## Task
Generate a SQL query to answer the following question:
`What year was the race in Vienna, Austria?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the race in Vienna, Austria?`:
```sql
                SELECT MIN("year") FROM "achievements" WHERE "venue"='vienna, austria';
```
## Task
Generate a SQL query to answer the following question:
`What event (Extra) in 2002 did the competitor compete in and place 8th?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event (Extra) in 2002 did the competitor compete in and place 8th?`:
```sql
                SELECT "extra" FROM "achievements" WHERE "year"=2002 AND "result"='8th';
```
## Task
Generate a SQL query to answer the following question:
`Where was the Olympic Games held?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the Olympic Games held?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "tournament"='olympic games';
```
## Task
Generate a SQL query to answer the following question:
`That is the value for Try bonus when the value for Points is 418?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `That is the value for Try bonus when the value for Points is 418?`:
```sql
                SELECT "try_bonus" FROM "2009_2010_table" WHERE "points_for"='418';
```
## Task
Generate a SQL query to answer the following question:
`What is the Club, when the value for Played is 22, and when the value for Tries is 41?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Club, when the value for Played is 22, and when the value for Tries is 41?`:
```sql
                SELECT "club" FROM "2009_2010_table" WHERE "played"='22' AND "tries_for"='41';
```
## Task
Generate a SQL query to answer the following question:
`What is the value for Drawn, when the value for Losing bonus is 6?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value for Drawn, when the value for Losing bonus is 6?`:
```sql
                SELECT "drawn" FROM "2009_2010_table" WHERE "losing_bonus"='6';
```
## Task
Generate a SQL query to answer the following question:
`What is the value for Lost, when the value for Try bonus is 2, and when the value for Losing bonus is 4?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value for Lost, when the value for Try bonus is 2, and when the value for Losing bonus is 4?`:
```sql
                SELECT "lost" FROM "2009_2010_table" WHERE "try_bonus"='2' AND "losing_bonus"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is the Losing bonus, when the value for Points is 43?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Losing bonus, when the value for Points is 43?`:
```sql
                SELECT "losing_bonus" FROM "2009_2010_table" WHERE "points"='43';
```
## Task
Generate a SQL query to answer the following question:
`What is the Club, when the value for Lost is 9, and when the value for Tries is 55?`

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

CREATE TABLE "2009_2010_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Club, when the value for Lost is 9, and when the value for Tries is 55?`:
```sql
                SELECT "club" FROM "2009_2010_table" WHERE "lost"='9' AND "tries_for"='55';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest draw with 37 games from England?`

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

CREATE TABLE "managers_since_1970" (
  "nationality" text,
  "cambridge_united_career" text,
  "games" real,
  "drawn" real,
  "lost" real,
  "pct_won" text,
  "pts_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest draw with 37 games from England?`:
```sql
                SELECT MAX("drawn") FROM "managers_since_1970" WHERE "nationality"='england' AND "games"=37;
```
## Task
Generate a SQL query to answer the following question:
`How many draws have a Cambridge United career of 2008–2009 and less than 13 losses?`

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

CREATE TABLE "managers_since_1970" (
  "nationality" text,
  "cambridge_united_career" text,
  "games" real,
  "drawn" real,
  "lost" real,
  "pct_won" text,
  "pts_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws have a Cambridge United career of 2008–2009 and less than 13 losses?`:
```sql
                SELECT COUNT("drawn") FROM "managers_since_1970" WHERE "cambridge_united_career"='2008–2009' AND "lost"<13;
```
## Task
Generate a SQL query to answer the following question:
`What was the record at the game when the score was 1–0?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record at the game when the score was 1–0?`:
```sql
                SELECT "record" FROM "game_log" WHERE "score"='1–0';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the record was 19–13–3?`

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

CREATE TABLE "game_log" (
  "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 the record was 19–13–3?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='19–13–3';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team when the score was 1–3?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team when the score was 1–3?`:
```sql
                SELECT "visitor" FROM "game_log" WHERE "score"='1–3';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when there was a record of 20–13–3?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team when there was a record of 20–13–3?`:
```sql
                SELECT "home" FROM "game_log" WHERE "record"='20–13–3';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game with the record of 18–10–2?`

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

CREATE TABLE "game_log" (
  "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 date of the game with the record of 18–10–2?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='18–10–2';
```
## Task
Generate a SQL query to answer the following question:
`Visitor of minnesota has what average attendance?`

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

CREATE TABLE "december" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Visitor of minnesota has what average attendance?`:
```sql
                SELECT AVG("attendance") FROM "december" WHERE "visitor"='minnesota';
```