cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the Finish for the 1950–51? season?`

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

CREATE TABLE "seasons" (
  "season" text,
  "conference" text,
  "division" text,
  "finish" text,
  "wins" text,
  "losses" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Finish for the 1950–51? season?`:
```sql
                SELECT "finish" FROM "seasons" WHERE "season"='1950–51';
```
## Task
Generate a SQL query to answer the following question:
`What is the Losses at the western conference and the 2004–05 season?`

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

CREATE TABLE "seasons" (
  "season" text,
  "conference" text,
  "division" text,
  "finish" text,
  "wins" text,
  "losses" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Losses at the western conference and the 2004–05 season?`:
```sql
                SELECT "losses" FROM "seasons" WHERE "conference"='western' AND "season"='2004–05';
```
## Task
Generate a SQL query to answer the following question:
`What Season has wins as the philadelphia warriors (nba)?`

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

CREATE TABLE "seasons" (
  "season" text,
  "conference" text,
  "division" text,
  "finish" text,
  "wins" text,
  "losses" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Season has wins as the philadelphia warriors (nba)?`:
```sql
                SELECT "season" FROM "seasons" WHERE "wins"='philadelphia warriors (nba)';
```
## Task
Generate a SQL query to answer the following question:
`What shows for Wins when there was a Conference of —, western division, in the 1967–68 season?`

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

CREATE TABLE "seasons" (
  "season" text,
  "conference" text,
  "division" text,
  "finish" text,
  "wins" text,
  "losses" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for Wins when there was a Conference of —, western division, in the 1967–68 season?`:
```sql
                SELECT "wins" FROM "seasons" WHERE "conference"='—' AND "division"='western' AND "season"='1967–68';
```
## Task
Generate a SQL query to answer the following question:
`What is the Conference for the 1967–68 season?`

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

CREATE TABLE "seasons" (
  "season" text,
  "conference" text,
  "division" text,
  "finish" text,
  "wins" text,
  "losses" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Conference for the 1967–68 season?`:
```sql
                SELECT "conference" FROM "seasons" WHERE "season"='1967–68';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location when the time was 11:55?`

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

CREATE TABLE "mixed_martial_arts_record_incomplete" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location when the time was 11:55?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record_incomplete" WHERE "time"='11:55';
```
## Task
Generate a SQL query to answer the following question:
`What Round has a Time of n/a, in rio de janeiro , brazil?`

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

CREATE TABLE "mixed_martial_arts_record_incomplete" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Round has a Time of n/a, in rio de janeiro , brazil?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record_incomplete" WHERE "time"='n/a' AND "location"='rio de janeiro , brazil';
```
## Task
Generate a SQL query to answer the following question:
`What is the Round for the jiu-jitsu vs martial arts?`

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

CREATE TABLE "mixed_martial_arts_record_incomplete" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Round for the jiu-jitsu vs martial arts?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record_incomplete" WHERE "event"='jiu-jitsu vs martial arts';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location for the jiu-jitsu vs martial arts?`

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

CREATE TABLE "mixed_martial_arts_record_incomplete" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location for the jiu-jitsu vs martial arts?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record_incomplete" WHERE "event"='jiu-jitsu vs martial arts';
```
## Task
Generate a SQL query to answer the following question:
`What is the Event when the opponent was wesslan evaristo de oliveira?`

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

CREATE TABLE "mixed_martial_arts_record_incomplete" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Event when the opponent was wesslan evaristo de oliveira?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record_incomplete" WHERE "opponent"='wesslan evaristo de oliveira';
```
## Task
Generate a SQL query to answer the following question:
`How many points does Kohta Nozane have with a Motobi TSR 6?`

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

CREATE TABLE "summary" (
  "year" real,
  "class" text,
  "team_name" text,
  "bike" text,
  "riders" text,
  "races" text,
  "wins" real,
  "podiums" real,
  "poles" real,
  "f_laps" real,
  "points" text,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does Kohta Nozane have with a Motobi TSR 6?`:
```sql
                SELECT "points" FROM "summary" WHERE "bike"='motobi tsr 6' AND "riders"='kohta nozane';
```
## Task
Generate a SQL query to answer the following question:
`Which Average has a Band of f?`

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

CREATE TABLE "current_bands" (
  "band" text,
  "value" text,
  "ratio" text,
  "ratio_as_pct" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Average has a Band of f?`:
```sql
                SELECT "average" FROM "current_bands" WHERE "band"='f';
```
## Task
Generate a SQL query to answer the following question:
`Which Band has a Ratio of 9/9?`

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

CREATE TABLE "current_bands" (
  "band" text,
  "value" text,
  "ratio" text,
  "ratio_as_pct" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Band has a Ratio of 9/9?`:
```sql
                SELECT "band" FROM "current_bands" WHERE "ratio"='9/9';
```
## Task
Generate a SQL query to answer the following question:
`Which Ratio as % has a Ratio of 8/9?`

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

CREATE TABLE "current_bands" (
  "band" text,
  "value" text,
  "ratio" text,
  "ratio_as_pct" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ratio as % has a Ratio of 8/9?`:
```sql
                SELECT "ratio_as_pct" FROM "current_bands" WHERE "ratio"='8/9';
```
## Task
Generate a SQL query to answer the following question:
`Which Value has a Ratio as % of 100%?`

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

CREATE TABLE "current_bands" (
  "band" text,
  "value" text,
  "ratio" text,
  "ratio_as_pct" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Value has a Ratio as % of 100%?`:
```sql
                SELECT "value" FROM "current_bands" WHERE "ratio_as_pct"='100%';
```
## Task
Generate a SQL query to answer the following question:
`Which Ratio has a Ratio as % of 78%?`

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

CREATE TABLE "current_bands" (
  "band" text,
  "value" text,
  "ratio" text,
  "ratio_as_pct" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ratio has a Ratio as % of 78%?`:
```sql
                SELECT "ratio" FROM "current_bands" WHERE "ratio_as_pct"='78%';
```
## Task
Generate a SQL query to answer the following question:
`Which Band has a Ratio of 13/9?`

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

CREATE TABLE "current_bands" (
  "band" text,
  "value" text,
  "ratio" text,
  "ratio_as_pct" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Band has a Ratio of 13/9?`:
```sql
                SELECT "band" FROM "current_bands" WHERE "ratio"='13/9';
```
## Task
Generate a SQL query to answer the following question:
`What was the latest year that the Atlanta Braves won and the St. Louis Cardinals lost?`

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

CREATE TABLE "league_championship_series" (
  "year" real,
  "series" text,
  "winning_team" text,
  "losing_team" text,
  "score" text,
  "site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest year that the Atlanta Braves won and the St. Louis Cardinals lost?`:
```sql
                SELECT MAX("year") FROM "league_championship_series" WHERE "winning_team"='atlanta braves' AND "losing_team"='st. louis cardinals';
```
## Task
Generate a SQL query to answer the following question:
`Who won the series when the San Francisco Giants lost?`

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

CREATE TABLE "league_championship_series" (
  "year" real,
  "series" text,
  "winning_team" text,
  "losing_team" text,
  "score" text,
  "site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the series when the San Francisco Giants lost?`:
```sql
                SELECT "winning_team" FROM "league_championship_series" WHERE "losing_team"='san francisco giants';
```
## Task
Generate a SQL query to answer the following question:
`Where was the series that the Kansas City Royals lost?`

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

CREATE TABLE "league_championship_series" (
  "year" real,
  "series" text,
  "winning_team" text,
  "losing_team" text,
  "score" text,
  "site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the series that the Kansas City Royals lost?`:
```sql
                SELECT "site" FROM "league_championship_series" WHERE "winning_team"='kansas city royals';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winning team in 2008?`

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

CREATE TABLE "league_championship_series" (
  "year" real,
  "series" text,
  "winning_team" text,
  "losing_team" text,
  "score" text,
  "site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning team in 2008?`:
```sql
                SELECT "winning_team" FROM "league_championship_series" WHERE "year"=2008;
```
## Task
Generate a SQL query to answer the following question:
`What average lost has points greater than 108?`

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

CREATE TABLE "season_by_season_results" (
  "season" text,
  "games" real,
  "lost" real,
  "tied" text,
  "points" real,
  "pct_pct" real,
  "goals_for" real,
  "goals_against" real,
  "penalty_minutes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What average lost has points greater than 108?`:
```sql
                SELECT AVG("lost") FROM "season_by_season_results" WHERE "points">108;
```
## Task
Generate a SQL query to answer the following question:
`How many losses have 222 as the goals against, with points greater than 78?`

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

CREATE TABLE "season_by_season_results" (
  "season" text,
  "games" real,
  "lost" real,
  "tied" text,
  "points" real,
  "pct_pct" real,
  "goals_for" real,
  "goals_against" real,
  "penalty_minutes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses have 222 as the goals against, with points greater than 78?`:
```sql
                SELECT SUM("lost") FROM "season_by_season_results" WHERE "goals_against"=222 AND "points">78;
```
## Task
Generate a SQL query to answer the following question:
`How many goals against have 64 for games, a loss less than 12, with points greater than 107?`

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

CREATE TABLE "season_by_season_results" (
  "season" text,
  "games" real,
  "lost" real,
  "tied" text,
  "points" real,
  "pct_pct" real,
  "goals_for" real,
  "goals_against" real,
  "penalty_minutes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals against have 64 for games, a loss less than 12, with points greater than 107?`:
```sql
                SELECT SUM("goals_against") FROM "season_by_season_results" WHERE "games"=64 AND "lost"<12 AND "points">107;
```
## Task
Generate a SQL query to answer the following question:
`What is the place of the song 'Never Change'?`

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

CREATE TABLE "national_final" (
  "draw" real,
  "artist" text,
  "song" text,
  "result" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place of the song 'Never Change'?`:
```sql
                SELECT SUM("place") FROM "national_final" WHERE "song"='never change';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of Aleko Berdzenishvili's song?`

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

CREATE TABLE "national_final" (
  "draw" real,
  "artist" text,
  "song" text,
  "result" text,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of Aleko Berdzenishvili's song?`:
```sql
                SELECT "song" FROM "national_final" WHERE "artist"='aleko berdzenishvili';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest pick for the RHP position and player Mike Biko?`

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

CREATE TABLE "first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "hometown_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest pick for the RHP position and player Mike Biko?`:
```sql
                SELECT MIN("pick") FROM "first_round_selections" WHERE "position"='rhp' AND "player"='mike biko';
```
## Task
Generate a SQL query to answer the following question:
`What is the Martin McGuinness with a David Norris that is 10.3%?`

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

CREATE TABLE "first_preference_votes_by_constituency" (
  "constituency" text,
  "michael_d_higgins" text,
  "se_n_gallagher" text,
  "martin_mc_guinness" text,
  "gay_mitchell" text,
  "david_norris" text,
  "dana_rosemary_scallon" text,
  "mary_davis" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Martin McGuinness with a David Norris that is 10.3%?`:
```sql
                SELECT "martin_mc_guinness" FROM "first_preference_votes_by_constituency" WHERE "david_norris"='10.3%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Martin mcGuinness with a Sean Gallagher that is 29.6%?`

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

CREATE TABLE "first_preference_votes_by_constituency" (
  "constituency" text,
  "michael_d_higgins" text,
  "se_n_gallagher" text,
  "martin_mc_guinness" text,
  "gay_mitchell" text,
  "david_norris" text,
  "dana_rosemary_scallon" text,
  "mary_davis" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Martin mcGuinness with a Sean Gallagher that is 29.6%?`:
```sql
                SELECT "martin_mc_guinness" FROM "first_preference_votes_by_constituency" WHERE "se_n_gallagher"='29.6%';
```
## Task
Generate a SQL query to answer the following question:
`What is the David Norris with a Michael D. Higgins that is 46.2%?`

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

CREATE TABLE "first_preference_votes_by_constituency" (
  "constituency" text,
  "michael_d_higgins" text,
  "se_n_gallagher" text,
  "martin_mc_guinness" text,
  "gay_mitchell" text,
  "david_norris" text,
  "dana_rosemary_scallon" text,
  "mary_davis" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the David Norris with a Michael D. Higgins that is 46.2%?`:
```sql
                SELECT "david_norris" FROM "first_preference_votes_by_constituency" WHERE "michael_d_higgins"='46.2%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Mary Davis with a Gay Mitchell that is 4.6%?`

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

CREATE TABLE "first_preference_votes_by_constituency" (
  "constituency" text,
  "michael_d_higgins" text,
  "se_n_gallagher" text,
  "martin_mc_guinness" text,
  "gay_mitchell" text,
  "david_norris" text,
  "dana_rosemary_scallon" text,
  "mary_davis" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Mary Davis with a Gay Mitchell that is 4.6%?`:
```sql
                SELECT "mary_davis" FROM "first_preference_votes_by_constituency" WHERE "gay_mitchell"='4.6%';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the total number of Prev that has the Chng of +10, and the Rating larger than 2765?`

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

CREATE TABLE "fide_january_2008_top_ten" (
  "rank" real,
  "prev" real,
  "player" text,
  "rating" real,
  "chng" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the total number of Prev that has the Chng of +10, and the Rating larger than 2765?`:
```sql
                SELECT COUNT("prev") FROM "fide_january_2008_top_ten" WHERE "chng"='+10' AND "rating">2765;
```
## Task
Generate a SQL query to answer the following question:
`Who is the second member for the Second Party Liberal, and the Third Party Conservative, after the 1841 election?`

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

CREATE TABLE "1832_1885" (
  "election" real,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text,
  "third_member" text,
  "third_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the second member for the Second Party Liberal, and the Third Party Conservative, after the 1841 election?`:
```sql
                SELECT "second_member" FROM "1832_1885" WHERE "second_party"='liberal' AND "third_party"='conservative' AND "election">1841;
```
## Task
Generate a SQL query to answer the following question:
`Who is the third member of the Liberal Party, a third party conservative, the second member Humphrey Mildmay?`

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

CREATE TABLE "1832_1885" (
  "election" real,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text,
  "third_member" text,
  "third_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the third member of the Liberal Party, a third party conservative, the second member Humphrey Mildmay?`:
```sql
                SELECT "third_member" FROM "1832_1885" WHERE "second_party"='liberal' AND "third_party"='conservative' AND "second_member"='humphrey mildmay';
```
## Task
Generate a SQL query to answer the following question:
`Who is the third member of the third conservative party, and the second liberal party?`

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

CREATE TABLE "1832_1885" (
  "election" real,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text,
  "third_member" text,
  "third_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the third member of the third conservative party, and the second liberal party?`:
```sql
                SELECT "third_member" FROM "1832_1885" WHERE "third_party"='conservative' AND "second_party"='liberal';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest election with third party member Sir Robert Price, BT, and first party member conservative?`

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

CREATE TABLE "1832_1885" (
  "election" real,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text,
  "third_member" text,
  "third_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest election with third party member Sir Robert Price, BT, and first party member conservative?`:
```sql
                SELECT MAX("election") FROM "1832_1885" WHERE "third_member"='sir robert price, bt' AND "first_party"='conservative';
```
## Task
Generate a SQL query to answer the following question:
`What was the record of the team with head coach Steve Spurrier?`

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

CREATE TABLE "winners" (
  "season" real,
  "team" text,
  "conference" text,
  "head_coach" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record of the team with head coach Steve Spurrier?`:
```sql
                SELECT "record" FROM "winners" WHERE "head_coach"='steve spurrier';
```
## Task
Generate a SQL query to answer the following question:
`What was USC's record before the 1967 season?`

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

CREATE TABLE "winners" (
  "season" real,
  "team" text,
  "conference" text,
  "head_coach" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was USC's record before the 1967 season?`:
```sql
                SELECT "record" FROM "winners" WHERE "team"='usc' AND "season"<1967;
```
## Task
Generate a SQL query to answer the following question:
`What was the record during the 1973 season?`

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

CREATE TABLE "winners" (
  "season" real,
  "team" text,
  "conference" text,
  "head_coach" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record during the 1973 season?`:
```sql
                SELECT "record" FROM "winners" WHERE "season"=1973;
```
## Task
Generate a SQL query to answer the following question:
`What is the average score for 6th place with a total of 165?`

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

CREATE TABLE "average_scores_of_all_couples" (
  "rank_by_average" text,
  "place" text,
  "perfect_40s" text,
  "total" text,
  "number_of_dances" text,
  "season" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average score for 6th place with a total of 165?`:
```sql
                SELECT "average" FROM "average_scores_of_all_couples" WHERE "place"='6th' AND "total"='165';
```
## Task
Generate a SQL query to answer the following question:
`What is the total with a 74 rank by average for 8th place?`

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

CREATE TABLE "average_scores_of_all_couples" (
  "rank_by_average" text,
  "place" text,
  "perfect_40s" text,
  "total" text,
  "number_of_dances" text,
  "season" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total with a 74 rank by average for 8th place?`:
```sql
                SELECT "total" FROM "average_scores_of_all_couples" WHERE "rank_by_average"='74' AND "place"='8th';
```
## Task
Generate a SQL query to answer the following question:
`What was the place in season 8 with a rank by average at 139?`

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

CREATE TABLE "average_scores_of_all_couples" (
  "rank_by_average" text,
  "place" text,
  "perfect_40s" text,
  "total" text,
  "number_of_dances" text,
  "season" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the place in season 8 with a rank by average at 139?`:
```sql
                SELECT "place" FROM "average_scores_of_all_couples" WHERE "season"='8' AND "rank_by_average"='139';
```
## Task
Generate a SQL query to answer the following question:
`What is the total for 3rd place on season 9?`

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

CREATE TABLE "average_scores_of_all_couples" (
  "rank_by_average" text,
  "place" text,
  "perfect_40s" text,
  "total" text,
  "number_of_dances" text,
  "season" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for 3rd place on season 9?`:
```sql
                SELECT "total" FROM "average_scores_of_all_couples" WHERE "place"='3rd' AND "season"='9';
```
## Task
Generate a SQL query to answer the following question:
`What rank by average has 1 dance on season 9?`

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

CREATE TABLE "average_scores_of_all_couples" (
  "rank_by_average" text,
  "place" text,
  "perfect_40s" text,
  "total" text,
  "number_of_dances" text,
  "season" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank by average has 1 dance on season 9?`:
```sql
                SELECT "rank_by_average" FROM "average_scores_of_all_couples" WHERE "number_of_dances"='1' AND "season"='9';
```
## Task
Generate a SQL query to answer the following question:
`What was the final round score for the player from the Milwaukee Bucks?`

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

CREATE TABLE "contestants" (
  "pos" text,
  "player" text,
  "team" text,
  "height" text,
  "weight" real,
  "first_round" text,
  "final_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final round score for the player from the Milwaukee Bucks?`:
```sql
                SELECT "final_round" FROM "contestants" WHERE "team"='milwaukee bucks';
```
## Task
Generate a SQL query to answer the following question:
`What position does the player with a first round score of 35.7 play?`

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

CREATE TABLE "contestants" (
  "pos" text,
  "player" text,
  "team" text,
  "height" text,
  "weight" real,
  "first_round" text,
  "final_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the player with a first round score of 35.7 play?`:
```sql
                SELECT "pos" FROM "contestants" WHERE "first_round"='35.7';
```
## Task
Generate a SQL query to answer the following question:
`What is the height of the player with a first round score of 44.1?`

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

CREATE TABLE "contestants" (
  "pos" text,
  "player" text,
  "team" text,
  "height" text,
  "weight" real,
  "first_round" text,
  "final_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the player with a first round score of 44.1?`:
```sql
                SELECT "height" FROM "contestants" WHERE "first_round"='44.1';
```
## Task
Generate a SQL query to answer the following question:
`Which player weighs 187 pounds?`

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

CREATE TABLE "contestants" (
  "pos" text,
  "player" text,
  "team" text,
  "height" text,
  "weight" real,
  "first_round" text,
  "final_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player weighs 187 pounds?`:
```sql
                SELECT "player" FROM "contestants" WHERE "weight"=187;
```
## Task
Generate a SQL query to answer the following question:
`Who was the illustrator in 1987?`

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

CREATE TABLE "winners_of_the_kurt_maschler_award" (
  "year" real,
  "author" text,
  "illustrator" text,
  "title" text,
  "publisher" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the illustrator in 1987?`:
```sql
                SELECT "illustrator" FROM "winners_of_the_kurt_maschler_award" WHERE "year"=1987;
```
## Task
Generate a SQL query to answer the following question:
`How many years was the title drop dead?`

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

CREATE TABLE "winners_of_the_kurt_maschler_award" (
  "year" real,
  "author" text,
  "illustrator" text,
  "title" text,
  "publisher" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was the title drop dead?`:
```sql
                SELECT COUNT("year") FROM "winners_of_the_kurt_maschler_award" WHERE "title"='drop dead';
```
## Task
Generate a SQL query to answer the following question:
`Which publisher has a title of drop dead?`

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

CREATE TABLE "winners_of_the_kurt_maschler_award" (
  "year" real,
  "author" text,
  "illustrator" text,
  "title" text,
  "publisher" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which publisher has a title of drop dead?`:
```sql
                SELECT "publisher" FROM "winners_of_the_kurt_maschler_award" WHERE "title"='drop dead';
```
## Task
Generate a SQL query to answer the following question:
`What Greek word means the same thing as the German word ebbe?`

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

CREATE TABLE "words_derived_from_non_indo_european_lan" (
  "english" text,
  "german" text,
  "dutch" text,
  "icelandic" text,
  "latin" text,
  "greek" text,
  "russian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Greek word means the same thing as the German word ebbe?`:
```sql
                SELECT "greek" FROM "words_derived_from_non_indo_european_lan" WHERE "german"='ebbe';
```
## Task
Generate a SQL query to answer the following question:
`What word in German translates into the Icelandic word efja?`

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

CREATE TABLE "words_derived_from_non_indo_european_lan" (
  "english" text,
  "german" text,
  "dutch" text,
  "icelandic" text,
  "latin" text,
  "greek" text,
  "russian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What word in German translates into the Icelandic word efja?`:
```sql
                SELECT "german" FROM "words_derived_from_non_indo_european_lan" WHERE "icelandic"='efja';
```
## Task
Generate a SQL query to answer the following question:
`What is the Dutch translation of the Latin word navigo?`

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

CREATE TABLE "words_derived_from_non_indo_european_lan" (
  "english" text,
  "german" text,
  "dutch" text,
  "icelandic" text,
  "latin" text,
  "greek" text,
  "russian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Dutch translation of the Latin word navigo?`:
```sql
                SELECT "dutch" FROM "words_derived_from_non_indo_european_lan" WHERE "latin"='navigo';
```
## Task
Generate a SQL query to answer the following question:
`What Dutch word has the same meaning as the Greek word πλέω (pléō)?`

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

CREATE TABLE "words_derived_from_non_indo_european_lan" (
  "english" text,
  "german" text,
  "dutch" text,
  "icelandic" text,
  "latin" text,
  "greek" text,
  "russian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Dutch word has the same meaning as the Greek word πλέω (pléō)?`:
```sql
                SELECT "dutch" FROM "words_derived_from_non_indo_european_lan" WHERE "greek"='πλέω (pléō)';
```
## Task
Generate a SQL query to answer the following question:
`What English word has the same meaning as the German word "german"?`

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

CREATE TABLE "words_derived_from_non_indo_european_lan" (
  "english" text,
  "german" text,
  "dutch" text,
  "icelandic" text,
  "latin" text,
  "greek" text,
  "russian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What English word has the same meaning as the German word "german"?`:
```sql
                SELECT "english" FROM "words_derived_from_non_indo_european_lan" WHERE "german"='german';
```
## Task
Generate a SQL query to answer the following question:
`How many wins are related to events of 7 and more than 2 top-10s?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins are related to events of 7 and more than 2 top-10s?`:
```sql
                SELECT COUNT("wins") FROM "summary" WHERE "events"=7 AND "top_10">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the most cuts made for events with 1 top-5, 2 top-10s, and more than 13 total events?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most cuts made for events with 1 top-5, 2 top-10s, and more than 13 total events?`:
```sql
                SELECT MAX("cuts_made") FROM "summary" WHERE "top_5"=1 AND "top_10"=2 AND "events">13;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Name that has the Rank smaller than 71, and the Year larger than 2005, and the Out of 220?`

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

CREATE TABLE "rankings" (
  "name" text,
  "rank" real,
  "out_of" text,
  "source" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Name that has the Rank smaller than 71, and the Year larger than 2005, and the Out of 220?`:
```sql
                SELECT "name" FROM "rankings" WHERE "rank"<71 AND "year">2005 AND "out_of"='220';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the lowest Year that has the Rank smaller the 132, and the Name of biodiversity richness?`

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

CREATE TABLE "rankings" (
  "name" text,
  "rank" real,
  "out_of" text,
  "source" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the lowest Year that has the Rank smaller the 132, and the Name of biodiversity richness?`:
```sql
                SELECT MIN("year") FROM "rankings" WHERE "rank"<132 AND "name"='biodiversity richness';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Source that has the Rank of 78?`

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

CREATE TABLE "rankings" (
  "name" text,
  "rank" real,
  "out_of" text,
  "source" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Source that has the Rank of 78?`:
```sql
                SELECT "source" FROM "rankings" WHERE "rank"=78;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003?`

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

CREATE TABLE "rankings" (
  "name" text,
  "rank" real,
  "out_of" text,
  "source" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003?`:
```sql
                SELECT "out_of" FROM "rankings" WHERE "source"='united nations' AND "rank">47 AND "year"<2003;
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a 2004 of 1r?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a 2004 of 1r?`:
```sql
                SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2004"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2005 that has a grand slam tournaments in 2007?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2005 that has a grand slam tournaments in 2007?`:
```sql
                SELECT "2005" FROM "doubles_performance_timeline" WHERE "2007"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2006 that has a 2r in 2004, and a 2r in 2005?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2006 that has a 2r in 2004, and a 2r in 2005?`:
```sql
                SELECT "2006" FROM "doubles_performance_timeline" WHERE "2004"='2r' AND "2005"='2r';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007 that has a grand slam tournaments in 2006.`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 that has a grand slam tournaments in 2006.`:
```sql
                SELECT "2007" FROM "doubles_performance_timeline" WHERE "2006"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2004 that has a of grand slam tournaments in2006 ?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2004 that has a of grand slam tournaments in2006 ?`:
```sql
                SELECT "2004" FROM "doubles_performance_timeline" WHERE "2006"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What is 2006 has a 2007 of 3r?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2006 has a 2007 of 3r?`:
```sql
                SELECT "2006" FROM "doubles_performance_timeline" WHERE "2007"='3r';
```
## Task
Generate a SQL query to answer the following question:
`What was the number of passengers going to MCO with a rank larger than 9?`

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

CREATE TABLE "top_domestic_destinations_out_of_btv_oct" (
  "rank" real,
  "city" text,
  "airport" text,
  "passengers" real,
  "carriers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of passengers going to MCO with a rank larger than 9?`:
```sql
                SELECT COUNT("passengers") FROM "top_domestic_destinations_out_of_btv_oct" WHERE "airport"='mco' AND "rank">9;
```
## Task
Generate a SQL query to answer the following question:
`What was the airport with primary carrier of US Airways with a  2 ranking and more than 51,000 passengers?`

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

CREATE TABLE "top_domestic_destinations_out_of_btv_oct" (
  "rank" real,
  "city" text,
  "airport" text,
  "passengers" real,
  "carriers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the airport with primary carrier of US Airways with a  2 ranking and more than 51,000 passengers?`:
```sql
                SELECT "airport" FROM "top_domestic_destinations_out_of_btv_oct" WHERE "passengers">'51,000' AND "carriers"='us airways' AND "rank"=2;
```
## Task
Generate a SQL query to answer the following question:
`What city had a rank before 3 and primary carrier JetBlue Airways?`

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

CREATE TABLE "top_domestic_destinations_out_of_btv_oct" (
  "rank" real,
  "city" text,
  "airport" text,
  "passengers" real,
  "carriers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city had a rank before 3 and primary carrier JetBlue Airways?`:
```sql
                SELECT "city" FROM "top_domestic_destinations_out_of_btv_oct" WHERE "rank"<3 AND "carriers"='jetblue airways';
```
## Task
Generate a SQL query to answer the following question:
`What was launched and laid down in February 1819?`

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

CREATE TABLE "1818_1821_orders" (
  "name" text,
  "built_by_hm_dockyard" text,
  "ordered" text,
  "laid_down" text,
  "launched" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was launched and laid down in February 1819?`:
```sql
                SELECT "launched" FROM "1818_1821_orders" WHERE "laid_down"='february 1819';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of positions with less than 10 points, more than 7 qualifying, ret value in Race 1, and Jonathan Grant driving?`

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

CREATE TABLE "indy_f3_challenge" (
  "pos" real,
  "driver" text,
  "qualifying" real,
  "race_1" text,
  "race_2" text,
  "race_3" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of positions with less than 10 points, more than 7 qualifying, ret value in Race 1, and Jonathan Grant driving?`:
```sql
                SELECT COUNT("pos") FROM "indy_f3_challenge" WHERE "points"<10 AND "qualifying">7 AND "race_1"='ret' AND "driver"='jonathan grant';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Set 2 is 25-13?`

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

CREATE TABLE "results_pool_b" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Set 2 is 25-13?`:
```sql
                SELECT "date" FROM "results_pool_b" WHERE "set_2"='25-13';
```
## Task
Generate a SQL query to answer the following question:
`What is Total, when Set 5 is NA, and when Set 2 is 25-13?`

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

CREATE TABLE "results_pool_b" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Total, when Set 5 is NA, and when Set 2 is 25-13?`:
```sql
                SELECT "total" FROM "results_pool_b" WHERE "set_5"='na' AND "set_2"='25-13';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Date is Jun 16, and when Set 4 is 25-20?`

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

CREATE TABLE "results_pool_b" (
  "date" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Date is Jun 16, and when Set 4 is 25-20?`:
```sql
                SELECT "score" FROM "results_pool_b" WHERE "date"='jun 16' AND "set_4"='25-20';
```