cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which rank has a team of Suzuki with under 16 points?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which rank has a team of Suzuki with under 16 points?`:
```sql
                SELECT "rank" FROM "grand_prix_motorcycle_racing_results" WHERE "team"='suzuki' AND "points"<16;
```
## Task
Generate a SQL query to answer the following question:
`Which class has a rank of 5th?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has a rank of 5th?`:
```sql
                SELECT "class" FROM "grand_prix_motorcycle_racing_results" WHERE "rank"='5th';
```
## Task
Generate a SQL query to answer the following question:
`Which team has a class of 500cc and rank of 16th?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a class of 500cc and rank of 16th?`:
```sql
                SELECT "team" FROM "grand_prix_motorcycle_racing_results" WHERE "class"='500cc' AND "rank"='16th';
```
## Task
Generate a SQL query to answer the following question:
`Which team has 16 points and ranks 14th?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has 16 points and ranks 14th?`:
```sql
                SELECT "team" FROM "grand_prix_motorcycle_racing_results" WHERE "points"=16 AND "rank"='14th';
```
## Task
Generate a SQL query to answer the following question:
`What is the dance that has priscilla presley is the worst dancer(s), and the worst score of 21?`

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

CREATE TABLE "highest_and_lowest_scoring_performances" (
  "dance" text,
  "best_dancer_s" text,
  "best_score" text,
  "worst_dancer_s" text,
  "worst_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the dance that has priscilla presley is the worst dancer(s), and the worst score of 21?`:
```sql
                SELECT "dance" FROM "highest_and_lowest_scoring_performances" WHERE "worst_dancer_s"='priscilla presley' AND "worst_score"='21';
```
## Task
Generate a SQL query to answer the following question:
`What is the best score of the dance freestyle?`

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

CREATE TABLE "highest_and_lowest_scoring_performances" (
  "dance" text,
  "best_dancer_s" text,
  "best_score" text,
  "worst_dancer_s" text,
  "worst_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best score of the dance freestyle?`:
```sql
                SELECT "best_score" FROM "highest_and_lowest_scoring_performances" WHERE "dance"='freestyle';
```
## Task
Generate a SQL query to answer the following question:
`Which dance has the worst dancer(s) as marissa jaret winokur?`

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

CREATE TABLE "highest_and_lowest_scoring_performances" (
  "dance" text,
  "best_dancer_s" text,
  "best_score" text,
  "worst_dancer_s" text,
  "worst_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which dance has the worst dancer(s) as marissa jaret winokur?`:
```sql
                SELECT "dance" FROM "highest_and_lowest_scoring_performances" WHERE "worst_dancer_s"='marissa jaret winokur';
```
## Task
Generate a SQL query to answer the following question:
`Which Points have an Opponent of vancouver canucks?`

### 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 `Which Points have an Opponent of vancouver canucks?`:
```sql
                SELECT AVG("points") FROM "regular_season" WHERE "opponent"='vancouver canucks';
```
## Task
Generate a SQL query to answer the following question:
`How many Points have a Score of 3–0?`

### 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 `How many Points have a Score of 3–0?`:
```sql
                SELECT COUNT("points") FROM "regular_season" WHERE "score"='3–0';
```
## Task
Generate a SQL query to answer the following question:
`Which Game has Points smaller than 10, and an October larger than 12, and an Opponent of @ washington capitals?`

### 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 `Which Game has Points smaller than 10, and an October larger than 12, and an Opponent of @ washington capitals?`:
```sql
                SELECT SUM("game") FROM "regular_season" WHERE "points"<10 AND "october">12 AND "opponent"='@ washington capitals';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has Points larger than 0, and a Score of 7–3?`

### 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 `Which Record has Points larger than 0, and a Score of 7–3?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "points">0 AND "score"='7–3';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the game more than 5?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the game more than 5?`:
```sql
                SELECT "date" FROM "game_log" WHERE "game">5;
```
## Task
Generate a SQL query to answer the following question:
`Which series was on May 16?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which series was on May 16?`:
```sql
                SELECT "series" FROM "game_log" WHERE "date"='may 16';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for oregon jurisdiction`

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

CREATE TABLE "statewide" (
  "date" text,
  "jurisdiction" text,
  "ronald_reagan" text,
  "george_h_w_bush" text,
  "john_b_anderson" text,
  "howard_baker" text,
  "john_connally" text,
  "phil_crane" text,
  "bob_dole" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for oregon jurisdiction`:
```sql
                SELECT "date" FROM "statewide" WHERE "jurisdiction"='oregon';
```
## Task
Generate a SQL query to answer the following question:
`Name the john b. anderson for ronald reagan of 43% and phil crane of 0%`

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

CREATE TABLE "statewide" (
  "date" text,
  "jurisdiction" text,
  "ronald_reagan" text,
  "george_h_w_bush" text,
  "john_b_anderson" text,
  "howard_baker" text,
  "john_connally" text,
  "phil_crane" text,
  "bob_dole" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the john b. anderson for ronald reagan of 43% and phil crane of 0%`:
```sql
                SELECT "john_b_anderson" FROM "statewide" WHERE "phil_crane"='0%' AND "ronald_reagan"='43%';
```
## Task
Generate a SQL query to answer the following question:
`Name the howard bake when bush had 66%`

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

CREATE TABLE "statewide" (
  "date" text,
  "jurisdiction" text,
  "ronald_reagan" text,
  "george_h_w_bush" text,
  "john_b_anderson" text,
  "howard_baker" text,
  "john_connally" text,
  "phil_crane" text,
  "bob_dole" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the howard bake when bush had 66%`:
```sql
                SELECT "howard_baker" FROM "statewide" WHERE "george_h_w_bush"='66%';
```
## Task
Generate a SQL query to answer the following question:
`Name the george bush for ronald reagan of 43%`

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

CREATE TABLE "statewide" (
  "date" text,
  "jurisdiction" text,
  "ronald_reagan" text,
  "george_h_w_bush" text,
  "john_b_anderson" text,
  "howard_baker" text,
  "john_connally" text,
  "phil_crane" text,
  "bob_dole" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the george bush for ronald reagan of 43%`:
```sql
                SELECT "george_h_w_bush" FROM "statewide" WHERE "ronald_reagan"='43%';
```
## Task
Generate a SQL query to answer the following question:
`Name the howard baker for ronald reagan of 72%`

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

CREATE TABLE "statewide" (
  "date" text,
  "jurisdiction" text,
  "ronald_reagan" text,
  "george_h_w_bush" text,
  "john_b_anderson" text,
  "howard_baker" text,
  "john_connally" text,
  "phil_crane" text,
  "bob_dole" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the howard baker for ronald reagan of 72%`:
```sql
                SELECT "howard_baker" FROM "statewide" WHERE "ronald_reagan"='72%';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of goals for the 2004/05 Season?`

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

CREATE TABLE "references" (
  "season" text,
  "club" text,
  "country" text,
  "competition" text,
  "caps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of goals for the 2004/05 Season?`:
```sql
                SELECT SUM("goals") FROM "references" WHERE "season"='2004/05';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest caps for the Club of SBV Excelsior?`

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

CREATE TABLE "references" (
  "season" text,
  "club" text,
  "country" text,
  "competition" text,
  "caps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest caps for the Club of SBV Excelsior?`:
```sql
                SELECT MIN("caps") FROM "references" WHERE "club"='sbv excelsior';
```
## Task
Generate a SQL query to answer the following question:
`Which season has Caps lower than 36 for the Club of NAC Breda?`

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

CREATE TABLE "references" (
  "season" text,
  "club" text,
  "country" text,
  "competition" text,
  "caps" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which season has Caps lower than 36 for the Club of NAC Breda?`:
```sql
                SELECT "season" FROM "references" WHERE "caps"<36 AND "club"='nac breda';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponents in the final have a Partner of daniella dominikovic?`

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

CREATE TABLE "doubles_11_4_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponents in the final have a Partner of daniella dominikovic?`:
```sql
                SELECT "opponents_in_the_final" FROM "doubles_11_4_7" WHERE "partner"='daniella dominikovic';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Partner of daniella dominikovic?`

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

CREATE TABLE "doubles_11_4_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Partner of daniella dominikovic?`:
```sql
                SELECT "date" FROM "doubles_11_4_7" WHERE "partner"='daniella dominikovic';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has a Partner of pemra özgen?`

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

CREATE TABLE "doubles_11_4_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has a Partner of pemra özgen?`:
```sql
                SELECT "surface" FROM "doubles_11_4_7" WHERE "partner"='pemra özgen';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has Opponents in the final of valeria casillo lilly raffa?`

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

CREATE TABLE "doubles_11_4_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has Opponents in the final of valeria casillo lilly raffa?`:
```sql
                SELECT "date" FROM "doubles_11_4_7" WHERE "opponents_in_the_final"='valeria casillo lilly raffa';
```
## Task
Generate a SQL query to answer the following question:
`Nationality of england, and a Matches smaller than 510, and a Lost of 4, and a Win % smaller than 28.6 had what lowest drawn?`

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

CREATE TABLE "managers" (
  "nationality" text,
  "matches" real,
  "drawn" real,
  "lost" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Nationality of england, and a Matches smaller than 510, and a Lost of 4, and a Win % smaller than 28.6 had what lowest drawn?`:
```sql
                SELECT MIN("drawn") FROM "managers" WHERE "nationality"='england' AND "matches"<510 AND "lost"=4 AND "win_pct"<28.6;
```
## Task
Generate a SQL query to answer the following question:
`Win % larger than 47.1, and a Matches smaller than 145 had what lowest lost?`

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

CREATE TABLE "managers" (
  "nationality" text,
  "matches" real,
  "drawn" real,
  "lost" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Win % larger than 47.1, and a Matches smaller than 145 had what lowest lost?`:
```sql
                SELECT MIN("lost") FROM "managers" WHERE "win_pct">47.1 AND "matches"<145;
```
## Task
Generate a SQL query to answer the following question:
`Matches of 15, and a Win % smaller than 20 had what highest lost?`

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

CREATE TABLE "managers" (
  "nationality" text,
  "matches" real,
  "drawn" real,
  "lost" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Matches of 15, and a Win % smaller than 20 had what highest lost?`:
```sql
                SELECT MAX("lost") FROM "managers" WHERE "matches"=15 AND "win_pct"<20;
```
## Task
Generate a SQL query to answer the following question:
`Nationality of england, and a Lost larger than 39, and a Win % of 28.7, and a Drawn smaller than 37 had what sum of matches?`

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

CREATE TABLE "managers" (
  "nationality" text,
  "matches" real,
  "drawn" real,
  "lost" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Nationality of england, and a Lost larger than 39, and a Win % of 28.7, and a Drawn smaller than 37 had what sum of matches?`:
```sql
                SELECT SUM("matches") FROM "managers" WHERE "nationality"='england' AND "lost">39 AND "win_pct"=28.7 AND "drawn"<37;
```
## Task
Generate a SQL query to answer the following question:
`Drawn smaller than 24, and a Lost smaller than 17, and a Win % smaller than 31.25 had how many total number of matches?`

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

CREATE TABLE "managers" (
  "nationality" text,
  "matches" real,
  "drawn" real,
  "lost" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Drawn smaller than 24, and a Lost smaller than 17, and a Win % smaller than 31.25 had how many total number of matches?`:
```sql
                SELECT COUNT("matches") FROM "managers" WHERE "drawn"<24 AND "lost"<17 AND "win_pct"<31.25;
```
## Task
Generate a SQL query to answer the following question:
`Lost of 18 had what sum of win %?`

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

CREATE TABLE "managers" (
  "nationality" text,
  "matches" real,
  "drawn" real,
  "lost" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Lost of 18 had what sum of win %?`:
```sql
                SELECT SUM("win_pct") FROM "managers" WHERE "lost"=18;
```
## Task
Generate a SQL query to answer the following question:
`When was the score 5-31?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the score 5-31?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='5-31';
```
## Task
Generate a SQL query to answer the following question:
`What is the second leg that has kk bosna?`

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

CREATE TABLE "sixteenth_finals" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the second leg that has kk bosna?`:
```sql
                SELECT "2nd_leg" FROM "sixteenth_finals" WHERE "team_num1"='kk bosna';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1st leg that has  hapoel jerusalem?`

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

CREATE TABLE "sixteenth_finals" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st leg that has  hapoel jerusalem?`:
```sql
                SELECT "1st_leg" FROM "sixteenth_finals" WHERE "team_num1"='hapoel jerusalem';
```
## Task
Generate a SQL query to answer the following question:
`Which 1st leg that has hemofarm?`

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

CREATE TABLE "sixteenth_finals" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1st leg that has hemofarm?`:
```sql
                SELECT "1st_leg" FROM "sixteenth_finals" WHERE "team_num1"='hemofarm';
```
## Task
Generate a SQL query to answer the following question:
`WHich Team#1 has 70 - 59 as a 1st leg?`

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

CREATE TABLE "sixteenth_finals" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Team#1 has 70 - 59 as a 1st leg?`:
```sql
                SELECT "team_num1" FROM "sixteenth_finals" WHERE "1st_leg"='70 - 59';
```
## Task
Generate a SQL query to answer the following question:
`Who averaged 201.3 yards passing per game?`

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

CREATE TABLE "passing" (
  "name" text,
  "gp_gs" text,
  "effic" real,
  "att_cmp_int" text,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who averaged 201.3 yards passing per game?`:
```sql
                SELECT "name" FROM "passing" WHERE "avg_g"=201.3;
```
## Task
Generate a SQL query to answer the following question:
`How many players had an Att-Cmp-Int of 143–269–16, and an efficiency of less than 116.9?`

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

CREATE TABLE "passing" (
  "name" text,
  "gp_gs" text,
  "effic" real,
  "att_cmp_int" text,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many players had an Att-Cmp-Int of 143–269–16, and an efficiency of less than 116.9?`:
```sql
                SELECT COUNT("avg_g") FROM "passing" WHERE "att_cmp_int"='143–269–16' AND "effic"<116.9;
```
## Task
Generate a SQL query to answer the following question:
`What is the Att-Cmp-Int for the player with a efficiency of 117.4?`

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

CREATE TABLE "passing" (
  "name" text,
  "gp_gs" text,
  "effic" real,
  "att_cmp_int" text,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Att-Cmp-Int for the player with a efficiency of 117.4?`:
```sql
                SELECT "att_cmp_int" FROM "passing" WHERE "effic"=117.4;
```
## Task
Generate a SQL query to answer the following question:
`How many legs were won by the player who had less than 84 100+, less than 14 legs lost, and less than 3 played?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many legs were won by the player who had less than 84 100+, less than 14 legs lost, and less than 3 played?`:
```sql
                SELECT SUM("legs_won") FROM "statistics" WHERE "100"<84 AND "legs_lost"<14 AND "played"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of legs lost of the player with a high checkout less than 76 and less than 3 played?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of legs lost of the player with a high checkout less than 76 and less than 3 played?`:
```sql
                SELECT COUNT("legs_lost") FROM "statistics" WHERE "high_checkout"<76 AND "played"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the number played of the player with 7 180s and a 140+ greater than 28?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number played of the player with 7 180s and a 140+ greater than 28?`:
```sql
                SELECT "played" FROM "statistics" WHERE "180s"=7 AND "140">28;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of legs lost of the player with more than 8 legs won, 4 played, less than 6 180s, and a 100+ greater than 46?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of legs lost of the player with more than 8 legs won, 4 played, less than 6 180s, and a 100+ greater than 46?`:
```sql
                SELECT SUM("legs_lost") FROM "statistics" WHERE "legs_won">8 AND "played"=4 AND "180s"<6 AND "100">46;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of legs won of the player with a high checkout greater than 96, more than 5 played, and a smaller than 95.61 3-dart average?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of legs won of the player with a high checkout greater than 96, more than 5 played, and a smaller than 95.61 3-dart average?`:
```sql
                SELECT AVG("legs_won") FROM "statistics" WHERE "high_checkout">96 AND "played">5 AND "3_dart_average"<95.61;
```
## Task
Generate a SQL query to answer the following question:
`What is the Ch1 in the region served by Central Tablelands?`

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

CREATE TABLE "main_transmitters" (
  "region_served" text,
  "ch_1" text,
  "on_air_date" text,
  "analogue_power" text,
  "digital_power" text,
  "analogue_haat" text,
  "digital_haat" text,
  "transmitter_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Ch1 in the region served by Central Tablelands?`:
```sql
                SELECT "ch_1" FROM "main_transmitters" WHERE "region_served"='central tablelands';
```
## Task
Generate a SQL query to answer the following question:
`What transmitter location has digital power of 570kw?`

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

CREATE TABLE "main_transmitters" (
  "region_served" text,
  "ch_1" text,
  "on_air_date" text,
  "analogue_power" text,
  "digital_power" text,
  "analogue_haat" text,
  "digital_haat" text,
  "transmitter_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What transmitter location has digital power of 570kw?`:
```sql
                SELECT "transmitter_location" FROM "main_transmitters" WHERE "digital_power"='570kw';
```
## Task
Generate a SQL query to answer the following question:
`What year did team Yamaha have 0 wins, a rank of 8th, and more than 22 points?`

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

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year did team Yamaha have 0 wins, a rank of 8th, and more than 22 points?`:
```sql
                SELECT COUNT("year") FROM "grand_prix_motorcycle_racing_results" WHERE "team"='yamaha' AND "wins"=0 AND "rank"='8th' AND "points">22;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of rounds for gina carano`

### 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 `Name the total number of rounds for gina carano`:
```sql
                SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "opponent"='gina carano';
```
## Task
Generate a SQL query to answer the following question:
`What is the difference related to 2 losses and fewer than 10 points?`

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

CREATE TABLE "first_round" (
  "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 related to 2 losses and fewer than 10 points?`:
```sql
                SELECT "points_difference" FROM "first_round" WHERE "lost"=2 AND "points"<10;
```
## Task
Generate a SQL query to answer the following question:
`Where did the game(s) against Iowa take place?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the game(s) against Iowa take place?`:
```sql
                SELECT "site" FROM "schedule" WHERE "opponent"='iowa';
```
## Task
Generate a SQL query to answer the following question:
`What is the Outcome of the Doubles played on Carpet?`

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

CREATE TABLE "doubles_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Outcome of the Doubles played on Carpet?`:
```sql
                SELECT "outcome" FROM "doubles_5" WHERE "surface"='carpet';
```
## Task
Generate a SQL query to answer the following question:
`What was the Surface during the match with Partner Debbie Graham?`

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

CREATE TABLE "doubles_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Surface during the match with Partner Debbie Graham?`:
```sql
                SELECT "surface" FROM "doubles_5" WHERE "partner"='debbie graham';
```
## Task
Generate a SQL query to answer the following question:
`What was the Partner on February 23, 1997?`

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

CREATE TABLE "doubles_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Partner on February 23, 1997?`:
```sql
                SELECT "partner" FROM "doubles_5" WHERE "date"='february 23, 1997';
```
## Task
Generate a SQL query to answer the following question:
`What was the Tournament on May 24, 1992 played on a Clay Surface?`

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

CREATE TABLE "doubles_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Tournament on May 24, 1992 played on a Clay Surface?`:
```sql
                SELECT "tournament" FROM "doubles_5" WHERE "surface"='clay' AND "date"='may 24, 1992';
```
## Task
Generate a SQL query to answer the following question:
`What was the Surface in the match with a Score of 7–5, 6–7, 4–6?`

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

CREATE TABLE "doubles_5" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Surface in the match with a Score of 7–5, 6–7, 4–6?`:
```sql
                SELECT "surface" FROM "doubles_5" WHERE "score"='7–5, 6–7, 4–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency MHz in tremonton, utah with a ERP W larger than 30?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency MHz in tremonton, utah with a ERP W larger than 30?`:
```sql
                SELECT "frequency_m_hz" FROM "translators" WHERE "erp_w">30 AND "city_of_license"='tremonton, utah';
```
## Task
Generate a SQL query to answer the following question:
`What is k275av call sign's highest erp w?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is k275av call sign's highest erp w?`:
```sql
                SELECT MAX("erp_w") FROM "translators" WHERE "call_sign"='k275av';
```
## Task
Generate a SQL query to answer the following question:
`Name the year for american conference semifinals`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "record" text,
  "regular_season_finish" text,
  "playoffs" text,
  "avg_attend" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for american conference semifinals`:
```sql
                SELECT "year" FROM "year_by_year" WHERE "playoffs"='american conference semifinals';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of years for quarterfinals`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "record" text,
  "regular_season_finish" text,
  "playoffs" text,
  "avg_attend" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of years for quarterfinals`:
```sql
                SELECT COUNT("year") FROM "year_by_year" WHERE "playoffs"='quarterfinals';
```
## Task
Generate a SQL query to answer the following question:
`4th Runner-up smaller than 1, and a 5th Runner-up of 0, and a Miss World smaller than 2 has which lowest 3rd Runner-up?`

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

CREATE TABLE "top_20_countries_by_tally" (
  "rank" real,
  "country_territory" text,
  "miss_world" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "5th_runner_up" real,
  "6th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `4th Runner-up smaller than 1, and a 5th Runner-up of 0, and a Miss World smaller than 2 has which lowest 3rd Runner-up?`:
```sql
                SELECT MIN("3rd_runner_up") FROM "top_20_countries_by_tally" WHERE "4th_runner_up"<1 AND "5th_runner_up"=0 AND "miss_world"<2;
```
## Task
Generate a SQL query to answer the following question:
`Country/Territory of india, and a 4th Runner-up smaller than 1 has which lowest rank?`

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

CREATE TABLE "top_20_countries_by_tally" (
  "rank" real,
  "country_territory" text,
  "miss_world" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "5th_runner_up" real,
  "6th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Country/Territory of india, and a 4th Runner-up smaller than 1 has which lowest rank?`:
```sql
                SELECT MIN("rank") FROM "top_20_countries_by_tally" WHERE "country_territory"='india' AND "4th_runner_up"<1;
```
## Task
Generate a SQL query to answer the following question:
`Rank larger than 3, and a 6th Runner-up larger than 0, and a 5th Runner-up smaller than 1 has which lowest 1st Runner-up?`

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

CREATE TABLE "top_20_countries_by_tally" (
  "rank" real,
  "country_territory" text,
  "miss_world" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "5th_runner_up" real,
  "6th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Rank larger than 3, and a 6th Runner-up larger than 0, and a 5th Runner-up smaller than 1 has which lowest 1st Runner-up?`:
```sql
                SELECT MIN("1st_runner_up") FROM "top_20_countries_by_tally" WHERE "rank">3 AND "6th_runner_up">0 AND "5th_runner_up"<1;
```
## Task
Generate a SQL query to answer the following question:
`5th Runner-up smaller than 0 has the lowest semifinalists?`

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

CREATE TABLE "top_20_countries_by_tally" (
  "rank" real,
  "country_territory" text,
  "miss_world" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "5th_runner_up" real,
  "6th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `5th Runner-up smaller than 0 has the lowest semifinalists?`:
```sql
                SELECT MIN("semifinalists") FROM "top_20_countries_by_tally" WHERE "5th_runner_up"<0;
```
## Task
Generate a SQL query to answer the following question:
`3rd Runner-up of 2, and a Country/Territory of venezuela has what sum of 4th runner-up?`

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

CREATE TABLE "top_20_countries_by_tally" (
  "rank" real,
  "country_territory" text,
  "miss_world" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "5th_runner_up" real,
  "6th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `3rd Runner-up of 2, and a Country/Territory of venezuela has what sum of 4th runner-up?`:
```sql
                SELECT SUM("4th_runner_up") FROM "top_20_countries_by_tally" WHERE "3rd_runner_up"=2 AND "country_territory"='venezuela';
```
## Task
Generate a SQL query to answer the following question:
`2nd Runner-up larger than 4, and a Country/Territory of israel, and a 4th Runner-up smaller than 0 has which sum of 6th Runner-up?`

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

CREATE TABLE "top_20_countries_by_tally" (
  "rank" real,
  "country_territory" text,
  "miss_world" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "5th_runner_up" real,
  "6th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `2nd Runner-up larger than 4, and a Country/Territory of israel, and a 4th Runner-up smaller than 0 has which sum of 6th Runner-up?`:
```sql
                SELECT SUM("6th_runner_up") FROM "top_20_countries_by_tally" WHERE "2nd_runner_up">4 AND "country_territory"='israel' AND "4th_runner_up"<0;
```
## Task
Generate a SQL query to answer the following question:
`Who is the Runner-up that has a Season less than 2005?`

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

CREATE TABLE "finals" (
  "season" real,
  "winner" text,
  "score" text,
  "runner_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Runner-up that has a Season less than 2005?`:
```sql
                SELECT "runner_up" FROM "finals" WHERE "season"<2005;
```
## Task
Generate a SQL query to answer the following question:
`Which Seasonhas a Score of 3 – 3 aet , 4–3 pen?`

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

CREATE TABLE "finals" (
  "season" real,
  "winner" text,
  "score" text,
  "runner_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Seasonhas a Score of 3 – 3 aet , 4–3 pen?`:
```sql
                SELECT MAX("season") FROM "finals" WHERE "score"='3 – 3 aet , 4–3 pen';
```
## Task
Generate a SQL query to answer the following question:
`Which Season has a Score of 3 – 3 aet , 4–3 pen`

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

CREATE TABLE "finals" (
  "season" real,
  "winner" text,
  "score" text,
  "runner_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Season has a Score of 3 – 3 aet , 4–3 pen`:
```sql
                SELECT "season" FROM "finals" WHERE "score"='3 – 3 aet , 4–3 pen';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds had an overall of 211?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds had an overall of 211?`:
```sql
                SELECT COUNT("round") FROM "atlanta_falcons_draft_history" WHERE "overall"=211;
```
## Task
Generate a SQL query to answer the following question:
`What is the mean pick number for the cornerback position when the overall is less than 134?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mean pick number for the cornerback position when the overall is less than 134?`:
```sql
                SELECT AVG("pick_num") FROM "atlanta_falcons_draft_history" WHERE "position"='cornerback' AND "overall"<134;
```
## Task
Generate a SQL query to answer the following question:
`Which 1956 has a County of vâlcea, and a 2011 smaller than 371714?`

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

CREATE TABLE "see_also" (
  "county" text,
  "1948" real,
  "1956" real,
  "1966" real,
  "1977" real,
  "1992" real,
  "2002" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1956 has a County of vâlcea, and a 2011 smaller than 371714?`:
```sql
                SELECT SUM("1956") FROM "see_also" WHERE "county"='vâlcea' AND "2011"<371714;
```
## Task
Generate a SQL query to answer the following question:
`Which 2011 is the lowest one that has a 1948 smaller than 15872624, and a 1966 of 263103, and a 1992 larger than 266308?`

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

CREATE TABLE "see_also" (
  "county" text,
  "1948" real,
  "1956" real,
  "1966" real,
  "1977" real,
  "1992" real,
  "2002" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2011 is the lowest one that has a 1948 smaller than 15872624, and a 1966 of 263103, and a 1992 larger than 266308?`:
```sql
                SELECT MIN("2011") FROM "see_also" WHERE "1948"<15872624 AND "1966"=263103 AND "1992">266308;
```
## Task
Generate a SQL query to answer the following question:
`Which 1992 is the lowest one that has a 1977 smaller than 385577, and a 2011 larger than 340310, and a 2002 larger than 300123, and a 1948 larger than 280524?`

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

CREATE TABLE "see_also" (
  "county" text,
  "1948" real,
  "1956" real,
  "1966" real,
  "1977" real,
  "1992" real,
  "2002" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1992 is the lowest one that has a 1977 smaller than 385577, and a 2011 larger than 340310, and a 2002 larger than 300123, and a 1948 larger than 280524?`:
```sql
                SELECT MIN("1992") FROM "see_also" WHERE "1977"<385577 AND "2011">340310 AND "2002">300123 AND "1948">280524;
```
## Task
Generate a SQL query to answer the following question:
`Which 1977 is the lowest one that has a County of zzz bucharest, and a 2011 smaller than 1883425?`

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

CREATE TABLE "see_also" (
  "county" text,
  "1948" real,
  "1956" real,
  "1966" real,
  "1977" real,
  "1992" real,
  "2002" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1977 is the lowest one that has a County of zzz bucharest, and a 2011 smaller than 1883425?`:
```sql
                SELECT MIN("1977") FROM "see_also" WHERE "county"='zzz bucharest' AND "2011"<1883425;
```
## Task
Generate a SQL query to answer the following question:
`What is the site of the game that had an attendance of 54,040?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the site of the game that had an attendance of 54,040?`:
```sql
                SELECT "game_site" FROM "schedule" WHERE "attendance"='54,040';
```