cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What are the lowest entries for a front row smaller than 15 where Michael Schumacher was driving?`

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

CREATE TABLE "most_starts_from_front_row_in_a_season" (
  "driver" text,
  "season" text,
  "entries" real,
  "front_row_starts" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lowest entries for a front row smaller than 15 where Michael Schumacher was driving?`:
```sql
                SELECT MIN("entries") FROM "most_starts_from_front_row_in_a_season" WHERE "front_row_starts"<15 AND "driver"='michael schumacher';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest front row starts for Alain Prost?`

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

CREATE TABLE "most_starts_from_front_row_in_a_season" (
  "driver" text,
  "season" text,
  "entries" real,
  "front_row_starts" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest front row starts for Alain Prost?`:
```sql
                SELECT MAX("front_row_starts") FROM "most_starts_from_front_row_in_a_season" WHERE "driver"='alain prost';
```
## Task
Generate a SQL query to answer the following question:
`Which Against has Losses larger than 2, and Wins of 8, and Byes smaller than 0?`

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

CREATE TABLE "2009_ladder" (
  "ntfa_div_2" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Against has Losses larger than 2, and Wins of 8, and Byes smaller than 0?`:
```sql
                SELECT SUM("against") FROM "2009_ladder" WHERE "losses">2 AND "wins"=8 AND "byes"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Draws have Wins larger than 14?`

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

CREATE TABLE "2009_ladder" (
  "ntfa_div_2" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Draws have Wins larger than 14?`:
```sql
                SELECT SUM("draws") FROM "2009_ladder" WHERE "wins">14;
```
## Task
Generate a SQL query to answer the following question:
`How many Losses have an NTFA Div 2 of perth, and Wins smaller than 10?`

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

CREATE TABLE "2009_ladder" (
  "ntfa_div_2" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Losses have an NTFA Div 2 of perth, and Wins smaller than 10?`:
```sql
                SELECT COUNT("losses") FROM "2009_ladder" WHERE "ntfa_div_2"='perth' AND "wins"<10;
```
## Task
Generate a SQL query to answer the following question:
`Which Byes have an Against smaller than 1647, and an NTFA Div 2 of fingal valley, and Wins smaller than 14?`

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

CREATE TABLE "2009_ladder" (
  "ntfa_div_2" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Byes have an Against smaller than 1647, and an NTFA Div 2 of fingal valley, and Wins smaller than 14?`:
```sql
                SELECT MAX("byes") FROM "2009_ladder" WHERE "against"<1647 AND "ntfa_div_2"='fingal valley' AND "wins"<14;
```
## Task
Generate a SQL query to answer the following question:
`How many grids were there races with more than 10 laps and a time of +34.121?`

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

CREATE TABLE "sprint_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many grids were there races with more than 10 laps and a time of +34.121?`:
```sql
                SELECT COUNT("grid") FROM "sprint_race" WHERE "time"='+34.121' AND "laps">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest grid number that had 10 laps listed with Jonathan Summerton as the driver?`

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

CREATE TABLE "sprint_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest grid number that had 10 laps listed with Jonathan Summerton as the driver?`:
```sql
                SELECT MIN("grid") FROM "sprint_race" WHERE "laps"=10 AND "driver"='jonathan summerton';
```
## Task
Generate a SQL query to answer the following question:
`What is the average grid number that had Team China with less than 10 laps?`

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

CREATE TABLE "sprint_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average grid number that had Team China with less than 10 laps?`:
```sql
                SELECT AVG("grid") FROM "sprint_race" WHERE "laps"<10 AND "team"='china';
```
## Task
Generate a SQL query to answer the following question:
`Which Creator has the Latest stable release of unknown, and a Name of myeclipse?`

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

CREATE TABLE "general" (
  "name" text,
  "creator" text,
  "platform_os" text,
  "first_public_release" text,
  "latest_stable_release" text,
  "open_source" text,
  "programming_language_used" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Creator has the Latest stable release of unknown, and a Name of myeclipse?`:
```sql
                SELECT "creator" FROM "general" WHERE "latest_stable_release"='unknown' AND "name"='myeclipse';
```
## Task
Generate a SQL query to answer the following question:
`Which Platform / OS has a Name of altova umodel?`

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

CREATE TABLE "general" (
  "name" text,
  "creator" text,
  "platform_os" text,
  "first_public_release" text,
  "latest_stable_release" text,
  "open_source" text,
  "programming_language_used" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Platform / OS has a Name of altova umodel?`:
```sql
                SELECT "platform_os" FROM "general" WHERE "name"='altova umodel';
```
## Task
Generate a SQL query to answer the following question:
`Which Programming language used has a First public release of 1997?`

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

CREATE TABLE "general" (
  "name" text,
  "creator" text,
  "platform_os" text,
  "first_public_release" text,
  "latest_stable_release" text,
  "open_source" text,
  "programming_language_used" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Programming language used has a First public release of 1997?`:
```sql
                SELECT "programming_language_used" FROM "general" WHERE "first_public_release"='1997';
```
## Task
Generate a SQL query to answer the following question:
`Which First public release has a Name of rational software modeler?`

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

CREATE TABLE "general" (
  "name" text,
  "creator" text,
  "platform_os" text,
  "first_public_release" text,
  "latest_stable_release" text,
  "open_source" text,
  "programming_language_used" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which First public release has a Name of rational software modeler?`:
```sql
                SELECT "first_public_release" FROM "general" WHERE "name"='rational software modeler';
```
## Task
Generate a SQL query to answer the following question:
`What is the College of Rice's highest overall for the guard position?`

### 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 College of Rice's highest overall for the guard position?`:
```sql
                SELECT MAX("overall") FROM "atlanta_falcons_draft_history" WHERE "position"='guard' AND "college"='rice';
```
## Task
Generate a SQL query to answer the following question:
`What is Tommy Nobis' position that has fewer than 16 picks?`

### 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 Tommy Nobis' position that has fewer than 16 picks?`:
```sql
                SELECT "position" FROM "atlanta_falcons_draft_history" WHERE "pick_num"<16 AND "name"='tommy nobis';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the Rangers were playing against the Vancouver Canucks?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the Rangers were playing against the Vancouver Canucks?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "opponent"='vancouver canucks';
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents on January 27?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents on January 27?`:
```sql
                SELECT "opponent" FROM "schedule_and_results" WHERE "january"=27;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent for game number less than 47 and a record of 24-13-4?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent for game number less than 47 and a record of 24-13-4?`:
```sql
                SELECT "opponent" FROM "schedule_and_results" WHERE "game"<47 AND "record"='24-13-4';
```
## Task
Generate a SQL query to answer the following question:
`What is the average january number when the game number was higher than 39 and the opponent was the Vancouver Canucks?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average january number when the game number was higher than 39 and the opponent was the Vancouver Canucks?`:
```sql
                SELECT AVG("january") FROM "schedule_and_results" WHERE "opponent"='vancouver canucks' AND "game">39;
```
## Task
Generate a SQL query to answer the following question:
`What is the Drawn number with a Points against of correct as of 08:50 10 may 2009?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Drawn number with a Points against of correct as of 08:50 10 may 2009?`:
```sql
                SELECT "drawn" FROM "2008_2009_table" WHERE "points_against"='correct as of 08:50 10 may 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tries against when lost shows 12 for pontycymmer rfc?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tries against when lost shows 12 for pontycymmer rfc?`:
```sql
                SELECT "tries_against" FROM "2008_2009_table" WHERE "lost"='12' AND "club"='pontycymmer rfc';
```
## Task
Generate a SQL query to answer the following question:
`What is the Points against for the ystradgynlais rfc club?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Points against for the ystradgynlais rfc club?`:
```sql
                SELECT "points_against" FROM "2008_2009_table" WHERE "club"='ystradgynlais rfc';
```
## Task
Generate a SQL query to answer the following question:
`What is the Club name what shows 405 for the Points against?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Club name what shows 405 for the Points against?`:
```sql
                SELECT "club" FROM "2008_2009_table" WHERE "points_against"='405';
```
## Task
Generate a SQL query to answer the following question:
`What shows for Try bonus when the points against are 451?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for Try bonus when the points against are 451?`:
```sql
                SELECT "try_bonus" FROM "2008_2009_table" WHERE "points_against"='451';
```
## Task
Generate a SQL query to answer the following question:
`Which Pos has a Make of chevrolet, and a Driver of jack sprague, and a Car # smaller than 2?`

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

CREATE TABLE "o_reilly_200_memphis" (
  "pos" real,
  "car_num" real,
  "driver" text,
  "make" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pos has a Make of chevrolet, and a Driver of jack sprague, and a Car # smaller than 2?`:
```sql
                SELECT SUM("pos") FROM "o_reilly_200_memphis" WHERE "make"='chevrolet' AND "driver"='jack sprague' AND "car_num"<2;
```
## Task
Generate a SQL query to answer the following question:
`How many Car numbers have a Driver of erik darnell, and a Pos smaller than 2?`

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

CREATE TABLE "o_reilly_200_memphis" (
  "pos" real,
  "car_num" real,
  "driver" text,
  "make" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Car numbers have a Driver of erik darnell, and a Pos smaller than 2?`:
```sql
                SELECT COUNT("car_num") FROM "o_reilly_200_memphis" WHERE "driver"='erik darnell' AND "pos"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which Pos has a Car # of 33?`

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

CREATE TABLE "o_reilly_200_memphis" (
  "pos" real,
  "car_num" real,
  "driver" text,
  "make" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pos has a Car # of 33?`:
```sql
                SELECT SUM("pos") FROM "o_reilly_200_memphis" WHERE "car_num"=33;
```
## Task
Generate a SQL query to answer the following question:
`Which Pos has a Team of circle bar racing, and a Car # smaller than 14?`

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

CREATE TABLE "o_reilly_200_memphis" (
  "pos" real,
  "car_num" real,
  "driver" text,
  "make" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pos has a Team of circle bar racing, and a Car # smaller than 14?`:
```sql
                SELECT MAX("pos") FROM "o_reilly_200_memphis" WHERE "team"='circle bar racing' AND "car_num"<14;
```
## Task
Generate a SQL query to answer the following question:
`Which Pos has a Car # larger than 2, and a Team of billy ballew motorsports?`

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

CREATE TABLE "o_reilly_200_memphis" (
  "pos" real,
  "car_num" real,
  "driver" text,
  "make" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pos has a Car # larger than 2, and a Team of billy ballew motorsports?`:
```sql
                SELECT AVG("pos") FROM "o_reilly_200_memphis" WHERE "car_num">2 AND "team"='billy ballew motorsports';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest points that has 135 as 2nd (m)?`

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

CREATE TABLE "engelberg" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest points that has 135 as 2nd (m)?`:
```sql
                SELECT MIN("points") FROM "engelberg" WHERE "2nd_m"=135;
```
## Task
Generate a SQL query to answer the following question:
`What is the overall WC points (rank) that has 139 as the 2nd (m)?`

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

CREATE TABLE "engelberg" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the overall WC points (rank) that has 139 as the 2nd (m)?`:
```sql
                SELECT "overall_wc_points_rank" FROM "engelberg" WHERE "2nd_m"=139;
```
## Task
Generate a SQL query to answer the following question:
`How many 2nd (m) have aut as the nationality, with 4 as the rank, and a 1st less than 122.5?`

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

CREATE TABLE "engelberg" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many 2nd (m) have aut as the nationality, with 4 as the rank, and a 1st less than 122.5?`:
```sql
                SELECT SUM("2nd_m") FROM "engelberg" WHERE "nationality"='aut' AND "rank"=4 AND "1st_m"<122.5;
```
## Task
Generate a SQL query to answer the following question:
`What name has a 1st (m) greater than 124.5, and a 2nd (m) greater than 136?`

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

CREATE TABLE "engelberg" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name has a 1st (m) greater than 124.5, and a 2nd (m) greater than 136?`:
```sql
                SELECT "name" FROM "engelberg" WHERE "1st_m">124.5 AND "2nd_m">136;
```
## Task
Generate a SQL query to answer the following question:
`What Rank is the Director(s) of satoko okita?`

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

CREATE TABLE "2004_2005" (
  "rank" text,
  "film" text,
  "director_s" text,
  "country" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Rank is the Director(s) of satoko okita?`:
```sql
                SELECT "rank" FROM "2004_2005" WHERE "director_s"='satoko okita';
```
## Task
Generate a SQL query to answer the following question:
`What country is the film hi no tsugi ha rekishi from?`

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

CREATE TABLE "2004_2005" (
  "rank" text,
  "film" text,
  "director_s" text,
  "country" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is the film hi no tsugi ha rekishi from?`:
```sql
                SELECT "country" FROM "2004_2005" WHERE "film"='hi no tsugi ha rekishi';
```
## Task
Generate a SQL query to answer the following question:
`Which Director(s) made the film hanzubon no ojisan and received a prize of ¥300,000?`

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

CREATE TABLE "2004_2005" (
  "rank" text,
  "film" text,
  "director_s" text,
  "country" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Director(s) made the film hanzubon no ojisan and received a prize of ¥300,000?`:
```sql
                SELECT "director_s" FROM "2004_2005" WHERE "prize"='¥300,000' AND "film"='hanzubon no ojisan';
```
## Task
Generate a SQL query to answer the following question:
`Which country did the Director(s) of kota nagaoka come from and win ¥300,000?`

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

CREATE TABLE "2004_2005" (
  "rank" text,
  "film" text,
  "director_s" text,
  "country" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country did the Director(s) of kota nagaoka come from and win ¥300,000?`:
```sql
                SELECT "country" FROM "2004_2005" WHERE "prize"='¥300,000' AND "director_s"='kota nagaoka';
```
## Task
Generate a SQL query to answer the following question:
`What Director won a prize of ¥2,000,000?`

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

CREATE TABLE "2004_2005" (
  "rank" text,
  "film" text,
  "director_s" text,
  "country" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Director won a prize of ¥2,000,000?`:
```sql
                SELECT "director_s" FROM "2004_2005" WHERE "prize"='¥2,000,000';
```
## Task
Generate a SQL query to answer the following question:
`What Rank is the director of maximilian jezo-parovsky?`

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

CREATE TABLE "2004_2005" (
  "rank" text,
  "film" text,
  "director_s" text,
  "country" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Rank is the director of maximilian jezo-parovsky?`:
```sql
                SELECT "rank" FROM "2004_2005" WHERE "director_s"='maximilian jezo-parovsky';
```
## Task
Generate a SQL query to answer the following question:
`Who had the most high assists from Milwaukee?`

### 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 `Who had the most high assists from Milwaukee?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "team"='milwaukee';
```
## Task
Generate a SQL query to answer the following question:
`Who scored the most point on December 13?`

### 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 `Who scored the most point on December 13?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "date"='december 13';
```
## Task
Generate a SQL query to answer the following question:
`What's the Loss for the game that had a 22-24 record?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Loss for the game that had a 22-24 record?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='22-24';
```
## Task
Generate a SQL query to answer the following question:
`What was the date that Elvir Krehmic made a high jump record?`

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

CREATE TABLE "men" (
  "nation" text,
  "height" text,
  "athlete" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date that Elvir Krehmic made a high jump record?`:
```sql
                SELECT "date" FROM "men" WHERE "athlete"='elvir krehmic';
```
## Task
Generate a SQL query to answer the following question:
`Which spine has 12 issues?`

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

CREATE TABLE "other_bibliographic_details" (
  "start_month" text,
  "end_month" text,
  "cover" text,
  "spine" text,
  "indicia" text,
  "masthead" text,
  "number_of_issues" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which spine has 12 issues?`:
```sql
                SELECT "spine" FROM "other_bibliographic_details" WHERE "number_of_issues"=12;
```
## Task
Generate a SQL query to answer the following question:
`How many issues end on jan–72?`

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

CREATE TABLE "other_bibliographic_details" (
  "start_month" text,
  "end_month" text,
  "cover" text,
  "spine" text,
  "indicia" text,
  "masthead" text,
  "number_of_issues" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many issues end on jan–72?`:
```sql
                SELECT SUM("number_of_issues") FROM "other_bibliographic_details" WHERE "end_month"='jan–72';
```
## Task
Generate a SQL query to answer the following question:
`Which masthead ends on oct–69?`

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

CREATE TABLE "other_bibliographic_details" (
  "start_month" text,
  "end_month" text,
  "cover" text,
  "spine" text,
  "indicia" text,
  "masthead" text,
  "number_of_issues" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which masthead ends on oct–69?`:
```sql
                SELECT "masthead" FROM "other_bibliographic_details" WHERE "end_month"='oct–69';
```
## Task
Generate a SQL query to answer the following question:
`What is the game number held on May 2?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game number held on May 2?`:
```sql
                SELECT AVG("game") FROM "playoffs" WHERE "date"='may 2';
```
## Task
Generate a SQL query to answer the following question:
`Which Season has a Postseason of promoted runner-up?`

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

CREATE TABLE "season_by_season" (
  "season" text,
  "tier" real,
  "division" text,
  "pos" real,
  "postseason" text,
  "cup_competitions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Season has a Postseason of promoted runner-up?`:
```sql
                SELECT "season" FROM "season_by_season" WHERE "postseason"='promoted runner-up';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the match with a record 20-11?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance of the match with a record 20-11?`:
```sql
                SELECT "attendance" FROM "game_log" WHERE "record"='20-11';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the match with a 28-15 record?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the match with a 28-15 record?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='28-15';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent did they play against on April 16?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent did they play against on April 16?`:
```sql
                SELECT "opponent" FROM "playoffs" WHERE "date"='april 16';
```
## Task
Generate a SQL query to answer the following question:
`What circuit was after round 2 in Victoria?`

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

CREATE TABLE "calendar" (
  "round" real,
  "circuit" text,
  "state_territory" text,
  "date" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What circuit was after round 2 in Victoria?`:
```sql
                SELECT "circuit" FROM "calendar" WHERE "round">2 AND "state_territory"='victoria';
```
## Task
Generate a SQL query to answer the following question:
`What is the state the winning driver Jamie Whincup from in round 2?`

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

CREATE TABLE "calendar" (
  "round" real,
  "circuit" text,
  "state_territory" text,
  "date" text,
  "winning_driver" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the state the winning driver Jamie Whincup from in round 2?`:
```sql
                SELECT "state_territory" FROM "calendar" WHERE "winning_driver"='jamie whincup' AND "round"=2;
```
## Task
Generate a SQL query to answer the following question:
`What date in October did the Flyers play against the Toronto Maple Leafs?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date in October did the Flyers play against the Toronto Maple Leafs?`:
```sql
                SELECT "october" FROM "regular_season" WHERE "opponent"='toronto maple leafs';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game that had more than 8 points?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game that had more than 8 points?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "points">8;
```
## Task
Generate a SQL query to answer the following question:
`The round that had the final, what was the result?`

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

CREATE TABLE "results" (
  "event" text,
  "round" text,
  "result" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `The round that had the final, what was the result?`:
```sql
                SELECT "result" FROM "results" WHERE "round"='final';
```
## Task
Generate a SQL query to answer the following question:
`Opponent of andry laffita had what score?`

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

CREATE TABLE "results" (
  "event" text,
  "round" text,
  "result" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Opponent of andry laffita had what score?`:
```sql
                SELECT "score" FROM "results" WHERE "opponent"='andry laffita';
```
## Task
Generate a SQL query to answer the following question:
`Opponent of igor samoilenco had what result?`

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

CREATE TABLE "results" (
  "event" text,
  "round" text,
  "result" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Opponent of igor samoilenco had what result?`:
```sql
                SELECT "result" FROM "results" WHERE "opponent"='igor samoilenco';
```
## Task
Generate a SQL query to answer the following question:
`Score of 33-22 had what round?`

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

CREATE TABLE "results" (
  "event" text,
  "round" text,
  "result" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Score of 33-22 had what round?`:
```sql
                SELECT "round" FROM "results" WHERE "score"='33-22';
```
## Task
Generate a SQL query to answer the following question:
`Round of first had what opponent?`

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

CREATE TABLE "results" (
  "event" text,
  "round" text,
  "result" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Round of first had what opponent?`:
```sql
                SELECT "opponent" FROM "results" WHERE "round"='first';
```
## Task
Generate a SQL query to answer the following question:
`Result of win, and a Score of 33-22 involved what event?`

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

CREATE TABLE "results" (
  "event" text,
  "round" text,
  "result" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Result of win, and a Score of 33-22 involved what event?`:
```sql
                SELECT "event" FROM "results" WHERE "result"='win' AND "score"='33-22';
```
## Task
Generate a SQL query to answer the following question:
`What were the lowest points of game 60?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the lowest points of game 60?`:
```sql
                SELECT MIN("points") FROM "regular_season" WHERE "game"=60;
```
## Task
Generate a SQL query to answer the following question:
`What championship had Francesca Schiavone in the finals?`

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

CREATE TABLE "singles_5_2_3" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What championship had Francesca Schiavone in the finals?`:
```sql
                SELECT "championship" FROM "singles_5_2_3" WHERE "opponent_in_the_final"='francesca schiavone';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of national titles for the team with doane tigers as the mascot?`

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

CREATE TABLE "college_sports" (
  "school" text,
  "mascot" text,
  "conference" text,
  "national_titles" real,
  "founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of national titles for the team with doane tigers as the mascot?`:
```sql
                SELECT COUNT("national_titles") FROM "college_sports" WHERE "mascot"='doane tigers';
```
## Task
Generate a SQL query to answer the following question:
`Which year's crew is varsity 8+ when the record is 7-3?`

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

CREATE TABLE "season_by_season_results" (
  "year" text,
  "coach" text,
  "crew" text,
  "record" text,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which year's crew is varsity 8+ when the record is 7-3?`:
```sql
                SELECT "year" FROM "season_by_season_results" WHERE "crew"='varsity 8+' AND "record"='7-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of win % when John Gartin is coach, the crew is varsity 8+, and the year is 2005?`

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

CREATE TABLE "season_by_season_results" (
  "year" text,
  "coach" text,
  "crew" text,
  "record" text,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of win % when John Gartin is coach, the crew is varsity 8+, and the year is 2005?`:
```sql
                SELECT SUM("win_pct") FROM "season_by_season_results" WHERE "coach"='john gartin' AND "crew"='varsity 8+' AND "year"='2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest win percentage when John Gartin is coach, the record is 11-0, and the year is 2009?`

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

CREATE TABLE "season_by_season_results" (
  "year" text,
  "coach" text,
  "crew" text,
  "record" text,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest win percentage when John Gartin is coach, the record is 11-0, and the year is 2009?`:
```sql
                SELECT MAX("win_pct") FROM "season_by_season_results" WHERE "coach"='john gartin' AND "record"='11-0' AND "year"='2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the total of win percentages when the year is 2008 and the crew is varsity 8+?`

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

CREATE TABLE "season_by_season_results" (
  "year" text,
  "coach" text,
  "crew" text,
  "record" text,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of win percentages when the year is 2008 and the crew is varsity 8+?`:
```sql
                SELECT SUM("win_pct") FROM "season_by_season_results" WHERE "year"='2008' AND "crew"='varsity 8+';
```
## Task
Generate a SQL query to answer the following question:
`What is the pick number for the tight end who was picked after round 6?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number for the tight end who was picked after round 6?`:
```sql
                SELECT COUNT("pick") FROM "nfl_draft" WHERE "round">6 AND "position"='tight end';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest round for the player whose position is guard and had a pick number smaller than 144?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round for the player whose position is guard and had a pick number smaller than 144?`:
```sql
                SELECT MIN("round") FROM "nfl_draft" WHERE "position"='guard' AND "pick"<144;
```
## Task
Generate a SQL query to answer the following question:
`What was the position of terry jones whose pick number was after 256?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position of terry jones whose pick number was after 256?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "pick">256 AND "player"='terry jones';
```
## Task
Generate a SQL query to answer the following question:
`Which Loss has a Record of 30-32?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Loss has a Record of 30-32?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='30-32';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance is the highest one that has a Record of 37-38?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance is the highest one that has a Record of 37-38?`:
```sql
                SELECT MAX("attendance") FROM "game_log" WHERE "record"='37-38';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Loss of buehrle (7-2)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Loss of buehrle (7-2)?`:
```sql
                SELECT "score" FROM "game_log" WHERE "loss"='buehrle (7-2)';
```
## Task
Generate a SQL query to answer the following question:
`Which Overall is the average one that has a Pick # larger than 7, and a Round larger than 4, and a Name of glen howe?`

### 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 `Which Overall is the average one that has a Pick # larger than 7, and a Round larger than 4, and a Name of glen howe?`:
```sql
                SELECT AVG("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num">7 AND "round">4 AND "name"='glen howe';
```
## Task
Generate a SQL query to answer the following question:
`Which Round is the lowest one that has a Pick # larger than 10, and a Position of tight end, and an Overall smaller than 132?`

### 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 `Which Round is the lowest one that has a Pick # larger than 10, and a Position of tight end, and an Overall smaller than 132?`:
```sql
                SELECT MIN("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num">10 AND "position"='tight end' AND "overall"<132;
```
## Task
Generate a SQL query to answer the following question:
`Which Round is the highest one that has an Overall of 32, and a Pick # smaller than 4?`

### 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 `Which Round is the highest one that has an Overall of 32, and a Pick # smaller than 4?`:
```sql
                SELECT MAX("round") FROM "atlanta_falcons_draft_history" WHERE "overall"=32 AND "pick_num"<4;
```
## Task
Generate a SQL query to answer the following question:
`How many Picks have a Round larger than 8, and a College of fresno state?`

### 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 Picks have a Round larger than 8, and a College of fresno state?`:
```sql
                SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "round">8 AND "college"='fresno state';
```
## Task
Generate a SQL query to answer the following question:
`Which Overall is the highest one that has a College of oklahoma, and a Pick # smaller than 4?`

### 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 `Which Overall is the highest one that has a College of oklahoma, and a Pick # smaller than 4?`:
```sql
                SELECT MAX("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='oklahoma' AND "pick_num"<4;
```