cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which driver had a grid number of 10?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver had a grid number of 10?`:
```sql
                SELECT "driver" FROM "race" WHERE "grid"=10;
```
## Task
Generate a SQL query to answer the following question:
`Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522?`:
```sql
                SELECT "constructor" FROM "race" WHERE "grid"<3 AND "time_retired"='1:34:31.522';
```
## Task
Generate a SQL query to answer the following question:
`Which constructor had a Time/Retired of collision, where the grid number was less than 18 and Nick Heidfeld was the driver?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which constructor had a Time/Retired of collision, where the grid number was less than 18 and Nick Heidfeld was the driver?`:
```sql
                SELECT "constructor" FROM "race" WHERE "time_retired"='collision' AND "grid"<18 AND "driver"='nick heidfeld';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the record 20-14 when the attendance was over 35,196 and the Indians were opponents?`

### 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 score for the record 20-14 when the attendance was over 35,196 and the Indians were opponents?`:
```sql
                SELECT "score" FROM "game_log" WHERE "attendance">'35,196' AND "opponent"='indians' AND "record"='20-14';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on May 20?`

### 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 record on May 20?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='may 20';
```
## Task
Generate a SQL query to answer the following question:
`What is the height in feet of player number 24?`

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

CREATE TABLE "a" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height in feet of player number 24?`:
```sql
                SELECT "height_in_ft" FROM "a" WHERE "no_s"='24';
```
## Task
Generate a SQL query to answer the following question:
`Who is the school, club, team or country that the Rockets played for 1967-68?`

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

CREATE TABLE "a" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the school, club, team or country that the Rockets played for 1967-68?`:
```sql
                SELECT "school_club_team_country" FROM "a" WHERE "years_for_rockets"='1967-68';
```
## Task
Generate a SQL query to answer the following question:
`Which player has a Position of infielder, and a Hometown of atlanta, ga?`

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

CREATE TABLE "1995_team" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "mlb_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a Position of infielder, and a Hometown of atlanta, ga?`:
```sql
                SELECT "player" FROM "1995_team" WHERE "position"='infielder' AND "hometown"='atlanta, ga';
```
## Task
Generate a SQL query to answer the following question:
`What MLB draft has a School of green valley high school?`

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

CREATE TABLE "1995_team" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "mlb_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What MLB draft has a School of green valley high school?`:
```sql
                SELECT "mlb_draft" FROM "1995_team" WHERE "school"='green valley high school';
```
## Task
Generate a SQL query to answer the following question:
`Which position has a School of green valley high school?`

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

CREATE TABLE "1995_team" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "mlb_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has a School of green valley high school?`:
```sql
                SELECT "position" FROM "1995_team" WHERE "school"='green valley high school';
```
## Task
Generate a SQL query to answer the following question:
`Which position has a Player of chad hutchinson?`

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

CREATE TABLE "1995_team" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "mlb_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has a Player of chad hutchinson?`:
```sql
                SELECT "position" FROM "1995_team" WHERE "player"='chad hutchinson';
```
## Task
Generate a SQL query to answer the following question:
`Which position has a School of petal high school?`

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

CREATE TABLE "1995_team" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "mlb_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has a School of petal high school?`:
```sql
                SELECT "position" FROM "1995_team" WHERE "school"='petal high school';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of week 8?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of week 8?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=8;
```
## Task
Generate a SQL query to answer the following question:
`Which week has the lowest attendance of 48,102?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which week has the lowest attendance of 48,102?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "attendance"='48,102';
```
## Task
Generate a SQL query to answer the following question:
`What was the year with runs of 144?`

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

CREATE TABLE "one_day_international_cricket_man_of_the" (
  "runs" text,
  "against" text,
  "city_country" text,
  "venue" text,
  "result" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the year with runs of 144?`:
```sql
                SELECT "year" FROM "one_day_international_cricket_man_of_the" WHERE "runs"='144';
```
## Task
Generate a SQL query to answer the following question:
`Name the place where adelaide oval is`

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

CREATE TABLE "one_day_international_cricket_man_of_the" (
  "runs" text,
  "against" text,
  "city_country" text,
  "venue" text,
  "result" text,
  "year" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the place where adelaide oval is`:
```sql
                SELECT "city_country" FROM "one_day_international_cricket_man_of_the" WHERE "venue"='adelaide oval';
```
## Task
Generate a SQL query to answer the following question:
`Name the average zone for waddon marsh tram stop`

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

CREATE TABLE "w" (
  "stations" text,
  "place" text,
  "managed_by" text,
  "platforms" real,
  "zone" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average zone for waddon marsh tram stop`:
```sql
                SELECT AVG("zone") FROM "w" WHERE "stations"='waddon marsh tram stop';
```
## Task
Generate a SQL query to answer the following question:
`Name the stations for zone 5 and 1 platform by tramlink`

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

CREATE TABLE "w" (
  "stations" text,
  "place" text,
  "managed_by" text,
  "platforms" real,
  "zone" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the stations for zone 5 and 1 platform by tramlink`:
```sql
                SELECT "stations" FROM "w" WHERE "managed_by"='tramlink' AND "zone"=5 AND "platforms"=1;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of platforms that waddon railway station has`

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

CREATE TABLE "w" (
  "stations" text,
  "place" text,
  "managed_by" text,
  "platforms" real,
  "zone" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of platforms that waddon railway station has`:
```sql
                SELECT COUNT("platforms") FROM "w" WHERE "stations"='waddon railway station';
```
## Task
Generate a SQL query to answer the following question:
`Name the average zone for waddon railway station and has more than 2 platforms`

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

CREATE TABLE "w" (
  "stations" text,
  "place" text,
  "managed_by" text,
  "platforms" real,
  "zone" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average zone for waddon railway station and has more than 2 platforms`:
```sql
                SELECT AVG("zone") FROM "w" WHERE "stations"='waddon railway station' AND "platforms">2;
```
## Task
Generate a SQL query to answer the following question:
`What is Bob Ostovich's opponents 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" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Bob Ostovich's opponents record?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='bob ostovich';
```
## Task
Generate a SQL query to answer the following question:
`What location is Jimmy Smith fighting in?`

### 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" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location is Jimmy Smith fighting in?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='jimmy smith';
```
## Task
Generate a SQL query to answer the following question:
`I want to know the D 49 + for D 42 √ of d 42 √`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_41" text,
  "d_42" text,
  "d_43" text,
  "d_44" text,
  "d_45_o" text,
  "d_46_o" text,
  "d_47" text,
  "d_48" text,
  "d_49" text,
  "d_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the D 49 + for D 42 √ of d 42 √`:
```sql
                SELECT "d_49" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_42"='d 42 √';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the D 50 + for D 48 + of d 53 +`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_41" text,
  "d_42" text,
  "d_43" text,
  "d_44" text,
  "d_45_o" text,
  "d_46_o" text,
  "d_47" text,
  "d_48" text,
  "d_49" text,
  "d_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the D 50 + for D 48 + of d 53 +`:
```sql
                SELECT "d_50" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_48"='d 53 +';
```
## Task
Generate a SQL query to answer the following question:
`I want to know the D 47 for D 46 O of majority→`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_41" text,
  "d_42" text,
  "d_43" text,
  "d_44" text,
  "d_45_o" text,
  "d_46_o" text,
  "d_47" text,
  "d_48" text,
  "d_49" text,
  "d_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the D 47 for D 46 O of majority→`:
```sql
                SELECT "d_47" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_46_o"='majority→';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of all win% with average home/total attendance of 3,927 (19,633)?`

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

CREATE TABLE "year_by_year_performance" (
  "coach" text,
  "season" text,
  "record" text,
  "home" text,
  "away" text,
  "win_pct" real,
  "average_total_home_attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of all win% with average home/total attendance of 3,927 (19,633)?`:
```sql
                SELECT SUM("win_pct") FROM "year_by_year_performance" WHERE "average_total_home_attendance"='3,927 (19,633)';
```
## Task
Generate a SQL query to answer the following question:
`What is the away score with a record of 7-4, win% of 0.637, and 2010 season?`

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

CREATE TABLE "year_by_year_performance" (
  "coach" text,
  "season" text,
  "record" text,
  "home" text,
  "away" text,
  "win_pct" real,
  "average_total_home_attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away score with a record of 7-4, win% of 0.637, and 2010 season?`:
```sql
                SELECT "away" FROM "year_by_year_performance" WHERE "record"='7-4' AND "win_pct"=0.637 AND "season"='2010';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest win% with an away score of 3-2 in 2011 season?`

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

CREATE TABLE "year_by_year_performance" (
  "coach" text,
  "season" text,
  "record" text,
  "home" text,
  "away" text,
  "win_pct" real,
  "average_total_home_attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest win% with an away score of 3-2 in 2011 season?`:
```sql
                SELECT MIN("win_pct") FROM "year_by_year_performance" WHERE "away"='3-2' AND "season"='2011';
```
## Task
Generate a SQL query to answer the following question:
`What was the away score with a win% of 0.75 and average total/home attendance of 4,686 (18,744)?`

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

CREATE TABLE "year_by_year_performance" (
  "coach" text,
  "season" text,
  "record" text,
  "home" text,
  "away" text,
  "win_pct" real,
  "average_total_home_attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away score with a win% of 0.75 and average total/home attendance of 4,686 (18,744)?`:
```sql
                SELECT "away" FROM "year_by_year_performance" WHERE "win_pct"=0.75 AND "average_total_home_attendance"='4,686 (18,744)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest win% in the 1999-2013 season?`

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

CREATE TABLE "year_by_year_performance" (
  "coach" text,
  "season" text,
  "record" text,
  "home" text,
  "away" text,
  "win_pct" real,
  "average_total_home_attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest win% in the 1999-2013 season?`:
```sql
                SELECT MIN("win_pct") FROM "year_by_year_performance" WHERE "season"='1999-2013';
```
## Task
Generate a SQL query to answer the following question:
`What's the record during 1925?`

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

CREATE TABLE "the_american_meetings" (
  "year" real,
  "event" text,
  "record" text,
  "athlete" text,
  "nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the record during 1925?`:
```sql
                SELECT "record" FROM "the_american_meetings" WHERE "year"=1925;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year that the discus throw event occur?`

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

CREATE TABLE "the_american_meetings" (
  "year" real,
  "event" text,
  "record" text,
  "athlete" text,
  "nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year that the discus throw event occur?`:
```sql
                SELECT MIN("year") FROM "the_american_meetings" WHERE "event"='discus throw';
```
## Task
Generate a SQL query to answer the following question:
`What Haydon had a 33 Ben-Tahir?`

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

CREATE TABLE "results_by_ward" (
  "ward" text,
  "bello" text,
  "ben_tahir" text,
  "doucet" text,
  "furtenbacher" text,
  "gauthier" text,
  "haydon" text,
  "larter" text,
  "lawrance" text,
  "libweshya" text,
  "liscumb" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Haydon had a 33 Ben-Tahir?`:
```sql
                SELECT "haydon" FROM "results_by_ward" WHERE "ben_tahir"='33';
```
## Task
Generate a SQL query to answer the following question:
`What Gauthier had a 15 Liscumb?`

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

CREATE TABLE "results_by_ward" (
  "ward" text,
  "bello" text,
  "ben_tahir" text,
  "doucet" text,
  "furtenbacher" text,
  "gauthier" text,
  "haydon" text,
  "larter" text,
  "lawrance" text,
  "libweshya" text,
  "liscumb" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Gauthier had a 15 Liscumb?`:
```sql
                SELECT "gauthier" FROM "results_by_ward" WHERE "liscumb"='15';
```
## Task
Generate a SQL query to answer the following question:
`What Ben-Tahir has a 6 Liscumb and 3 Libweshya?`

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

CREATE TABLE "results_by_ward" (
  "ward" text,
  "bello" text,
  "ben_tahir" text,
  "doucet" text,
  "furtenbacher" text,
  "gauthier" text,
  "haydon" text,
  "larter" text,
  "lawrance" text,
  "libweshya" text,
  "liscumb" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Ben-Tahir has a 6 Liscumb and 3 Libweshya?`:
```sql
                SELECT "ben_tahir" FROM "results_by_ward" WHERE "liscumb"='6' AND "libweshya"='3';
```
## Task
Generate a SQL query to answer the following question:
`What Bello has a 27 Liscumb and 6539 Libweshya?`

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

CREATE TABLE "results_by_ward" (
  "ward" text,
  "bello" text,
  "ben_tahir" text,
  "doucet" text,
  "furtenbacher" text,
  "gauthier" text,
  "haydon" text,
  "larter" text,
  "lawrance" text,
  "libweshya" text,
  "liscumb" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Bello has a 27 Liscumb and 6539 Libweshya?`:
```sql
                SELECT "bello" FROM "results_by_ward" WHERE "liscumb"='27' AND "libweshya"='6539';
```
## Task
Generate a SQL query to answer the following question:
`What is the Furtenbacher with a 6 Liscumb, 10 Lawrance, and a 24 Ben-Tahir?`

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

CREATE TABLE "results_by_ward" (
  "ward" text,
  "bello" text,
  "ben_tahir" text,
  "doucet" text,
  "furtenbacher" text,
  "gauthier" text,
  "haydon" text,
  "larter" text,
  "lawrance" text,
  "libweshya" text,
  "liscumb" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Furtenbacher with a 6 Liscumb, 10 Lawrance, and a 24 Ben-Tahir?`:
```sql
                SELECT "furtenbacher" FROM "results_by_ward" WHERE "liscumb"='6' AND "lawrance"='10' AND "ben_tahir"='24';
```
## Task
Generate a SQL query to answer the following question:
`What is the Ben-Tahir with a 3269 Doucet?`

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

CREATE TABLE "results_by_ward" (
  "ward" text,
  "bello" text,
  "ben_tahir" text,
  "doucet" text,
  "furtenbacher" text,
  "gauthier" text,
  "haydon" text,
  "larter" text,
  "lawrance" text,
  "libweshya" text,
  "liscumb" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Ben-Tahir with a 3269 Doucet?`:
```sql
                SELECT "ben_tahir" FROM "results_by_ward" WHERE "doucet"='3269';
```
## Task
Generate a SQL query to answer the following question:
`How many attended the game that was a Loss of k. gross (1-1)?`

### 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 `How many attended the game that was a Loss of k. gross (1-1)?`:
```sql
                SELECT MAX("attendance") FROM "game_log" WHERE "loss"='k. gross (1-1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game with tie number 65?`

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

CREATE TABLE "replays" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game with tie number 65?`:
```sql
                SELECT "score" FROM "replays" WHERE "tie_no"='65';
```
## Task
Generate a SQL query to answer the following question:
`Which Home team had attendance 160?`

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

CREATE TABLE "replays" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home team had attendance 160?`:
```sql
                SELECT "home_team" FROM "replays" WHERE "attendance"='160';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the game with a decision of Ellis and Vancouver as the visitor?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game with a decision of Ellis and Vancouver as the visitor?`:
```sql
                SELECT "record" FROM "february" WHERE "decision"='ellis' AND "visitor"='vancouver';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the game with Mason as the decision and Nashville as the home team?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game with Mason as the decision and Nashville as the home team?`:
```sql
                SELECT "record" FROM "february" WHERE "decision"='mason' AND "home"='nashville';
```
## Task
Generate a SQL query to answer the following question:
`What is the date with Ellis as the decision and St. Louis as the visitor?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date with Ellis as the decision and St. Louis as the visitor?`:
```sql
                SELECT "date" FROM "february" WHERE "decision"='ellis' AND "visitor"='st. louis';
```
## Task
Generate a SQL query to answer the following question:
`Which visiting team had a record of 31–31–8?`

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

CREATE TABLE "march" (
  "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 `Which visiting team had a record of 31–31–8?`:
```sql
                SELECT "visitor" FROM "march" WHERE "record"='31–31–8';
```
## Task
Generate a SQL query to answer the following question:
`Where is Jeff Lebo's hometown?`

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

CREATE TABLE "1985_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is Jeff Lebo's hometown?`:
```sql
                SELECT "hometown" FROM "1985_boys_team" WHERE "player"='jeff lebo';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player from Houston, TX?`

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

CREATE TABLE "1985_boys_team" (
  "player" text,
  "height" text,
  "school" text,
  "hometown" text,
  "college" text,
  "nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from Houston, TX?`:
```sql
                SELECT "player" FROM "1985_boys_team" WHERE "hometown"='houston, tx';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year with an entry from Rotary Watches Stanley BRM and a BRM P207 with more than 0 points?`

### 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 earliest year with an entry from Rotary Watches Stanley BRM and a BRM P207 with more than 0 points?`:
```sql
                SELECT MIN("year") FROM "complete_formula_one_world_championship_" WHERE "entrant"='rotary watches stanley brm' AND "chassis"='brm p207' AND "points">0;
```
## Task
Generate a SQL query to answer the following question:
`How many points were there in a year earlier than 1977, a Cosworth V8 engine, and an entry from HB Bewaking alarm systems?`

### 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 `How many points were there in a year earlier than 1977, a Cosworth V8 engine, and an entry from HB Bewaking alarm systems?`:
```sql
                SELECT "points" FROM "complete_formula_one_world_championship_" WHERE "year"<1977 AND "engine"='cosworth v8' AND "entrant"='hb bewaking alarm systems';
```
## Task
Generate a SQL query to answer the following question:
`What is the report for the race of Argentine Grand Prix?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the report for the race of Argentine Grand Prix?`:
```sql
                SELECT "report" FROM "season_review" WHERE "race"='argentine grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tyre when Jerry Hoyt was the pole position?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tyre when Jerry Hoyt was the pole position?`:
```sql
                SELECT "tyre" FROM "season_review" WHERE "pole_position"='jerry hoyt';
```
## Task
Generate a SQL query to answer the following question:
`Who was the constructor when Eugenio Castellotti was the pole position and the race had a C tyre?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the constructor when Eugenio Castellotti was the pole position and the race had a C tyre?`:
```sql
                SELECT "constructor" FROM "season_review" WHERE "tyre"='c' AND "pole_position"='eugenio castellotti';
```
## Task
Generate a SQL query to answer the following question:
`What was the fastest lap time at the British Grand Prix with Mercedes as the constructor?`

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

CREATE TABLE "season_review" (
  "race" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "tyre" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the fastest lap time at the British Grand Prix with Mercedes as the constructor?`:
```sql
                SELECT "fastest_lap" FROM "season_review" WHERE "constructor"='mercedes' AND "race"='british grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Who scored the High points in the game with High rebounds by Nick Collison (14)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who scored the High points in the game with High rebounds by Nick Collison (14)?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "high_rebounds"='nick collison (14)';
```
## Task
Generate a SQL query to answer the following question:
`What is henry transfer fee at fcbarcelona.cat in fra?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is henry transfer fee at fcbarcelona.cat in fra?`:
```sql
                SELECT "transfer_fee" FROM "in" WHERE "source"='fcbarcelona.cat' AND "country"='fra' AND "name"='henry';
```
## Task
Generate a SQL query to answer the following question:
`What was the Grid with a hydraulics time/required?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Grid with a hydraulics time/required?`:
```sql
                SELECT "grid" FROM "race" WHERE "time_retired"='hydraulics';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid with a Toyota constructor and +1:09.718 as time/retired?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid with a Toyota constructor and +1:09.718 as time/retired?`:
```sql
                SELECT "grid" FROM "race" WHERE "constructor"='toyota' AND "time_retired"='+1:09.718';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid with 71 laps and the driver, Allan McNish.`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid with 71 laps and the driver, Allan McNish.`:
```sql
                SELECT "grid" FROM "race" WHERE "laps"='71' AND "driver"='allan mcnish';
```
## Task
Generate a SQL query to answer the following question:
`How many laps did Jacques Villeneuve have?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps did Jacques Villeneuve have?`:
```sql
                SELECT "laps" FROM "race" WHERE "driver"='jacques villeneuve';
```
## Task
Generate a SQL query to answer the following question:
`What is the constructor of the driver Heinz-Harald Frentzen?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the constructor of the driver Heinz-Harald Frentzen?`:
```sql
                SELECT "constructor" FROM "race" WHERE "driver"='heinz-harald frentzen';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the rank for year of 2012 and out of larger than 176`

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

CREATE TABLE "politics" (
  "index" text,
  "organization" text,
  "year" text,
  "rank" real,
  "out_of" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the rank for year of 2012 and out of larger than 176`:
```sql
                SELECT "rank" FROM "politics" WHERE "year"='2012' AND "out_of">176;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the year for rank more than 35 and out of 167`

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

CREATE TABLE "politics" (
  "index" text,
  "organization" text,
  "year" text,
  "rank" real,
  "out_of" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the year for rank more than 35 and out of 167`:
```sql
                SELECT "year" FROM "politics" WHERE "rank">35 AND "out_of"=167;
```
## Task
Generate a SQL query to answer the following question:
`How many UCI points did Rabobank score?`

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

CREATE TABLE "general_classification" (
  "cyclist" text,
  "country" text,
  "team" text,
  "time" text,
  "uci_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many UCI points did Rabobank score?`:
```sql
                SELECT "uci_points" FROM "general_classification" WHERE "team"='rabobank';
```
## Task
Generate a SQL query to answer the following question:
`What team in France had 15 UCi points?`

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

CREATE TABLE "general_classification" (
  "cyclist" text,
  "country" text,
  "team" text,
  "time" text,
  "uci_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team in France had 15 UCi points?`:
```sql
                SELECT "team" FROM "general_classification" WHERE "country"='france' AND "uci_points"='15';
```
## Task
Generate a SQL query to answer the following question:
`Which country has assets of x, an inception of 2007, and an abbreviation of adic?`

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

CREATE TABLE "largest_sovereign_wealth_funds" (
  "country" text,
  "abbreviation" text,
  "assets_us_billion" text,
  "inception" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has assets of x, an inception of 2007, and an abbreviation of adic?`:
```sql
                SELECT "country" FROM "largest_sovereign_wealth_funds" WHERE "assets_us_billion"='x' AND "inception"='2007' AND "abbreviation"='adic';
```
## Task
Generate a SQL query to answer the following question:
`What's the abbreviation for libya?`

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

CREATE TABLE "largest_sovereign_wealth_funds" (
  "country" text,
  "abbreviation" text,
  "assets_us_billion" text,
  "inception" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the abbreviation for libya?`:
```sql
                SELECT "abbreviation" FROM "largest_sovereign_wealth_funds" WHERE "country"='libya';
```
## Task
Generate a SQL query to answer the following question:
`What's the origin for the country abbreviated atf?`

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

CREATE TABLE "largest_sovereign_wealth_funds" (
  "country" text,
  "abbreviation" text,
  "assets_us_billion" text,
  "inception" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the origin for the country abbreviated atf?`:
```sql
                SELECT "origin" FROM "largest_sovereign_wealth_funds" WHERE "abbreviation"='atf';
```
## Task
Generate a SQL query to answer the following question:
`What's the inception for the country with 25.5 billion USD in assets and an abbreviation of psf?`

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

CREATE TABLE "largest_sovereign_wealth_funds" (
  "country" text,
  "abbreviation" text,
  "assets_us_billion" text,
  "inception" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the inception for the country with 25.5 billion USD in assets and an abbreviation of psf?`:
```sql
                SELECT "inception" FROM "largest_sovereign_wealth_funds" WHERE "assets_us_billion"='25.5' AND "abbreviation"='psf';
```
## Task
Generate a SQL query to answer the following question:
`Which country has an abbreviation of kia?`

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

CREATE TABLE "largest_sovereign_wealth_funds" (
  "country" text,
  "abbreviation" text,
  "assets_us_billion" text,
  "inception" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has an abbreviation of kia?`:
```sql
                SELECT "country" FROM "largest_sovereign_wealth_funds" WHERE "abbreviation"='kia';
```
## Task
Generate a SQL query to answer the following question:
`What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1?`

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

CREATE TABLE "largest_sovereign_wealth_funds" (
  "country" text,
  "abbreviation" text,
  "assets_us_billion" text,
  "inception" text,
  "origin" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1?`:
```sql
                SELECT "abbreviation" FROM "largest_sovereign_wealth_funds" WHERE "inception"='1999' AND "assets_us_billion"='7.1';
```
## Task
Generate a SQL query to answer the following question:
`What was the opponent of the home team of essendon?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the opponent of the home team of essendon?`:
```sql
                SELECT "away_team" FROM "round_1" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`How big was the crowd in a game that had a home team score of 15.15 (105)?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How big was the crowd in a game that had a home team score of 15.15 (105)?`:
```sql
                SELECT "crowd" FROM "round_1" WHERE "home_team_score"='15.15 (105)';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the home team when the opposing team had a score of 9.11 (65)?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the home team when the opposing team had a score of 9.11 (65)?`:
```sql
                SELECT "home_team_score" FROM "round_1" WHERE "away_team_score"='9.11 (65)';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the cast for b. reeves eason and joseph kane`

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

CREATE TABLE "list_of_film_serials_by_studio" (
  "serial_title" text,
  "year" text,
  "chapters" text,
  "director" text,
  "cast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the cast for b. reeves eason and joseph kane`:
```sql
                SELECT "cast" FROM "list_of_film_serials_by_studio" WHERE "director"='b. reeves eason and joseph kane';
```
## Task
Generate a SQL query to answer the following question:
`I want the director for heroes of the wild`

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

CREATE TABLE "list_of_film_serials_by_studio" (
  "serial_title" text,
  "year" text,
  "chapters" text,
  "director" text,
  "cast" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the director for heroes of the wild`:
```sql
                SELECT "director" FROM "list_of_film_serials_by_studio" WHERE "serial_title"='heroes of the wild';
```
## Task
Generate a SQL query to answer the following question:
`I want the year for the three musketeers`

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

CREATE TABLE "list_of_film_serials_by_studio" (
  "serial_title" text,
  "year" text,
  "chapters" text,
  "director" text,
  "cast" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the year for the three musketeers`:
```sql
                SELECT "year" FROM "list_of_film_serials_by_studio" WHERE "serial_title"='the three musketeers';
```
## Task
Generate a SQL query to answer the following question:
`I want the cast for director of colbert clark and armand schaefer for burn 'em up barnes`

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

CREATE TABLE "list_of_film_serials_by_studio" (
  "serial_title" text,
  "year" text,
  "chapters" text,
  "director" text,
  "cast" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the cast for director of colbert clark and armand schaefer for burn 'em up barnes`:
```sql
                SELECT "cast" FROM "list_of_film_serials_by_studio" WHERE "director"='colbert clark and armand schaefer' AND "serial_title"='burn ''em up barnes';
```
## Task
Generate a SQL query to answer the following question:
`What is North Melbourne's Away team score?`

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

CREATE TABLE "round_3" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is North Melbourne's Away team score?`:
```sql
                SELECT "away_team_score" FROM "round_3" WHERE "away_team"='north melbourne';
```