cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what team played on april 21`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "save" text
);
### SQL
Given the database schema, here is the SQL query that answers `what team played on april 21`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='april 21';
```
## Task
Generate a SQL query to answer the following question:
`what team scored on april 10`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "save" text
);
### SQL
Given the database schema, here is the SQL query that answers `what team scored on april 10`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='april 10';
```
## Task
Generate a SQL query to answer the following question:
`Who lost with a time of 0:58?`

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

CREATE TABLE "preliminary_card" (
  "weight_division" text,
  "winner" text,
  "loser" text,
  "method" text,
  "round" real,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who lost with a time of 0:58?`:
```sql
                SELECT "loser" FROM "preliminary_card" WHERE "time"='0:58';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of rounds for winner Rafael Cavalcante?`

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

CREATE TABLE "preliminary_card" (
  "weight_division" text,
  "winner" text,
  "loser" text,
  "method" text,
  "round" real,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of rounds for winner Rafael Cavalcante?`:
```sql
                SELECT AVG("round") FROM "preliminary_card" WHERE "winner"='rafael cavalcante';
```
## Task
Generate a SQL query to answer the following question:
`What win method has a time of 2:32?`

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

CREATE TABLE "preliminary_card" (
  "weight_division" text,
  "winner" text,
  "loser" text,
  "method" text,
  "round" real,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What win method has a time of 2:32?`:
```sql
                SELECT "method" FROM "preliminary_card" WHERE "time"='2:32';
```
## Task
Generate a SQL query to answer the following question:
`If Four aces yields 800 for 5 credits, what would the result be for 1 Credit?`

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

CREATE TABLE "double_double_bonus" (
  "hand" text,
  "1_credit" text,
  "2_credits" text,
  "3_credits" text,
  "4_credits" text,
  "5_credits" text
);
### SQL
Given the database schema, here is the SQL query that answers `If Four aces yields 800 for 5 credits, what would the result be for 1 Credit?`:
```sql
                SELECT "1_credit" FROM "double_double_bonus" WHERE "5_credits"='800' AND "hand"='four aces';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of points values that are associated with 0 losses and more than 8 games?`

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

CREATE TABLE "world_championship_group_c_denmark" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of points values that are associated with 0 losses and more than 8 games?`:
```sql
                SELECT SUM("points") FROM "world_championship_group_c_denmark" WHERE "lost"=0 AND "games">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest losses associated with more than 13 points and fewer than 8 games?`

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

CREATE TABLE "world_championship_group_c_denmark" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest losses associated with more than 13 points and fewer than 8 games?`:
```sql
                SELECT MIN("lost") FROM "world_championship_group_c_denmark" WHERE "points">13 AND "games"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the difference associated with more than 2 points, fewer than 3 losses, and fewer than 1 draw?`

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

CREATE TABLE "world_championship_group_c_denmark" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the difference associated with more than 2 points, fewer than 3 losses, and fewer than 1 draw?`:
```sql
                SELECT "points_difference" FROM "world_championship_group_c_denmark" WHERE "points">2 AND "lost"<3 AND "drawn"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of points associated with more than 8 games?`

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

CREATE TABLE "world_championship_group_c_denmark" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of points associated with more than 8 games?`:
```sql
                SELECT MIN("points") FROM "world_championship_group_c_denmark" WHERE "games">8;
```
## Task
Generate a SQL query to answer the following question:
`Which title did richard kolner play?`

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

CREATE TABLE "1921_1930" (
  "title" text,
  "date" text,
  "theatre" text,
  "role" text,
  "dance_partner" text,
  "director" text,
  "lyrics" text,
  "music" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which title did richard kolner play?`:
```sql
                SELECT "title" FROM "1921_1930" WHERE "role"='richard kolner';
```
## Task
Generate a SQL query to answer the following question:
`Which Title has a Dance Partner of adele astaire, and Lyrics of ira gershwin, and a Director of felix edwardes?`

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

CREATE TABLE "1921_1930" (
  "title" text,
  "date" text,
  "theatre" text,
  "role" text,
  "dance_partner" text,
  "director" text,
  "lyrics" text,
  "music" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Title has a Dance Partner of adele astaire, and Lyrics of ira gershwin, and a Director of felix edwardes?`:
```sql
                SELECT "title" FROM "1921_1930" WHERE "dance_partner"='adele astaire' AND "lyrics"='ira gershwin' AND "director"='felix edwardes';
```
## Task
Generate a SQL query to answer the following question:
`Which Role has a Theatre of globe, and a Music of jerome kern?`

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

CREATE TABLE "1921_1930" (
  "title" text,
  "date" text,
  "theatre" text,
  "role" text,
  "dance_partner" text,
  "director" text,
  "lyrics" text,
  "music" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Role has a Theatre of globe, and a Music of jerome kern?`:
```sql
                SELECT "role" FROM "1921_1930" WHERE "theatre"='globe' AND "music"='jerome kern';
```
## Task
Generate a SQL query to answer the following question:
`what name was on the year 2012`

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

CREATE TABLE "proposed" (
  "rank" real,
  "name" text,
  "height_ft_m" text,
  "year_est" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `what name was on the year 2012`:
```sql
                SELECT "name" FROM "proposed" WHERE "year_est"='2012';
```
## Task
Generate a SQL query to answer the following question:
`Which member of house of Habsburg-Lorraine had the spouse Charles II?`

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

CREATE TABLE "house_of_habsburg_lorraine_1765_1918" (
  "name" text,
  "birth" text,
  "marriage" text,
  "became_duchess" text,
  "ceased_to_be_duchess" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which member of house of Habsburg-Lorraine had the spouse Charles II?`:
```sql
                SELECT "name" FROM "house_of_habsburg_lorraine_1765_1918" WHERE "spouse"='charles ii';
```
## Task
Generate a SQL query to answer the following question:
`What is the marriage date for the Habsburg-Lorraine house member who died 29 December 1829?`

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

CREATE TABLE "house_of_habsburg_lorraine_1765_1918" (
  "name" text,
  "birth" text,
  "marriage" text,
  "became_duchess" text,
  "ceased_to_be_duchess" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the marriage date for the Habsburg-Lorraine house member who died 29 December 1829?`:
```sql
                SELECT "marriage" FROM "house_of_habsburg_lorraine_1765_1918" WHERE "death"='29 december 1829';
```
## Task
Generate a SQL query to answer the following question:
`When did the duchess who became duchess on 7/8 April 1766 cease to be duchess?`

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

CREATE TABLE "house_of_habsburg_lorraine_1765_1918" (
  "name" text,
  "birth" text,
  "marriage" text,
  "became_duchess" text,
  "ceased_to_be_duchess" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the duchess who became duchess on 7/8 April 1766 cease to be duchess?`:
```sql
                SELECT "ceased_to_be_duchess" FROM "house_of_habsburg_lorraine_1765_1918" WHERE "became_duchess"='7/8 april 1766';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of death of the duchess born on 30 October 1797?`

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

CREATE TABLE "house_of_habsburg_lorraine_1765_1918" (
  "name" text,
  "birth" text,
  "marriage" text,
  "became_duchess" text,
  "ceased_to_be_duchess" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of death of the duchess born on 30 October 1797?`:
```sql
                SELECT "death" FROM "house_of_habsburg_lorraine_1765_1918" WHERE "birth"='30 october 1797';
```
## Task
Generate a SQL query to answer the following question:
`What is the birth date of the duchess who married on 1 May 1844?`

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

CREATE TABLE "house_of_habsburg_lorraine_1765_1918" (
  "name" text,
  "birth" text,
  "marriage" text,
  "became_duchess" text,
  "ceased_to_be_duchess" text,
  "death" text,
  "spouse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the birth date of the duchess who married on 1 May 1844?`:
```sql
                SELECT "birth" FROM "house_of_habsburg_lorraine_1765_1918" WHERE "marriage"='1 may 1844';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest numbered pick from round 7?`

### 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,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest numbered pick from round 7?`:
```sql
                SELECT MAX("pick") FROM "nba_draft" WHERE "round"=7;
```
## Task
Generate a SQL query to answer the following question:
`How much Played has an Against larger than 11, and a Team of botafogo, and a Position smaller than 2?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Played has an Against larger than 11, and a Team of botafogo, and a Position smaller than 2?`:
```sql
                SELECT COUNT("played") FROM "torneio_rio_s_o_paulo" WHERE "against">11 AND "team"='botafogo' AND "position"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which average Drawn has Points smaller than 14, and a Lost smaller than 4, and a Played larger than 9?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which average Drawn has Points smaller than 14, and a Lost smaller than 4, and a Played larger than 9?`:
```sql
                SELECT AVG("drawn") FROM "torneio_rio_s_o_paulo" WHERE "points"<14 AND "lost"<4 AND "played">9;
```
## Task
Generate a SQL query to answer the following question:
`Which Played is the lowest one that has a Team of vasco da gama, and an Against smaller than 11?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Played is the lowest one that has a Team of vasco da gama, and an Against smaller than 11?`:
```sql
                SELECT MIN("played") FROM "torneio_rio_s_o_paulo" WHERE "team"='vasco da gama' AND "against"<11;
```
## Task
Generate a SQL query to answer the following question:
`Which Played has a Lost larger than 4, and a Team of américa, and Points smaller than 5?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Played has a Lost larger than 4, and a Team of américa, and Points smaller than 5?`:
```sql
                SELECT SUM("played") FROM "torneio_rio_s_o_paulo" WHERE "lost">4 AND "team"='américa' AND "points"<5;
```
## Task
Generate a SQL query to answer the following question:
`Which Lost has a Position of 3, and a Drawn larger than 3?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lost has a Position of 3, and a Drawn larger than 3?`:
```sql
                SELECT SUM("lost") FROM "torneio_rio_s_o_paulo" WHERE "position"=3 AND "drawn">3;
```
## Task
Generate a SQL query to answer the following question:
`How much Lost has a Drawn larger than 1, and Points smaller than 14, and an Against larger than 10?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Lost has a Drawn larger than 1, and Points smaller than 14, and an Against larger than 10?`:
```sql
                SELECT COUNT("lost") FROM "torneio_rio_s_o_paulo" WHERE "drawn">1 AND "points"<14 AND "against">10;
```
## Task
Generate a SQL query to answer the following question:
`What tournament has yvonne vermaak as the opponent?`

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

CREATE TABLE "singles_6_2_titles_4_runners_up" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament has yvonne vermaak as the opponent?`:
```sql
                SELECT "tournament" FROM "singles_6_2_titles_4_runners_up" WHERE "opponent"='yvonne vermaak';
```
## Task
Generate a SQL query to answer the following question:
`What outcome has yvonne vermaak as the opponent?`

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

CREATE TABLE "singles_6_2_titles_4_runners_up" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What outcome has yvonne vermaak as the opponent?`:
```sql
                SELECT "outcome" FROM "singles_6_2_titles_4_runners_up" WHERE "opponent"='yvonne vermaak';
```
## Task
Generate a SQL query to answer the following question:
`What is the outcome for the Hershey tournament?`

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

CREATE TABLE "singles_6_2_titles_4_runners_up" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the outcome for the Hershey tournament?`:
```sql
                SELECT "outcome" FROM "singles_6_2_titles_4_runners_up" WHERE "tournament"='hershey';
```
## Task
Generate a SQL query to answer the following question:
`Who played against Save Of Ni Fu-Deh?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "save" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played against Save Of Ni Fu-Deh?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "save"='ni fu-deh';
```
## Task
Generate a SQL query to answer the following question:
`What's the loss of who has a Save of Miguel Saladin and played against Chinatrust Whales?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "save" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the loss of who has a Save of Miguel Saladin and played against Chinatrust Whales?`:
```sql
                SELECT "loss" FROM "regular_season" WHERE "opponent"='chinatrust whales' AND "save"='miguel saladin';
```
## Task
Generate a SQL query to answer the following question:
`Who's the opponent when Diegomar Markwell is the loss?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "save" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the opponent when Diegomar Markwell is the loss?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "loss"='diegomar markwell';
```
## Task
Generate a SQL query to answer the following question:
`what game had a score of 86-71`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what game had a score of 86-71`:
```sql
                SELECT "attendance" FROM "game_log" WHERE "record"='86-71';
```
## Task
Generate a SQL query to answer the following question:
`what game took place on september 14`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what game took place on september 14`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='september 14';
```
## Task
Generate a SQL query to answer the following question:
`what game had an attendance of 21,629`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what game had an attendance of 21,629`:
```sql
                SELECT "record" FROM "game_log" WHERE "attendance"='21,629';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of people in sri lanka`

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

CREATE TABLE "man_of_the_match_award" (
  "s_no" real,
  "opponent" text,
  "venue" text,
  "date" text,
  "match_performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of people in sri lanka`:
```sql
                SELECT AVG("s_no") FROM "man_of_the_match_award" WHERE "opponent"='sri lanka';
```
## Task
Generate a SQL query to answer the following question:
`What was the position of the Slavia team in 1998?`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_1998" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of the Slavia team in 1998?`:
```sql
                SELECT "position_in_1998" FROM "teams_and_venues" WHERE "team"='slavia';
```
## Task
Generate a SQL query to answer the following question:
`What was the position of the team that played in a venue in Dinamo, Minsk with a capacity larger than 3,550?`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_1998" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of the team that played in a venue in Dinamo, Minsk with a capacity larger than 3,550?`:
```sql
                SELECT "position_in_1998" FROM "teams_and_venues" WHERE "capacity">'3,550' AND "venue"='dinamo, minsk';
```
## Task
Generate a SQL query to answer the following question:
`Which team is located in Lida?`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_1998" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team is located in Lida?`:
```sql
                SELECT "team" FROM "teams_and_venues" WHERE "location"='lida';
```
## Task
Generate a SQL query to answer the following question:
`Which episode number visited India?`

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

CREATE TABLE "series_4_1999" (
  "episode_no" text,
  "episode_title" text,
  "uk_broadcast_date" text,
  "presenter" text,
  "details_of_journey" text,
  "countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode number visited India?`:
```sql
                SELECT "episode_no" FROM "series_4_1999" WHERE "countries_visited"='india';
```
## Task
Generate a SQL query to answer the following question:
`Which episode title featured a visit to the country of Cuba?`

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

CREATE TABLE "series_4_1999" (
  "episode_no" text,
  "episode_title" text,
  "uk_broadcast_date" text,
  "presenter" text,
  "details_of_journey" text,
  "countries_visited" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode title featured a visit to the country of Cuba?`:
```sql
                SELECT "episode_title" FROM "series_4_1999" WHERE "countries_visited"='cuba';
```
## Task
Generate a SQL query to answer the following question:
`Which position does Jesse Boulerice play?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position does Jesse Boulerice play?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "player"='jesse boulerice';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of wins in the chart for Ayrton Senna?`

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

CREATE TABLE "most_wins_in_a_season" (
  "driver" text,
  "season" text,
  "wins" real,
  "entries" text,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of wins in the chart for Ayrton Senna?`:
```sql
                SELECT MIN("wins") FROM "most_wins_in_a_season" WHERE "driver"='ayrton senna';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of entries associated with more than 11 wins?`

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

CREATE TABLE "most_wins_in_a_season" (
  "driver" text,
  "season" text,
  "wins" real,
  "entries" text,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of entries associated with more than 11 wins?`:
```sql
                SELECT "entries" FROM "most_wins_in_a_season" WHERE "wins">11;
```
## Task
Generate a SQL query to answer the following question:
`Name the most points with lost more than 1 and games less than 5`

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

CREATE TABLE "group_2" (
  "games" real,
  "drawn" real,
  "lost" real,
  "goal_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most points with lost more than 1 and games less than 5`:
```sql
                SELECT MAX("points") FROM "group_2" WHERE "lost">1 AND "games"<5;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of drawn with lost more than 1 and games less than 5`

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

CREATE TABLE "group_2" (
  "games" real,
  "drawn" real,
  "lost" real,
  "goal_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of drawn with lost more than 1 and games less than 5`:
```sql
                SELECT SUM("drawn") FROM "group_2" WHERE "lost">1 AND "games"<5;
```
## Task
Generate a SQL query to answer the following question:
`Name the least lost with points more than 6 and games less than 5`

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

CREATE TABLE "group_2" (
  "games" real,
  "drawn" real,
  "lost" real,
  "goal_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least lost with points more than 6 and games less than 5`:
```sql
                SELECT MIN("lost") FROM "group_2" WHERE "points">6 AND "games"<5;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of points with games less than 5`

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

CREATE TABLE "group_2" (
  "games" real,
  "drawn" real,
  "lost" real,
  "goal_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of points with games less than 5`:
```sql
                SELECT SUM("points") FROM "group_2" WHERE "games"<5;
```
## Task
Generate a SQL query to answer the following question:
`What was the location of the bout that lasted 5:00 and led to a 6-2-1 record?`

### 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 was the location of the bout that lasted 5:00 and led to a 6-2-1 record?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "record"='6-2-1';
```
## Task
Generate a SQL query to answer the following question:
`What was the record after the bout with Alexis Vila?`

### 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 was the record after the bout with Alexis Vila?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='alexis vila';
```
## Task
Generate a SQL query to answer the following question:
`Who was a defensive end at California?`

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

CREATE TABLE "player_selections" (
  "year_a" real,
  "pick" text,
  "player_name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was a defensive end at California?`:
```sql
                SELECT "player_name" FROM "player_selections" WHERE "position"='defensive end' AND "college"='california';
```
## Task
Generate a SQL query to answer the following question:
`Which players were selected after 2011?`

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

CREATE TABLE "player_selections" (
  "year_a" real,
  "pick" text,
  "player_name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which players were selected after 2011?`:
```sql
                SELECT "player_name" FROM "player_selections" WHERE "year_a">2011;
```
## Task
Generate a SQL query to answer the following question:
`Who was a linebacker at Tennessee?`

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

CREATE TABLE "player_selections" (
  "year_a" real,
  "pick" text,
  "player_name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was a linebacker at Tennessee?`:
```sql
                SELECT "player_name" FROM "player_selections" WHERE "position"='linebacker' AND "college"='tennessee';
```
## Task
Generate a SQL query to answer the following question:
`Which Wins is the lowest one that has Events larger than 30?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Wins is the lowest one that has Events larger than 30?`:
```sql
                SELECT MIN("wins") FROM "leaders" WHERE "events">30;
```
## Task
Generate a SQL query to answer the following question:
`Which Events have Earnings ($) of 1,841,117, and a Rank smaller than 4?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Events have Earnings ($) of 1,841,117, and a Rank smaller than 4?`:
```sql
                SELECT SUM("events") FROM "leaders" WHERE "earnings"='1,841,117' AND "rank"<4;
```
## Task
Generate a SQL query to answer the following question:
`How many Events have Earnings ($) of 2,054,334?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Events have Earnings ($) of 2,054,334?`:
```sql
                SELECT COUNT("events") FROM "leaders" WHERE "earnings"='2,054,334';
```
## Task
Generate a SQL query to answer the following question:
`What day were the results 3:0?`

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

CREATE TABLE "1987" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day were the results 3:0?`:
```sql
                SELECT "date" FROM "1987" WHERE "results"='3:0';
```
## Task
Generate a SQL query to answer the following question:
`What city played on april 29?`

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

CREATE TABLE "1987" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city played on april 29?`:
```sql
                SELECT "city" FROM "1987" WHERE "date"='april 29';
```
## Task
Generate a SQL query to answer the following question:
`Which city has an opponent of England?`

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

CREATE TABLE "1987" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has an opponent of England?`:
```sql
                SELECT "city" FROM "1987" WHERE "opponent"='england';
```
## Task
Generate a SQL query to answer the following question:
`What day was the opponent Austria?`

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

CREATE TABLE "1987" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was the opponent Austria?`:
```sql
                SELECT "date" FROM "1987" WHERE "opponent"='austria';
```
## Task
Generate a SQL query to answer the following question:
`Name the most population for seychelles and rank less than 13`

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

CREATE TABLE "list_of_sovereign_nations_with_fewer_tha" (
  "rank" real,
  "country_territory_entity" text,
  "population" real,
  "pct_of_world_population" text,
  "region" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most population for seychelles and rank less than 13`:
```sql
                SELECT MAX("population") FROM "list_of_sovereign_nations_with_fewer_tha" WHERE "country_territory_entity"='seychelles' AND "rank"<13;
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency of the station owned by the Canadian Broadcasting Corporation and branded as CBC Radio One?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "call_sign" text,
  "branding" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of the station owned by the Canadian Broadcasting Corporation and branded as CBC Radio One?`:
```sql
                SELECT "frequency" FROM "radio" WHERE "owner"='canadian broadcasting corporation' AND "branding"='cbc radio one';
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency of the soft adult contemporary stations?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "call_sign" text,
  "branding" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of the soft adult contemporary stations?`:
```sql
                SELECT "frequency" FROM "radio" WHERE "format"='soft adult contemporary';
```
## Task
Generate a SQL query to answer the following question:
`Who owns the station with the frequency FM 92.1?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "call_sign" text,
  "branding" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who owns the station with the frequency FM 92.1?`:
```sql
                SELECT "owner" FROM "radio" WHERE "frequency"='fm 92.1';
```
## Task
Generate a SQL query to answer the following question:
`What is the branding of the FM 97.7 station owned by the Canadian Broadcasting Corporation?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "call_sign" text,
  "branding" text,
  "format" text,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the branding of the FM 97.7 station owned by the Canadian Broadcasting Corporation?`:
```sql
                SELECT "branding" FROM "radio" WHERE "owner"='canadian broadcasting corporation' AND "frequency"='fm 97.7';
```
## Task
Generate a SQL query to answer the following question:
`Which F/Laps has Podiums of 1, and a Season of 2000, and a Final Placing of nc?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which F/Laps has Podiums of 1, and a Season of 2000, and a Final Placing of nc?`:
```sql
                SELECT "f_laps" FROM "career_summary" WHERE "podiums"='1' AND "season"=2000 AND "final_placing"='nc';
```
## Task
Generate a SQL query to answer the following question:
`Which Series has Poles of 0, and Races of 17?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Series has Poles of 0, and Races of 17?`:
```sql
                SELECT "series" FROM "career_summary" WHERE "poles"='0' AND "races"='17';
```
## Task
Generate a SQL query to answer the following question:
`Which Team Name has Poles of 0, and a Final Placing of 29th?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team Name has Poles of 0, and a Final Placing of 29th?`:
```sql
                SELECT "team_name" FROM "career_summary" WHERE "poles"='0' AND "final_placing"='29th';
```
## Task
Generate a SQL query to answer the following question:
`Which Series has a Final Placing of 9th, and Podiums of 2?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Series has a Final Placing of 9th, and Podiums of 2?`:
```sql
                SELECT "series" FROM "career_summary" WHERE "final_placing"='9th' AND "podiums"='2';
```
## Task
Generate a SQL query to answer the following question:
`Which Series has a Team Name of sunred engineering?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Series has a Team Name of sunred engineering?`:
```sql
                SELECT "series" FROM "career_summary" WHERE "team_name"='sunred engineering';
```
## Task
Generate a SQL query to answer the following question:
`Which Points have Wins of 0, and a Final Placing of 21st?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have Wins of 0, and a Final Placing of 21st?`:
```sql
                SELECT "points" FROM "career_summary" WHERE "wins"='0' AND "final_placing"='21st';
```
## Task
Generate a SQL query to answer the following question:
`Name the bronze for lahti`

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

CREATE TABLE "world_championships_women" (
  "year" real,
  "place" text,
  "gold" text,
  "silver" text,
  "bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the bronze for lahti`:
```sql
                SELECT "bronze" FROM "world_championships_women" WHERE "place"='lahti';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has Goals larger than 10, and a Scorer of choi sang-kuk?`

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

CREATE TABLE "top_scorers" (
  "rank" text,
  "scorer" text,
  "club" text,
  "goals" real,
  "matches" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has Goals larger than 10, and a Scorer of choi sang-kuk?`:
```sql
                SELECT "rank" FROM "top_scorers" WHERE "goals">10 AND "scorer"='choi sang-kuk';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Scorer of lee sang-cheol?`

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

CREATE TABLE "top_scorers" (
  "rank" text,
  "scorer" text,
  "club" text,
  "goals" real,
  "matches" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Scorer of lee sang-cheol?`:
```sql
                SELECT "rank" FROM "top_scorers" WHERE "scorer"='lee sang-cheol';
```
## Task
Generate a SQL query to answer the following question:
`Which Club has a Rank of 5?`

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

CREATE TABLE "top_scorers" (
  "rank" text,
  "scorer" text,
  "club" text,
  "goals" real,
  "matches" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Club has a Rank of 5?`:
```sql
                SELECT "club" FROM "top_scorers" WHERE "rank"='5';
```
## Task
Generate a SQL query to answer the following question:
`How many original bills amendments cosponsored lower than 64,with the bill support withdrawn lower than 0?`

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

CREATE TABLE "rep_ron_paul_u_s_house_of_representative" (
  "years_covered" text,
  "all_bills_sponsored" real,
  "all_amendments_sponsored" real,
  "all_bills_cosponsored" real,
  "all_amendments_cosponsored" real,
  "original_bills_cosponsored" real,
  "original_amendments_cosponsored" real,
  "bill_support_withdrawn" real,
  "amendment_support_withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many original bills amendments cosponsored lower than 64,with the bill support withdrawn lower than 0?`:
```sql
                SELECT MIN("original_amendments_cosponsored") FROM "rep_ron_paul_u_s_house_of_representative" WHERE "all_bills_sponsored"<64 AND "bill_support_withdrawn"<0;
```
## Task
Generate a SQL query to answer the following question:
`Who is the democratic incumbent that was re-elected?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the democratic incumbent that was re-elected?`:
```sql
                SELECT "incumbent" FROM "california" WHERE "status"='re-elected' AND "party"='democratic';
```
## Task
Generate a SQL query to answer the following question:
`What year was republican, re-elected incumbent John all barham elected?`

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

CREATE TABLE "california" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was republican, re-elected incumbent John all barham elected?`:
```sql
                SELECT "elected" FROM "california" WHERE "party"='republican' AND "status"='re-elected' AND "incumbent"='john all barham';
```
## Task
Generate a SQL query to answer the following question:
`What day in october was game number 4 with under 3 points?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What day in october was game number 4 with under 3 points?`:
```sql
                SELECT COUNT("october") FROM "regular_season" WHERE "game"=4 AND "points"<3;
```