cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the record was 32–19–7?`

### 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 32–19–7?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='32–19–7';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game when the record was 9–5–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 when the record was 9–5–2?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='9–5–2';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when the record was 36–21–8?`

### 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 the record was 36–21–8?`:
```sql
                SELECT "home" FROM "game_log" WHERE "record"='36–21–8';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game when the Calgary Flames were the visiting team and there was a record of 1–2–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 date of the game when the Calgary Flames were the visiting team and there was a record of 1–2–0?`:
```sql
                SELECT "date" FROM "game_log" WHERE "visitor"='calgary flames' AND "record"='1–2–0';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when the record was 27–14–6?`

### 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 the record was 27–14–6?`:
```sql
                SELECT "home" FROM "game_log" WHERE "record"='27–14–6';
```
## Task
Generate a SQL query to answer the following question:
`What was the lifespan of Representative Harry P. O'neill from the state of Pennsylvania?`

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

CREATE TABLE "external_links" (
  "representative" text,
  "years" text,
  "state" text,
  "party" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lifespan of Representative Harry P. O'neill from the state of Pennsylvania?`:
```sql
                SELECT "lifespan" FROM "external_links" WHERE "state"='pennsylvania' AND "representative"='harry p. o''neill';
```
## Task
Generate a SQL query to answer the following question:
`What years did Representative Frank A. Oliver serve?`

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

CREATE TABLE "external_links" (
  "representative" text,
  "years" text,
  "state" text,
  "party" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years did Representative Frank A. Oliver serve?`:
```sql
                SELECT "years" FROM "external_links" WHERE "representative"='frank a. oliver';
```
## Task
Generate a SQL query to answer the following question:
`Name the record for october 11`

### 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,
  "time" text,
  "att" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for october 11`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='october 11';
```
## Task
Generate a SQL query to answer the following question:
`Name the score with record of 68-66`

### 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 `Name the score with record of 68-66`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='68-66';
```
## Task
Generate a SQL query to answer the following question:
`Name the record for august 28`

### 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 `Name the record for august 28`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='august 28';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for Leo Diegel?`

### 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 was the score for Leo Diegel?`:
```sql
                SELECT "score" FROM "first_round" WHERE "player"='leo diegel';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player with a To par of –4?`

### 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 name of the player with a To par of –4?`:
```sql
                SELECT "player" FROM "first_round" WHERE "to_par"='–4';
```
## Task
Generate a SQL query to answer the following question:
`What was the surface for the game that was played with partner Tiya Rolle?`

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

CREATE TABLE "doubles_20_10_10" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface for the game that was played with partner Tiya Rolle?`:
```sql
                SELECT "surface" FROM "doubles_20_10_10" WHERE "partner"='tiya rolle';
```
## Task
Generate a SQL query to answer the following question:
`What is the final score for the game played on January 10, 2011 with partner Mashona Washington?`

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

CREATE TABLE "doubles_20_10_10" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final score for the game played on January 10, 2011 with partner Mashona Washington?`:
```sql
                SELECT "score" FROM "doubles_20_10_10" WHERE "partner"='mashona washington' AND "date"='january 10, 2011';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome for the game that was played on 07-Jun-2010?`

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

CREATE TABLE "doubles_20_10_10" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome for the game that was played on 07-Jun-2010?`:
```sql
                SELECT "outcome" FROM "doubles_20_10_10" WHERE "date"='07-jun-2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the game that was played on 29-Jun-2009?`

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

CREATE TABLE "doubles_20_10_10" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the game that was played on 29-Jun-2009?`:
```sql
                SELECT "score" FROM "doubles_20_10_10" WHERE "date"='29-jun-2009';
```
## Task
Generate a SQL query to answer the following question:
`What was the surface for the game that was played on 12-Apr-2005?`

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

CREATE TABLE "doubles_20_10_10" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface for the game that was played on 12-Apr-2005?`:
```sql
                SELECT "surface" FROM "doubles_20_10_10" WHERE "date"='12-apr-2005';
```
## Task
Generate a SQL query to answer the following question:
`What points has james allen as the skipper?`

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

CREATE TABLE "global_challenge_2004_5" (
  "overall_place" text,
  "yacht_name" text,
  "skipper" text,
  "points" text,
  "combined_elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What points has james allen as the skipper?`:
```sql
                SELECT "points" FROM "global_challenge_2004_5" WHERE "skipper"='james allen';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the yacht where 12 is the overall place?`

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

CREATE TABLE "global_challenge_2004_5" (
  "overall_place" text,
  "yacht_name" text,
  "skipper" text,
  "points" text,
  "combined_elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the yacht where 12 is the overall place?`:
```sql
                SELECT "yacht_name" FROM "global_challenge_2004_5" WHERE "overall_place"='12';
```
## Task
Generate a SQL query to answer the following question:
`Which skipper has a combine elapsed time of 174d 01h 11m 59s?`

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

CREATE TABLE "global_challenge_2004_5" (
  "overall_place" text,
  "yacht_name" text,
  "skipper" text,
  "points" text,
  "combined_elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which skipper has a combine elapsed time of 174d 01h 11m 59s?`:
```sql
                SELECT "skipper" FROM "global_challenge_2004_5" WHERE "combined_elapsed_time"='174d 01h 11m 59s';
```
## Task
Generate a SQL query to answer the following question:
`Which skipper has barclays adventurer as the name of the yacht?`

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

CREATE TABLE "global_challenge_2004_5" (
  "overall_place" text,
  "yacht_name" text,
  "skipper" text,
  "points" text,
  "combined_elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which skipper has barclays adventurer as the name of the yacht?`:
```sql
                SELECT "skipper" FROM "global_challenge_2004_5" WHERE "yacht_name"='barclays adventurer';
```
## Task
Generate a SQL query to answer the following question:
`What is the overall place that has 170d 11h 31m 10s as the combined elapsed time?`

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

CREATE TABLE "global_challenge_2004_5" (
  "overall_place" text,
  "yacht_name" text,
  "skipper" text,
  "points" text,
  "combined_elapsed_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the overall place that has 170d 11h 31m 10s as the combined elapsed time?`:
```sql
                SELECT "overall_place" FROM "global_challenge_2004_5" WHERE "combined_elapsed_time"='170d 11h 31m 10s';
```
## Task
Generate a SQL query to answer the following question:
`What was the senior status for the judge who was terminated because of death, with a Chief Judge entry of —?`

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

CREATE TABLE "former_judges" (
  "state" text,
  "born_died" text,
  "chief_judge" text,
  "senior_status" text,
  "appointed_by" text,
  "reason_for_termination" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the senior status for the judge who was terminated because of death, with a Chief Judge entry of —?`:
```sql
                SELECT "senior_status" FROM "former_judges" WHERE "reason_for_termination"='death' AND "chief_judge"='—';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of Classification of T12?`

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

CREATE TABLE "paralympic_men" (
  "classification" text,
  "fastest_time_s" real,
  "athlete" text,
  "country" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of Classification of T12?`:
```sql
                SELECT "location" FROM "paralympic_men" WHERE "classification"='t12';
```
## Task
Generate a SQL query to answer the following question:
`What is the fastest time for athlete Jason Smyth?`

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

CREATE TABLE "paralympic_men" (
  "classification" text,
  "fastest_time_s" real,
  "athlete" text,
  "country" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fastest time for athlete Jason Smyth?`:
```sql
                SELECT "fastest_time_s" FROM "paralympic_men" WHERE "athlete"='jason smyth';
```
## Task
Generate a SQL query to answer the following question:
`What was the final of play No. 2, Alzira Ricardo B.?`

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

CREATE TABLE "nominations" (
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text,
  "no_11" text,
  "no_12" text,
  "no_13" text,
  "no_14" text,
  "no_15" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final of play No. 2, Alzira Ricardo B.?`:
```sql
                SELECT "final" FROM "nominations" WHERE "no_2"='alzira ricardo b.';
```
## Task
Generate a SQL query to answer the following question:
`What was the No. 10 team that has No. 8 of Diana?`

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

CREATE TABLE "nominations" (
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text,
  "no_11" text,
  "no_12" text,
  "no_13" text,
  "no_14" text,
  "no_15" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the No. 10 team that has No. 8 of Diana?`:
```sql
                SELECT "no_10" FROM "nominations" WHERE "no_8"='diana';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of years for chassis of ensign n175`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of years for chassis of ensign n175`:
```sql
                SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='ensign n175';
```
## Task
Generate a SQL query to answer the following question:
`What was the Blue Jays lowest attendance when their record was 52-48?`

### 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 Blue Jays lowest attendance when their record was 52-48?`:
```sql
                SELECT MIN("attendance") FROM "game_log" WHERE "record"='52-48';
```
## Task
Generate a SQL query to answer the following question:
`What is the result when you play at home against Pride`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "field" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result when you play at home against Pride`:
```sql
                SELECT "result" FROM "schedule" WHERE "home_away"='home' AND "opponent"='pride';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of games played at frontier field`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "field" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of games played at frontier field`:
```sql
                SELECT "result" FROM "schedule" WHERE "field"='frontier field';
```
## Task
Generate a SQL query to answer the following question:
`What days were games played at Hofstra Stadium?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "field" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What days were games played at Hofstra Stadium?`:
```sql
                SELECT "date" FROM "schedule" WHERE "field"='hofstra stadium';
```
## Task
Generate a SQL query to answer the following question:
`What Field was played at in an away game against the bayhawks?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "home_away" text,
  "field" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Field was played at in an away game against the bayhawks?`:
```sql
                SELECT "field" FROM "schedule" WHERE "home_away"='away' AND "opponent"='bayhawks';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game played on February 18?`

### 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 is the score of the game played on February 18?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "date"='february 18';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team that played against the Boston Bruins on January 11?`

### 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 `Who was the home team that played against the Boston Bruins on January 11?`:
```sql
                SELECT "home" FROM "regular_season" WHERE "visitor"='boston bruins' AND "date"='january 11';
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of year for olimpija ljubljana with height less than 2.04`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "player" text,
  "height" real,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of year for olimpija ljubljana with height less than 2.04`:
```sql
                SELECT SUM("year_born") FROM "fiba_euro_basket_2007_squads" WHERE "current_club"='olimpija ljubljana' AND "height"<2.04;
```
## Task
Generate a SQL query to answer the following question:
`Name the position with height of 2.09`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "player" text,
  "height" real,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position with height of 2.09`:
```sql
                SELECT "position" FROM "fiba_euro_basket_2007_squads" WHERE "height"=2.09;
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the ballpark during the game where the Blue Jays had a record of 26-35 during the 1996 season?`

### 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 attendance at the ballpark during the game where the Blue Jays had a record of 26-35 during the 1996 season?`:
```sql
                SELECT COUNT("attendance") FROM "game_log" WHERE "record"='26-35';
```
## Task
Generate a SQL query to answer the following question:
`What nominated work received a tony award in 2009?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nominated work received a tony award in 2009?`:
```sql
                SELECT "nominated_work" FROM "awards_and_nominations" WHERE "award"='tony award' AND "year"=2009;
```
## Task
Generate a SQL query to answer the following question:
`What result in the table is from the year 2012?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What result in the table is from the year 2012?`:
```sql
                SELECT "result" FROM "awards_and_nominations" WHERE "year"=2012;
```
## Task
Generate a SQL query to answer the following question:
`Name the 2011 with 2010 of 2r`

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

CREATE TABLE "women_s_doubles" (
  "tournament" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2011 with 2010 of 2r`:
```sql
                SELECT "2011" FROM "women_s_doubles" WHERE "2010"='2r';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2012 when 2011 is qf`

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

CREATE TABLE "women_s_doubles" (
  "tournament" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2012 when 2011 is qf`:
```sql
                SELECT "2012" FROM "women_s_doubles" WHERE "2011"='qf';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2012 for 2011 being 1r`

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

CREATE TABLE "women_s_doubles" (
  "tournament" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2012 for 2011 being 1r`:
```sql
                SELECT "2012" FROM "women_s_doubles" WHERE "2011"='1r';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2012 for 2011 being qf`

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

CREATE TABLE "women_s_doubles" (
  "tournament" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2012 for 2011 being qf`:
```sql
                SELECT "2012" FROM "women_s_doubles" WHERE "2011"='qf';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2008 for 2012 f`

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

CREATE TABLE "women_s_doubles" (
  "tournament" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2008 for 2012 f`:
```sql
                SELECT "2008" FROM "women_s_doubles" WHERE "2012"='f';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the match on February 29, 2012?`

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

CREATE TABLE "recent_results_and_forthcoming_fixtures" (
  "date" text,
  "location" text,
  "score" text,
  "scorers_for_chad" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the match on February 29, 2012?`:
```sql
                SELECT "location" FROM "recent_results_and_forthcoming_fixtures" WHERE "date"='february 29, 2012';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the match on November 15, 2011?`

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

CREATE TABLE "recent_results_and_forthcoming_fixtures" (
  "date" text,
  "location" text,
  "score" text,
  "scorers_for_chad" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the match on November 15, 2011?`:
```sql
                SELECT "score" FROM "recent_results_and_forthcoming_fixtures" WHERE "date"='november 15, 2011';
```
## Task
Generate a SQL query to answer the following question:
`How many races were in the Mallala Motor Sport Park circuit?`

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

CREATE TABLE "race_calendar" (
  "race" real,
  "circuit" text,
  "location_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many races were in the Mallala Motor Sport Park circuit?`:
```sql
                SELECT COUNT("race") FROM "race_calendar" WHERE "circuit"='mallala motor sport park';
```
## Task
Generate a SQL query to answer the following question:
`What was the first race in Launceston, Tasmania?`

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

CREATE TABLE "race_calendar" (
  "race" real,
  "circuit" text,
  "location_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the first race in Launceston, Tasmania?`:
```sql
                SELECT MIN("race") FROM "race_calendar" WHERE "location_state"='launceston, tasmania';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2nd leg for team 1 of hamburg`

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

CREATE TABLE "round_of_16" (
  "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 `Name the 2nd leg for team 1 of hamburg`:
```sql
                SELECT "2nd_leg" FROM "round_of_16" WHERE "team_1"='hamburg';
```
## Task
Generate a SQL query to answer the following question:
`Name the role for mono studio and title of paradise canyon`

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

CREATE TABLE "1935" (
  "title" text,
  "studio" text,
  "role" text,
  "leading_lady" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the role for mono studio and title of paradise canyon`:
```sql
                SELECT "role" FROM "1935" WHERE "studio"='mono' AND "title"='paradise canyon';
```
## Task
Generate a SQL query to answer the following question:
`Name the title for marion burns leading lady and role of john mason`

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

CREATE TABLE "1935" (
  "title" text,
  "studio" text,
  "role" text,
  "leading_lady" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the title for marion burns leading lady and role of john mason`:
```sql
                SELECT "title" FROM "1935" WHERE "leading_lady"='marion burns' AND "role"='john mason';
```
## Task
Generate a SQL query to answer the following question:
`Name the role for studio of rep with sheila mannors leading lady and title of westward ho`

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

CREATE TABLE "1935" (
  "title" text,
  "studio" text,
  "role" text,
  "leading_lady" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the role for studio of rep with sheila mannors leading lady and title of westward ho`:
```sql
                SELECT "role" FROM "1935" WHERE "studio"='rep' AND "leading_lady"='sheila mannors' AND "title"='westward ho';
```
## Task
Generate a SQL query to answer the following question:
`Name the studio for john scott`

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

CREATE TABLE "1935" (
  "title" text,
  "studio" text,
  "role" text,
  "leading_lady" text,
  "director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the studio for john scott`:
```sql
                SELECT "studio" FROM "1935" WHERE "role"='john scott';
```
## Task
Generate a SQL query to answer the following question:
`What is the amount of 000s from 1996?`

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

CREATE TABLE "emigration_of_jews_and_their_family_memb" (
  "year" text,
  "total_000s" real,
  "israel" real,
  "germany" real,
  "jews_halakha_in_israel" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amount of 000s from 1996?`:
```sql
                SELECT SUM("total_000s") FROM "emigration_of_jews_and_their_family_memb" WHERE "year"='1996';
```
## Task
Generate a SQL query to answer the following question:
`What was the amount of 000s when Germany had 16.6?`

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

CREATE TABLE "emigration_of_jews_and_their_family_memb" (
  "year" text,
  "total_000s" real,
  "israel" real,
  "germany" real,
  "jews_halakha_in_israel" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the amount of 000s when Germany had 16.6?`:
```sql
                SELECT "total_000s" FROM "emigration_of_jews_and_their_family_memb" WHERE "germany"=16.6;
```
## Task
Generate a SQL query to answer the following question:
`Name the average concacaf for merconorte larger than 0 and player of jared borgetti`

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

CREATE TABLE "most_appearances" (
  "player" text,
  "period" text,
  "league" real,
  "concacaf" real,
  "libertadores" real,
  "merconorte" real,
  "inter_liga" real,
  "superliga" real,
  "matches" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average concacaf for merconorte larger than 0 and player of jared borgetti`:
```sql
                SELECT AVG("concacaf") FROM "most_appearances" WHERE "merconorte">0 AND "player"='jared borgetti' AND "superliga">0;
```
## Task
Generate a SQL query to answer the following question:
`Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7`

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

CREATE TABLE "most_appearances" (
  "player" text,
  "period" text,
  "league" real,
  "concacaf" real,
  "libertadores" real,
  "merconorte" real,
  "inter_liga" real,
  "superliga" real,
  "matches" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7`:
```sql
                SELECT MIN("merconorte") FROM "most_appearances" WHERE "inter_liga"=2 AND "matches">260 AND "superliga">7;
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome for the match that ended in a score of 5–7, 6–4, [10–7]?`

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

CREATE TABLE "doubles_8_4" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome for the match that ended in a score of 5–7, 6–4, [10–7]?`:
```sql
                SELECT "outcome" FROM "doubles_8_4" WHERE "score_in_final"='5–7, 6–4, [10–7]';
```
## Task
Generate a SQL query to answer the following question:
`What was the surface of the match that ended in a score of 5–7, 6–4, [10–7]?`

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

CREATE TABLE "doubles_8_4" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface of the match that ended in a score of 5–7, 6–4, [10–7]?`:
```sql
                SELECT "surface" FROM "doubles_8_4" WHERE "score_in_final"='5–7, 6–4, [10–7]';
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents in the match or matches that ended in a score of W/O?`

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

CREATE TABLE "doubles_8_4" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents in the match or matches that ended in a score of W/O?`:
```sql
                SELECT "opponents_in_final" FROM "doubles_8_4" WHERE "score_in_final"='w/o';
```
## Task
Generate a SQL query to answer the following question:
`What kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Chassis supports a Maserati Straight-6 engine with Points greater than 0 and built in the year 1955?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "points">0 AND "year"=1955;
```
## Task
Generate a SQL query to answer the following question:
`What kind of Chassis supports an Equipe Gordini Entrant?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Chassis supports an Equipe Gordini Entrant?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "entrant"='equipe gordini';
```
## Task
Generate a SQL query to answer the following question:
`What kind of Entrant has a Maserati Straight-6 Engine, built in the year 1958 or early, and has a Maserati 250f Chassis with points less than 4?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Entrant has a Maserati Straight-6 Engine, built in the year 1958 or early, and has a Maserati 250f Chassis with points less than 4?`:
```sql
                SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "year"<1958 AND "chassis"='maserati 250f' AND "points"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the average year for Maserati Straight-4 Engines?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year for Maserati Straight-4 Engines?`:
```sql
                SELECT AVG("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-4';
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of ERP W for class of d and frequency mhz of 98.7`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of ERP W for class of d and frequency mhz of 98.7`:
```sql
                SELECT SUM("erp_w") FROM "translators" WHERE "class"='d' AND "frequency_m_hz"=98.7;
```
## Task
Generate a SQL query to answer the following question:
`Name the ERP W with a frequency mhz more than 93.3 and city license of washington, georgia`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ERP W with a frequency mhz more than 93.3 and city license of washington, georgia`:
```sql
                SELECT "erp_w" FROM "translators" WHERE "frequency_m_hz">93.3 AND "city_of_license"='washington, georgia';
```
## Task
Generate a SQL query to answer the following question:
`Which record has a result of loss in the Hero's 3 event?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record has a result of loss in the Hero's 3 event?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "event"='hero''s 3';
```
## Task
Generate a SQL query to answer the following question:
`Which event led to a 4-0 record?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event led to a 4-0 record?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='4-0';
```
## Task
Generate a SQL query to answer the following question:
`Which location led to a 10-3 record?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location led to a 10-3 record?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='10-3';
```
## Task
Generate a SQL query to answer the following question:
`In the match against Masahiro Oishi, what was the record?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the match against Masahiro Oishi, what was the record?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='masahiro oishi';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of points for clubs with less than 2 draws and more than 8 matches played?`

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

CREATE TABLE "league_round" (
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of points for clubs with less than 2 draws and more than 8 matches played?`:
```sql
                SELECT MIN("points") FROM "league_round" WHERE "drawn"<2 AND "played">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest drawn matches for teams with 2 points and fewer than 6 losses?`

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

CREATE TABLE "league_round" (
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest drawn matches for teams with 2 points and fewer than 6 losses?`:
```sql
                SELECT MIN("drawn") FROM "league_round" WHERE "points"=2 AND "lost"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is the most number of losses for Quetta Zorawar?`

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

CREATE TABLE "league_round" (
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most number of losses for Quetta Zorawar?`:
```sql
                SELECT MAX("lost") FROM "league_round" WHERE "team"='quetta zorawar';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the drawn values for teams with 2 losses?`

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

CREATE TABLE "league_round" (
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the drawn values for teams with 2 losses?`:
```sql
                SELECT SUM("drawn") FROM "league_round" WHERE "lost"=2;
```
## Task
Generate a SQL query to answer the following question:
`which round has a margin of 178?`

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

CREATE TABLE "greatest_winning_margins" (
  "rank" text,
  "margin" text,
  "club" text,
  "opponent" text,
  "year" text,
  "round" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `which round has a margin of 178?`:
```sql
                SELECT "round" FROM "greatest_winning_margins" WHERE "margin"='178';
```
## Task
Generate a SQL query to answer the following question:
`Name the average total for gold less than 1 and rank less than 5`

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

CREATE TABLE "performance_by_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average total for gold less than 1 and rank less than 5`:
```sql
                SELECT AVG("total") FROM "performance_by_nation" WHERE "gold"<1 AND "rank"<5;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of silver when total is mor ethan 1, bronze is 1 and gold is les than 0`

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

CREATE TABLE "performance_by_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of silver when total is mor ethan 1, bronze is 1 and gold is les than 0`:
```sql
                SELECT SUM("silver") FROM "performance_by_nation" WHERE "total">1 AND "bronze"=1 AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`Name the most gold when bronze is more than 0 and rank is more than 5 with total more than 2`

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

CREATE TABLE "performance_by_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most gold when bronze is more than 0 and rank is more than 5 with total more than 2`:
```sql
                SELECT MAX("gold") FROM "performance_by_nation" WHERE "bronze">0 AND "rank">5 AND "total">2;
```
## Task
Generate a SQL query to answer the following question:
`Name the average bronze with silver more than 0, total of 6 and gold more than 0`

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

CREATE TABLE "performance_by_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average bronze with silver more than 0, total of 6 and gold more than 0`:
```sql
                SELECT AVG("bronze") FROM "performance_by_nation" WHERE "silver">0 AND "total"=6 AND "gold">0;
```