cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the smallest rank when there are fewer than 1 silver, 4 golds and less than 0 bronze?`

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

CREATE TABLE "championships_per_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest rank when there are fewer than 1 silver, 4 golds and less than 0 bronze?`:
```sql
                SELECT MIN("rank") FROM "championships_per_nation" WHERE "silver"<1 AND "gold"=4 AND "bronze"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many gold medals for a nation with rank less than 5, more than 0 silvers and a total of 2 medals?`

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

CREATE TABLE "championships_per_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many gold medals for a nation with rank less than 5, more than 0 silvers and a total of 2 medals?`:
```sql
                SELECT AVG("gold") FROM "championships_per_nation" WHERE "rank"<5 AND "silver">0 AND "total"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total for the team with more than 2 golds and more than 0 bronze?`

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

CREATE TABLE "championships_per_nation" (
  "rank" real,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for the team with more than 2 golds and more than 0 bronze?`:
```sql
                SELECT SUM("total") FROM "championships_per_nation" WHERE "gold">2 AND "bronze">0;
```
## Task
Generate a SQL query to answer the following question:
`Which rider has time of +19.751?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which rider has time of +19.751?`:
```sql
                SELECT "rider" FROM "250cc_classification" WHERE "time"='+19.751';
```
## Task
Generate a SQL query to answer the following question:
`Which manufacturer of aprilia wth time of +1:36.557 has the highest lap?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which manufacturer of aprilia wth time of +1:36.557 has the highest lap?`:
```sql
                SELECT MAX("laps") FROM "250cc_classification" WHERE "manufacturer"='aprilia' AND "time"='+1:36.557';
```
## Task
Generate a SQL query to answer the following question:
`What is time of manufacturer with grid 21?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is time of manufacturer with grid 21?`:
```sql
                SELECT "time" FROM "250cc_classification" WHERE "grid"=21;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of laps with grid of 2`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of laps with grid of 2`:
```sql
                SELECT SUM("laps") FROM "250cc_classification" WHERE "grid"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest grid with time of +0.499,when laps are larger than 21?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest grid with time of +0.499,when laps are larger than 21?`:
```sql
                SELECT MIN("grid") FROM "250cc_classification" WHERE "time"='+0.499' AND "laps">21;
```
## Task
Generate a SQL query to answer the following question:
`What is the total laps when manufacturer of gilera has time of 40:19.910 and grid is larger than 3?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total laps when manufacturer of gilera has time of 40:19.910 and grid is larger than 3?`:
```sql
                SELECT SUM("laps") FROM "250cc_classification" WHERE "manufacturer"='gilera' AND "time"='40:19.910' AND "grid">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the average 1st Throw, when Result is less than 728, when 3rd Throw is "1", when Equation is "0 × 9² + 0 × 9 + 0", and when 2nd Throw is greater than 1?`

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

CREATE TABLE "0_728_throw_3_times" (
  "1st_throw" real,
  "2nd_throw" real,
  "3rd_throw" real,
  "equation" text,
  "result" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average 1st Throw, when Result is less than 728, when 3rd Throw is "1", when Equation is "0 × 9² + 0 × 9 + 0", and when 2nd Throw is greater than 1?`:
```sql
                SELECT AVG("1st_throw") FROM "0_728_throw_3_times" WHERE "result"<728 AND "3rd_throw"=1 AND "equation"='0 × 9² + 0 × 9 + 0' AND "2nd_throw">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of 3rd Throw, when Result is greater than 546, and when 1st Throw is less than 9?`

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

CREATE TABLE "0_728_throw_3_times" (
  "1st_throw" real,
  "2nd_throw" real,
  "3rd_throw" real,
  "equation" text,
  "result" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of 3rd Throw, when Result is greater than 546, and when 1st Throw is less than 9?`:
```sql
                SELECT SUM("3rd_throw") FROM "0_728_throw_3_times" WHERE "result">546 AND "1st_throw"<9;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Result, when 2nd Throw is "2", and when 1st Throw is less than "4"?`

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

CREATE TABLE "0_728_throw_3_times" (
  "1st_throw" real,
  "2nd_throw" real,
  "3rd_throw" real,
  "equation" text,
  "result" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Result, when 2nd Throw is "2", and when 1st Throw is less than "4"?`:
```sql
                SELECT COUNT("result") FROM "0_728_throw_3_times" WHERE "2nd_throw"=2 AND "1st_throw"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the time when the rank is 14?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time when the rank is 14?`:
```sql
                SELECT "time" FROM "heats" WHERE "rank"=14;
```
## Task
Generate a SQL query to answer the following question:
`what is the rank when the time is 3:12.40?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the rank when the time is 3:12.40?`:
```sql
                SELECT SUM("rank") FROM "heats" WHERE "time"='3:12.40';
```
## Task
Generate a SQL query to answer the following question:
`what is the rank when the heat is more than 4?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the rank when the heat is more than 4?`:
```sql
                SELECT SUM("rank") FROM "heats" WHERE "heat">4;
```
## Task
Generate a SQL query to answer the following question:
`what is the nationality when the heat is less than 3 and the time is 2:35.31?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the nationality when the heat is less than 3 and the time is 2:35.31?`:
```sql
                SELECT "nationality" FROM "heats" WHERE "heat"<3 AND "time"='2:35.31';
```
## Task
Generate a SQL query to answer the following question:
`what is the name when the heat is less than 3, the rank is less than 18, the nationality is east germany and the time is 2:35.31?`

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

CREATE TABLE "heats" (
  "rank" real,
  "heat" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name when the heat is less than 3, the rank is less than 18, the nationality is east germany and the time is 2:35.31?`:
```sql
                SELECT "name" FROM "heats" WHERE "heat"<3 AND "rank"<18 AND "nationality"='east germany' AND "time"='2:35.31';
```
## Task
Generate a SQL query to answer the following question:
`Which tie number had an away team of the Tranmere Rovers?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tie number had an away team of the Tranmere Rovers?`:
```sql
                SELECT "tie_no" FROM "fifth_round_proper" WHERE "away_team"='tranmere rovers';
```
## Task
Generate a SQL query to answer the following question:
`What date did the Boston Celtics play at Richfield 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the Boston Celtics play at Richfield Coliseum?`:
```sql
                SELECT "date" FROM "game_log" WHERE "location"='richfield coliseum';
```
## Task
Generate a SQL query to answer the following question:
`What game ended with a final score of 126-108?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game ended with a final score of 126-108?`:
```sql
                SELECT MAX("game") FROM "game_log" WHERE "score"='126-108';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of rebounds on February 6?`

### 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 highest number of rebounds on February 6?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "date"='february 6';
```
## Task
Generate a SQL query to answer the following question:
`How many people tuned in to the finale on May 16, 2007?`

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

CREATE TABLE "u_s_television_ratings" (
  "season" text,
  "timeslot" text,
  "premiere" text,
  "finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people tuned in to the finale on May 16, 2007?`:
```sql
                SELECT COUNT("viewers_in_millions") FROM "u_s_television_ratings" WHERE "finale"='may 16, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What time did the season finale air on May 20, 2003?`

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

CREATE TABLE "u_s_television_ratings" (
  "season" text,
  "timeslot" text,
  "premiere" text,
  "finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `What time did the season finale air on May 20, 2003?`:
```sql
                SELECT "timeslot" FROM "u_s_television_ratings" WHERE "finale"='may 20, 2003';
```
## Task
Generate a SQL query to answer the following question:
`What was the total score where Toronto was 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,
  "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 total score where Toronto was played?`:
```sql
                SELECT SUM("game") FROM "game_log" WHERE "team"='toronto';
```
## Task
Generate a SQL query to answer the following question:
`Which Weight & Height has a Player of james donaldson?`

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

CREATE TABLE "2009_squad_statistics" (
  "player" text,
  "position" text,
  "weight_height" text,
  "previous_club" text,
  "contracted_until" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Weight & Height has a Player of james donaldson?`:
```sql
                SELECT "weight_height" FROM "2009_squad_statistics" WHERE "player"='james donaldson';
```
## Task
Generate a SQL query to answer the following question:
`Which Weight & Height has a Player of michael worrincy?`

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

CREATE TABLE "2009_squad_statistics" (
  "player" text,
  "position" text,
  "weight_height" text,
  "previous_club" text,
  "contracted_until" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Weight & Height has a Player of michael worrincy?`:
```sql
                SELECT "weight_height" FROM "2009_squad_statistics" WHERE "player"='michael worrincy';
```
## Task
Generate a SQL query to answer the following question:
`What was the deployed from date for the a-4b aircraft from westpac with a tail code of ah-3xx?`

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

CREATE TABLE "deployments" (
  "from" text,
  "aircraft" text,
  "carrier" text,
  "air_wing" text,
  "tail_code" text,
  "area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the deployed from date for the a-4b aircraft from westpac with a tail code of ah-3xx?`:
```sql
                SELECT "from" FROM "deployments" WHERE "tail_code"='ah-3xx' AND "area"='westpac' AND "aircraft"='a-4b';
```
## Task
Generate a SQL query to answer the following question:
`Which carrier was deployed on 18 July 1968?`

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

CREATE TABLE "deployments" (
  "from" text,
  "aircraft" text,
  "carrier" text,
  "air_wing" text,
  "tail_code" text,
  "area" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which carrier was deployed on 18 July 1968?`:
```sql
                SELECT "carrier" FROM "deployments" WHERE "from"='18 july 1968';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of aircraft that has a tail code of ah-3xx, deployed from 16 June 1967?`

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

CREATE TABLE "deployments" (
  "from" text,
  "aircraft" text,
  "carrier" text,
  "air_wing" text,
  "tail_code" text,
  "area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of aircraft that has a tail code of ah-3xx, deployed from 16 June 1967?`:
```sql
                SELECT "aircraft" FROM "deployments" WHERE "tail_code"='ah-3xx' AND "from"='16 june 1967';
```
## Task
Generate a SQL query to answer the following question:
`What was the tail code for the cva-34 carrier with an air wing of cvw-16, deployed from 16 June 1967 in the Vietnam War?`

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

CREATE TABLE "deployments" (
  "from" text,
  "aircraft" text,
  "carrier" text,
  "air_wing" text,
  "tail_code" text,
  "area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tail code for the cva-34 carrier with an air wing of cvw-16, deployed from 16 June 1967 in the Vietnam War?`:
```sql
                SELECT "tail_code" FROM "deployments" WHERE "carrier"='cva-34' AND "air_wing"='cvw-16' AND "area"='vietnam war' AND "from"='16 june 1967';
```
## Task
Generate a SQL query to answer the following question:
`What is the air wing for the craft with a tail code of ah-3xx, deployed from 16 June 1967 in the Vietnam War?`

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

CREATE TABLE "deployments" (
  "from" text,
  "aircraft" text,
  "carrier" text,
  "air_wing" text,
  "tail_code" text,
  "area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the air wing for the craft with a tail code of ah-3xx, deployed from 16 June 1967 in the Vietnam War?`:
```sql
                SELECT "air_wing" FROM "deployments" WHERE "area"='vietnam war' AND "tail_code"='ah-3xx' AND "from"='16 june 1967';
```
## Task
Generate a SQL query to answer the following question:
`What is the air wing for the craft that was deployed from 16 June 1967?`

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

CREATE TABLE "deployments" (
  "from" text,
  "aircraft" text,
  "carrier" text,
  "air_wing" text,
  "tail_code" text,
  "area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the air wing for the craft that was deployed from 16 June 1967?`:
```sql
                SELECT "air_wing" FROM "deployments" WHERE "from"='16 june 1967';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the match that went to round 1 and only for 2:48?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the match that went to round 1 and only for 2:48?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "time"='2:48';
```
## Task
Generate a SQL query to answer the following question:
`The K-1 MMA Romanex event went how many rounds?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `The K-1 MMA Romanex event went how many rounds?`:
```sql
                SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "event"='k-1 mma romanex';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for the match that was only 2:48 long?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for the match that was only 2:48 long?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "time"='2:48';
```
## Task
Generate a SQL query to answer the following question:
`What is Points For, when Points Against is 571?`

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

CREATE TABLE "2007_08_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Points For, when Points Against is 571?`:
```sql
                SELECT "points_for" FROM "2007_08_table" WHERE "points_against"='571';
```
## Task
Generate a SQL query to answer the following question:
`What is Drawn, when Lost is 14, and when Bonus Points is 12?`

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

CREATE TABLE "2007_08_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Drawn, when Lost is 14, and when Bonus Points is 12?`:
```sql
                SELECT "drawn" FROM "2007_08_table" WHERE "lost"='14' AND "bonus_points"='12';
```
## Task
Generate a SQL query to answer the following question:
`What is Points, when Club is Maesteg RFC?`

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

CREATE TABLE "2007_08_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Points, when Club is Maesteg RFC?`:
```sql
                SELECT "points" FROM "2007_08_table" WHERE "club"='maesteg rfc';
```
## Task
Generate a SQL query to answer the following question:
`What is Points, when Points is 60, and when Club is Bedwas RFC?`

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

CREATE TABLE "2007_08_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Points, when Points is 60, and when Club is Bedwas RFC?`:
```sql
                SELECT "points_for" FROM "2007_08_table" WHERE "points"='60' AND "club"='bedwas rfc';
```
## Task
Generate a SQL query to answer the following question:
`What is Drawn, when Club is Newport RFC?`

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

CREATE TABLE "2007_08_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Drawn, when Club is Newport RFC?`:
```sql
                SELECT "drawn" FROM "2007_08_table" WHERE "club"='newport rfc';
```
## Task
Generate a SQL query to answer the following question:
`What is Points Difference, when Points Against is 451?`

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

CREATE TABLE "2007_08_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "points_difference" text,
  "bonus_points" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Points Difference, when Points Against is 451?`:
```sql
                SELECT "points_difference" FROM "2007_08_table" WHERE "points_against"='451';
```
## Task
Generate a SQL query to answer the following question:
`Which is the highest silver that has a gold less than 0?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the highest silver that has a gold less than 0?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest silver that has 1 as the rank, with a bronze greater than 5?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest silver that has 1 as the rank, with a bronze greater than 5?`:
```sql
                SELECT MIN("silver") FROM "medal_table" WHERE "rank"=1 AND "bronze">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest silver that has 9 as the rank, germany as the nation, with a gold less than 0?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest silver that has 9 as the rank, germany as the nation, with a gold less than 0?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "rank"=9 AND "nation"='germany' AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What shows for the location and attendance when the record is 41–36?`

### 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 shows for the location and attendance when the record is 41–36?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "record"='41–36';
```
## Task
Generate a SQL query to answer the following question:
`What is the score when the record was 40–36?`

### 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 score when the record was 40–36?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='40–36';
```
## Task
Generate a SQL query to answer the following question:
`WHo is the Player got a Pick # smaller than 61, and a College of texas?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHo is the Player got a Pick # smaller than 61, and a College of texas?`:
```sql
                SELECT "player" FROM "nfl_draft" WHERE "pick_num"<61 AND "college"='texas';
```
## Task
Generate a SQL query to answer the following question:
`Name the College which has a Round smaller than 3, and a Pick # larger than 4, and a Position of wide receiver?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the College which has a Round smaller than 3, and a Pick # larger than 4, and a Position of wide receiver?`:
```sql
                SELECT "college" FROM "nfl_draft" WHERE "round"<3 AND "pick_num">4 AND "position"='wide receiver';
```
## Task
Generate a SQL query to answer the following question:
`Which the highest Round has a Player of mike williams, and a Pick # larger than 4?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which the highest Round has a Player of mike williams, and a Pick # larger than 4?`:
```sql
                SELECT MAX("round") FROM "nfl_draft" WHERE "player"='mike williams' AND "pick_num">4;
```
## Task
Generate a SQL query to answer the following question:
`Name the average Pick # of mike williams?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average Pick # of mike williams?`:
```sql
                SELECT AVG("pick_num") FROM "nfl_draft" WHERE "player"='mike williams';
```
## Task
Generate a SQL query to answer the following question:
`What date did the red wings play against the visitors, buffalo?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the red wings play against the visitors, buffalo?`:
```sql
                SELECT "date" FROM "game_log" WHERE "visitor"='buffalo';
```
## Task
Generate a SQL query to answer the following question:
`Who made the decision when atlanta was the home team?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the decision when atlanta was the home team?`:
```sql
                SELECT "decision" FROM "game_log" WHERE "home"='atlanta';
```
## Task
Generate a SQL query to answer the following question:
`Who made the decision when detroit was the home team and boston was the visitor?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the decision when detroit was the home team and boston was the visitor?`:
```sql
                SELECT "decision" FROM "game_log" WHERE "home"='detroit' AND "visitor"='boston';
```
## Task
Generate a SQL query to answer the following question:
`Who made the decision when toronto was the home team?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the decision when toronto was the home team?`:
```sql
                SELECT "decision" FROM "game_log" WHERE "home"='toronto';
```
## Task
Generate a SQL query to answer the following question:
`The player Cecil Martin with an overall less than 268 has what total pick?`

### 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 `The player Cecil Martin with an overall less than 268 has what total pick?`:
```sql
                SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "name"='cecil martin' AND "overall"<268;
```
## Task
Generate a SQL query to answer the following question:
`With the pick of 1 Cecil Martin has what number as the overall?`

### 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 `With the pick of 1 Cecil Martin has what number as the overall?`:
```sql
                SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "pick"=1 AND "name"='cecil martin';
```
## Task
Generate a SQL query to answer the following question:
`What position does the player play with an overall of 304?`

### 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 position does the player play with an overall of 304?`:
```sql
                SELECT "position" FROM "washington_redskins_draft_history" WHERE "overall"=304;
```
## Task
Generate a SQL query to answer the following question:
`What is the US modern rock rank of code bad 0003?`

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

CREATE TABLE "singles_and_e_ps" (
  "title" text,
  "release_date" text,
  "format" text,
  "code" text,
  "uk_singles_chart" text,
  "us_modern_rock" text,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the US modern rock rank of code bad 0003?`:
```sql
                SELECT "us_modern_rock" FROM "singles_and_e_ps" WHERE "code"='bad 0003';
```
## Task
Generate a SQL query to answer the following question:
`What is the format of code 9 40231-2 (us only)?`

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

CREATE TABLE "singles_and_e_ps" (
  "title" text,
  "release_date" text,
  "format" text,
  "code" text,
  "uk_singles_chart" text,
  "us_modern_rock" text,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format of code 9 40231-2 (us only)?`:
```sql
                SELECT "format" FROM "singles_and_e_ps" WHERE "code"='9 40231-2 (us only)';
```
## Task
Generate a SQL query to answer the following question:
`What is the UK singles chart rank of the single released on 26 February 1990?`

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

CREATE TABLE "singles_and_e_ps" (
  "title" text,
  "release_date" text,
  "format" text,
  "code" text,
  "uk_singles_chart" text,
  "us_modern_rock" text,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the UK singles chart rank of the single released on 26 February 1990?`:
```sql
                SELECT "uk_singles_chart" FROM "singles_and_e_ps" WHERE "release_date"='26 february 1990';
```
## Task
Generate a SQL query to answer the following question:
`What is the format of code pro-cd-4662?`

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

CREATE TABLE "singles_and_e_ps" (
  "title" text,
  "release_date" text,
  "format" text,
  "code" text,
  "uk_singles_chart" text,
  "us_modern_rock" text,
  "album" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format of code pro-cd-4662?`:
```sql
                SELECT "format" FROM "singles_and_e_ps" WHERE "code"='pro-cd-4662';
```
## Task
Generate a SQL query to answer the following question:
`Which city has the mongolian script of ᠡᠷᠳᠡᠨᠢᠲᠦ?`

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

CREATE TABLE "mongolia" (
  "city" text,
  "mongolian" text,
  "mongolian_script" text,
  "province" text,
  "population_2008" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has the mongolian script of ᠡᠷᠳᠡᠨᠢᠲᠦ?`:
```sql
                SELECT "city" FROM "mongolia" WHERE "mongolian_script"='ᠡᠷᠳᠡᠨᠢᠲᠦ';
```
## Task
Generate a SQL query to answer the following question:
`Which mongolian has the province of municipality?`

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

CREATE TABLE "mongolia" (
  "city" text,
  "mongolian" text,
  "mongolian_script" text,
  "province" text,
  "population_2008" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which mongolian has the province of municipality?`:
```sql
                SELECT "mongolian" FROM "mongolia" WHERE "province"='municipality';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the years with bus conner as the BSU head coach?`

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

CREATE TABLE "ncaa_division_i_tournament_results" (
  "year" real,
  "round" text,
  "opponent" text,
  "result" text,
  "bsu_head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the years with bus conner as the BSU head coach?`:
```sql
                SELECT SUM("year") FROM "ncaa_division_i_tournament_results" WHERE "bsu_head_coach"='bus conner';
```
## Task
Generate a SQL query to answer the following question:
`Who is the BSU head coach of the tournament after 1994 with louisville as the opponent?`

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

CREATE TABLE "ncaa_division_i_tournament_results" (
  "year" real,
  "round" text,
  "opponent" text,
  "result" text,
  "bsu_head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the BSU head coach of the tournament after 1994 with louisville as the opponent?`:
```sql
                SELECT "bsu_head_coach" FROM "ncaa_division_i_tournament_results" WHERE "opponent"='louisville' AND "year">1994;
```
## Task
Generate a SQL query to answer the following question:
`What is the result in 1994?`

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

CREATE TABLE "ncaa_division_i_tournament_results" (
  "year" real,
  "round" text,
  "opponent" text,
  "result" text,
  "bsu_head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result in 1994?`:
```sql
                SELECT "result" FROM "ncaa_division_i_tournament_results" WHERE "year"=1994;
```
## Task
Generate a SQL query to answer the following question:
`What is the result after 1993 of the first four rounds?`

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

CREATE TABLE "ncaa_division_i_tournament_results" (
  "year" real,
  "round" text,
  "opponent" text,
  "result" text,
  "bsu_head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result after 1993 of the first four rounds?`:
```sql
                SELECT "result" FROM "ncaa_division_i_tournament_results" WHERE "year">1993 AND "round"='first four';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent before 1994 with bobby dye as the BSU head coach?`

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

CREATE TABLE "ncaa_division_i_tournament_results" (
  "year" real,
  "round" text,
  "opponent" text,
  "result" text,
  "bsu_head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent before 1994 with bobby dye as the BSU head coach?`:
```sql
                SELECT "opponent" FROM "ncaa_division_i_tournament_results" WHERE "bsu_head_coach"='bobby dye' AND "year"<1994;
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent in 1976?`

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

CREATE TABLE "ncaa_division_i_tournament_results" (
  "year" real,
  "round" text,
  "opponent" text,
  "result" text,
  "bsu_head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent in 1976?`:
```sql
                SELECT "opponent" FROM "ncaa_division_i_tournament_results" WHERE "year"=1976;
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Score is "0-2", and when Opponents is "Bayer Leverkusen"?`

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

CREATE TABLE "results" (
  "date" text,
  "venue" text,
  "opponents" text,
  "score" text,
  "competition" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Score is "0-2", and when Opponents is "Bayer Leverkusen"?`:
```sql
                SELECT "date" FROM "results" WHERE "score"='0-2' AND "opponents"='bayer leverkusen';
```
## Task
Generate a SQL query to answer the following question:
`What is Competition, when Score is "2-1", and when Date is "October 22, 2008"?`

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

CREATE TABLE "results" (
  "date" text,
  "venue" text,
  "opponents" text,
  "score" text,
  "competition" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Competition, when Score is "2-1", and when Date is "October 22, 2008"?`:
```sql
                SELECT "competition" FROM "results" WHERE "score"='2-1' AND "date"='october 22, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is Match Report, when Venue is "Westfalenstadion , Dortmund"?`

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

CREATE TABLE "results" (
  "date" text,
  "venue" text,
  "opponents" text,
  "score" text,
  "competition" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Match Report, when Venue is "Westfalenstadion , Dortmund"?`:
```sql
                SELECT "match_report" FROM "results" WHERE "venue"='westfalenstadion , dortmund';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Venue is "Weserstadion , Bremen"?`

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

CREATE TABLE "results" (
  "date" text,
  "venue" text,
  "opponents" text,
  "score" text,
  "competition" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Venue is "Weserstadion , Bremen"?`:
```sql
                SELECT "date" FROM "results" WHERE "venue"='weserstadion , bremen';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Competition is "F", and when Opponents is "FC Astoria Walldorf"?`

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

CREATE TABLE "results" (
  "date" text,
  "venue" text,
  "opponents" text,
  "score" text,
  "competition" text,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Competition is "F", and when Opponents is "FC Astoria Walldorf"?`:
```sql
                SELECT "date" FROM "results" WHERE "competition"='f' AND "opponents"='fc astoria walldorf';
```
## Task
Generate a SQL query to answer the following question:
`What is the pick of Charley Taylor, who has an overall greater than 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 pick of Charley Taylor, who has an overall greater than 3?`:
```sql
                SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "name"='charley taylor' AND "overall">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player with a 143 overall?`

### 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 143 overall?`:
```sql
                SELECT "position" FROM "washington_redskins_draft_history" WHERE "overall"=143;
```
## Task
Generate a SQL query to answer the following question:
`What is the average round of the s position player from the college of Mississippi and has an overall less than 214?`

### 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 average round of the s position player from the college of Mississippi and has an overall less than 214?`:
```sql
                SELECT AVG("round") FROM "washington_redskins_draft_history" WHERE "position"='s' AND "college"='mississippi' AND "overall"<214;
```