cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`On what Date was the Venue Los Angeles?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was the Venue Los Angeles?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "venue"='los angeles';
```
## Task
Generate a SQL query to answer the following question:
`What was the Score on September 29, 2003?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Score on September 29, 2003?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='september 29, 2003';
```
## Task
Generate a SQL query to answer the following question:
`On what Date was the Venue in Carson?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was the Venue in Carson?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "venue"='carson';
```
## Task
Generate a SQL query to answer the following question:
`What was the competition on October 21, 2003?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the competition on October 21, 2003?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "date"='october 21, 2003';
```
## Task
Generate a SQL query to answer the following question:
`What was the Competition on September 29, 2003?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Competition on September 29, 2003?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "date"='september 29, 2003';
```
## Task
Generate a SQL query to answer the following question:
`What country has chunkath, mohan verghese as the name?`

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

CREATE TABLE "complete_results" (
  "position" real,
  "name" text,
  "country" text,
  "win_loss" text,
  "spread" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country has chunkath, mohan verghese as the name?`:
```sql
                SELECT "country" FROM "complete_results" WHERE "name"='chunkath, mohan verghese';
```
## Task
Generate a SQL query to answer the following question:
`What position has a spread greater than -319, and United States as the country, a win loss of 11-13, and gabriel, marty as the name?`

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

CREATE TABLE "complete_results" (
  "position" real,
  "name" text,
  "country" text,
  "win_loss" text,
  "spread" real
);
### SQL
Given the database schema, here is the SQL query that answers `What position has a spread greater than -319, and United States as the country, a win loss of 11-13, and gabriel, marty as the name?`:
```sql
                SELECT "position" FROM "complete_results" WHERE "spread">-319 AND "country"='united states' AND "win_loss"='11-13' AND "name"='gabriel, marty';
```
## Task
Generate a SQL query to answer the following question:
`What name has a spread of 69?`

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

CREATE TABLE "complete_results" (
  "position" real,
  "name" text,
  "country" text,
  "win_loss" text,
  "spread" real
);
### SQL
Given the database schema, here is the SQL query that answers `What name has a spread of 69?`:
```sql
                SELECT "name" FROM "complete_results" WHERE "spread"=69;
```
## Task
Generate a SQL query to answer the following question:
`Which Performer 2 has an Episode of 5?`

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

CREATE TABLE "series_8" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Performer 2 has an Episode of 5?`:
```sql
                SELECT "performer_2" FROM "series_8" WHERE "episode"=5;
```
## Task
Generate a SQL query to answer the following question:
`What weight has one rupee as the denomination?`

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

CREATE TABLE "naya_paisa_series" (
  "denomination" text,
  "metal" text,
  "weight" text,
  "shape" text,
  "size" text
);
### SQL
Given the database schema, here is the SQL query that answers `What weight has one rupee as the denomination?`:
```sql
                SELECT "weight" FROM "naya_paisa_series" WHERE "denomination"='one rupee';
```
## Task
Generate a SQL query to answer the following question:
`What is the size that has nickel as the metal, and one rupee as the denomination?`

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

CREATE TABLE "naya_paisa_series" (
  "denomination" text,
  "metal" text,
  "weight" text,
  "shape" text,
  "size" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the size that has nickel as the metal, and one rupee as the denomination?`:
```sql
                SELECT "size" FROM "naya_paisa_series" WHERE "metal"='nickel' AND "denomination"='one rupee';
```
## Task
Generate a SQL query to answer the following question:
`What metal has one rupee as the denomination?`

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

CREATE TABLE "naya_paisa_series" (
  "denomination" text,
  "metal" text,
  "weight" text,
  "shape" text,
  "size" text
);
### SQL
Given the database schema, here is the SQL query that answers `What metal has one rupee as the denomination?`:
```sql
                SELECT "metal" FROM "naya_paisa_series" WHERE "denomination"='one rupee';
```
## Task
Generate a SQL query to answer the following question:
`What shape has nickel as the metal, and one rupee as the denomination?`

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

CREATE TABLE "naya_paisa_series" (
  "denomination" text,
  "metal" text,
  "weight" text,
  "shape" text,
  "size" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shape has nickel as the metal, and one rupee as the denomination?`:
```sql
                SELECT "shape" FROM "naya_paisa_series" WHERE "metal"='nickel' AND "denomination"='one rupee';
```
## Task
Generate a SQL query to answer the following question:
`Which 2007 has a 2010 of A, and a 2006 of lq?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007 has a 2010 of A, and a 2006 of lq?`:
```sql
                SELECT "2007" FROM "singles_performance_timeline" WHERE "2010"='a' AND "2006"='lq';
```
## Task
Generate a SQL query to answer the following question:
`Which 2012 has a 2007 of 1r?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2012 has a 2007 of 1r?`:
```sql
                SELECT "2012" FROM "singles_performance_timeline" WHERE "2007"='1r';
```
## Task
Generate a SQL query to answer the following question:
`Which 2002 has a 2013 of 2–4?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2002 has a 2013 of 2–4?`:
```sql
                SELECT "2002" FROM "singles_performance_timeline" WHERE "2013"='2–4';
```
## Task
Generate a SQL query to answer the following question:
`Which 2013 has a 2010 of 1r?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2013 has a 2010 of 1r?`:
```sql
                SELECT "2013" FROM "singles_performance_timeline" WHERE "2010"='1r';
```
## Task
Generate a SQL query to answer the following question:
`Which 2005 has a Tournament of grand slam tournaments?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2005 has a Tournament of grand slam tournaments?`:
```sql
                SELECT "2005" FROM "singles_performance_timeline" WHERE "tournament"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`Which 2007 has a 2008 of 1r, and a Tournament of wimbledon?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2007 has a 2008 of 1r, and a Tournament of wimbledon?`:
```sql
                SELECT "2007" FROM "singles_performance_timeline" WHERE "2008"='1r' AND "tournament"='wimbledon';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Home of minnesota?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Home of minnesota?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "home"='minnesota';
```
## Task
Generate a SQL query to answer the following question:
`Which Visitor has a Decision of myre, and a Record of 44–7–15?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Visitor has a Decision of myre, and a Record of 44–7–15?`:
```sql
                SELECT "visitor" FROM "regular_season" WHERE "decision"='myre' AND "record"='44–7–15';
```
## Task
Generate a SQL query to answer the following question:
`What Championship had a Winning score of 6 & 5?`

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

CREATE TABLE "wins_11" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Championship had a Winning score of 6 & 5?`:
```sql
                SELECT "championship" FROM "wins_11" WHERE "winning_score"='6 & 5';
```
## Task
Generate a SQL query to answer the following question:
`What was the Winning Score when Betsy Rawls was the Runner(s)-up?`

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

CREATE TABLE "wins_11" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Winning Score when Betsy Rawls was the Runner(s)-up?`:
```sql
                SELECT "winning_score" FROM "wins_11" WHERE "runner_s_up"='betsy rawls';
```
## Task
Generate a SQL query to answer the following question:
`In 1946, what is the Runner(s)-up of the Women's Western Open Championship?`

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

CREATE TABLE "wins_11" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 1946, what is the Runner(s)-up of the Women's Western Open Championship?`:
```sql
                SELECT "runner_s_up" FROM "wins_11" WHERE "championship"='women''s western open' AND "year"=1946;
```
## Task
Generate a SQL query to answer the following question:
`What is the Margin in 1953 when Patty Berg was Runner(s)-up?`

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

CREATE TABLE "wins_11" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Margin in 1953 when Patty Berg was Runner(s)-up?`:
```sql
                SELECT "margin" FROM "wins_11" WHERE "runner_s_up"='patty berg' AND "year"=1953;
```
## Task
Generate a SQL query to answer the following question:
`What is the Margin when the Winning score is +8 (70-69-70-75=284)?`

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

CREATE TABLE "wins_11" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Margin when the Winning score is +8 (70-69-70-75=284)?`:
```sql
                SELECT "margin" FROM "wins_11" WHERE "winning_score"='+8 (70-69-70-75=284)';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the primary with a DCSF number larger than 2337 and an Ofsted number smaller than 135339?`

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

CREATE TABLE "north_east" (
  "name" text,
  "faith" text,
  "type" text,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the primary with a DCSF number larger than 2337 and an Ofsted number smaller than 135339?`:
```sql
                SELECT "name" FROM "north_east" WHERE "type"='primary' AND "dcsf_number">2337 AND "ofsted_number"<135339;
```
## Task
Generate a SQL query to answer the following question:
`What name that has a DCSF number bigger than 2448 and an Ofsted number of 131319?`

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

CREATE TABLE "north_east" (
  "name" text,
  "faith" text,
  "type" text,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `What name that has a DCSF number bigger than 2448 and an Ofsted number of 131319?`:
```sql
                SELECT "name" FROM "north_east" WHERE "dcsf_number">2448 AND "ofsted_number"=131319;
```
## Task
Generate a SQL query to answer the following question:
`What faith has a DCSF number bigger than 2448 in Holtsmere End?`

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

CREATE TABLE "north_east" (
  "name" text,
  "faith" text,
  "type" text,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `What faith has a DCSF number bigger than 2448 in Holtsmere End?`:
```sql
                SELECT "faith" FROM "north_east" WHERE "dcsf_number">2448 AND "name"='holtsmere end';
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest DCSF number in Aycliffe Drive but an Ofsted number smaller than 117335?`

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

CREATE TABLE "north_east" (
  "name" text,
  "faith" text,
  "type" text,
  "dcsf_number" real,
  "ofsted_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest DCSF number in Aycliffe Drive but an Ofsted number smaller than 117335?`:
```sql
                SELECT MIN("dcsf_number") FROM "north_east" WHERE "name"='aycliffe drive' AND "ofsted_number"<117335;
```
## Task
Generate a SQL query to answer the following question:
`what city is the toamasina airport in?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `what city is the toamasina airport in?`:
```sql
                SELECT "city" FROM "destinations" WHERE "airport"='toamasina airport';
```
## Task
Generate a SQL query to answer the following question:
`What country has the city, Sydney?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has the city, Sydney?`:
```sql
                SELECT "country" FROM "destinations" WHERE "city"='sydney';
```
## Task
Generate a SQL query to answer the following question:
`What city is in the country of Mayotte?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city is in the country of Mayotte?`:
```sql
                SELECT "city" FROM "destinations" WHERE "country"='mayotte';
```
## Task
Generate a SQL query to answer the following question:
`What is the IATA for the chennai international airport?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IATA for the chennai international airport?`:
```sql
                SELECT "iata" FROM "destinations" WHERE "airport"='chennai international airport';
```
## Task
Generate a SQL query to answer the following question:
`What is the airport name that has nos listed as the IATA?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the airport name that has nos listed as the IATA?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "iata"='nos';
```
## Task
Generate a SQL query to answer the following question:
`What is the part number of athlon x2 4850e?`

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

CREATE TABLE "energy_efficient_e_series" (
  "model_number" text,
  "stepping" text,
  "frequency" text,
  "l2_cache" text,
  "multi_1" text,
  "v_core" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the part number of athlon x2 4850e?`:
```sql
                SELECT "part_number_s" FROM "energy_efficient_e_series" WHERE "model_number"='athlon x2 4850e';
```
## Task
Generate a SQL query to answer the following question:
`What's the frequency of the device that has a Multi 1 of 7.5×?`

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

CREATE TABLE "energy_efficient_e_series" (
  "model_number" text,
  "stepping" text,
  "frequency" text,
  "l2_cache" text,
  "multi_1" text,
  "v_core" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the frequency of the device that has a Multi 1 of 7.5×?`:
```sql
                SELECT "frequency" FROM "energy_efficient_e_series" WHERE "multi_1"='7.5×';
```
## Task
Generate a SQL query to answer the following question:
`What's amount of L2 Cache on a device that has a Frequency of 1500mhz?`

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

CREATE TABLE "energy_efficient_e_series" (
  "model_number" text,
  "stepping" text,
  "frequency" text,
  "l2_cache" text,
  "multi_1" text,
  "v_core" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's amount of L2 Cache on a device that has a Frequency of 1500mhz?`:
```sql
                SELECT "l2_cache" FROM "energy_efficient_e_series" WHERE "frequency"='1500mhz';
```
## Task
Generate a SQL query to answer the following question:
`When is the release date for a chip that has a Frequency of 2300mhz?`

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

CREATE TABLE "energy_efficient_e_series" (
  "model_number" text,
  "stepping" text,
  "frequency" text,
  "l2_cache" text,
  "multi_1" text,
  "v_core" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the release date for a chip that has a Frequency of 2300mhz?`:
```sql
                SELECT "release_date" FROM "energy_efficient_e_series" WHERE "frequency"='2300mhz';
```
## Task
Generate a SQL query to answer the following question:
`When was the release date for technology that has a Multi 1 of 10.5×?`

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

CREATE TABLE "energy_efficient_e_series" (
  "model_number" text,
  "stepping" text,
  "frequency" text,
  "l2_cache" text,
  "multi_1" text,
  "v_core" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the release date for technology that has a Multi 1 of 10.5×?`:
```sql
                SELECT "release_date" FROM "energy_efficient_e_series" WHERE "multi_1"='10.5×';
```
## Task
Generate a SQL query to answer the following question:
`What's the stepping amount for adh4450iaa5do?`

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

CREATE TABLE "energy_efficient_e_series" (
  "model_number" text,
  "stepping" text,
  "frequency" text,
  "l2_cache" text,
  "multi_1" text,
  "v_core" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the stepping amount for adh4450iaa5do?`:
```sql
                SELECT "stepping" FROM "energy_efficient_e_series" WHERE "part_number_s"='adh4450iaa5do';
```
## Task
Generate a SQL query to answer the following question:
`Which Wins is the highest one that has a Year larger than 1996, and a Championship Finish of 1st, and Points smaller than 168?`

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

CREATE TABLE "cart_career_results" (
  "year" real,
  "team" text,
  "wins" real,
  "points" real,
  "championship_finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Wins is the highest one that has a Year larger than 1996, and a Championship Finish of 1st, and Points smaller than 168?`:
```sql
                SELECT MAX("wins") FROM "cart_career_results" WHERE "year">1996 AND "championship_finish"='1st' AND "points"<168;
```
## Task
Generate a SQL query to answer the following question:
`Which Year is the highest that has a Team of walker racing, and Wins larger than 1?`

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

CREATE TABLE "cart_career_results" (
  "year" real,
  "team" text,
  "wins" real,
  "points" real,
  "championship_finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year is the highest that has a Team of walker racing, and Wins larger than 1?`:
```sql
                SELECT MAX("year") FROM "cart_career_results" WHERE "team"='walker racing' AND "wins">1;
```
## Task
Generate a SQL query to answer the following question:
`Which Points have a Year larger than 1998, and Wins of 1?`

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

CREATE TABLE "cart_career_results" (
  "year" real,
  "team" text,
  "wins" real,
  "points" real,
  "championship_finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have a Year larger than 1998, and Wins of 1?`:
```sql
                SELECT AVG("points") FROM "cart_career_results" WHERE "year">1998 AND "wins"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest bronze number when silver shows 2, and the total is 8?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest bronze number when silver shows 2, and the total is 8?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "silver"=2 AND "total"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the silver number when gold is more than 4, and the total is less than 24?`

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

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

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gold number when the total is 8 and bronze is more than 4?`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "total"=8 AND "bronze">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Total for 0 gold and less than 2, silver with a rank of 6?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Total for 0 gold and less than 2, silver with a rank of 6?`:
```sql
                SELECT SUM("total") FROM "medal_table" WHERE "gold"=0 AND "silver"<2 AND "rank"='6';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Gold when silver is more than 2, and bronze is more than 1`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Gold when silver is more than 2, and bronze is more than 1`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "silver">2 AND "bronze">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Bronze when silver is more than 2, and rank is 2, and gold more than 2`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Bronze when silver is more than 2, and rank is 2, and gold more than 2`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "silver">2 AND "rank"='2' AND "gold">2;
```
## Task
Generate a SQL query to answer the following question:
`What city in Svalbard has a longitude of 15°39′e?`

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

CREATE TABLE "list_of_cities_by_latitude" (
  "latitude" text,
  "longitude" text,
  "city" text,
  "state" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city in Svalbard has a longitude of 15°39′e?`:
```sql
                SELECT "city" FROM "list_of_cities_by_latitude" WHERE "state"='svalbard' AND "longitude"='15°39′e';
```
## Task
Generate a SQL query to answer the following question:
`If the latitude is 77°28′n, what is the longitude?`

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

CREATE TABLE "list_of_cities_by_latitude" (
  "latitude" text,
  "longitude" text,
  "city" text,
  "state" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the latitude is 77°28′n, what is the longitude?`:
```sql
                SELECT "longitude" FROM "list_of_cities_by_latitude" WHERE "latitude"='77°28′n';
```
## Task
Generate a SQL query to answer the following question:
`If the latitude is 76°25′n, what is the longitude?`

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

CREATE TABLE "list_of_cities_by_latitude" (
  "latitude" text,
  "longitude" text,
  "city" text,
  "state" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the latitude is 76°25′n, what is the longitude?`:
```sql
                SELECT "longitude" FROM "list_of_cities_by_latitude" WHERE "latitude"='76°25′n';
```
## Task
Generate a SQL query to answer the following question:
`If the latitude is 71°18′n, what is the longitude?`

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

CREATE TABLE "list_of_cities_by_latitude" (
  "latitude" text,
  "longitude" text,
  "city" text,
  "state" text,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the latitude is 71°18′n, what is the longitude?`:
```sql
                SELECT "longitude" FROM "list_of_cities_by_latitude" WHERE "latitude"='71°18′n';
```
## Task
Generate a SQL query to answer the following question:
`Who is the partner facing the opponents florian Mayer & alexander waske in the final?`

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

CREATE TABLE "doubles_titles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the partner facing the opponents florian Mayer & alexander waske in the final?`:
```sql
                SELECT "partner" FROM "doubles_titles_5" WHERE "opponents_in_the_final"='florian mayer & alexander waske';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament has a hard surface and final opponents rohan bopanna & mustafa ghouse?`

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

CREATE TABLE "doubles_titles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament has a hard surface and final opponents rohan bopanna & mustafa ghouse?`:
```sql
                SELECT "tournament" FROM "doubles_titles_5" WHERE "surface"='hard' AND "opponents_in_the_final"='rohan bopanna & mustafa ghouse';
```
## Task
Generate a SQL query to answer the following question:
`On which date did the tournament final with the clay surface take place?`

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

CREATE TABLE "doubles_titles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date did the tournament final with the clay surface take place?`:
```sql
                SELECT "date" FROM "doubles_titles_5" WHERE "surface"='clay';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament features the partner julian knowle?`

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

CREATE TABLE "doubles_titles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament features the partner julian knowle?`:
```sql
                SELECT "tournament" FROM "doubles_titles_5" WHERE "partner"='julian knowle';
```
## Task
Generate a SQL query to answer the following question:
`On which date is the tournament final with the opponents michael berrer & kenneth carlsen?`

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

CREATE TABLE "doubles_titles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date is the tournament final with the opponents michael berrer & kenneth carlsen?`:
```sql
                SELECT "date" FROM "doubles_titles_5" WHERE "opponents_in_the_final"='michael berrer & kenneth carlsen';
```
## Task
Generate a SQL query to answer the following question:
`What was the score after february 4 in the game 61?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score after february 4 in the game 61?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "february">4 AND "game"=61;
```
## Task
Generate a SQL query to answer the following question:
`What is Arkansas State's total pick number with an overal lower than 242?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Arkansas State's total pick number with an overal lower than 242?`:
```sql
                SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "college"='arkansas state' AND "overall"<242;
```
## Task
Generate a SQL query to answer the following question:
`Who is from the College of Cincinnati?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is from the College of Cincinnati?`:
```sql
                SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "college"='cincinnati';
```
## Task
Generate a SQL query to answer the following question:
`What is the overall number for a kicker with a pick of less than 6?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the overall number for a kicker with a pick of less than 6?`:
```sql
                SELECT COUNT("overall") FROM "atlanta_falcons_draft_history" WHERE "position"='kicker' AND "pick_num"<6;
```
## Task
Generate a SQL query to answer the following question:
`Which college has a defensive end with a round less than 6?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college has a defensive end with a round less than 6?`:
```sql
                SELECT "college" FROM "atlanta_falcons_draft_history" WHERE "round">6 AND "position"='defensive end';
```
## Task
Generate a SQL query to answer the following question:
`What record has a score of 111-96?`

### 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 `What record has a score of 111-96?`:
```sql
                SELECT "record" FROM "game_log" WHERE "score"='111-96';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for a game after 34 with a record of 31-11?`

### 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 `What is the score for a game after 34 with a record of 31-11?`:
```sql
                SELECT "score" FROM "game_log" WHERE "game">34 AND "record"='31-11';
```
## Task
Generate a SQL query to answer the following question:
`What was the date with a resulted score of 130-100?`

### 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 `What was the date with a resulted score of 130-100?`:
```sql
                SELECT "date" FROM "game_log" WHERE "score"='130-100';
```
## Task
Generate a SQL query to answer the following question:
`Which Water has a Metal of contracting?`

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

CREATE TABLE "theory_of_the_five_elements" (
  "element" text,
  "wood" text,
  "fire" text,
  "earth" text,
  "metal" text,
  "water" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Water has a Metal of contracting?`:
```sql
                SELECT "water" FROM "theory_of_the_five_elements" WHERE "metal"='contracting';
```
## Task
Generate a SQL query to answer the following question:
`Which Metal has an Element of heavenly stems?`

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

CREATE TABLE "theory_of_the_five_elements" (
  "element" text,
  "wood" text,
  "fire" text,
  "earth" text,
  "metal" text,
  "water" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Metal has an Element of heavenly stems?`:
```sql
                SELECT "metal" FROM "theory_of_the_five_elements" WHERE "element"='heavenly stems';
```
## Task
Generate a SQL query to answer the following question:
`Which water has green wood?`

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

CREATE TABLE "theory_of_the_five_elements" (
  "element" text,
  "wood" text,
  "fire" text,
  "earth" text,
  "metal" text,
  "water" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which water has green wood?`:
```sql
                SELECT "water" FROM "theory_of_the_five_elements" WHERE "wood"='green';
```
## Task
Generate a SQL query to answer the following question:
`Which earth has west metal?`

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

CREATE TABLE "theory_of_the_five_elements" (
  "element" text,
  "wood" text,
  "fire" text,
  "earth" text,
  "metal" text,
  "water" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which earth has west metal?`:
```sql
                SELECT "earth" FROM "theory_of_the_five_elements" WHERE "metal"='west';
```
## Task
Generate a SQL query to answer the following question:
`Which wood has stabilizing earth?`

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

CREATE TABLE "theory_of_the_five_elements" (
  "element" text,
  "wood" text,
  "fire" text,
  "earth" text,
  "metal" text,
  "water" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which wood has stabilizing earth?`:
```sql
                SELECT "wood" FROM "theory_of_the_five_elements" WHERE "earth"='stabilizing';
```
## Task
Generate a SQL query to answer the following question:
`Which fire has dry metal?`

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

CREATE TABLE "theory_of_the_five_elements" (
  "element" text,
  "wood" text,
  "fire" text,
  "earth" text,
  "metal" text,
  "water" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which fire has dry metal?`:
```sql
                SELECT "fire" FROM "theory_of_the_five_elements" WHERE "metal"='dry';
```
## Task
Generate a SQL query to answer the following question:
`what name has a Rank of lieutenant colonel, and a Begin Date of 1904-02-22 22 february 1904?`

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

CREATE TABLE "commandants_list" (
  "rank" text,
  "name" text,
  "begin_date" text,
  "end_date" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what name has a Rank of lieutenant colonel, and a Begin Date of 1904-02-22 22 february 1904?`:
```sql
                SELECT "name" FROM "commandants_list" WHERE "rank"='lieutenant colonel' AND "begin_date"='1904-02-22 22 february 1904';
```
## Task
Generate a SQL query to answer the following question:
`Oklahoma State produced a player in which position in the draft?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Oklahoma State produced a player in which position in the draft?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "school_club_team"='oklahoma state';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest round where a back named Ed Cody can be found?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round where a back named Ed Cody can be found?`:
```sql
                SELECT MAX("round") FROM "nfl_draft" WHERE "position"='back' AND "player"='ed cody';
```
## Task
Generate a SQL query to answer the following question:
`Which Losses is the lowest one that has a Season smaller than 1920, and Draws larger than 0?`

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

CREATE TABLE "australia" (
  "season" real,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Losses is the lowest one that has a Season smaller than 1920, and Draws larger than 0?`:
```sql
                SELECT MIN("losses") FROM "australia" WHERE "season"<1920 AND "draws">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Draws have Losses larger than 16, and a Season larger than 1966?`

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

CREATE TABLE "australia" (
  "season" real,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Draws have Losses larger than 16, and a Season larger than 1966?`:
```sql
                SELECT SUM("draws") FROM "australia" WHERE "losses">16 AND "season">1966;
```
## Task
Generate a SQL query to answer the following question:
`Which Draws have a Team of annandale, and Losses smaller than 13?`

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

CREATE TABLE "australia" (
  "season" real,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Draws have a Team of annandale, and Losses smaller than 13?`:
```sql
                SELECT SUM("draws") FROM "australia" WHERE "team"='annandale' AND "losses"<13;
```
## Task
Generate a SQL query to answer the following question:
`Which Draws have Losses smaller than 16, and a Team of university, and Wins larger than 0?`

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

CREATE TABLE "australia" (
  "season" real,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Draws have Losses smaller than 16, and a Team of university, and Wins larger than 0?`:
```sql
                SELECT AVG("draws") FROM "australia" WHERE "losses"<16 AND "team"='university' AND "wins">0;
```