cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Class has a Performance test of minimum value, and a Usage of semi hepa, and a Performance of 99.5%?`

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

CREATE TABLE "filter_classes" (
  "usage" text,
  "class" text,
  "performance" text,
  "performance_test" text,
  "particulate_size_approaching_100pct_retention" text,
  "test_standard" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Class has a Performance test of minimum value, and a Usage of semi hepa, and a Performance of 99.5%?`:
```sql
                SELECT "class" FROM "filter_classes" WHERE "performance_test"='minimum value' AND "usage"='semi hepa' AND "performance"='99.5%';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a To par of –1, and a Player of mick soli?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a To par of –1, and a Player of mick soli?`:
```sql
                SELECT "score" FROM "first_round" WHERE "to_par"='–1' AND "player"='mick soli';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Place of t1, and a Player of hubert green?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Place of t1, and a Player of hubert green?`:
```sql
                SELECT AVG("score") FROM "first_round" WHERE "place"='t1' AND "player"='hubert green';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Score of 69, and a Player of mick soli?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Score of 69, and a Player of mick soli?`:
```sql
                SELECT "country" FROM "first_round" WHERE "score"=69 AND "player"='mick soli';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Place of t1?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Place of t1?`:
```sql
                SELECT "country" FROM "first_round" WHERE "place"='t1';
```
## Task
Generate a SQL query to answer the following question:
`Where is the moving from location with a transfer window of summer and the source kerkida.net?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the moving from location with a transfer window of summer and the source kerkida.net?`:
```sql
                SELECT "moving_from" FROM "squad_changes" WHERE "transfer_window"='summer' AND "source"='kerkida.net';
```
## Task
Generate a SQL query to answer the following question:
`Which name has the source apoelfc.com.cy and a type of transfer?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which name has the source apoelfc.com.cy and a type of transfer?`:
```sql
                SELECT "name" FROM "squad_changes" WHERE "source"='apoelfc.com.cy' AND "type"='transfer';
```
## Task
Generate a SQL query to answer the following question:
`What is the Fate of the San Pablo ship?`

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

CREATE TABLE "ships_attacked" (
  "date" text,
  "name" text,
  "nationality" text,
  "tonnage_grt" real,
  "fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Fate of the San Pablo ship?`:
```sql
                SELECT "fate" FROM "ships_attacked" WHERE "name"='san pablo';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of attack of the Circe Shell Ship?`

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

CREATE TABLE "ships_attacked" (
  "date" text,
  "name" text,
  "nationality" text,
  "tonnage_grt" real,
  "fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of attack of the Circe Shell Ship?`:
```sql
                SELECT "date" FROM "ships_attacked" WHERE "name"='circe shell';
```
## Task
Generate a SQL query to answer the following question:
`What fuel system was used in 1960-62?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displacement" text,
  "power" text,
  "fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `What fuel system was used in 1960-62?`:
```sql
                SELECT "fuel_system" FROM "engines" WHERE "years"='1960-62';
```
## Task
Generate a SQL query to answer the following question:
`How much power does the 1500 model have with a displacement of 1490cc?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displacement" text,
  "power" text,
  "fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much power does the 1500 model have with a displacement of 1490cc?`:
```sql
                SELECT "power" FROM "engines" WHERE "model"='1500' AND "displacement"='1490cc';
```
## Task
Generate a SQL query to answer the following question:
`Which years have a displacement of 1816cc?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displacement" text,
  "power" text,
  "fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which years have a displacement of 1816cc?`:
```sql
                SELECT "years" FROM "engines" WHERE "displacement"='1816cc';
```
## Task
Generate a SQL query to answer the following question:
`How much power does the fuel injection system have with a displacement of 1991cc?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displacement" text,
  "power" text,
  "fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much power does the fuel injection system have with a displacement of 1991cc?`:
```sql
                SELECT "power" FROM "engines" WHERE "fuel_system"='fuel injection' AND "displacement"='1991cc';
```
## Task
Generate a SQL query to answer the following question:
`Which fuel system has a displacement of 1490cc?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displacement" text,
  "power" text,
  "fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which fuel system has a displacement of 1490cc?`:
```sql
                SELECT "fuel_system" FROM "engines" WHERE "displacement"='1490cc';
```
## Task
Generate a SQL query to answer the following question:
`Which fuel system has a displacement of 1500cc for the Berlina model?`

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

CREATE TABLE "engines" (
  "model" text,
  "years" text,
  "engine" text,
  "displacement" text,
  "power" text,
  "fuel_system" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which fuel system has a displacement of 1500cc for the Berlina model?`:
```sql
                SELECT "fuel_system" FROM "engines" WHERE "displacement"='1500cc' AND "model"='berlina';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Industry, when Year is greater than 2005, and when Agriculture is greater than 11?`

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

CREATE TABLE "trend_of_regional_gross_value_added_of_c" (
  "year" real,
  "regional_gva" real,
  "agriculture" real,
  "industry" real,
  "services" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Industry, when Year is greater than 2005, and when Agriculture is greater than 11?`:
```sql
                SELECT MIN("industry") FROM "trend_of_regional_gross_value_added_of_c" WHERE "year">2005 AND "agriculture">11;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Industry, when Agriculture is greater than 11?`

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

CREATE TABLE "trend_of_regional_gross_value_added_of_c" (
  "year" real,
  "regional_gva" real,
  "agriculture" real,
  "industry" real,
  "services" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Industry, when Agriculture is greater than 11?`:
```sql
                SELECT AVG("industry") FROM "trend_of_regional_gross_value_added_of_c" WHERE "agriculture">11;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Services, when Year is greater than 2003, when Industry is greater than 1,465, and when Regional GVA is greater than 9,432?`

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

CREATE TABLE "trend_of_regional_gross_value_added_of_c" (
  "year" real,
  "regional_gva" real,
  "agriculture" real,
  "industry" real,
  "services" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Services, when Year is greater than 2003, when Industry is greater than 1,465, and when Regional GVA is greater than 9,432?`:
```sql
                SELECT AVG("services") FROM "trend_of_regional_gross_value_added_of_c" WHERE "year">2003 AND "industry">'1,465' AND "regional_gva">'9,432';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Agriculture, when Regional GVA is greater than 6,584, when Services is greater than 7,502, and when Industry is greater than 1,565?`

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

CREATE TABLE "trend_of_regional_gross_value_added_of_c" (
  "year" real,
  "regional_gva" real,
  "agriculture" real,
  "industry" real,
  "services" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Agriculture, when Regional GVA is greater than 6,584, when Services is greater than 7,502, and when Industry is greater than 1,565?`:
```sql
                SELECT SUM("agriculture") FROM "trend_of_regional_gross_value_added_of_c" WHERE "regional_gva">'6,584' AND "services">'7,502' AND "industry">'1,565';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Year, when Regional GVA is 6,584, and when Services is less than 5,277?`

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

CREATE TABLE "trend_of_regional_gross_value_added_of_c" (
  "year" real,
  "regional_gva" real,
  "agriculture" real,
  "industry" real,
  "services" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Year, when Regional GVA is 6,584, and when Services is less than 5,277?`:
```sql
                SELECT SUM("year") FROM "trend_of_regional_gross_value_added_of_c" WHERE "regional_gva"='6,584' AND "services"<'5,277';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Regional GVA, when Year is greater than 2000, when Services is 7,502, and when Agriculture is greater than 11?`

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

CREATE TABLE "trend_of_regional_gross_value_added_of_c" (
  "year" real,
  "regional_gva" real,
  "agriculture" real,
  "industry" real,
  "services" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Regional GVA, when Year is greater than 2000, when Services is 7,502, and when Agriculture is greater than 11?`:
```sql
                SELECT MAX("regional_gva") FROM "trend_of_regional_gross_value_added_of_c" WHERE "year">2000 AND "services"='7,502' AND "agriculture">11;
```
## Task
Generate a SQL query to answer the following question:
`When the points scored was over 110.25%, what's the average amount lost?`

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

CREATE TABLE "ladder" (
  "team" text,
  "lost" real,
  "last_5" text,
  "streak" text,
  "home" text,
  "away" text,
  "pct_pts" real,
  "pct_won" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the points scored was over 110.25%, what's the average amount lost?`:
```sql
                SELECT AVG("lost") FROM "ladder" WHERE "pct_pts">110.25;
```
## Task
Generate a SQL query to answer the following question:
`If the points scored were 93.45%, what's the lowest amount of games lost?`

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

CREATE TABLE "ladder" (
  "team" text,
  "lost" real,
  "last_5" text,
  "streak" text,
  "home" text,
  "away" text,
  "pct_pts" real,
  "pct_won" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the points scored were 93.45%, what's the lowest amount of games lost?`:
```sql
                SELECT MIN("lost") FROM "ladder" WHERE "pct_pts"=93.45;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the film directed by Kevin Costner?`

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

CREATE TABLE "highest_grossing_films" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the film directed by Kevin Costner?`:
```sql
                SELECT COUNT("rank") FROM "highest_grossing_films" WHERE "director"='kevin costner';
```
## Task
Generate a SQL query to answer the following question:
`What director grossed $200,512,643`

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

CREATE TABLE "highest_grossing_films" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What director grossed $200,512,643`:
```sql
                SELECT "director" FROM "highest_grossing_films" WHERE "gross"='$200,512,643';
```
## Task
Generate a SQL query to answer the following question:
`What is the average rank of the movie from Paramount Studios that grossed $200,512,643?`

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

CREATE TABLE "highest_grossing_films" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average rank of the movie from Paramount Studios that grossed $200,512,643?`:
```sql
                SELECT AVG("rank") FROM "highest_grossing_films" WHERE "studio"='paramount' AND "gross"='$200,512,643';
```
## Task
Generate a SQL query to answer the following question:
`Who directed Teenage Mutant Ninja Turtles?`

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

CREATE TABLE "highest_grossing_films" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed Teenage Mutant Ninja Turtles?`:
```sql
                SELECT "director" FROM "highest_grossing_films" WHERE "title"='teenage mutant ninja turtles';
```
## Task
Generate a SQL query to answer the following question:
`What director ranked higher than 1 from Universal Studios and grossed $201,957,688?`

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

CREATE TABLE "highest_grossing_films" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What director ranked higher than 1 from Universal Studios and grossed $201,957,688?`:
```sql
                SELECT "director" FROM "highest_grossing_films" WHERE "rank">1 AND "studio"='universal' AND "gross"='$201,957,688';
```
## Task
Generate a SQL query to answer the following question:
`When the rider is Garry Mccoy and the manufacturer was Kawasaki, what was the time retired?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the rider is Garry Mccoy and the manufacturer was Kawasaki, what was the time retired?`:
```sql
                SELECT "time_retired" FROM "moto_gp_classification" WHERE "manufacturer"='kawasaki' AND "rider"='garry mccoy';
```
## Task
Generate a SQL query to answer the following question:
`What's the highest amount of laps Garry Mccoy drove?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest amount of laps Garry Mccoy drove?`:
```sql
                SELECT MAX("laps") FROM "moto_gp_classification" WHERE "rider"='garry mccoy';
```
## Task
Generate a SQL query to answer the following question:
`If the manufacturer is Proton Kr and the grid was over 10, what was the time retired?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the manufacturer is Proton Kr and the grid was over 10, what was the time retired?`:
```sql
                SELECT "time_retired" FROM "moto_gp_classification" WHERE "grid">10 AND "manufacturer"='proton kr';
```
## Task
Generate a SQL query to answer the following question:
`The year 1974 has what listed as the Height?`

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

CREATE TABLE "all_time" (
  "continent" text,
  "structure" text,
  "height" text,
  "year" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `The year 1974 has what listed as the Height?`:
```sql
                SELECT "height" FROM "all_time" WHERE "year"=1974;
```
## Task
Generate a SQL query to answer the following question:
`The OMEGA transmitter Chabrier has what country listed?`

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

CREATE TABLE "all_time" (
  "continent" text,
  "structure" text,
  "height" text,
  "year" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `The OMEGA transmitter Chabrier has what country listed?`:
```sql
                SELECT "country" FROM "all_time" WHERE "structure"='omega transmitter chabrier';
```
## Task
Generate a SQL query to answer the following question:
`Listed with a continent of Africa and before 2009 this structure is called what?`

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

CREATE TABLE "all_time" (
  "continent" text,
  "structure" text,
  "height" text,
  "year" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Listed with a continent of Africa and before 2009 this structure is called what?`:
```sql
                SELECT "structure" FROM "all_time" WHERE "year"<2009 AND "continent"='africa';
```
## Task
Generate a SQL query to answer the following question:
`The year 1972 has what written in Height column?`

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

CREATE TABLE "all_time" (
  "continent" text,
  "structure" text,
  "height" text,
  "year" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `The year 1972 has what written in Height column?`:
```sql
                SELECT "height" FROM "all_time" WHERE "year"=1972;
```
## Task
Generate a SQL query to answer the following question:
`What is the Continent that also has the United States listed as a country?`

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

CREATE TABLE "all_time" (
  "continent" text,
  "structure" text,
  "height" text,
  "year" real,
  "country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Continent that also has the United States listed as a country?`:
```sql
                SELECT "continent" FROM "all_time" WHERE "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of ends won of 47 Ends Lost and a Shot % less than 73?`

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

CREATE TABLE "standings" (
  "country" text,
  "skip" text,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of ends won of 47 Ends Lost and a Shot % less than 73?`:
```sql
                SELECT MAX("ends_won") FROM "standings" WHERE "ends_lost"=47 AND "shot_pct"<73;
```
## Task
Generate a SQL query to answer the following question:
`What Poll was on April 14 of 13?`

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

CREATE TABLE "ranking_movement" (
  "poll" text,
  "pre_season" text,
  "mar_3" text,
  "mar_17" text,
  "mar_24" text,
  "mar_31" text,
  "april_7" text,
  "april_14" text,
  "april_21" text,
  "april_28" text,
  "may_5" text,
  "may_12" text,
  "may_19" text,
  "may_26" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Poll was on April 14 of 13?`:
```sql
                SELECT "poll" FROM "ranking_movement" WHERE "april_14"='13';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for Mar 17 when the April 21 rank is 10?`

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

CREATE TABLE "ranking_movement" (
  "poll" text,
  "pre_season" text,
  "mar_3" text,
  "mar_17" text,
  "mar_24" text,
  "mar_31" text,
  "april_7" text,
  "april_14" text,
  "april_21" text,
  "april_28" text,
  "may_5" text,
  "may_12" text,
  "may_19" text,
  "may_26" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for Mar 17 when the April 21 rank is 10?`:
```sql
                SELECT "mar_17" FROM "ranking_movement" WHERE "april_21"='10';
```
## Task
Generate a SQL query to answer the following question:
`What is the Mar 24 rank when the May 26 is 13, and the May 12 is 6?`

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

CREATE TABLE "ranking_movement" (
  "poll" text,
  "pre_season" text,
  "mar_3" text,
  "mar_17" text,
  "mar_24" text,
  "mar_31" text,
  "april_7" text,
  "april_14" text,
  "april_21" text,
  "april_28" text,
  "may_5" text,
  "may_12" text,
  "may_19" text,
  "may_26" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Mar 24 rank when the May 26 is 13, and the May 12 is 6?`:
```sql
                SELECT "mar_24" FROM "ranking_movement" WHERE "may_26"='13' AND "may_12"='6';
```
## Task
Generate a SQL query to answer the following question:
`What is the April 28 rank when the Mar 24 is 17?`

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

CREATE TABLE "ranking_movement" (
  "poll" text,
  "pre_season" text,
  "mar_3" text,
  "mar_17" text,
  "mar_24" text,
  "mar_31" text,
  "april_7" text,
  "april_14" text,
  "april_21" text,
  "april_28" text,
  "may_5" text,
  "may_12" text,
  "may_19" text,
  "may_26" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the April 28 rank when the Mar 24 is 17?`:
```sql
                SELECT "april_28" FROM "ranking_movement" WHERE "mar_24"='17';
```
## Task
Generate a SQL query to answer the following question:
`What is the April 14 rank when the Mar 3rd is nr, and the April 21 is 13?`

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

CREATE TABLE "ranking_movement" (
  "poll" text,
  "pre_season" text,
  "mar_3" text,
  "mar_17" text,
  "mar_24" text,
  "mar_31" text,
  "april_7" text,
  "april_14" text,
  "april_21" text,
  "april_28" text,
  "may_5" text,
  "may_12" text,
  "may_19" text,
  "may_26" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the April 14 rank when the Mar 3rd is nr, and the April 21 is 13?`:
```sql
                SELECT "april_14" FROM "ranking_movement" WHERE "mar_3"='nr' AND "april_21"='13';
```
## Task
Generate a SQL query to answer the following question:
`What is the April 28th rank when the Final is 20, and Mar 17 is 22?`

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

CREATE TABLE "ranking_movement" (
  "poll" text,
  "pre_season" text,
  "mar_3" text,
  "mar_17" text,
  "mar_24" text,
  "mar_31" text,
  "april_7" text,
  "april_14" text,
  "april_21" text,
  "april_28" text,
  "may_5" text,
  "may_12" text,
  "may_19" text,
  "may_26" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the April 28th rank when the Final is 20, and Mar 17 is 22?`:
```sql
                SELECT "april_28" FROM "ranking_movement" WHERE "final"='20' AND "mar_17"='22';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Podiums, when Position is "2nd", when Wins is less than 6, and when Poles is greater than 0?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Podiums, when Position is "2nd", when Wins is less than 6, and when Poles is greater than 0?`:
```sql
                SELECT COUNT("podiums") FROM "career_summary" WHERE "position"='2nd' AND "wins"<6 AND "poles">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Poles, when Season is greater than 2004, and when Podiums is less than 1?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Poles, when Season is greater than 2004, and when Podiums is less than 1?`:
```sql
                SELECT SUM("poles") FROM "career_summary" WHERE "season"<2004 AND "podiums"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Poles, when Wins is 0, when Position is "nc", and when Season is before 2004?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Poles, when Wins is 0, when Position is "nc", and when Season is before 2004?`:
```sql
                SELECT AVG("poles") FROM "career_summary" WHERE "wins"=0 AND "position"='nc' AND "season"<2004;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Poles, when Season is before 2005, when Position is "2nd", and when Wins is less than 6?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Poles, when Season is before 2005, when Position is "2nd", and when Wins is less than 6?`:
```sql
                SELECT SUM("poles") FROM "career_summary" WHERE "season"<2005 AND "position"='2nd' AND "wins"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is the 2012 club of the cf pos. player?`

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

CREATE TABLE "current" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "2012_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2012 club of the cf pos. player?`:
```sql
                SELECT "2012_club" FROM "current" WHERE "pos"='cf';
```
## Task
Generate a SQL query to answer the following question:
`What are the years in the ACC of an institution that was founded before 1885 and is located in College Park, Maryland?`

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

CREATE TABLE "members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "years_in_the_acc" text,
  "school_type" text,
  "enrollment" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the years in the ACC of an institution that was founded before 1885 and is located in College Park, Maryland?`:
```sql
                SELECT "years_in_the_acc" FROM "members" WHERE "founded"<1885 AND "location"='college park, maryland';
```
## Task
Generate a SQL query to answer the following question:
`Who was the partner for the tournament in Lyon, France?`

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

CREATE TABLE "doubles_35_20_15" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the partner for the tournament in Lyon, France?`:
```sql
                SELECT "partnering" FROM "doubles_35_20_15" WHERE "tournament"='lyon, france';
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents for the event in Milan, Italy?`

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

CREATE TABLE "doubles_35_20_15" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents for the event in Milan, Italy?`:
```sql
                SELECT "opponent" FROM "doubles_35_20_15" WHERE "tournament"='milan, italy';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on the date of december 1, 1968?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on the date of december 1, 1968?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "date"='december 1, 1968';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on the date of september 15, 1968?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on the date of september 15, 1968?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "date"='september 15, 1968';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on the date of november 10, 1968?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on the date of november 10, 1968?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "date"='november 10, 1968';
```
## Task
Generate a SQL query to answer the following question:
`What was the first game played on February 28?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the first game played on February 28?`:
```sql
                SELECT MIN("game") FROM "game_log" WHERE "date"='february 28';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Altrincham's Points 2 when they had more than 52 Goals For?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_average_1" real,
  "points_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Altrincham's Points 2 when they had more than 52 Goals For?`:
```sql
                SELECT SUM("points_2") FROM "final_table" WHERE "goals_for">52 AND "team"='altrincham';
```
## Task
Generate a SQL query to answer the following question:
`What date was the team @ Detroit?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the team @ Detroit?`:
```sql
                SELECT "date" FROM "game_log" WHERE "team"='@ detroit';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when Maurice Williams (7) had the high assists?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game when Maurice Williams (7) had the high assists?`:
```sql
                SELECT "score" FROM "game_log" WHERE "high_assists"='maurice williams (7)';
```
## Task
Generate a SQL query to answer the following question:
`What was the record of the game when Lebron James (4) had the high assists?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record of the game when Lebron James (4) had the high assists?`:
```sql
                SELECT "record" FROM "game_log" WHERE "high_assists"='lebron james (4)';
```
## Task
Generate a SQL query to answer the following question:
`What is the total of the game that the team was @ new york?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of the game that the team was @ new york?`:
```sql
                SELECT COUNT("game") FROM "game_log" WHERE "team"='@ new york';
```
## Task
Generate a SQL query to answer the following question:
`Which round was Joe Taylor selected in?`

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

CREATE TABLE "nba_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round was Joe Taylor selected in?`:
```sql
                SELECT SUM("round") FROM "nba_draft" WHERE "player"='joe taylor';
```
## Task
Generate a SQL query to answer the following question:
`Which player went to Wake Forest and was selected with a pick after 145?`

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

CREATE TABLE "nba_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player went to Wake Forest and was selected with a pick after 145?`:
```sql
                SELECT "player" FROM "nba_draft" WHERE "pick">145 AND "college"='wake forest';
```
## Task
Generate a SQL query to answer the following question:
`How many picks were from round 6?`

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

CREATE TABLE "nba_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many picks were from round 6?`:
```sql
                SELECT COUNT("pick") FROM "nba_draft" WHERE "round"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest round of a pick smaller than 92 from Toledo University?`

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

CREATE TABLE "nba_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest round of a pick smaller than 92 from Toledo University?`:
```sql
                SELECT MAX("round") FROM "nba_draft" WHERE "college"='toledo' AND "pick"<92;
```
## Task
Generate a SQL query to answer the following question:
`Which nationality is Dick Walker?`

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

CREATE TABLE "nba_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nationality is Dick Walker?`:
```sql
                SELECT "nationality" FROM "nba_draft" WHERE "player"='dick walker';
```
## Task
Generate a SQL query to answer the following question:
`What college has a pick greater than 4 and an overall of 21?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college has a pick greater than 4 and an overall of 21?`:
```sql
                SELECT "college" FROM "washington_redskins_draft_history" WHERE "pick">4 AND "overall"=21;
```
## Task
Generate a SQL query to answer the following question:
`What is the overall sum of round 3?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the overall sum of round 3?`:
```sql
                SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "round"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player with a round less than 8 and an overall of 48?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player with a round less than 8 and an overall of 48?`:
```sql
                SELECT "position" FROM "washington_redskins_draft_history" WHERE "round"<8 AND "overall"=48;
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player from the college of North Carolina with an overall less than 100?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player from the college of North Carolina with an overall less than 100?`:
```sql
                SELECT "position" FROM "washington_redskins_draft_history" WHERE "overall"<100 AND "college"='north carolina';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the pick in round 17?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the pick in round 17?`:
```sql
                SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "round"=17;
```
## Task
Generate a SQL query to answer the following question:
`What was the 1st leg when team 2 was nov milenium?`

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

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1st leg when team 2 was nov milenium?`:
```sql
                SELECT "1st_leg" FROM "second_round" WHERE "team_2"='nov milenium';
```
## Task
Generate a SQL query to answer the following question:
`What was the 1st leg for a team 1 of Teteks?`

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

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 1st leg for a team 1 of Teteks?`:
```sql
                SELECT "1st_leg" FROM "second_round" WHERE "team_1"='teteks';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Date of Official Foundation of Municipality, when Province is "Kermān", when 2006 us "167014", and when Rank is less than 46?`

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

CREATE TABLE "cities_between_100_000_and_1_000_000_pop" (
  "rank" real,
  "city" text,
  "province" text,
  "date_of_official_foundation_of_municipality" real,
  "2006" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Date of Official Foundation of Municipality, when Province is "Kermān", when 2006 us "167014", and when Rank is less than 46?`:
```sql
                SELECT SUM("date_of_official_foundation_of_municipality") FROM "cities_between_100_000_and_1_000_000_pop" WHERE "province"='kermān' AND "2006"=167014 AND "rank"<46;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Rank, when Date of Official Foundation of Municipality is after 1926, when Province is "Sistan and Baluchestan", and when 2006 is greater than 567449?`

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

CREATE TABLE "cities_between_100_000_and_1_000_000_pop" (
  "rank" real,
  "city" text,
  "province" text,
  "date_of_official_foundation_of_municipality" real,
  "2006" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Rank, when Date of Official Foundation of Municipality is after 1926, when Province is "Sistan and Baluchestan", and when 2006 is greater than 567449?`:
```sql
                SELECT COUNT("rank") FROM "cities_between_100_000_and_1_000_000_pop" WHERE "date_of_official_foundation_of_municipality">1926 AND "province"='sistan and baluchestan' AND "2006">567449;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Rank, when Province is Gīlān, when Date of Official Foundation of Municipality is after 1922, and when 2006 is greater than 557366?`

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

CREATE TABLE "cities_between_100_000_and_1_000_000_pop" (
  "rank" real,
  "city" text,
  "province" text,
  "date_of_official_foundation_of_municipality" real,
  "2006" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Rank, when Province is Gīlān, when Date of Official Foundation of Municipality is after 1922, and when 2006 is greater than 557366?`:
```sql
                SELECT SUM("rank") FROM "cities_between_100_000_and_1_000_000_pop" WHERE "province"='gīlān' AND "date_of_official_foundation_of_municipality">1922 AND "2006">557366;
```