cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the method when the time was 5:00, and the round higher than 4?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the method when the time was 5:00, and the round higher than 4?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "round">4;
```
## Task
Generate a SQL query to answer the following question:
`When the others had a value of 7%, what was the Polling organisation/client?`

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

CREATE TABLE "opinion_polls" (
  "date_s_conducted" text,
  "polling_organisation_client" text,
  "conservatives" text,
  "labour" text,
  "liberal_democrats" text,
  "others" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the others had a value of 7%, what was the Polling organisation/client?`:
```sql
                SELECT "polling_organisation_client" FROM "opinion_polls" WHERE "others"='7%';
```
## Task
Generate a SQL query to answer the following question:
`What player plays the position of small forward?`

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

CREATE TABLE "d" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player plays the position of small forward?`:
```sql
                SELECT "player" FROM "d" WHERE "position"='small forward';
```
## Task
Generate a SQL query to answer the following question:
`What is the latitude of the 0 diameter?`

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

CREATE TABLE "tholi" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter_km" real,
  "year_named" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latitude of the 0 diameter?`:
```sql
                SELECT "latitude" FROM "tholi" WHERE "diameter_km"=0;
```
## Task
Generate a SQL query to answer the following question:
`What is the longitude of Angerona Tholus?`

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

CREATE TABLE "tholi" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter_km" real,
  "year_named" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the longitude of Angerona Tholus?`:
```sql
                SELECT "longitude" FROM "tholi" WHERE "name"='angerona tholus';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest diameter for Eirene Tholus?`

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

CREATE TABLE "tholi" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter_km" real,
  "year_named" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest diameter for Eirene Tholus?`:
```sql
                SELECT MIN("diameter_km") FROM "tholi" WHERE "name"='eirene tholus';
```
## Task
Generate a SQL query to answer the following question:
`What was the game on April 25?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the game on April 25?`:
```sql
                SELECT MIN("game") FROM "playoffs" WHERE "date"='april 25';
```
## Task
Generate a SQL query to answer the following question:
`what is the event when 2011-12 is n/a?`

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

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2006_07" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the event when 2011-12 is n/a?`:
```sql
                SELECT "event" FROM "grand_slam_record" WHERE "2011_12"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`what is the event when 2009-10 is dnp?`

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

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2006_07" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the event when 2009-10 is dnp?`:
```sql
                SELECT "event" FROM "grand_slam_record" WHERE "2009_10"='dnp';
```
## Task
Generate a SQL query to answer the following question:
`what is the event when 2006-07 is dnp?`

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

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2006_07" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the event when 2006-07 is dnp?`:
```sql
                SELECT "event" FROM "grand_slam_record" WHERE "2006_07"='dnp';
```
## Task
Generate a SQL query to answer the following question:
`what is 2012-13 when 2011-12 is dnp and event is autumn gold?`

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

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2006_07" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2012-13 when 2011-12 is dnp and event is autumn gold?`:
```sql
                SELECT "2012_13" FROM "grand_slam_record" WHERE "2011_12"='dnp' AND "event"='autumn gold';
```
## Task
Generate a SQL query to answer the following question:
`what is 2012-13 when 2011-12 is dnp and 2006-07 is dnp and 2010-11 is q?`

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

CREATE TABLE "grand_slam_record" (
  "event" text,
  "2006_07" text,
  "2009_10" text,
  "2010_11" text,
  "2011_12" text,
  "2012_13" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2012-13 when 2011-12 is dnp and 2006-07 is dnp and 2010-11 is q?`:
```sql
                SELECT "2012_13" FROM "grand_slam_record" WHERE "2011_12"='dnp' AND "2006_07"='dnp' AND "2010_11"='q';
```
## Task
Generate a SQL query to answer the following question:
`what is the sum of the wkts when the ovrs were bigger than 2 and econ was bigger than 7.84?`

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

CREATE TABLE "twenty20_internationals" (
  "player" text,
  "wkts" real,
  "runs" real,
  "econ" real,
  "ovrs" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the sum of the wkts when the ovrs were bigger than 2 and econ was bigger than 7.84?`:
```sql
                SELECT SUM("wkts") FROM "twenty20_internationals" WHERE "ovrs">2 AND "econ">7.84;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the runs when the wkts were bigger than 0 and ovrs were smaller than 2?`

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

CREATE TABLE "twenty20_internationals" (
  "player" text,
  "wkts" real,
  "runs" real,
  "econ" real,
  "ovrs" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the runs when the wkts were bigger than 0 and ovrs were smaller than 2?`:
```sql
                SELECT SUM("runs") FROM "twenty20_internationals" WHERE "ovrs"<2 AND "wkts">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest wkts for james hopes who had less than 26 runs and more than 2 ovrs?`

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

CREATE TABLE "twenty20_internationals" (
  "player" text,
  "wkts" real,
  "runs" real,
  "econ" real,
  "ovrs" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest wkts for james hopes who had less than 26 runs and more than 2 ovrs?`:
```sql
                SELECT MAX("wkts") FROM "twenty20_internationals" WHERE "runs"<26 AND "player"='james hopes' AND "ovrs">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average sales in billions of the company headquartered in France with more than 2,539.1 billion in assets?`

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

CREATE TABLE "2012_list" (
  "rank" real,
  "company" text,
  "headquarters" text,
  "industry" text,
  "sales_billion" real,
  "profits_billion" real,
  "assets_billion" real,
  "market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average sales in billions of the company headquartered in France with more than 2,539.1 billion in assets?`:
```sql
                SELECT AVG("sales_billion") FROM "2012_list" WHERE "headquarters"='france' AND "assets_billion">'2,539.1';
```
## Task
Generate a SQL query to answer the following question:
`What is the average sales in billions of walmart, which has more than 15.7 billion in profits?`

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

CREATE TABLE "2012_list" (
  "rank" real,
  "company" text,
  "headquarters" text,
  "industry" text,
  "sales_billion" real,
  "profits_billion" real,
  "assets_billion" real,
  "market_value_billion" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average sales in billions of walmart, which has more than 15.7 billion in profits?`:
```sql
                SELECT AVG("sales_billion") FROM "2012_list" WHERE "company"='walmart' AND "profits_billion">15.7;
```
## Task
Generate a SQL query to answer the following question:
`What is the rider when the grid is 21?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rider when the grid is 21?`:
```sql
                SELECT "rider" FROM "moto_gp_classification" WHERE "grid"=21;
```
## Task
Generate a SQL query to answer the following question:
`What is the average laps when the manufacturer is yamaha, and the rider is garry mccoy and the grid is smaller than 4?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average laps when the manufacturer is yamaha, and the rider is garry mccoy and the grid is smaller than 4?`:
```sql
                SELECT AVG("laps") FROM "moto_gp_classification" WHERE "manufacturer"='yamaha' AND "rider"='garry mccoy' AND "grid"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest laps for rider andrew pitt, with a grid smaller than 18? Wha`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest laps for rider andrew pitt, with a grid smaller than 18? Wha`:
```sql
                SELECT MIN("laps") FROM "moto_gp_classification" WHERE "rider"='andrew pitt' AND "grid"<18;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest laps that has a manufacturer of yamaha, and a time/retired of +1:08.312, and a grid less than 20?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest laps that has a manufacturer of yamaha, and a time/retired of +1:08.312, and a grid less than 20?`:
```sql
                SELECT MIN("laps") FROM "moto_gp_classification" WHERE "manufacturer"='yamaha' AND "time_retired"='+1:08.312' AND "grid"<20;
```
## Task
Generate a SQL query to answer the following question:
`What event had a tko (punches) method and jason macdonald as the opponent?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event had a tko (punches) method and jason macdonald as the opponent?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='tko (punches)' AND "opponent"='jason macdonald';
```
## Task
Generate a SQL query to answer the following question:
`What is the opponent after round number 1 with a method of decision (unanimous)?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the opponent after round number 1 with a method of decision (unanimous)?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round">1 AND "method"='decision (unanimous)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the partnering that had the opponents of Marcelo Melo André Sá?`

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

CREATE TABLE "doubles_runner_ups_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the partnering that had the opponents of Marcelo Melo André Sá?`:
```sql
                SELECT "partnering" FROM "doubles_runner_ups_5" WHERE "opponents_in_final"='marcelo melo andré sá';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on February 14, 1999?`

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

CREATE TABLE "doubles_runner_ups_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on February 14, 1999?`:
```sql
                SELECT "score_in_final" FROM "doubles_runner_ups_5" WHERE "date"='february 14, 1999';
```
## Task
Generate a SQL query to answer the following question:
`What date was the score 6–7(9), 6–2, (10–7)?`

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

CREATE TABLE "doubles_runner_ups_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the score 6–7(9), 6–2, (10–7)?`:
```sql
                SELECT "date" FROM "doubles_runner_ups_5" WHERE "score_in_final"='6–7(9), 6–2, (10–7)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest value for Sydney, when Perth is less than 169,000, and when NIGHTLY RANK is less than 5?`

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

CREATE TABLE "ratings" (
  "episode_number_production_number" text,
  "title" text,
  "sydney" real,
  "melbourne" real,
  "brisbane" real,
  "adelaide" real,
  "perth" real,
  "total" real,
  "weekly_rank" real,
  "nightly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest value for Sydney, when Perth is less than 169,000, and when NIGHTLY RANK is less than 5?`:
```sql
                SELECT MIN("sydney") FROM "ratings" WHERE "perth"<'169,000' AND "nightly_rank"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest value for Sydney, when WEEKLY RANK is less than 8, and when Brisbane is greater than 252,000?`

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

CREATE TABLE "ratings" (
  "episode_number_production_number" text,
  "title" text,
  "sydney" real,
  "melbourne" real,
  "brisbane" real,
  "adelaide" real,
  "perth" real,
  "total" real,
  "weekly_rank" real,
  "nightly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest value for Sydney, when WEEKLY RANK is less than 8, and when Brisbane is greater than 252,000?`:
```sql
                SELECT MIN("sydney") FROM "ratings" WHERE "weekly_rank"<8 AND "brisbane">'252,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the values for Melbourne, when Episode Number Production Number is 19 2-06, and when Sydney is less than 389,000?`

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

CREATE TABLE "ratings" (
  "episode_number_production_number" text,
  "title" text,
  "sydney" real,
  "melbourne" real,
  "brisbane" real,
  "adelaide" real,
  "perth" real,
  "total" real,
  "weekly_rank" real,
  "nightly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the values for Melbourne, when Episode Number Production Number is 19 2-06, and when Sydney is less than 389,000?`:
```sql
                SELECT SUM("melbourne") FROM "ratings" WHERE "episode_number_production_number"='19 2-06' AND "sydney"<'389,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest value for Perth, when Melbourne is greater than 461,000, and when Sydney is less than 430,000?`

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

CREATE TABLE "ratings" (
  "episode_number_production_number" text,
  "title" text,
  "sydney" real,
  "melbourne" real,
  "brisbane" real,
  "adelaide" real,
  "perth" real,
  "total" real,
  "weekly_rank" real,
  "nightly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest value for Perth, when Melbourne is greater than 461,000, and when Sydney is less than 430,000?`:
```sql
                SELECT MIN("perth") FROM "ratings" WHERE "melbourne">'461,000' AND "sydney"<'430,000';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds had a time of 5:00 at UFC 155?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds had a time of 5:00 at UFC 155?`:
```sql
                SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "event"='ufc 155';
```
## Task
Generate a SQL query to answer the following question:
`Which event had a time of 2:34?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event had a time of 2:34?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "time"='2:34';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in the bout that led to a win in a time of 1:21?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in the bout that led to a win in a time of 1:21?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "time"='1:21';
```
## Task
Generate a SQL query to answer the following question:
`What is the method of resolution for the fight against akihiro gono?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the method of resolution for the fight against akihiro gono?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='akihiro gono';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of rounds that Lance Gibson fought when his record was 1-1?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of rounds that Lance Gibson fought when his record was 1-1?`:
```sql
                SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "record"='1-1';
```
## Task
Generate a SQL query to answer the following question:
`What is the Country of the Player with a Score of 69-71-66=206?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Country of the Player with a Score of 69-71-66=206?`:
```sql
                SELECT "country" FROM "third_round" WHERE "score"='69-71-66=206';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player from Scotland?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Place of the Player from Scotland?`:
```sql
                SELECT "place" FROM "third_round" WHERE "country"='scotland';
```
## Task
Generate a SQL query to answer the following question:
`What is Steve Lowery's Place?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Steve Lowery's Place?`:
```sql
                SELECT "place" FROM "third_round" WHERE "player"='steve lowery';
```
## Task
Generate a SQL query to answer the following question:
`What was 1961's qual?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was 1961's qual?`:
```sql
                SELECT "qual" FROM "indy_500_results" WHERE "year"='1961';
```
## Task
Generate a SQL query to answer the following question:
`What was 13's finish?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was 13's finish?`:
```sql
                SELECT "finish" FROM "indy_500_results" WHERE "start"='13';
```
## Task
Generate a SQL query to answer the following question:
`How many laps were in 1969?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps were in 1969?`:
```sql
                SELECT "laps" FROM "indy_500_results" WHERE "year"='1969';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Qual of 145.144?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Qual of 145.144?`:
```sql
                SELECT "rank" FROM "indy_500_results" WHERE "qual"='145.144';
```
## Task
Generate a SQL query to answer the following question:
`What is the sources for Bandung?`

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

CREATE TABLE "largest_urban_areas_ranked_by_2010_proje" (
  "rank" real,
  "city" text,
  "country" text,
  "population" real,
  "area_km" real,
  "sources_of_pop_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sources for Bandung?`:
```sql
                SELECT "sources_of_pop_area" FROM "largest_urban_areas_ranked_by_2010_proje" WHERE "city"='bandung';
```
## Task
Generate a SQL query to answer the following question:
`What race happened at Iowa Speedway?`

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

CREATE TABLE "results" (
  "date" text,
  "race" text,
  "track" text,
  "winner" text,
  "reports" text
);
### SQL
Given the database schema, here is the SQL query that answers `What race happened at Iowa Speedway?`:
```sql
                SELECT "race" FROM "results" WHERE "track"='iowa speedway';
```
## Task
Generate a SQL query to answer the following question:
`Who won the Food World 250?`

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

CREATE TABLE "results" (
  "date" text,
  "race" text,
  "track" text,
  "winner" text,
  "reports" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the Food World 250?`:
```sql
                SELECT "winner" FROM "results" WHERE "race"='food world 250';
```
## Task
Generate a SQL query to answer the following question:
`What race happened at pocono on 08-02-2008?`

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

CREATE TABLE "results" (
  "date" text,
  "race" text,
  "track" text,
  "winner" text,
  "reports" text
);
### SQL
Given the database schema, here is the SQL query that answers `What race happened at pocono on 08-02-2008?`:
```sql
                SELECT "race" FROM "results" WHERE "track"='pocono' AND "date"='08-02-2008';
```
## Task
Generate a SQL query to answer the following question:
`What race happened on 04-25-2008?`

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

CREATE TABLE "results" (
  "date" text,
  "race" text,
  "track" text,
  "winner" text,
  "reports" text
);
### SQL
Given the database schema, here is the SQL query that answers `What race happened on 04-25-2008?`:
```sql
                SELECT "race" FROM "results" WHERE "date"='04-25-2008';
```
## Task
Generate a SQL query to answer the following question:
`Where was the race on 09-13-2008?`

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

CREATE TABLE "results" (
  "date" text,
  "race" text,
  "track" text,
  "winner" text,
  "reports" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the race on 09-13-2008?`:
```sql
                SELECT "track" FROM "results" WHERE "date"='09-13-2008';
```
## Task
Generate a SQL query to answer the following question:
`Which game number was played after March 11 and ended with a record of 26-30-10?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game number was played after March 11 and ended with a record of 26-30-10?`:
```sql
                SELECT MIN("game") FROM "schedule_and_results" WHERE "record"='26-30-10' AND "march">11;
```
## Task
Generate a SQL query to answer the following question:
`How many games total were played against @ Boston Bruins this season?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games total were played against @ Boston Bruins this season?`:
```sql
                SELECT SUM("game") FROM "schedule_and_results" WHERE "opponent"='@ boston bruins';
```
## Task
Generate a SQL query to answer the following question:
`When was the earliest game date in March where the match ended with a record of 25-29-10?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "march" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the earliest game date in March where the match ended with a record of 25-29-10?`:
```sql
                SELECT MIN("march") FROM "schedule_and_results" WHERE "record"='25-29-10';
```
## Task
Generate a SQL query to answer the following question:
`How many points when John Vopni won a season before 1977?`

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

CREATE TABLE "mjhl_scoring_champions" (
  "season" real,
  "winner" text,
  "team" text,
  "goals" text,
  "assists" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points when John Vopni won a season before 1977?`:
```sql
                SELECT "points" FROM "mjhl_scoring_champions" WHERE "season"<1977 AND "winner"='john vopni';
```
## Task
Generate a SQL query to answer the following question:
`How many points when Bill Benson was the winner?`

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

CREATE TABLE "mjhl_scoring_champions" (
  "season" real,
  "winner" text,
  "team" text,
  "goals" text,
  "assists" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points when Bill Benson was the winner?`:
```sql
                SELECT "points" FROM "mjhl_scoring_champions" WHERE "winner"='bill benson';
```
## Task
Generate a SQL query to answer the following question:
`Which team did Tyson Chandler (7) have high rebounds for?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team did Tyson Chandler (7) have high rebounds for?`:
```sql
                SELECT "team" FROM "game_log" WHERE "high_rebounds"='tyson chandler (7)';
```
## Task
Generate a SQL query to answer the following question:
`How many high assists were on November 27?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many high assists were on November 27?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "date"='november 27';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score in 1980?`

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

CREATE TABLE "wins_6" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score in 1980?`:
```sql
                SELECT "winning_score" FROM "wins_6" WHERE "year"=1980;
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score in 1985 for Championship of u.s. women's open?`

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

CREATE TABLE "wins_6" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score in 1985 for Championship of u.s. women's open?`:
```sql
                SELECT "winning_score" FROM "wins_6" WHERE "year"<1985 AND "championship"='u.s. women''s open';
```
## Task
Generate a SQL query to answer the following question:
`When was the runner-up Jane Geddes?`

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

CREATE TABLE "wins_6" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the runner-up Jane Geddes?`:
```sql
                SELECT "year" FROM "wins_6" WHERE "runner_up"='jane geddes';
```
## Task
Generate a SQL query to answer the following question:
`Which championship after 1985 had a winning score of –8 (68-72-69-71=280)?`

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

CREATE TABLE "wins_6" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which championship after 1985 had a winning score of –8 (68-72-69-71=280)?`:
```sql
                SELECT "championship" FROM "wins_6" WHERE "year">1985 AND "winning_score"='–8 (68-72-69-71=280)';
```
## Task
Generate a SQL query to answer the following question:
`What was the method of resolution for the fight against jake brown?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the method of resolution for the fight against jake brown?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='jake brown';
```
## Task
Generate a SQL query to answer the following question:
`On what team did John Bowe round winner at Winton Motor Raceway belong to?`

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

CREATE TABLE "race_calendar" (
  "circuit" text,
  "location_state" text,
  "date" text,
  "round_winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what team did John Bowe round winner at Winton Motor Raceway belong to?`:
```sql
                SELECT "team" FROM "race_calendar" WHERE "round_winner"='john bowe' AND "circuit"='winton motor raceway';
```
## Task
Generate a SQL query to answer the following question:
`What was the team features at Oran Park Raceway?`

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

CREATE TABLE "race_calendar" (
  "circuit" text,
  "location_state" text,
  "date" text,
  "round_winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team features at Oran Park Raceway?`:
```sql
                SELECT "team" FROM "race_calendar" WHERE "circuit"='oran park raceway';
```
## Task
Generate a SQL query to answer the following question:
`Where is the Eastern Creek Raceway located?`

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

CREATE TABLE "race_calendar" (
  "circuit" text,
  "location_state" text,
  "date" text,
  "round_winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the Eastern Creek Raceway located?`:
```sql
                SELECT "location_state" FROM "race_calendar" WHERE "circuit"='eastern creek raceway';
```
## Task
Generate a SQL query to answer the following question:
`Which state was Dai from?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which state was Dai from?`:
```sql
                SELECT "state" FROM "vassal_states" WHERE "name"='dai';
```
## Task
Generate a SQL query to answer the following question:
`What was Mu's title?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Mu's title?`:
```sql
                SELECT "title" FROM "vassal_states" WHERE "name"='mu';
```
## Task
Generate a SQL query to answer the following question:
`When was Xiong Xun a vassal?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Xiong Xun a vassal?`:
```sql
                SELECT "from" FROM "vassal_states" WHERE "name"='xiong xun';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest attendance for week 3?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest attendance for week 3?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "week"=3;
```
## Task
Generate a SQL query to answer the following question:
`what is the result for the week higher than 7 on november 4, 1979?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the result for the week higher than 7 on november 4, 1979?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week">7 AND "date"='november 4, 1979';
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest week when the date is september 16, 1979 and the attendance less than 54,212?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest week when the date is september 16, 1979 and the attendance less than 54,212?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "date"='september 16, 1979' AND "attendance"<'54,212';
```
## Task
Generate a SQL query to answer the following question:
`Which competition has stuart potts as the man of the match?`

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

CREATE TABLE "november" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" text,
  "competition" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition has stuart potts as the man of the match?`:
```sql
                SELECT "competition" FROM "november" WHERE "man_of_the_match"='stuart potts';
```
## Task
Generate a SQL query to answer the following question:
`Which venue had a lost 5-4 result?`

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

CREATE TABLE "november" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" text,
  "competition" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue had a lost 5-4 result?`:
```sql
                SELECT "venue" FROM "november" WHERE "result"='lost 5-4';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue of the match with the wightlink raiders as the opponent?`

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

CREATE TABLE "november" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" text,
  "competition" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue of the match with the wightlink raiders as the opponent?`:
```sql
                SELECT "venue" FROM "november" WHERE "opponent"='wightlink raiders';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the league/cup competition with the swindon wildcats as the opponent and neil liddiard as the man of the match?`

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

CREATE TABLE "november" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" text,
  "competition" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the league/cup competition with the swindon wildcats as the opponent and neil liddiard as the man of the match?`:
```sql
                SELECT "result" FROM "november" WHERE "competition"='league/cup' AND "opponent"='swindon wildcats' AND "man_of_the_match"='neil liddiard';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the match on the 2nd with the slough jets as the opponent?`

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

CREATE TABLE "november" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" text,
  "competition" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance of the match on the 2nd with the slough jets as the opponent?`:
```sql
                SELECT "attendance" FROM "november" WHERE "opponent"='slough jets' AND "date"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the total was 75–53?`

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

CREATE TABLE "pool_l" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the total was 75–53?`:
```sql
                SELECT "score" FROM "pool_l" WHERE "total"='75–53';
```
## Task
Generate a SQL query to answer the following question:
`What was the total when the set 3 was 25–14?`

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

CREATE TABLE "pool_l" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total when the set 3 was 25–14?`:
```sql
                SELECT "total" FROM "pool_l" WHERE "set_3"='25–14';
```
## Task
Generate a SQL query to answer the following question:
`What date was the set 1 25–23, and a Set 3 of 25–14?`

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

CREATE TABLE "pool_l" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the set 1 25–23, and a Set 3 of 25–14?`:
```sql
                SELECT "date" FROM "pool_l" WHERE "set_1"='25–23' AND "set_3"='25–14';
```
## Task
Generate a SQL query to answer the following question:
`What date was the Set 3 of 12–25?`

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

CREATE TABLE "pool_l" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the Set 3 of 12–25?`:
```sql
                SELECT "date" FROM "pool_l" WHERE "set_3"='12–25';
```
## Task
Generate a SQL query to answer the following question:
`What is the Set 3 when the total was 53–75?`

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

CREATE TABLE "pool_l" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Set 3 when the total was 53–75?`:
```sql
                SELECT "set_3" FROM "pool_l" WHERE "total"='53–75';
```
## Task
Generate a SQL query to answer the following question:
`What is the average win with a top 5 greater than 2 and a top 10 less than 5?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average win with a top 5 greater than 2 and a top 10 less than 5?`:
```sql
                SELECT AVG("wins") FROM "nascar_nationwide_series" WHERE "top_5">2 AND "top_10"<5;
```