cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the average Points when equipe ligier gauloises blondes is the entrant?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Points when equipe ligier gauloises blondes is the entrant?`:
```sql
                SELECT AVG("points") FROM "complete_formula_one_results" WHERE "entrant"='equipe ligier gauloises blondes';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest amount of points for parmalat forti ford entrant later than 1995?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest amount of points for parmalat forti ford entrant later than 1995?`:
```sql
                SELECT MIN("points") FROM "complete_formula_one_results" WHERE "entrant"='parmalat forti ford' AND "year">1995;
```
## Task
Generate a SQL query to answer the following question:
`What is the company that made the chassis for the entrant danka arrows yamaha?`

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

CREATE TABLE "complete_formula_one_results" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the company that made the chassis for the entrant danka arrows yamaha?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_results" WHERE "entrant"='danka arrows yamaha';
```
## Task
Generate a SQL query to answer the following question:
`What college did Ray Graves attend?`

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

CREATE TABLE "indianapolis_colts_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 college did Ray Graves attend?`:
```sql
                SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "name"='ray graves';
```
## Task
Generate a SQL query to answer the following question:
`What number pick was Bill Athey?`

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

CREATE TABLE "indianapolis_colts_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 number pick was Bill Athey?`:
```sql
                SELECT "pick_num" FROM "indianapolis_colts_draft_history" WHERE "name"='bill athey';
```
## Task
Generate a SQL query to answer the following question:
`What is John Cole's overall pick number?`

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

CREATE TABLE "indianapolis_colts_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 John Cole's overall pick number?`:
```sql
                SELECT COUNT("overall") FROM "indianapolis_colts_draft_history" WHERE "name"='john cole';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the locomotive with a Waterford class?`

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

CREATE TABLE "sligo_leitrim_and_northern_counties_rail" (
  "class" text,
  "type" text,
  "names" text,
  "quantity_made" text,
  "manufacturer" text,
  "date_made" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the locomotive with a Waterford class?`:
```sql
                SELECT "date_made" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "class"='waterford';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the locomotive named Blacklion Glencar?`

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

CREATE TABLE "sligo_leitrim_and_northern_counties_rail" (
  "class" text,
  "type" text,
  "names" text,
  "quantity_made" text,
  "manufacturer" text,
  "date_made" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the locomotive named Blacklion Glencar?`:
```sql
                SELECT "date_made" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "names"='blacklion glencar';
```
## Task
Generate a SQL query to answer the following question:
`What is the quantity made of the locomotive with a Waterford class?`

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

CREATE TABLE "sligo_leitrim_and_northern_counties_rail" (
  "class" text,
  "type" text,
  "names" text,
  "quantity_made" text,
  "manufacturer" text,
  "date_made" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the quantity made of the locomotive with a Waterford class?`:
```sql
                SELECT "quantity_made" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "class"='waterford';
```
## Task
Generate a SQL query to answer the following question:
`What is the class of the locomotive with a quantity made of 1 and a 0-6-0t type?`

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

CREATE TABLE "sligo_leitrim_and_northern_counties_rail" (
  "class" text,
  "type" text,
  "names" text,
  "quantity_made" text,
  "manufacturer" text,
  "date_made" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class of the locomotive with a quantity made of 1 and a 0-6-0t type?`:
```sql
                SELECT "class" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "quantity_made"='1' AND "type"='0-6-0t';
```
## Task
Generate a SQL query to answer the following question:
`What is the class of the locomotive with a 0-4-0st type?`

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

CREATE TABLE "sligo_leitrim_and_northern_counties_rail" (
  "class" text,
  "type" text,
  "names" text,
  "quantity_made" text,
  "manufacturer" text,
  "date_made" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class of the locomotive with a 0-4-0st type?`:
```sql
                SELECT "class" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "type"='0-4-0st';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the locomotive with a Glencar class?`

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

CREATE TABLE "sligo_leitrim_and_northern_counties_rail" (
  "class" text,
  "type" text,
  "names" text,
  "quantity_made" text,
  "manufacturer" text,
  "date_made" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the locomotive with a Glencar class?`:
```sql
                SELECT "names" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "class"='glencar';
```
## Task
Generate a SQL query to answer the following question:
`What country has signed type moving from porto?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has signed type moving from porto?`:
```sql
                SELECT "country" FROM "in" WHERE "type"='signed' AND "moving_from"='porto';
```
## Task
Generate a SQL query to answer the following question:
`Which transfer window was moving from borussia dortmund?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which transfer window was moving from borussia dortmund?`:
```sql
                SELECT "transfer_window" FROM "in" WHERE "moving_from"='borussia dortmund';
```
## Task
Generate a SQL query to answer the following question:
`What is moving from esp with transfer fee of youth system?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is moving from esp with transfer fee of youth system?`:
```sql
                SELECT "moving_from" FROM "in" WHERE "country"='esp' AND "transfer_fee"='youth system';
```
## Task
Generate a SQL query to answer the following question:
`What is the transfer window in esp with promoted type and more than 2010 ends?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer window in esp with promoted type and more than 2010 ends?`:
```sql
                SELECT "transfer_window" FROM "in" WHERE "country"='esp' AND "type"='promoted' AND "ends">2010;
```
## Task
Generate a SQL query to answer the following question:
`Who is the week 12 for the week 2 with Magda Tomek?`

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

CREATE TABLE "nominations" (
  "week_2" text,
  "week_4" text,
  "week_6" text,
  "week_11" text,
  "week_12" text,
  "week_13" text,
  "week_15" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the week 12 for the week 2 with Magda Tomek?`:
```sql
                SELECT "week_12" FROM "nominations" WHERE "week_2"='magda tomek';
```
## Task
Generate a SQL query to answer the following question:
`Who is the week 12 for the week 4 of Gerard Ewelina?`

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

CREATE TABLE "nominations" (
  "week_2" text,
  "week_4" text,
  "week_6" text,
  "week_11" text,
  "week_12" text,
  "week_13" text,
  "week_15" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the week 12 for the week 4 of Gerard Ewelina?`:
```sql
                SELECT "week_12" FROM "nominations" WHERE "week_4"='gerard ewelina';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leader in Points when Al Jefferson (7) was the leader in Rebounds?`

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

CREATE TABLE "usa" (
  "year" real,
  "points" text,
  "rebounds" text,
  "assists" text,
  "steals" text,
  "blocks" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leader in Points when Al Jefferson (7) was the leader in Rebounds?`:
```sql
                SELECT "points" FROM "usa" WHERE "rebounds"='al jefferson (7)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leader in Steals when Travis Watson (9) was the leader in Rebounds?`

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

CREATE TABLE "usa" (
  "year" real,
  "points" text,
  "rebounds" text,
  "assists" text,
  "steals" text,
  "blocks" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leader in Steals when Travis Watson (9) was the leader in Rebounds?`:
```sql
                SELECT "steals" FROM "usa" WHERE "rebounds"='travis watson (9)';
```
## Task
Generate a SQL query to answer the following question:
`What was the 1st Year Al Harrington (9) the leader in Rebounds?`

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

CREATE TABLE "usa" (
  "year" real,
  "points" text,
  "rebounds" text,
  "assists" text,
  "steals" text,
  "blocks" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1st Year Al Harrington (9) the leader in Rebounds?`:
```sql
                SELECT MIN("year") FROM "usa" WHERE "rebounds"='al harrington (9)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leader in Points with Assists of 2 tied (5) and Steals of 3 tied (2)?`

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

CREATE TABLE "usa" (
  "year" real,
  "points" text,
  "rebounds" text,
  "assists" text,
  "steals" text,
  "blocks" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leader in Points with Assists of 2 tied (5) and Steals of 3 tied (2)?`:
```sql
                SELECT "points" FROM "usa" WHERE "steals"='3 tied (2)' AND "assists"='2 tied (5)';
```
## Task
Generate a SQL query to answer the following question:
`Name the average with tally of 0-29 and total more than 29`

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

CREATE TABLE "top_scorers" (
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "matches" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average with tally of 0-29 and total more than 29`:
```sql
                SELECT AVG("average") FROM "top_scorers" WHERE "tally"='0-29' AND "total">29;
```
## Task
Generate a SQL query to answer the following question:
`Name the tally with total less than 27 and average more than 3.41`

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

CREATE TABLE "top_scorers" (
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "matches" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tally with total less than 27 and average more than 3.41`:
```sql
                SELECT "tally" FROM "top_scorers" WHERE "total"<27 AND "average">3.41;
```
## Task
Generate a SQL query to answer the following question:
`For engines of Maserati Straight-6 and entrants of H H Gould, what is the latest year?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `For engines of Maserati Straight-6 and entrants of H H Gould, what is the latest year?`:
```sql
                SELECT MAX("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "entrant"='h h gould';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of points scored by Goulds' Garage (Bristol), engines of Maserati Straight-6, in years before 1956?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of points scored by Goulds' Garage (Bristol), engines of Maserati Straight-6, in years before 1956?`:
```sql
                SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "entrant"='goulds'' garage (bristol)' AND "engine"='maserati straight-6' AND "year"<1956;
```
## Task
Generate a SQL query to answer the following question:
`Which chassis has fewer than 2 points, entrants of Goulds' Garage (Bristol), in 1954?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis has fewer than 2 points, entrants of Goulds' Garage (Bristol), in 1954?`:
```sql
                SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "points"<2 AND "entrant"='goulds'' garage (bristol)' AND "year"=1954;
```
## Task
Generate a SQL query to answer the following question:
`What is the most points that the Maserati 250F chassis scored in years after 1955?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most points that the Maserati 250F chassis scored in years after 1955?`:
```sql
                SELECT MAX("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='maserati 250f' AND "year">1955;
```
## Task
Generate a SQL query to answer the following question:
`Which engine has a year larger than 1956?`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which engine has a year larger than 1956?`:
```sql
                SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "year">1956;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest age of an astronaut named Stu Roosa?`

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

CREATE TABLE "apollo_astronauts_who_flew_to_the_moon_w" (
  "name" text,
  "born" text,
  "age_on_mission" real,
  "mission" text,
  "mission_dates" text,
  "service" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest age of an astronaut named Stu Roosa?`:
```sql
                SELECT MIN("age_on_mission") FROM "apollo_astronauts_who_flew_to_the_moon_w" WHERE "name"='stu roosa';
```
## Task
Generate a SQL query to answer the following question:
`What mission did the astronaut who 38 years old on the mission and who served in NASA serve on?`

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

CREATE TABLE "apollo_astronauts_who_flew_to_the_moon_w" (
  "name" text,
  "born" text,
  "age_on_mission" real,
  "mission" text,
  "mission_dates" text,
  "service" text
);
### SQL
Given the database schema, here is the SQL query that answers `What mission did the astronaut who 38 years old on the mission and who served in NASA serve on?`:
```sql
                SELECT "mission" FROM "apollo_astronauts_who_flew_to_the_moon_w" WHERE "service"='nasa' AND "age_on_mission"=38;
```
## Task
Generate a SQL query to answer the following question:
`what is the type of lithium when rubidium is nabr (1.9)?`

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

CREATE TABLE "properties" (
  "lithium" text,
  "sodium" text,
  "potassium" text,
  "rubidium" text,
  "caesium" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the type of lithium when rubidium is nabr (1.9)?`:
```sql
                SELECT "lithium" FROM "properties" WHERE "rubidium"='nabr (1.9)';
```
## Task
Generate a SQL query to answer the following question:
`what is the properties of sodium when rubidium is nacl (2.1)?`

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

CREATE TABLE "properties" (
  "lithium" text,
  "sodium" text,
  "potassium" text,
  "rubidium" text,
  "caesium" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the properties of sodium when rubidium is nacl (2.1)?`:
```sql
                SELECT "sodium" FROM "properties" WHERE "rubidium"='nacl (2.1)';
```
## Task
Generate a SQL query to answer the following question:
`what is the properties of potassium when lithium is h a l o g e n s and sodium is bromine?`

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

CREATE TABLE "properties" (
  "lithium" text,
  "sodium" text,
  "potassium" text,
  "rubidium" text,
  "caesium" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the properties of potassium when lithium is h a l o g e n s and sodium is bromine?`:
```sql
                SELECT "potassium" FROM "properties" WHERE "lithium"='h a l o g e n s' AND "sodium"='bromine';
```
## Task
Generate a SQL query to answer the following question:
`what is the properties of lithium when caesium is ki (1.7)?`

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

CREATE TABLE "properties" (
  "lithium" text,
  "sodium" text,
  "potassium" text,
  "rubidium" text,
  "caesium" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the properties of lithium when caesium is ki (1.7)?`:
```sql
                SELECT "lithium" FROM "properties" WHERE "caesium"='ki (1.7)';
```
## Task
Generate a SQL query to answer the following question:
`what is the properties of sodium when lithium is h a l o g e n s and rubidium is nacl (2.1)?`

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

CREATE TABLE "properties" (
  "lithium" text,
  "sodium" text,
  "potassium" text,
  "rubidium" text,
  "caesium" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the properties of sodium when lithium is h a l o g e n s and rubidium is nacl (2.1)?`:
```sql
                SELECT "sodium" FROM "properties" WHERE "lithium"='h a l o g e n s' AND "rubidium"='nacl (2.1)';
```
## Task
Generate a SQL query to answer the following question:
`what is the properties of sodium when potassium is lii (1.5)?`

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

CREATE TABLE "properties" (
  "lithium" text,
  "sodium" text,
  "potassium" text,
  "rubidium" text,
  "caesium" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the properties of sodium when potassium is lii (1.5)?`:
```sql
                SELECT "sodium" FROM "properties" WHERE "potassium"='lii (1.5)';
```
## Task
Generate a SQL query to answer the following question:
`Which prime mover had a Model of rs-18?`

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

CREATE TABLE "rs_series_b_b" (
  "model" text,
  "specification" text,
  "build_date" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "prime_mover" text,
  "power_output" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which prime mover had a Model of rs-18?`:
```sql
                SELECT "prime_mover" FROM "rs_series_b_b" WHERE "model"='rs-18';
```
## Task
Generate a SQL query to answer the following question:
`Which model had a Specification of dl-718?`

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

CREATE TABLE "rs_series_b_b" (
  "model" text,
  "specification" text,
  "build_date" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "prime_mover" text,
  "power_output" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which model had a Specification of dl-718?`:
```sql
                SELECT "model" FROM "rs_series_b_b" WHERE "specification"='dl-718';
```
## Task
Generate a SQL query to answer the following question:
`Which power output had a Build date of 1951–1956?`

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

CREATE TABLE "rs_series_b_b" (
  "model" text,
  "specification" text,
  "build_date" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "prime_mover" text,
  "power_output" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which power output had a Build date of 1951–1956?`:
```sql
                SELECT "power_output" FROM "rs_series_b_b" WHERE "build_date"='1951–1956';
```
## Task
Generate a SQL query to answer the following question:
`Which wheel arrangement had a Specification of dl-700?`

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

CREATE TABLE "rs_series_b_b" (
  "model" text,
  "specification" text,
  "build_date" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "prime_mover" text,
  "power_output" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which wheel arrangement had a Specification of dl-700?`:
```sql
                SELECT "wheel_arrangement" FROM "rs_series_b_b" WHERE "specification"='dl-700';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player born before 1985 who is less than 2.02 tall?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "player" text,
  "height" real,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player born before 1985 who is less than 2.02 tall?`:
```sql
                SELECT "player" FROM "fiba_euro_basket_2007_squads" WHERE "year_born"<1985 AND "height"<2.02;
```
## Task
Generate a SQL query to answer the following question:
`Who is the player who was born before 1980 who currently plays for the Toronto Raptors?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "player" text,
  "height" real,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player who was born before 1980 who currently plays for the Toronto Raptors?`:
```sql
                SELECT "player" FROM "fiba_euro_basket_2007_squads" WHERE "year_born"<1980 AND "current_club"='toronto raptors';
```
## Task
Generate a SQL query to answer the following question:
`What position does Sergio Rodríguez, who is less than 1.96 tall and was born after 1980, play?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "player" text,
  "height" real,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Sergio Rodríguez, who is less than 1.96 tall and was born after 1980, play?`:
```sql
                SELECT "position" FROM "fiba_euro_basket_2007_squads" WHERE "height"<1.96 AND "year_born">1980 AND "player"='sergio rodríguez';
```
## Task
Generate a SQL query to answer the following question:
`What year was the Guard who currently plays for the Memphis Grizzlies born?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "player" text,
  "height" real,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the Guard who currently plays for the Memphis Grizzlies born?`:
```sql
                SELECT "year_born" FROM "fiba_euro_basket_2007_squads" WHERE "position"='guard' AND "current_club"='memphis grizzlies';
```
## Task
Generate a SQL query to answer the following question:
`What is the height of the Forward who currently plays for the Toronto Raptors?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "player" text,
  "height" real,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the Forward who currently plays for the Toronto Raptors?`:
```sql
                SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "position"='forward' AND "current_club"='toronto raptors';
```
## Task
Generate a SQL query to answer the following question:
`Date of 24 september 2002 is what group position?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "result_f_a" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Date of 24 september 2002 is what group position?`:
```sql
                SELECT "group_position" FROM "group_stage" WHERE "date"='24 september 2002';
```
## Task
Generate a SQL query to answer the following question:
`Attendance larger than 63,439, and an Opponent of bayer leverkusen had what result?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "result_f_a" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Attendance larger than 63,439, and an Opponent of bayer leverkusen had what result?`:
```sql
                SELECT "result_f_a" FROM "group_stage" WHERE "attendance">'63,439' AND "opponents"='bayer leverkusen';
```
## Task
Generate a SQL query to answer the following question:
`Date of 24 september 2002 had what F-A result?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "result_f_a" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Date of 24 september 2002 had what F-A result?`:
```sql
                SELECT "result_f_a" FROM "group_stage" WHERE "date"='24 september 2002';
```
## Task
Generate a SQL query to answer the following question:
`Result F–A of 2–0 had what total number of attendance?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "result_f_a" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Result F–A of 2–0 had what total number of attendance?`:
```sql
                SELECT COUNT("attendance") FROM "group_stage" WHERE "result_f_a"='2–0';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game with a loss of Myers (5-6)?`

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

CREATE TABLE "july" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game with a loss of Myers (5-6)?`:
```sql
                SELECT "score" FROM "july" WHERE "loss"='myers (5-6)';
```
## Task
Generate a SQL query to answer the following question:
`What was the loss of the game attended by 41,212?`

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

CREATE TABLE "july" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the loss of the game attended by 41,212?`:
```sql
                SELECT "loss" FROM "july" WHERE "attendance"='41,212';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance of the game that had a loss of Wolf (3-4)?`

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

CREATE TABLE "july" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance of the game that had a loss of Wolf (3-4)?`:
```sql
                SELECT "attendance" FROM "july" WHERE "loss"='wolf (3-4)';
```
## Task
Generate a SQL query to answer the following question:
`what nation is bianca knight the answer for?`

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

CREATE TABLE "junior_under_20_women" (
  "rank" real,
  "fastest_time_s" real,
  "wind_m_s" real,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what nation is bianca knight the answer for?`:
```sql
                SELECT "nation" FROM "junior_under_20_women" WHERE "athlete"='bianca knight';
```
## Task
Generate a SQL query to answer the following question:
`what is the wind speed when brenda morehead was in the united states?`

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

CREATE TABLE "junior_under_20_women" (
  "rank" real,
  "fastest_time_s" real,
  "wind_m_s" real,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the wind speed when brenda morehead was in the united states?`:
```sql
                SELECT MIN("wind_m_s") FROM "junior_under_20_women" WHERE "nation"='united states' AND "athlete"='brenda morehead';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest rank in dresden with a time faster than 10.88?`

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

CREATE TABLE "junior_under_20_women" (
  "rank" real,
  "fastest_time_s" real,
  "wind_m_s" real,
  "athlete" text,
  "nation" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest rank in dresden with a time faster than 10.88?`:
```sql
                SELECT MAX("rank") FROM "junior_under_20_women" WHERE "location"='dresden' AND "fastest_time_s"<10.88;
```
## Task
Generate a SQL query to answer the following question:
`What is the course on 1 June?`

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

CREATE TABLE "stage_results" (
  "date" text,
  "course" text,
  "distance" text,
  "winner" text,
  "race_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the course on 1 June?`:
```sql
                SELECT "course" FROM "stage_results" WHERE "date"='1 june';
```
## Task
Generate a SQL query to answer the following question:
`Who is the winner of the Florence to Genoa course?`

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

CREATE TABLE "stage_results" (
  "date" text,
  "course" text,
  "distance" text,
  "winner" text,
  "race_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the winner of the Florence to Genoa course?`:
```sql
                SELECT "winner" FROM "stage_results" WHERE "course"='florence to genoa';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the Rome to Florence course?`

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

CREATE TABLE "stage_results" (
  "date" text,
  "course" text,
  "distance" text,
  "winner" text,
  "race_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the Rome to Florence course?`:
```sql
                SELECT "date" FROM "stage_results" WHERE "course"='rome to florence';
```
## Task
Generate a SQL query to answer the following question:
`What is Assists that has a Blocks of 2 tied (1) with a Year larger than 1995`

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

CREATE TABLE "world" (
  "year" real,
  "points" text,
  "rebounds" text,
  "assists" text,
  "steals" text,
  "blocks" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Assists that has a Blocks of 2 tied (1) with a Year larger than 1995`:
```sql
                SELECT "assists" FROM "world" WHERE "blocks"='2 tied (1)' AND "year">1995;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest lane for heat 6 with a time of dns?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest lane for heat 6 with a time of dns?`:
```sql
                SELECT MAX("lane") FROM "heats" WHERE "heat"=6 AND "time"='dns';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest lane with a time of 2:05.90, and a Heat larger than 3?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest lane with a time of 2:05.90, and a Heat larger than 3?`:
```sql
                SELECT MIN("lane") FROM "heats" WHERE "time"='2:05.90' AND "heat">3;
```
## Task
Generate a SQL query to answer the following question:
`What nationality has a lane larger than 4 and a Time of 2:00.37?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality has a lane larger than 4 and a Time of 2:00.37?`:
```sql
                SELECT "nationality" FROM "heats" WHERE "lane">4 AND "time"='2:00.37';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Lane where Belarus is the nationality?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Lane where Belarus is the nationality?`:
```sql
                SELECT AVG("lane") FROM "heats" WHERE "nationality"='belarus';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest lane for nisha millet?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest lane for nisha millet?`:
```sql
                SELECT MAX("lane") FROM "heats" WHERE "name"='nisha millet';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the race course from Rome to Naples?`

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

CREATE TABLE "stage_results" (
  "date" text,
  "course" text,
  "distance" text,
  "type" text,
  "winner" text,
  "race_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the race course from Rome to Naples?`:
```sql
                SELECT "date" FROM "stage_results" WHERE "course"='rome to naples';
```
## Task
Generate a SQL query to answer the following question:
`Name the Losing BP with 22 played and 9 Try BP.`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "try_bp" text,
  "losing_bp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Losing BP with 22 played and 9 Try BP.`:
```sql
                SELECT "losing_bp" FROM "2008_2009_table" WHERE "played"='22' AND "try_bp"='9';
```
## Task
Generate a SQL query to answer the following question:
`Name the Losing BP with drawn of 1 and a Try BP of 6.`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "try_bp" text,
  "losing_bp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Losing BP with drawn of 1 and a Try BP of 6.`:
```sql
                SELECT "losing_bp" FROM "2008_2009_table" WHERE "drawn"='1' AND "try_bp"='6';
```
## Task
Generate a SQL query to answer the following question:
`Name the Losing BP of Newport Saracens RFC and has a Lost of 19.`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "try_bp" text,
  "losing_bp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Losing BP of Newport Saracens RFC and has a Lost of 19.`:
```sql
                SELECT "losing_bp" FROM "2008_2009_table" WHERE "lost"='19' AND "club"='newport saracens rfc';
```
## Task
Generate a SQL query to answer the following question:
`Name the Drawn for Ystrad Rhondda RFC and has Played of 22.`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "try_bp" text,
  "losing_bp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Drawn for Ystrad Rhondda RFC and has Played of 22.`:
```sql
                SELECT "drawn" FROM "2008_2009_table" WHERE "played"='22' AND "club"='ystrad rhondda rfc';
```
## Task
Generate a SQL query to answer the following question:
`Can you name the drawn with a Lost of 1?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "try_bp" text,
  "losing_bp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you name the drawn with a Lost of 1?`:
```sql
                SELECT "drawn" FROM "2008_2009_table" WHERE "lost"='1';
```
## Task
Generate a SQL query to answer the following question:
`With a Losing BP of 8, what is the drawn?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "try_bp" text,
  "losing_bp" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a Losing BP of 8, what is the drawn?`:
```sql
                SELECT "drawn" FROM "2008_2009_table" WHERE "losing_bp"='8';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of disposals when marks is 134?`

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

CREATE TABLE "player_list" (
  "player" text,
  "afl_debut" text,
  "games" text,
  "goals" text,
  "behinds" text,
  "kicks" text,
  "handballs" text,
  "disposals" text,
  "marks" text,
  "tackles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of disposals when marks is 134?`:
```sql
                SELECT "disposals" FROM "player_list" WHERE "marks"='134';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score1 of Match 42?`

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

CREATE TABLE "friendlies" (
  "match" real,
  "date" text,
  "competition_or_tour" text,
  "ground" text,
  "opponent" text,
  "score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score1 of Match 42?`:
```sql
                SELECT "score1" FROM "friendlies" WHERE "match"=42;
```
## Task
Generate a SQL query to answer the following question:
`On what date was the match higher than 8 on ground A against Guiseley?`

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

CREATE TABLE "friendlies" (
  "match" real,
  "date" text,
  "competition_or_tour" text,
  "ground" text,
  "opponent" text,
  "score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the match higher than 8 on ground A against Guiseley?`:
```sql
                SELECT "date" FROM "friendlies" WHERE "match">8 AND "ground"='a' AND "opponent"='guiseley';
```
## Task
Generate a SQL query to answer the following question:
`On what ground was the game on 31 Jul 2007?`

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

CREATE TABLE "friendlies" (
  "match" real,
  "date" text,
  "competition_or_tour" text,
  "ground" text,
  "opponent" text,
  "score1" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what ground was the game on 31 Jul 2007?`:
```sql
                SELECT "ground" FROM "friendlies" WHERE "date"='31 jul 2007';
```
## Task
Generate a SQL query to answer the following question:
`What is the total of David Toms?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of David Toms?`:
```sql
                SELECT SUM("total") FROM "made_the_cut" WHERE "player"='david toms';
```
## Task
Generate a SQL query to answer the following question:
`What is the average of Fiji with t10 Finish?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average of Fiji with t10 Finish?`:
```sql
                SELECT AVG("total") FROM "made_the_cut" WHERE "finish"='t10' AND "country"='fiji';
```
## Task
Generate a SQL query to answer the following question:
`Who won in 1983?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won in 1983?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "year_s_won"='1983';
```