cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who is in group B and has a mark of 6.33?`

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

CREATE TABLE "qualifying_round" (
  "rank" text,
  "group" text,
  "name" text,
  "nationality" text,
  "mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in group B and has a mark of 6.33?`:
```sql
                SELECT "name" FROM "qualifying_round" WHERE "group"='b' AND "mark"='6.33';
```
## Task
Generate a SQL query to answer the following question:
`What is the mark for Grenada in group A?`

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

CREATE TABLE "qualifying_round" (
  "rank" text,
  "group" text,
  "name" text,
  "nationality" text,
  "mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mark for Grenada in group A?`:
```sql
                SELECT "mark" FROM "qualifying_round" WHERE "group"='a' AND "nationality"='grenada';
```
## Task
Generate a SQL query to answer the following question:
`Who has a mark of 6.17 in group B?`

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

CREATE TABLE "qualifying_round" (
  "rank" text,
  "group" text,
  "name" text,
  "nationality" text,
  "mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a mark of 6.17 in group B?`:
```sql
                SELECT "name" FROM "qualifying_round" WHERE "group"='b' AND "mark"='6.17';
```
## Task
Generate a SQL query to answer the following question:
`What rank does Tatyana Lebedeva have?`

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

CREATE TABLE "qualifying_round" (
  "rank" text,
  "group" text,
  "name" text,
  "nationality" text,
  "mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank does Tatyana Lebedeva have?`:
```sql
                SELECT "rank" FROM "qualifying_round" WHERE "name"='tatyana lebedeva';
```
## Task
Generate a SQL query to answer the following question:
`What rank has a mark of NM and is from India?`

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

CREATE TABLE "qualifying_round" (
  "rank" text,
  "group" text,
  "name" text,
  "nationality" text,
  "mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank has a mark of NM and is from India?`:
```sql
                SELECT "rank" FROM "qualifying_round" WHERE "mark"='nm' AND "nationality"='india';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of totals for ranks under 3 with tallies of 2-5?`

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

CREATE TABLE "single_game" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of totals for ranks under 3 with tallies of 2-5?`:
```sql
                SELECT SUM("total") FROM "single_game" WHERE "rank"<3 AND "tally"='2-5';
```
## Task
Generate a SQL query to answer the following question:
`Which player had a rank of 8 and tally of 1-5?`

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

CREATE TABLE "single_game" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player had a rank of 8 and tally of 1-5?`:
```sql
                SELECT "player" FROM "single_game" WHERE "rank"=8 AND "tally"='1-5';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the numbers in series written by sam meikle, which have 21 numbers in the season?`

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

CREATE TABLE "episodes" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "ratings" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the numbers in series written by sam meikle, which have 21 numbers in the season?`:
```sql
                SELECT SUM("no_in_series") FROM "episodes" WHERE "written_by"='sam meikle' AND "no_in_season"=21;
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the game played in Alexander Memorial Coliseum when the record was 0-1?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the game played in Alexander Memorial Coliseum when the record was 0-1?`:
```sql
                SELECT "score" FROM "game_log" WHERE "location_attendance"='alexander memorial coliseum' AND "record"='0-1';
```
## Task
Generate a SQL query to answer the following question:
`When was the game played that was at the Seattle Center Coliseum?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game played that was at the Seattle Center Coliseum?`:
```sql
                SELECT "date" FROM "game_log" WHERE "location_attendance"='seattle center coliseum';
```
## Task
Generate a SQL query to answer the following question:
`What is the least game that was played in Alexander Memorial Coliseum on October 16?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least game that was played in Alexander Memorial Coliseum on October 16?`:
```sql
                SELECT MIN("game") FROM "game_log" WHERE "location_attendance"='alexander memorial coliseum' AND "date"='october 16';
```
## Task
Generate a SQL query to answer the following question:
`What average game was played on October 16?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What average game was played on October 16?`:
```sql
                SELECT AVG("game") FROM "game_log" WHERE "date"='october 16';
```
## Task
Generate a SQL query to answer the following question:
`On what day was game 2 played?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day was game 2 played?`:
```sql
                SELECT "date" FROM "game_log" WHERE "game"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average tourism receipts in millions of US dollars in 2011 with less than 1.141 million of 2011 tourist arrivals and more than 1,449 tourism receipts in 2011 US dollars per arrival?`

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

CREATE TABLE "performance_indicators_for_international" (
  "country" text,
  "tourist_arrivals_2011_millions" real,
  "tourism_receipts_2011_millions_of_us" real,
  "tourism_receipts_2011_us_per_arrival" real,
  "tourism_receipts_2011_us_per_capita" real,
  "tourism_receipts_2003_as_pct_of_gdp" text,
  "tourism_receipts_2003_as_pct_of_exports" text,
  "tourism_competitiveness_2011_ttci" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average tourism receipts in millions of US dollars in 2011 with less than 1.141 million of 2011 tourist arrivals and more than 1,449 tourism receipts in 2011 US dollars per arrival?`:
```sql
                SELECT AVG("tourism_receipts_2011_millions_of_us") FROM "performance_indicators_for_international" WHERE "tourist_arrivals_2011_millions"<1.141 AND "tourism_receipts_2011_us_per_arrival">'1,449';
```
## Task
Generate a SQL query to answer the following question:
`What is the tourism competitiveness in 2011 of venezuela?`

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

CREATE TABLE "performance_indicators_for_international" (
  "country" text,
  "tourist_arrivals_2011_millions" real,
  "tourism_receipts_2011_millions_of_us" real,
  "tourism_receipts_2011_us_per_arrival" real,
  "tourism_receipts_2011_us_per_capita" real,
  "tourism_receipts_2003_as_pct_of_gdp" text,
  "tourism_receipts_2003_as_pct_of_exports" text,
  "tourism_competitiveness_2011_ttci" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tourism competitiveness in 2011 of venezuela?`:
```sql
                SELECT "tourism_competitiveness_2011_ttci" FROM "performance_indicators_for_international" WHERE "country"='venezuela';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of tourism receipts in 2011 US $ per capita with 19.4 % of GDP in 2003 tourism receipts and less than 655 US $ per arrival in 2011 tourism receipts?`

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

CREATE TABLE "performance_indicators_for_international" (
  "country" text,
  "tourist_arrivals_2011_millions" real,
  "tourism_receipts_2011_millions_of_us" real,
  "tourism_receipts_2011_us_per_arrival" real,
  "tourism_receipts_2011_us_per_capita" real,
  "tourism_receipts_2003_as_pct_of_gdp" text,
  "tourism_receipts_2003_as_pct_of_exports" text,
  "tourism_competitiveness_2011_ttci" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of tourism receipts in 2011 US $ per capita with 19.4 % of GDP in 2003 tourism receipts and less than 655 US $ per arrival in 2011 tourism receipts?`:
```sql
                SELECT MAX("tourism_receipts_2011_us_per_capita") FROM "performance_indicators_for_international" WHERE "tourism_receipts_2003_as_pct_of_gdp"='19.4' AND "tourism_receipts_2011_us_per_arrival"<655;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest tourism arrivals in 2011 in millions with 507 US $ per arrival in 2011 tourism receipts and less than 11,869 million of US $ in 2011 tourism receipts?`

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

CREATE TABLE "performance_indicators_for_international" (
  "country" text,
  "tourist_arrivals_2011_millions" real,
  "tourism_receipts_2011_millions_of_us" real,
  "tourism_receipts_2011_us_per_arrival" real,
  "tourism_receipts_2011_us_per_capita" real,
  "tourism_receipts_2003_as_pct_of_gdp" text,
  "tourism_receipts_2003_as_pct_of_exports" text,
  "tourism_competitiveness_2011_ttci" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest tourism arrivals in 2011 in millions with 507 US $ per arrival in 2011 tourism receipts and less than 11,869 million of US $ in 2011 tourism receipts?`:
```sql
                SELECT MIN("tourist_arrivals_2011_millions") FROM "performance_indicators_for_international" WHERE "tourism_receipts_2011_us_per_arrival"=507 AND "tourism_receipts_2011_millions_of_us"<'11,869';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest tourism arrivals in 2011 in millions with a 3.82 tourism competitiveness in 2011 and more than 1,102 US$ per arrival in 2011 tourism receipts?`

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

CREATE TABLE "performance_indicators_for_international" (
  "country" text,
  "tourist_arrivals_2011_millions" real,
  "tourism_receipts_2011_millions_of_us" real,
  "tourism_receipts_2011_us_per_arrival" real,
  "tourism_receipts_2011_us_per_capita" real,
  "tourism_receipts_2003_as_pct_of_gdp" text,
  "tourism_receipts_2003_as_pct_of_exports" text,
  "tourism_competitiveness_2011_ttci" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest tourism arrivals in 2011 in millions with a 3.82 tourism competitiveness in 2011 and more than 1,102 US$ per arrival in 2011 tourism receipts?`:
```sql
                SELECT MAX("tourist_arrivals_2011_millions") FROM "performance_indicators_for_international" WHERE "tourism_competitiveness_2011_ttci"='3.82' AND "tourism_receipts_2011_us_per_arrival">'1,102';
```
## Task
Generate a SQL query to answer the following question:
`In what year was Wisconsin the runner-up?`

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

CREATE TABLE "national_championships" (
  "year" real,
  "champion" text,
  "score" text,
  "runner_up" text,
  "city" text,
  "arena" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was Wisconsin the runner-up?`:
```sql
                SELECT "year" FROM "national_championships" WHERE "runner_up"='wisconsin';
```
## Task
Generate a SQL query to answer the following question:
`In what arena was the North Dakota the runner-up?`

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

CREATE TABLE "national_championships" (
  "year" real,
  "champion" text,
  "score" text,
  "runner_up" text,
  "city" text,
  "arena" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what arena was the North Dakota the runner-up?`:
```sql
                SELECT "arena" FROM "national_championships" WHERE "runner_up"='north dakota';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game at the Broadmoor Arena?`

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

CREATE TABLE "national_championships" (
  "year" real,
  "champion" text,
  "score" text,
  "runner_up" text,
  "city" text,
  "arena" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game at the Broadmoor Arena?`:
```sql
                SELECT "score" FROM "national_championships" WHERE "arena"='broadmoor arena';
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up at the Broadmoor Arena before 2008?`

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

CREATE TABLE "national_championships" (
  "year" real,
  "champion" text,
  "score" text,
  "runner_up" text,
  "city" text,
  "arena" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner-up at the Broadmoor Arena before 2008?`:
```sql
                SELECT "runner_up" FROM "national_championships" WHERE "year"<2008 AND "arena"='broadmoor arena';
```
## Task
Generate a SQL query to answer the following question:
`In what year was the competition at the Pepsi Arena?`

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

CREATE TABLE "national_championships" (
  "year" real,
  "champion" text,
  "score" text,
  "runner_up" text,
  "city" text,
  "arena" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was the competition at the Pepsi Arena?`:
```sql
                SELECT "year" FROM "national_championships" WHERE "arena"='pepsi arena';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has a 53-24 record?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a 53-24 record?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='53-24';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent for game 73?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent for game 73?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "game"='73';
```
## Task
Generate a SQL query to answer the following question:
`who is the replacement when the team is milton keynes dons?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the replacement when the team is milton keynes dons?`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='milton keynes dons';
```
## Task
Generate a SQL query to answer the following question:
`what is the team with the position in table of 24th and the date of appointment 15 september 2008?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the team with the position in table of 24th and the date of appointment 15 september 2008?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "position_in_table"='24th' AND "date_of_appointment"='15 september 2008';
```
## Task
Generate a SQL query to answer the following question:
`what is the position in table when the team is hartlepool united?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position in table when the team is hartlepool united?`:
```sql
                SELECT "position_in_table" FROM "managerial_changes" WHERE "team"='hartlepool united';
```
## Task
Generate a SQL query to answer the following question:
`what is the team geraint williams is the replacement?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the team geraint williams is the replacement?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='geraint williams';
```
## Task
Generate a SQL query to answer the following question:
`what is the date of vacancy when the position in table is 16th and the outgoing manager is russell slade?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date of vacancy when the position in table is 16th and the outgoing manager is russell slade?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "position_in_table"='16th' AND "outgoing_manager"='russell slade';
```
## Task
Generate a SQL query to answer the following question:
`What years have 10 (0) in the finals?`

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

CREATE TABLE "most_number_of_appearances" (
  "name" text,
  "years" text,
  "a_league" text,
  "finals" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years have 10 (0) in the finals?`:
```sql
                SELECT "years" FROM "most_number_of_appearances" WHERE "finals"='10 (0)';
```
## Task
Generate a SQL query to answer the following question:
`What A-League has 6 (1) for the finals, and leigh broxham as the name?`

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

CREATE TABLE "most_number_of_appearances" (
  "name" text,
  "years" text,
  "a_league" text,
  "finals" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What A-League has 6 (1) for the finals, and leigh broxham as the name?`:
```sql
                SELECT "a_league" FROM "most_number_of_appearances" WHERE "finals"='6 (1)' AND "name"='leigh broxham';
```
## Task
Generate a SQL query to answer the following question:
`What finals have grant brebner as the name?`

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

CREATE TABLE "most_number_of_appearances" (
  "name" text,
  "years" text,
  "a_league" text,
  "finals" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What finals have grant brebner as the name?`:
```sql
                SELECT "finals" FROM "most_number_of_appearances" WHERE "name"='grant brebner';
```
## Task
Generate a SQL query to answer the following question:
`What years have 9 (0) as the finals and 133 (1) as the A-League?`

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

CREATE TABLE "most_number_of_appearances" (
  "name" text,
  "years" text,
  "a_league" text,
  "finals" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years have 9 (0) as the finals and 133 (1) as the A-League?`:
```sql
                SELECT "years" FROM "most_number_of_appearances" WHERE "finals"='9 (0)' AND "a_league"='133 (1)';
```
## Task
Generate a SQL query to answer the following question:
`What years have 9 (3) as the finals?`

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

CREATE TABLE "most_number_of_appearances" (
  "name" text,
  "years" text,
  "a_league" text,
  "finals" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years have 9 (3) as the finals?`:
```sql
                SELECT "years" FROM "most_number_of_appearances" WHERE "finals"='9 (3)';
```
## Task
Generate a SQL query to answer the following question:
`What years have 101 (16) as the total?`

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

CREATE TABLE "most_number_of_appearances" (
  "name" text,
  "years" text,
  "a_league" text,
  "finals" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years have 101 (16) as the total?`:
```sql
                SELECT "years" FROM "most_number_of_appearances" WHERE "total"='101 (16)';
```
## Task
Generate a SQL query to answer the following question:
`Who has a time of 7:26.85 and notes of sc/d?`

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

CREATE TABLE "quarterfinal_2" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a time of 7:26.85 and notes of sc/d?`:
```sql
                SELECT "athlete" FROM "quarterfinal_2" WHERE "notes"='sc/d' AND "time"='7:26.85';
```
## Task
Generate a SQL query to answer the following question:
`Ioannis Christou with a rank smaller than 6 has what notes?`

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

CREATE TABLE "quarterfinal_2" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Ioannis Christou with a rank smaller than 6 has what notes?`:
```sql
                SELECT "notes" FROM "quarterfinal_2" WHERE "rank"<6 AND "athlete"='ioannis christou';
```
## Task
Generate a SQL query to answer the following question:
`Which Notes have a Distance larger than 7, and a Location of aplin?`

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

CREATE TABLE "major_intersections" (
  "county" text,
  "location" text,
  "distance" real,
  "total" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Notes have a Distance larger than 7, and a Location of aplin?`:
```sql
                SELECT "notes" FROM "major_intersections" WHERE "distance">7 AND "location"='aplin';
```
## Task
Generate a SQL query to answer the following question:
`How much Distance has a County of faulkner, and a Total smaller than 1.5?`

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

CREATE TABLE "major_intersections" (
  "county" text,
  "location" text,
  "distance" real,
  "total" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Distance has a County of faulkner, and a Total smaller than 1.5?`:
```sql
                SELECT SUM("distance") FROM "major_intersections" WHERE "county"='faulkner' AND "total"<1.5;
```
## Task
Generate a SQL query to answer the following question:
`How much Distance has Notes of north end terminus of ar 155?`

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

CREATE TABLE "major_intersections" (
  "county" text,
  "location" text,
  "distance" real,
  "total" real,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Distance has Notes of north end terminus of ar 155?`:
```sql
                SELECT SUM("distance") FROM "major_intersections" WHERE "notes"='north end terminus of ar 155';
```
## Task
Generate a SQL query to answer the following question:
`How much Latitude has a Water (sqmi) smaller than 0?`

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

CREATE TABLE "y" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Latitude has a Water (sqmi) smaller than 0?`:
```sql
                SELECT COUNT("latitude") FROM "y" WHERE "water_sqmi"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Land (sqmi) has a GEO ID smaller than 3800587900?`

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

CREATE TABLE "y" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Land (sqmi) has a GEO ID smaller than 3800587900?`:
```sql
                SELECT MIN("land_sqmi") FROM "y" WHERE "geo_id"<3800587900;
```
## Task
Generate a SQL query to answer the following question:
`Which Water (sqmi) has a Township of yorktown, and a GEO ID smaller than 3802187940?`

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

CREATE TABLE "y" (
  "township" text,
  "county" text,
  "pop_2010" real,
  "land_sqmi" real,
  "water_sqmi" real,
  "latitude" real,
  "longitude" real,
  "geo_id" real,
  "ansi_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Water (sqmi) has a Township of yorktown, and a GEO ID smaller than 3802187940?`:
```sql
                SELECT MIN("water_sqmi") FROM "y" WHERE "township"='yorktown' AND "geo_id"<3802187940;
```
## Task
Generate a SQL query to answer the following question:
`What school had Jeff Urban playing at the p position?`

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

CREATE TABLE "supplemental_first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school had Jeff Urban playing at the p position?`:
```sql
                SELECT "school" FROM "supplemental_first_round_selections" WHERE "position"='p' AND "player"='jeff urban';
```
## Task
Generate a SQL query to answer the following question:
`What school has the Kansas City Royals for a team?`

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

CREATE TABLE "supplemental_first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school has the Kansas City Royals for a team?`:
```sql
                SELECT "school" FROM "supplemental_first_round_selections" WHERE "team"='kansas city royals';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the match where vampiro was the winner in Mexico City?`

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

CREATE TABLE "luchas_de_apuestas_record" (
  "wager" text,
  "winner" text,
  "loser" text,
  "location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the match where vampiro was the winner in Mexico City?`:
```sql
                SELECT "date" FROM "luchas_de_apuestas_record" WHERE "location"='mexico city' AND "winner"='vampiro';
```
## Task
Generate a SQL query to answer the following question:
`What is the wager on August 23, 1992 where vampiro was the winner?`

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

CREATE TABLE "luchas_de_apuestas_record" (
  "wager" text,
  "winner" text,
  "loser" text,
  "location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the wager on August 23, 1992 where vampiro was the winner?`:
```sql
                SELECT "wager" FROM "luchas_de_apuestas_record" WHERE "winner"='vampiro' AND "date"='august 23, 1992';
```
## Task
Generate a SQL query to answer the following question:
`What is the location where shocker was the winner?`

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

CREATE TABLE "luchas_de_apuestas_record" (
  "wager" text,
  "winner" text,
  "loser" text,
  "location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location where shocker was the winner?`:
```sql
                SELECT "location" FROM "luchas_de_apuestas_record" WHERE "winner"='shocker';
```
## Task
Generate a SQL query to answer the following question:
`What is the location where aaron grundy was the loser?`

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

CREATE TABLE "luchas_de_apuestas_record" (
  "wager" text,
  "winner" text,
  "loser" text,
  "location" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location where aaron grundy was the loser?`:
```sql
                SELECT "location" FROM "luchas_de_apuestas_record" WHERE "loser"='aaron grundy';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1994 when QF is 1999?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "1999" text,
  "1998" text,
  "1997" text,
  "1996" text,
  "1995" text,
  "1994" text,
  "1993" text,
  "1992" text,
  "1991" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1994 when QF is 1999?`:
```sql
                SELECT "1994" FROM "singles_performance_timeline" WHERE "1999"='qf';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1991 when 1997 is 18?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "1999" text,
  "1998" text,
  "1997" text,
  "1996" text,
  "1995" text,
  "1994" text,
  "1993" text,
  "1992" text,
  "1991" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1991 when 1997 is 18?`:
```sql
                SELECT "1991" FROM "singles_performance_timeline" WHERE "1997"='18';
```
## Task
Generate a SQL query to answer the following question:
`What's the 1991 when 1999 is 14?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "1999" text,
  "1998" text,
  "1997" text,
  "1996" text,
  "1995" text,
  "1994" text,
  "1993" text,
  "1992" text,
  "1991" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1991 when 1999 is 14?`:
```sql
                SELECT "1991" FROM "singles_performance_timeline" WHERE "1999"='14';
```
## Task
Generate a SQL query to answer the following question:
`What's the 1996 when 1997 is 3R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "1999" text,
  "1998" text,
  "1997" text,
  "1996" text,
  "1995" text,
  "1994" text,
  "1993" text,
  "1992" text,
  "1991" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1996 when 1997 is 3R?`:
```sql
                SELECT "1996" FROM "singles_performance_timeline" WHERE "1997"='3r';
```
## Task
Generate a SQL query to answer the following question:
`What is 1994 when 1996 is 3R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "1999" text,
  "1998" text,
  "1997" text,
  "1996" text,
  "1995" text,
  "1994" text,
  "1993" text,
  "1992" text,
  "1991" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1994 when 1996 is 3R?`:
```sql
                SELECT "1994" FROM "singles_performance_timeline" WHERE "1996"='3r';
```
## Task
Generate a SQL query to answer the following question:
`What is 1996 during the US Open?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "1999" text,
  "1998" text,
  "1997" text,
  "1996" text,
  "1995" text,
  "1994" text,
  "1993" text,
  "1992" text,
  "1991" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1996 during the US Open?`:
```sql
                SELECT "1996" FROM "singles_performance_timeline" WHERE "tournament"='us open';
```
## Task
Generate a SQL query to answer the following question:
`What's the standard name with an ADSL2 version and a 01.5 1.5 mbit/s downstream rate?`

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

CREATE TABLE "adsl_standards" (
  "version" text,
  "standard_name" text,
  "common_name" text,
  "downstream_rate" text,
  "upstream_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the standard name with an ADSL2 version and a 01.5 1.5 mbit/s downstream rate?`:
```sql
                SELECT "standard_name" FROM "adsl_standards" WHERE "version"='adsl2' AND "downstream_rate"='01.5 1.5 mbit/s';
```
## Task
Generate a SQL query to answer the following question:
`What's the downstream rate for the Itu g.992.2 having a version of ADSL?`

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

CREATE TABLE "adsl_standards" (
  "version" text,
  "standard_name" text,
  "common_name" text,
  "downstream_rate" text,
  "upstream_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the downstream rate for the Itu g.992.2 having a version of ADSL?`:
```sql
                SELECT "downstream_rate" FROM "adsl_standards" WHERE "version"='adsl' AND "standard_name"='itu g.992.2';
```
## Task
Generate a SQL query to answer the following question:
`What's the version of Itu g.992.3 Annex J?`

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

CREATE TABLE "adsl_standards" (
  "version" text,
  "standard_name" text,
  "common_name" text,
  "downstream_rate" text,
  "upstream_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the version of Itu g.992.3 Annex J?`:
```sql
                SELECT "version" FROM "adsl_standards" WHERE "standard_name"='itu g.992.3 annex j';
```
## Task
Generate a SQL query to answer the following question:
`What's the version that has a 20.0 mbit/s downstream rate?`

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

CREATE TABLE "adsl_standards" (
  "version" text,
  "standard_name" text,
  "common_name" text,
  "downstream_rate" text,
  "upstream_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the version that has a 20.0 mbit/s downstream rate?`:
```sql
                SELECT "version" FROM "adsl_standards" WHERE "downstream_rate"='20.0 mbit/s';
```
## Task
Generate a SQL query to answer the following question:
`What's the standard name that has a common name of ADSL Over Pots and ADSL version?`

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

CREATE TABLE "adsl_standards" (
  "version" text,
  "standard_name" text,
  "common_name" text,
  "downstream_rate" text,
  "upstream_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the standard name that has a common name of ADSL Over Pots and ADSL version?`:
```sql
                SELECT "standard_name" FROM "adsl_standards" WHERE "version"='adsl' AND "common_name"='adsl over pots';
```
## Task
Generate a SQL query to answer the following question:
`What's the upstream rate for Itu g.992.2 with a version of ADSL?`

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

CREATE TABLE "adsl_standards" (
  "version" text,
  "standard_name" text,
  "common_name" text,
  "downstream_rate" text,
  "upstream_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the upstream rate for Itu g.992.2 with a version of ADSL?`:
```sql
                SELECT "upstream_rate" FROM "adsl_standards" WHERE "version"='adsl' AND "standard_name"='itu g.992.2';
```
## Task
Generate a SQL query to answer the following question:
`How many games does the player with 1 (0) finals and a w-league of 28 (1) have?`

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

CREATE TABLE "w_league_records" (
  "name" text,
  "games" text,
  "w_league" text,
  "finals" text,
  "goals" real,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games does the player with 1 (0) finals and a w-league of 28 (1) have?`:
```sql
                SELECT "games" FROM "w_league_records" WHERE "finals"='1 (0)' AND "w_league"='28 (1)';
```
## Task
Generate a SQL query to answer the following question:
`What year had more than 2 goals and 11 (2) games?`

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

CREATE TABLE "w_league_records" (
  "name" text,
  "games" text,
  "w_league" text,
  "finals" text,
  "goals" real,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had more than 2 goals and 11 (2) games?`:
```sql
                SELECT "years" FROM "w_league_records" WHERE "goals">2 AND "games"='11 (2)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of goals with 8 (2) w-leagues?`

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

CREATE TABLE "w_league_records" (
  "name" text,
  "games" text,
  "w_league" text,
  "finals" text,
  "goals" real,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of goals with 8 (2) w-leagues?`:
```sql
                SELECT MIN("goals") FROM "w_league_records" WHERE "w_league"='8 (2)';
```
## Task
Generate a SQL query to answer the following question:
`Which UEFA Champions League has a La Liga of 17, and a Copa del Rey larger than 0?`

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

CREATE TABLE "goal_scorers" (
  "name" text,
  "la_liga" real,
  "copa_del_rey" real,
  "uefa_champions_league" real,
  "fifa_club_world_championship" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which UEFA Champions League has a La Liga of 17, and a Copa del Rey larger than 0?`:
```sql
                SELECT MIN("uefa_champions_league") FROM "goal_scorers" WHERE "la_liga"=17 AND "copa_del_rey">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Copa del Rey has a Name of guti, and a FIFA Club World Championship smaller than 0?`

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

CREATE TABLE "goal_scorers" (
  "name" text,
  "la_liga" real,
  "copa_del_rey" real,
  "uefa_champions_league" real,
  "fifa_club_world_championship" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Copa del Rey has a Name of guti, and a FIFA Club World Championship smaller than 0?`:
```sql
                SELECT SUM("copa_del_rey") FROM "goal_scorers" WHERE "name"='guti' AND "fifa_club_world_championship"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Copa del Rey has a La Liga smaller than 0?`

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

CREATE TABLE "goal_scorers" (
  "name" text,
  "la_liga" real,
  "copa_del_rey" real,
  "uefa_champions_league" real,
  "fifa_club_world_championship" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Copa del Rey has a La Liga smaller than 0?`:
```sql
                SELECT SUM("copa_del_rey") FROM "goal_scorers" WHERE "la_liga"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which FIFA Club World Championship has a UEFA Champions League of 0, and a Total smaller than 3, and a Name of geremi?`

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

CREATE TABLE "goal_scorers" (
  "name" text,
  "la_liga" real,
  "copa_del_rey" real,
  "uefa_champions_league" real,
  "fifa_club_world_championship" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which FIFA Club World Championship has a UEFA Champions League of 0, and a Total smaller than 3, and a Name of geremi?`:
```sql
                SELECT MIN("fifa_club_world_championship") FROM "goal_scorers" WHERE "uefa_champions_league"=0 AND "total"<3 AND "name"='geremi';
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank for Hungary?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank for Hungary?`:
```sql
                SELECT AVG("rank") FROM "heat_2" WHERE "country"='hungary';
```
## Task
Generate a SQL query to answer the following question:
`What country has a time of 3:19.167?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a time of 3:19.167?`:
```sql
                SELECT "country" FROM "heat_2" WHERE "time"='3:19.167';
```
## Task
Generate a SQL query to answer the following question:
`What are the notes for the time at 3:19.167?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes for the time at 3:19.167?`:
```sql
                SELECT "notes" FROM "heat_2" WHERE "time"='3:19.167';
```
## Task
Generate a SQL query to answer the following question:
`What was the album Closer: The Best of Sarah Mclachlan certified as?`

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

CREATE TABLE "top_10_albums" (
  "rank" real,
  "artist" text,
  "album" text,
  "peak_position" text,
  "sales" real,
  "certification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the album Closer: The Best of Sarah Mclachlan certified as?`:
```sql
                SELECT "certification" FROM "top_10_albums" WHERE "album"='closer: the best of sarah mclachlan';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Laps that have gregorio lavilla as the rider, with a grid greater than 13?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Laps that have gregorio lavilla as the rider, with a grid greater than 13?`:
```sql
                SELECT AVG("laps") FROM "superbike_race_2_classification" WHERE "rider"='gregorio lavilla' AND "grid">13;
```
## Task
Generate a SQL query to answer the following question:
`What bike has 26 as the grid?`

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

CREATE TABLE "superbike_race_2_classification" (
  "rider" text,
  "bike" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What bike has 26 as the grid?`:
```sql
                SELECT "bike" FROM "superbike_race_2_classification" WHERE "grid"=26;
```