cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Republican has a District of 10?`

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

CREATE TABLE "summary" (
  "district" real,
  "incumbent" text,
  "2008_status" text,
  "democratic" text,
  "republican" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Republican has a District of 10?`:
```sql
                SELECT "republican" FROM "summary" WHERE "district"=10;
```
## Task
Generate a SQL query to answer the following question:
`Which Incumbent has a Republican of dan mansell?`

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

CREATE TABLE "summary" (
  "district" real,
  "incumbent" text,
  "2008_status" text,
  "democratic" text,
  "republican" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Incumbent has a Republican of dan mansell?`:
```sql
                SELECT "incumbent" FROM "summary" WHERE "republican"='dan mansell';
```
## Task
Generate a SQL query to answer the following question:
`Which Democratic has a District smaller than 7, and a Republican of dan mansell?`

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

CREATE TABLE "summary" (
  "district" real,
  "incumbent" text,
  "2008_status" text,
  "democratic" text,
  "republican" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Democratic has a District smaller than 7, and a Republican of dan mansell?`:
```sql
                SELECT "democratic" FROM "summary" WHERE "district"<7 AND "republican"='dan mansell';
```
## Task
Generate a SQL query to answer the following question:
`Which record has a score of 135–134?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "opponent" text,
  "result" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record has a score of 135–134?`:
```sql
                SELECT "record" FROM "playoffs" WHERE "score"='135–134';
```
## Task
Generate a SQL query to answer the following question:
`Name the position for the player born 2 november 1987`

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

CREATE TABLE "2008_six_nations_championship_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for the player born 2 november 1987`:
```sql
                SELECT "position" FROM "2008_six_nations_championship_squads" WHERE "date_of_birth_age"='2 november 1987';
```
## Task
Generate a SQL query to answer the following question:
`Name the club/province for steve borthwick`

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

CREATE TABLE "2008_six_nations_championship_squads" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" real,
  "club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the club/province for steve borthwick`:
```sql
                SELECT "club_province" FROM "2008_six_nations_championship_squads" WHERE "player"='steve borthwick';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest ration with an ordinary value of 84 zolotnik?`

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

CREATE TABLE "apothecaries_system" (
  "unit" text,
  "russian" text,
  "translation" text,
  "ratio" real,
  "metric_value" text,
  "avoirdupois_value" text,
  "ordinary_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest ration with an ordinary value of 84 zolotnik?`:
```sql
                SELECT MAX("ratio") FROM "apothecaries_system" WHERE "ordinary_value"='84 zolotnik';
```
## Task
Generate a SQL query to answer the following question:
`What unit has an Avoirdupois value of 57.602 gr.?`

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

CREATE TABLE "apothecaries_system" (
  "unit" text,
  "russian" text,
  "translation" text,
  "ratio" real,
  "metric_value" text,
  "avoirdupois_value" text,
  "ordinary_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What unit has an Avoirdupois value of 57.602 gr.?`:
```sql
                SELECT "unit" FROM "apothecaries_system" WHERE "avoirdupois_value"='57.602 gr.';
```
## Task
Generate a SQL query to answer the following question:
`Which translation had a unit of Uncia?`

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

CREATE TABLE "apothecaries_system" (
  "unit" text,
  "russian" text,
  "translation" text,
  "ratio" real,
  "metric_value" text,
  "avoirdupois_value" text,
  "ordinary_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which translation had a unit of Uncia?`:
```sql
                SELECT "translation" FROM "apothecaries_system" WHERE "unit"='uncia';
```
## Task
Generate a SQL query to answer the following question:
`What ordinary value has a metric value of 29.861 g?`

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

CREATE TABLE "apothecaries_system" (
  "unit" text,
  "russian" text,
  "translation" text,
  "ratio" real,
  "metric_value" text,
  "avoirdupois_value" text,
  "ordinary_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What ordinary value has a metric value of 29.861 g?`:
```sql
                SELECT "ordinary_value" FROM "apothecaries_system" WHERE "metric_value"='29.861 g';
```
## Task
Generate a SQL query to answer the following question:
`Which ordinary value has a Russian value of унция?`

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

CREATE TABLE "apothecaries_system" (
  "unit" text,
  "russian" text,
  "translation" text,
  "ratio" real,
  "metric_value" text,
  "avoirdupois_value" text,
  "ordinary_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ordinary value has a Russian value of унция?`:
```sql
                SELECT "ordinary_value" FROM "apothecaries_system" WHERE "russian"='унция';
```
## Task
Generate a SQL query to answer the following question:
`Which Avoirdupois value is translated to grain?`

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

CREATE TABLE "apothecaries_system" (
  "unit" text,
  "russian" text,
  "translation" text,
  "ratio" real,
  "metric_value" text,
  "avoirdupois_value" text,
  "ordinary_value" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Avoirdupois value is translated to grain?`:
```sql
                SELECT "avoirdupois_value" FROM "apothecaries_system" WHERE "translation"='grain';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of turns for the City of san antonio?`

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

CREATE TABLE "list_of_auto_racing_tracks_in_the_united" (
  "track" text,
  "city" text,
  "state" text,
  "opened" text,
  "major_series" text,
  "turns" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of turns for the City of san antonio?`:
```sql
                SELECT "turns" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "city"='san antonio';
```
## Task
Generate a SQL query to answer the following question:
`What is the State with the imsa gt as the Major Series and a track in new orleans?`

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

CREATE TABLE "list_of_auto_racing_tracks_in_the_united" (
  "track" text,
  "city" text,
  "state" text,
  "opened" text,
  "major_series" text,
  "turns" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the State with the imsa gt as the Major Series and a track in new orleans?`:
```sql
                SELECT "state" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "major_series"='imsa gt' AND "track"='new orleans';
```
## Task
Generate a SQL query to answer the following question:
`Where is the track located with 18 turns?`

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

CREATE TABLE "list_of_auto_racing_tracks_in_the_united" (
  "track" text,
  "city" text,
  "state" text,
  "opened" text,
  "major_series" text,
  "turns" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the track located with 18 turns?`:
```sql
                SELECT "track" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "turns"='18';
```
## Task
Generate a SQL query to answer the following question:
`What is the State with the trans-am Major Series in Grand Rapids?`

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

CREATE TABLE "list_of_auto_racing_tracks_in_the_united" (
  "track" text,
  "city" text,
  "state" text,
  "opened" text,
  "major_series" text,
  "turns" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the State with the trans-am Major Series in Grand Rapids?`:
```sql
                SELECT "state" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "major_series"='trans-am' AND "city"='grand rapids';
```
## Task
Generate a SQL query to answer the following question:
`Where is the track located that opened in 1992?`

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

CREATE TABLE "list_of_auto_racing_tracks_in_the_united" (
  "track" text,
  "city" text,
  "state" text,
  "opened" text,
  "major_series" text,
  "turns" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the track located that opened in 1992?`:
```sql
                SELECT "track" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "opened"='1992';
```
## Task
Generate a SQL query to answer the following question:
`What shows for opened for the Nascar Major Series?`

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

CREATE TABLE "list_of_auto_racing_tracks_in_the_united" (
  "track" text,
  "city" text,
  "state" text,
  "opened" text,
  "major_series" text,
  "turns" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for opened for the Nascar Major Series?`:
```sql
                SELECT "opened" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "major_series"='nascar';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of FA cups associated with 0 malaysia cups?`

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

CREATE TABLE "scorers" (
  "player" text,
  "league" real,
  "malaysia_cup" real,
  "fa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of FA cups associated with 0 malaysia cups?`:
```sql
                SELECT MIN("fa_cup") FROM "scorers" WHERE "malaysia_cup"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many league cups for m patrick maria with 0 total?`

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

CREATE TABLE "scorers" (
  "player" text,
  "league" real,
  "malaysia_cup" real,
  "fa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many league cups for m patrick maria with 0 total?`:
```sql
                SELECT SUM("league") FROM "scorers" WHERE "player"='m patrick maria' AND "total"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of Malaysia Cups for a player with over 0 leagues and under 0 FA cups?`

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

CREATE TABLE "scorers" (
  "player" text,
  "league" real,
  "malaysia_cup" real,
  "fa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of Malaysia Cups for a player with over 0 leagues and under 0 FA cups?`:
```sql
                SELECT MAX("malaysia_cup") FROM "scorers" WHERE "league">0 AND "fa_cup"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the tournament on July 29 hosted by SK Brann?`

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

CREATE TABLE "results" (
  "date" text,
  "host" text,
  "agg" text,
  "visitor" text,
  "ground" text,
  "attendance" real,
  "tournament" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tournament on July 29 hosted by SK Brann?`:
```sql
                SELECT "tournament" FROM "results" WHERE "host"='sk brann' AND "date"='july 29';
```
## Task
Generate a SQL query to answer the following question:
`Who is the visitor of the match on July 29?`

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

CREATE TABLE "results" (
  "date" text,
  "host" text,
  "agg" text,
  "visitor" text,
  "ground" text,
  "attendance" real,
  "tournament" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the visitor of the match on July 29?`:
```sql
                SELECT "visitor" FROM "results" WHERE "date"='july 29';
```
## Task
Generate a SQL query to answer the following question:
`What is the game that has the phoenix suns as the opponent played against?`

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

CREATE TABLE "season_schedule" (
  "date" text,
  "opponent" text,
  "result" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game that has the phoenix suns as the opponent played against?`:
```sql
                SELECT "result" FROM "season_schedule" WHERE "opponent"='phoenix suns';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the game on 2007-04-07 with the Warriors as the visitor team?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance of the game on 2007-04-07 with the Warriors as the visitor team?`:
```sql
                SELECT "attendance" FROM "april" WHERE "visitor"='warriors' AND "date"='2007-04-07';
```
## Task
Generate a SQL query to answer the following question:
`What day is their record 13-15?`

### 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 day is their record 13-15?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='13-15';
```
## Task
Generate a SQL query to answer the following question:
`Who did they play when dickey (0-1) recorded the loss?`

### 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 `Who did they play when dickey (0-1) recorded the loss?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "loss"='dickey (0-1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the game of heinz field with a record of 2-5?`

### 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,
  "time_et" text,
  "game_site" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the game of heinz field with a record of 2-5?`:
```sql
                SELECT "result" FROM "schedule" WHERE "game_site"='heinz field' AND "record"='2-5';
```
## Task
Generate a SQL query to answer the following question:
`What opponent has a record of 6-9?`

### 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,
  "time_et" text,
  "game_site" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent has a record of 6-9?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "record"='6-9';
```
## Task
Generate a SQL query to answer the following question:
`What is the week with a record of 2-1?`

### 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,
  "time_et" text,
  "game_site" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week with a record of 2-1?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "record"='2-1';
```
## Task
Generate a SQL query to answer the following question:
`What City of license has a Frequency MHz smaller than 95.9 with w223au as the call sign?`

### 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 `What City of license has a Frequency MHz smaller than 95.9 with w223au as the call sign?`:
```sql
                SELECT "city_of_license" FROM "translators" WHERE "frequency_m_hz"<95.9 AND "call_sign"='w223au';
```
## Task
Generate a SQL query to answer the following question:
`What is the Call sign for the ERP W 19?`

### 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 `What is the Call sign for the ERP W 19?`:
```sql
                SELECT "call_sign" FROM "translators" WHERE "erp_w"=19;
```
## Task
Generate a SQL query to answer the following question:
`What FCC info is listed for the ERP W of 2?`

### 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 `What FCC info is listed for the ERP W of 2?`:
```sql
                SELECT "fcc_info" FROM "translators" WHERE "erp_w"=2;
```
## Task
Generate a SQL query to answer the following question:
`What Call sign shows an ERP W of 80?`

### 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 `What Call sign shows an ERP W of 80?`:
```sql
                SELECT "call_sign" FROM "translators" WHERE "erp_w"=80;
```
## Task
Generate a SQL query to answer the following question:
`What is the Class for the ERP W of more than 2 and the call sign of w223au?`

### 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 `What is the Class for the ERP W of more than 2 and the call sign of w223au?`:
```sql
                SELECT "class" FROM "translators" WHERE "erp_w">2 AND "call_sign"='w223au';
```
## Task
Generate a SQL query to answer the following question:
`what team lost on july 30`

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

CREATE TABLE "game_log" (
  "date" text,
  "time" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what team lost on july 30`:
```sql
                SELECT "loss" FROM "game_log" WHERE "date"='july 30';
```
## Task
Generate a SQL query to answer the following question:
`What sport was played on February 25, 2011?`

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

CREATE TABLE "2010_2011" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What sport was played on February 25, 2011?`:
```sql
                SELECT "sport" FROM "2010_2011" WHERE "date"='february 25, 2011';
```
## Task
Generate a SQL query to answer the following question:
`Where was the sport played on September 10, 2010?`

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

CREATE TABLE "2010_2011" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the sport played on September 10, 2010?`:
```sql
                SELECT "site" FROM "2010_2011" WHERE "date"='september 10, 2010';
```
## Task
Generate a SQL query to answer the following question:
`What type of surface was played on when julie halard-decugis was the partner on October 8, 2000?`

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

CREATE TABLE "doubles_wins_38" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of surface was played on when julie halard-decugis was the partner on October 8, 2000?`:
```sql
                SELECT "surface" FROM "doubles_wins_38" WHERE "partner"='julie halard-decugis' AND "date"='october 8, 2000';
```
## Task
Generate a SQL query to answer the following question:
`How many Played has a % Win of 50.00%, and Losses of 1, and Wins smaller than 1?`

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

CREATE TABLE "summary_of_results_by_season" (
  "year" text,
  "played" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "pct_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Played has a % Win of 50.00%, and Losses of 1, and Wins smaller than 1?`:
```sql
                SELECT COUNT("played") FROM "summary_of_results_by_season" WHERE "pct_win"='50.00%' AND "losses"=1 AND "wins"<1;
```
## Task
Generate a SQL query to answer the following question:
`WHAT kind of No Result has Wins smaller than 2, and Losses larger than 1?`

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

CREATE TABLE "summary_of_results_by_season" (
  "year" text,
  "played" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "pct_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT kind of No Result has Wins smaller than 2, and Losses larger than 1?`:
```sql
                SELECT "no_result" FROM "summary_of_results_by_season" WHERE "wins"<2 AND "losses">1;
```
## Task
Generate a SQL query to answer the following question:
`How many Played that has Losses of 6, and Wins larger than 33?`

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

CREATE TABLE "summary_of_results_by_season" (
  "year" text,
  "played" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "pct_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Played that has Losses of 6, and Wins larger than 33?`:
```sql
                SELECT AVG("played") FROM "summary_of_results_by_season" WHERE "losses"=6 AND "wins">33;
```
## Task
Generate a SQL query to answer the following question:
`What  kind of No Result  has a % Win of 100.00% and a Played larger than 4 in 2012?`

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

CREATE TABLE "summary_of_results_by_season" (
  "year" text,
  "played" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "pct_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `What  kind of No Result  has a % Win of 100.00% and a Played larger than 4 in 2012?`:
```sql
                SELECT MIN("no_result") FROM "summary_of_results_by_season" WHERE "pct_win"='100.00%' AND "played">4 AND "year"='2012';
```
## Task
Generate a SQL query to answer the following question:
`What is the Loss has an Attendance more than 43,095 and a Record of 31–29?`

### 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 is the Loss has an Attendance more than 43,095 and a Record of 31–29?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "attendance">'43,095' AND "record"='31–29';
```
## Task
Generate a SQL query to answer the following question:
`Which Loss has a Score of 6–5?`

### 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 `Which Loss has a Score of 6–5?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "score"='6–5';
```
## Task
Generate a SQL query to answer the following question:
`Date of wed. nov. 13 had how many number of games?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Date of wed. nov. 13 had how many number of games?`:
```sql
                SELECT COUNT("game") FROM "game_log" WHERE "date"='wed. nov. 13';
```
## Task
Generate a SQL query to answer the following question:
`Record of 6–1 had what score?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Record of 6–1 had what score?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='6–1';
```
## Task
Generate a SQL query to answer the following question:
`Score of 118–114, and a Record of 8–1 is what lowest game?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Score of 118–114, and a Record of 8–1 is what lowest game?`:
```sql
                SELECT MIN("game") FROM "game_log" WHERE "score"='118–114' AND "record"='8–1';
```
## Task
Generate a SQL query to answer the following question:
`Which circuit was in Great Britain with Ireland as the winner?`

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

CREATE TABLE "season_calendar" (
  "date" text,
  "country" text,
  "circuit" text,
  "sprint_winner" text,
  "feature_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which circuit was in Great Britain with Ireland as the winner?`:
```sql
                SELECT "circuit" FROM "season_calendar" WHERE "feature_winner"='ireland' AND "country"='great britain';
```
## Task
Generate a SQL query to answer the following question:
`How many were in attendance when the league position was 16th and the score was F–A of 0–3?`

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

CREATE TABLE "match_details" (
  "date" text,
  "league_position" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance when the league position was 16th and the score was F–A of 0–3?`:
```sql
                SELECT COUNT("attendance") FROM "match_details" WHERE "league_position"='16th' AND "score_f_a"='0–3';
```
## Task
Generate a SQL query to answer the following question:
`How many were in attendance for a result of D, at H venue, and Arsenal as an opponent?`

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

CREATE TABLE "match_details" (
  "date" text,
  "league_position" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance for a result of D, at H venue, and Arsenal as an opponent?`:
```sql
                SELECT "attendance" FROM "match_details" WHERE "result"='d' AND "venue"='h' AND "opponents"='arsenal';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number in attendance at H venue opposing Liverpool with a result of D?`

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

CREATE TABLE "match_details" (
  "date" text,
  "league_position" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number in attendance at H venue opposing Liverpool with a result of D?`:
```sql
                SELECT MAX("attendance") FROM "match_details" WHERE "venue"='h' AND "result"='d' AND "opponents"='liverpool';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of Justin Jeffries?`

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

CREATE TABLE "norfolk_state" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of Justin Jeffries?`:
```sql
                SELECT COUNT("number") FROM "norfolk_state" WHERE "name"='justin jeffries';
```
## Task
Generate a SQL query to answer the following question:
`How many games has number 61 played in?`

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

CREATE TABLE "norfolk_state" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games has number 61 played in?`:
```sql
                SELECT MIN("games") FROM "norfolk_state" WHERE "number"=61;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player who is a wr and has a weight of 197?`

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

CREATE TABLE "norfolk_state" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player who is a wr and has a weight of 197?`:
```sql
                SELECT "name" FROM "norfolk_state" WHERE "position"='wr' AND "weight"=197;
```
## Task
Generate a SQL query to answer the following question:
`What is the hometown of number 40?`

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

CREATE TABLE "norfolk_state" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" real,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown of number 40?`:
```sql
                SELECT "hometown" FROM "norfolk_state" WHERE "number"=40;
```
## Task
Generate a SQL query to answer the following question:
`What date is the visitor Ottawa?`

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

CREATE TABLE "october" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date is the visitor Ottawa?`:
```sql
                SELECT "date" FROM "october" WHERE "visitor"='ottawa';
```
## Task
Generate a SQL query to answer the following question:
`what is the sum of the year in rhode island`

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

CREATE TABLE "expulsion_proceedings_not_resulting_in_e" (
  "year" real,
  "senator" text,
  "party" text,
  "state" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the sum of the year in rhode island`:
```sql
                SELECT SUM("year") FROM "expulsion_proceedings_not_resulting_in_e" WHERE "state"='rhode island';
```
## Task
Generate a SQL query to answer the following question:
`what is the senator in kentucky`

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

CREATE TABLE "expulsion_proceedings_not_resulting_in_e" (
  "year" real,
  "senator" text,
  "party" text,
  "state" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the senator in kentucky`:
```sql
                SELECT "senator" FROM "expulsion_proceedings_not_resulting_in_e" WHERE "state"='kentucky';
```
## Task
Generate a SQL query to answer the following question:
`What is the destination of the rail with Dhanbad as the origin?`

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

CREATE TABLE "rail" (
  "train_number" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency_inbound_outbound" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the destination of the rail with Dhanbad as the origin?`:
```sql
                SELECT "destination" FROM "rail" WHERE "origin"='dhanbad';
```
## Task
Generate a SQL query to answer the following question:
`What is the destination of the Garib nwaz exp train?`

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

CREATE TABLE "rail" (
  "train_number" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency_inbound_outbound" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the destination of the Garib nwaz exp train?`:
```sql
                SELECT "destination" FROM "rail" WHERE "train_name"='garib nwaz exp';
```
## Task
Generate a SQL query to answer the following question:
`What is the train name of the rail with a daily frequency and a destination of Rajgir?`

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

CREATE TABLE "rail" (
  "train_number" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency_inbound_outbound" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the train name of the rail with a daily frequency and a destination of Rajgir?`:
```sql
                SELECT "train_name" FROM "rail" WHERE "frequency_inbound_outbound"='daily' AND "destination"='rajgir';
```
## Task
Generate a SQL query to answer the following question:
`What is the train name of the rail with a daily frequency and Jammutawi as the destination?`

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

CREATE TABLE "rail" (
  "train_number" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency_inbound_outbound" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the train name of the rail with a daily frequency and Jammutawi as the destination?`:
```sql
                SELECT "train_name" FROM "rail" WHERE "frequency_inbound_outbound"='daily' AND "destination"='jammutawi';
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency of the rail with an origin of Ranchi?`

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

CREATE TABLE "rail" (
  "train_number" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency_inbound_outbound" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of the rail with an origin of Ranchi?`:
```sql
                SELECT "frequency_inbound_outbound" FROM "rail" WHERE "origin"='ranchi';
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency of the train named Garib nwaz exp?`

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

CREATE TABLE "rail" (
  "train_number" text,
  "train_name" text,
  "origin" text,
  "destination" text,
  "frequency_inbound_outbound" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of the train named Garib nwaz exp?`:
```sql
                SELECT "frequency_inbound_outbound" FROM "rail" WHERE "train_name"='garib nwaz exp';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment c with episode less than 179 and segment b of s sticker`

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

CREATE TABLE "season_14_2009_2010" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment c with episode less than 179 and segment b of s sticker`:
```sql
                SELECT "segment_c" FROM "season_14_2009_2010" WHERE "episode"<179 AND "segment_b"='s sticker';
```
## Task
Generate a SQL query to answer the following question:
`Name the segment c for ski goggles`

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

CREATE TABLE "season_14_2009_2010" (
  "series_ep" text,
  "episode" real,
  "netflix" text,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the segment c for ski goggles`:
```sql
                SELECT "segment_c" FROM "season_14_2009_2010" WHERE "segment_a"='ski goggles';
```
## Task
Generate a SQL query to answer the following question:
`In which position did Steve play first?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which position did Steve play first?`:
```sql
                SELECT "position" FROM "player_roster" WHERE "first"='steve';
```
## Task
Generate a SQL query to answer the following question:
`Which bats did mitchell play first?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which bats did mitchell play first?`:
```sql
                SELECT "bats" FROM "player_roster" WHERE "first"='mitchell';
```
## Task
Generate a SQL query to answer the following question:
`When is mr. ryan's DOB?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is mr. ryan's DOB?`:
```sql
                SELECT "d_o_b" FROM "player_roster" WHERE "surname"='ryan';
```
## Task
Generate a SQL query to answer the following question:
`Which Throws have a Position of 3b/rhp?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Throws have a Position of 3b/rhp?`:
```sql
                SELECT "throws" FROM "player_roster" WHERE "position"='3b/rhp';
```
## Task
Generate a SQL query to answer the following question:
`When is Collins' DOB?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is Collins' DOB?`:
```sql
                SELECT "d_o_b" FROM "player_roster" WHERE "surname"='collins';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a D.O.B. of 3 june 1989?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a D.O.B. of 3 june 1989?`:
```sql
                SELECT "position" FROM "player_roster" WHERE "d_o_b"='3 june 1989';
```
## Task
Generate a SQL query to answer the following question:
`What type of architecture does the Saturn Vue have?`

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

CREATE TABLE "past_competitions" (
  "years" text,
  "competition" text,
  "vehicle_name" text,
  "original_vehicle" text,
  "architecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of architecture does the Saturn Vue have?`:
```sql
                SELECT "architecture" FROM "past_competitions" WHERE "vehicle_name"='saturn vue';
```
## Task
Generate a SQL query to answer the following question:
`What architecture type does the Ford Escort Wagon have?`

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

CREATE TABLE "past_competitions" (
  "years" text,
  "competition" text,
  "vehicle_name" text,
  "original_vehicle" text,
  "architecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `What architecture type does the Ford Escort Wagon have?`:
```sql
                SELECT "architecture" FROM "past_competitions" WHERE "original_vehicle"='ford escort wagon';
```
## Task
Generate a SQL query to answer the following question:
`What original vehicle has uwhvt homepage architecture?`

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

CREATE TABLE "past_competitions" (
  "years" text,
  "competition" text,
  "vehicle_name" text,
  "original_vehicle" text,
  "architecture" text
);
### SQL
Given the database schema, here is the SQL query that answers `What original vehicle has uwhvt homepage architecture?`:
```sql
                SELECT "original_vehicle" FROM "past_competitions" WHERE "architecture"='uwhvt homepage';
```
## Task
Generate a SQL query to answer the following question:
`Which Winner has a Last 16 of £400?`

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

CREATE TABLE "prize_money" (
  "year" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text,
  "quarter_finalists" text,
  "last_16" text,
  "last_32" text,
  "last_64" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Winner has a Last 16 of £400?`:
```sql
                SELECT "winner" FROM "prize_money" WHERE "last_16"='£400';
```
## Task
Generate a SQL query to answer the following question:
`Which Runner-Up has a Total of £31,200?`

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

CREATE TABLE "prize_money" (
  "year" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text,
  "quarter_finalists" text,
  "last_16" text,
  "last_32" text,
  "last_64" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Runner-Up has a Total of £31,200?`:
```sql
                SELECT "runner_up" FROM "prize_money" WHERE "total"='£31,200';
```
## Task
Generate a SQL query to answer the following question:
`Which Runner-Up has a Last 16 of £300?`

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

CREATE TABLE "prize_money" (
  "year" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text,
  "quarter_finalists" text,
  "last_16" text,
  "last_32" text,
  "last_64" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Runner-Up has a Last 16 of £300?`:
```sql
                SELECT "runner_up" FROM "prize_money" WHERE "last_16"='£300';
```
## Task
Generate a SQL query to answer the following question:
`Which Last 64 has a Total of £34,600?`

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

CREATE TABLE "prize_money" (
  "year" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text,
  "quarter_finalists" text,
  "last_16" text,
  "last_32" text,
  "last_64" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Last 64 has a Total of £34,600?`:
```sql
                SELECT "last_64" FROM "prize_money" WHERE "total"='£34,600';
```
## Task
Generate a SQL query to answer the following question:
`Which Winner has Semi-Finalists of £2,000?`

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

CREATE TABLE "prize_money" (
  "year" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text,
  "quarter_finalists" text,
  "last_16" text,
  "last_32" text,
  "last_64" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Winner has Semi-Finalists of £2,000?`:
```sql
                SELECT "winner" FROM "prize_money" WHERE "semi_finalists"='£2,000';
```