cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Adam's score when Peter's score is less than 3 and the plat'num is greater than 6?`

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

CREATE TABLE "the_boys" (
  "discipline" text,
  "peter" real,
  "adam" real,
  "jade" real,
  "plat_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Adam's score when Peter's score is less than 3 and the plat'num is greater than 6?`:
```sql
                SELECT MIN("adam") FROM "the_boys" WHERE "peter"<3 AND "plat_num">6;
```
## Task
Generate a SQL query to answer the following question:
`Peter has a score greater than 5 in speed skating, what is the plat'num?`

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

CREATE TABLE "the_boys" (
  "discipline" text,
  "peter" real,
  "adam" real,
  "jade" real,
  "plat_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `Peter has a score greater than 5 in speed skating, what is the plat'num?`:
```sql
                SELECT MIN("plat_num") FROM "the_boys" WHERE "discipline"='speed skating' AND "peter">5;
```
## Task
Generate a SQL query to answer the following question:
`What's Adam's score when Jade's score is greater than 5 and Peter's score is less than 0?`

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

CREATE TABLE "the_boys" (
  "discipline" text,
  "peter" real,
  "adam" real,
  "jade" real,
  "plat_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's Adam's score when Jade's score is greater than 5 and Peter's score is less than 0?`:
```sql
                SELECT AVG("adam") FROM "the_boys" WHERE "jade">5 AND "peter"<0;
```
## Task
Generate a SQL query to answer the following question:
`Old Scotch had less than 9 losses and how much against?`

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

CREATE TABLE "2012_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 `Old Scotch had less than 9 losses and how much against?`:
```sql
                SELECT SUM("against") FROM "2012_ladder" WHERE "losses"<9 AND "ntfa_div_2"='old scotch';
```
## Task
Generate a SQL query to answer the following question:
`Of the teams that had more than 0 byes, what was the total number of losses?`

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

CREATE TABLE "2012_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 `Of the teams that had more than 0 byes, what was the total number of losses?`:
```sql
                SELECT COUNT("losses") FROM "2012_ladder" WHERE "byes"<0;
```
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent in the 20th district?`

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

CREATE TABLE "election_results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the incumbent in the 20th district?`:
```sql
                SELECT "incumbent" FROM "election_results" WHERE "district"='20th';
```
## Task
Generate a SQL query to answer the following question:
`Which party has the 6th district?`

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

CREATE TABLE "election_results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party has the 6th district?`:
```sql
                SELECT "party" FROM "election_results" WHERE "district"='6th';
```
## Task
Generate a SQL query to answer the following question:
`Which party has Ken Cuccinelli as an incumbent?`

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

CREATE TABLE "election_results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party has Ken Cuccinelli as an incumbent?`:
```sql
                SELECT "party" FROM "election_results" WHERE "incumbent"='ken cuccinelli';
```
## Task
Generate a SQL query to answer the following question:
`Which party was elected in 2003 with incumbent Mark Obenshain?`

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

CREATE TABLE "election_results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party was elected in 2003 with incumbent Mark Obenshain?`:
```sql
                SELECT "party" FROM "election_results" WHERE "elected"=2003 AND "incumbent"='mark obenshain';
```
## Task
Generate a SQL query to answer the following question:
`Which incumbent was in the 24th district?`

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

CREATE TABLE "election_results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which incumbent was in the 24th district?`:
```sql
                SELECT "incumbent" FROM "election_results" WHERE "district"='24th';
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of laps for mi-jack conquest racing and points less than 11`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of laps for mi-jack conquest racing and points less than 11`:
```sql
                SELECT SUM("laps") FROM "race" WHERE "team"='mi-jack conquest racing' AND "points"<11;
```
## Task
Generate a SQL query to answer the following question:
`Name the points with grid more than 8 and time/retired of +47.487 secs`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points with grid more than 8 and time/retired of +47.487 secs`:
```sql
                SELECT "points" FROM "race" WHERE "grid">8 AND "time_retired"='+47.487 secs';
```
## Task
Generate a SQL query to answer the following question:
`Name the team with laps of 97 and grid of 3`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team with laps of 97 and grid of 3`:
```sql
                SELECT "team" FROM "race" WHERE "laps"=97 AND "grid"=3;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of grid with laps more than 97`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of grid with laps more than 97`:
```sql
                SELECT SUM("grid") FROM "race" WHERE "laps">97;
```
## Task
Generate a SQL query to answer the following question:
`What are the most wins in 1971 in 250cc class?`

### 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 are the most wins in 1971 in 250cc class?`:
```sql
                SELECT MAX("wins") FROM "grand_prix_motorcycle_racing_results" WHERE "class"='250cc' AND "year"=1971;
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year with less than 45 points for Yamaha team in 21st rank?`

### 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 is the earliest year with less than 45 points for Yamaha team in 21st rank?`:
```sql
                SELECT MIN("year") FROM "grand_prix_motorcycle_racing_results" WHERE "points"<45 AND "team"='yamaha' AND "rank"='21st';
```
## Task
Generate a SQL query to answer the following question:
`How many Ends Won have Blank Ends smaller than 14, and a Locale of manitoba, and Stolen Ends larger than 13?`

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

CREATE TABLE "round_robin_standings" (
  "locale" text,
  "skip" text,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Ends Won have Blank Ends smaller than 14, and a Locale of manitoba, and Stolen Ends larger than 13?`:
```sql
                SELECT SUM("ends_won") FROM "round_robin_standings" WHERE "blank_ends"<14 AND "locale"='manitoba' AND "stolen_ends">13;
```
## Task
Generate a SQL query to answer the following question:
`Which Skip has Ends Lost larger than 44, and Blank Ends of 10?`

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

CREATE TABLE "round_robin_standings" (
  "locale" text,
  "skip" text,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Skip has Ends Lost larger than 44, and Blank Ends of 10?`:
```sql
                SELECT "skip" FROM "round_robin_standings" WHERE "ends_lost">44 AND "blank_ends"=10;
```
## Task
Generate a SQL query to answer the following question:
`How many Stolen Ends have Ends Lost smaller than 44, and Blank Ends smaller than 7?`

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

CREATE TABLE "round_robin_standings" (
  "locale" text,
  "skip" text,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Stolen Ends have Ends Lost smaller than 44, and Blank Ends smaller than 7?`:
```sql
                SELECT COUNT("stolen_ends") FROM "round_robin_standings" WHERE "ends_lost"<44 AND "blank_ends"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the current status for GM Advanced Design with more than 41 seats?`

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

CREATE TABLE "historical_fleet" (
  "make" text,
  "year_placed_in_service" text,
  "quantity" real,
  "number_of_seats" real,
  "wheelchair_accessible" text,
  "current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the current status for GM Advanced Design with more than 41 seats?`:
```sql
                SELECT "current_status" FROM "historical_fleet" WHERE "make"='gm advanced design' AND "number_of_seats">41;
```
## Task
Generate a SQL query to answer the following question:
`What is the quantity with more than 45 seats and MCI make?`

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

CREATE TABLE "historical_fleet" (
  "make" text,
  "year_placed_in_service" text,
  "quantity" real,
  "number_of_seats" real,
  "wheelchair_accessible" text,
  "current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the quantity with more than 45 seats and MCI make?`:
```sql
                SELECT "quantity" FROM "historical_fleet" WHERE "number_of_seats">45 AND "make"='mci';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number of seats with more than 32 of a MCI make?`

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

CREATE TABLE "historical_fleet" (
  "make" text,
  "year_placed_in_service" text,
  "quantity" real,
  "number_of_seats" real,
  "wheelchair_accessible" text,
  "current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of seats with more than 32 of a MCI make?`:
```sql
                SELECT MAX("number_of_seats") FROM "historical_fleet" WHERE "make"='mci' AND "quantity">32;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of seats in a vehicle currently retired and in quantities less than 8?`

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

CREATE TABLE "historical_fleet" (
  "make" text,
  "year_placed_in_service" text,
  "quantity" real,
  "number_of_seats" real,
  "wheelchair_accessible" text,
  "current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of seats in a vehicle currently retired and in quantities less than 8?`:
```sql
                SELECT MIN("number_of_seats") FROM "historical_fleet" WHERE "current_status"='retired' AND "quantity"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of seats in a retired vehicle that was started in service in 1981?`

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

CREATE TABLE "historical_fleet" (
  "make" text,
  "year_placed_in_service" text,
  "quantity" real,
  "number_of_seats" real,
  "wheelchair_accessible" text,
  "current_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of seats in a retired vehicle that was started in service in 1981?`:
```sql
                SELECT MIN("number_of_seats") FROM "historical_fleet" WHERE "current_status"='retired' AND "year_placed_in_service"='1981';
```
## Task
Generate a SQL query to answer the following question:
`What is Trevard Lindley's height?`

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

CREATE TABLE "middle_tennessee" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" text,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Trevard Lindley's height?`:
```sql
                SELECT "height" FROM "middle_tennessee" WHERE "name"='trevard lindley';
```
## Task
Generate a SQL query to answer the following question:
`What is Ashton Cobb's class in Game 2?`

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

CREATE TABLE "middle_tennessee" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" text,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Ashton Cobb's class in Game 2?`:
```sql
                SELECT "class" FROM "middle_tennessee" WHERE "games"=2 AND "name"='ashton cobb';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest game with a position of Re and a smaller number than 95?`

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

CREATE TABLE "middle_tennessee" (
  "position" text,
  "number" real,
  "name" text,
  "height" text,
  "weight" text,
  "class" text,
  "hometown" text,
  "games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest game with a position of Re and a smaller number than 95?`:
```sql
                SELECT MIN("games") FROM "middle_tennessee" WHERE "position"='re' AND "number"<95;
```
## Task
Generate a SQL query to answer the following question:
`Which Seattle quarterback has more than 81 career wins and less than 70 team wins?`

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

CREATE TABLE "quarterbacks_ranked_by_regular_season_wi" (
  "rank" real,
  "quarterback" text,
  "seasons" text,
  "teams" text,
  "team_wins" real,
  "team_losses" real,
  "career_wins" real,
  "career_losses" real,
  "ties" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Seattle quarterback has more than 81 career wins and less than 70 team wins?`:
```sql
                SELECT "quarterback" FROM "quarterbacks_ranked_by_regular_season_wi" WHERE "career_wins">81 AND "teams"='seattle' AND "team_wins"<70;
```
## Task
Generate a SQL query to answer the following question:
`What is Mike Harris' lowest overall?`

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

CREATE TABLE "jacksonville_jaguars_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 Mike Harris' lowest overall?`:
```sql
                SELECT MIN("overall") FROM "jacksonville_jaguars_draft_history" WHERE "name"='mike harris';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest pick # that has a 228 overall and a round less than 7?`

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

CREATE TABLE "jacksonville_jaguars_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 highest pick # that has a 228 overall and a round less than 7?`:
```sql
                SELECT MAX("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "overall"=228 AND "round"<7;
```
## Task
Generate a SQL query to answer the following question:
`What value has negative infinity?`

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

CREATE TABLE "examples" (
  "type" text,
  "actual_exponent" text,
  "exp_biased" text,
  "exponent_field" text,
  "significand_fraction_field" text,
  "value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What value has negative infinity?`:
```sql
                SELECT "value" FROM "examples" WHERE "type"='negative infinity';
```
## Task
Generate a SQL query to answer the following question:
`What's the exponent field that has 255 exp and value of +∞?`

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

CREATE TABLE "examples" (
  "type" text,
  "actual_exponent" text,
  "exp_biased" text,
  "exponent_field" text,
  "significand_fraction_field" text,
  "value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the exponent field that has 255 exp and value of +∞?`:
```sql
                SELECT "exponent_field" FROM "examples" WHERE "exp_biased"='255' AND "value"='+∞';
```
## Task
Generate a SQL query to answer the following question:
`What's the type of 0.0 value?`

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

CREATE TABLE "examples" (
  "type" text,
  "actual_exponent" text,
  "exp_biased" text,
  "exponent_field" text,
  "significand_fraction_field" text,
  "value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the type of 0.0 value?`:
```sql
                SELECT "type" FROM "examples" WHERE "value"='0.0';
```
## Task
Generate a SQL query to answer the following question:
`What's the Significant of a value 1.0?`

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

CREATE TABLE "examples" (
  "type" text,
  "actual_exponent" text,
  "exp_biased" text,
  "exponent_field" text,
  "significand_fraction_field" text,
  "value" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Significant of a value 1.0?`:
```sql
                SELECT "significand_fraction_field" FROM "examples" WHERE "value"='1.0';
```
## Task
Generate a SQL query to answer the following question:
`4th career/salary of navigator ($90,000-degree) involves what 3rd career/salary?`

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

CREATE TABLE "careers" (
  "career_card" text,
  "starting_career_salary" text,
  "2nd_career_salary" text,
  "3rd_career_salary" text,
  "4th_career_salary" text,
  "5th_career_salary" text,
  "6th_career_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `4th career/salary of navigator ($90,000-degree) involves what 3rd career/salary?`:
```sql
                SELECT "3rd_career_salary" FROM "careers" WHERE "4th_career_salary"='navigator ($90,000-degree)';
```
## Task
Generate a SQL query to answer the following question:
`5th career/salary of automotive designer ($350,000-degree) had what career card?`

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

CREATE TABLE "careers" (
  "career_card" text,
  "starting_career_salary" text,
  "2nd_career_salary" text,
  "3rd_career_salary" text,
  "4th_career_salary" text,
  "5th_career_salary" text,
  "6th_career_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `5th career/salary of automotive designer ($350,000-degree) had what career card?`:
```sql
                SELECT "career_card" FROM "careers" WHERE "5th_career_salary"='automotive designer ($350,000-degree)';
```
## Task
Generate a SQL query to answer the following question:
`2nd career/salary of substitute teacher ($20,000) involves what 6th career/salary?`

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

CREATE TABLE "careers" (
  "career_card" text,
  "starting_career_salary" text,
  "2nd_career_salary" text,
  "3rd_career_salary" text,
  "4th_career_salary" text,
  "5th_career_salary" text,
  "6th_career_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `2nd career/salary of substitute teacher ($20,000) involves what 6th career/salary?`:
```sql
                SELECT "6th_career_salary" FROM "careers" WHERE "2nd_career_salary"='substitute teacher ($20,000)';
```
## Task
Generate a SQL query to answer the following question:
`6th career/salary of design consultant ($500,000-degree) involves what 3rd career/salary?`

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

CREATE TABLE "careers" (
  "career_card" text,
  "starting_career_salary" text,
  "2nd_career_salary" text,
  "3rd_career_salary" text,
  "4th_career_salary" text,
  "5th_career_salary" text,
  "6th_career_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `6th career/salary of design consultant ($500,000-degree) involves what 3rd career/salary?`:
```sql
                SELECT "3rd_career_salary" FROM "careers" WHERE "6th_career_salary"='design consultant ($500,000-degree)';
```
## Task
Generate a SQL query to answer the following question:
`4th career/salary of clown ($80,000) had what 2nd career/salary?`

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

CREATE TABLE "careers" (
  "career_card" text,
  "starting_career_salary" text,
  "2nd_career_salary" text,
  "3rd_career_salary" text,
  "4th_career_salary" text,
  "5th_career_salary" text,
  "6th_career_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `4th career/salary of clown ($80,000) had what 2nd career/salary?`:
```sql
                SELECT "2nd_career_salary" FROM "careers" WHERE "4th_career_salary"='clown ($80,000)';
```
## Task
Generate a SQL query to answer the following question:
`5th career/salary of restaurant manager ($250,000) had what 2nd career/salary?`

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

CREATE TABLE "careers" (
  "career_card" text,
  "starting_career_salary" text,
  "2nd_career_salary" text,
  "3rd_career_salary" text,
  "4th_career_salary" text,
  "5th_career_salary" text,
  "6th_career_salary" text
);
### SQL
Given the database schema, here is the SQL query that answers `5th career/salary of restaurant manager ($250,000) had what 2nd career/salary?`:
```sql
                SELECT "2nd_career_salary" FROM "careers" WHERE "5th_career_salary"='restaurant manager ($250,000)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest round of the pick #8 player with an overall greater than 72 from the college of temple?`

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

CREATE TABLE "jacksonville_jaguars_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 lowest round of the pick #8 player with an overall greater than 72 from the college of temple?`:
```sql
                SELECT MIN("round") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num"=8 AND "college"='temple' AND "overall">72;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall of the wide receiver player from a round higher than 5 and a pick lower than 7?`

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

CREATE TABLE "jacksonville_jaguars_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 lowest overall of the wide receiver player from a round higher than 5 and a pick lower than 7?`:
```sql
                SELECT MIN("overall") FROM "jacksonville_jaguars_draft_history" WHERE "position"='wide receiver' AND "round"<5 AND "pick_num">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the overall of the running back player?`

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

CREATE TABLE "jacksonville_jaguars_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 overall of the running back player?`:
```sql
                SELECT "overall" FROM "jacksonville_jaguars_draft_history" WHERE "position"='running back';
```
## Task
Generate a SQL query to answer the following question:
`What is the general classification when the team classification is japan?`

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

CREATE TABLE "classification_leadership" (
  "stage" text,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "malaysian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the general classification when the team classification is japan?`:
```sql
                SELECT "general_classification" FROM "classification_leadership" WHERE "team_classification"='japan';
```
## Task
Generate a SQL query to answer the following question:
`When Yusuke Hatanaka was the stage winner in the tonton susanto general classification, what was the malaysian rider classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" text,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "malaysian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Yusuke Hatanaka was the stage winner in the tonton susanto general classification, what was the malaysian rider classification?`:
```sql
                SELECT "malaysian_rider_classification" FROM "classification_leadership" WHERE "general_classification"='tonton susanto' AND "stage_winner"='yusuke hatanaka';
```
## Task
Generate a SQL query to answer the following question:
`When Yusuke Hatanaka was the stage winner in the tabriz petrochemical team classification, what was the mountains classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" text,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "malaysian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Yusuke Hatanaka was the stage winner in the tabriz petrochemical team classification, what was the mountains classification?`:
```sql
                SELECT "mountains_classification" FROM "classification_leadership" WHERE "team_classification"='tabriz petrochemical team' AND "stage_winner"='yusuke hatanaka';
```
## Task
Generate a SQL query to answer the following question:
`Which stage had tabriz petrochemical team in the team classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" text,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "malaysian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stage had tabriz petrochemical team in the team classification?`:
```sql
                SELECT "stage" FROM "classification_leadership" WHERE "team_classification"='tabriz petrochemical team';
```
## Task
Generate a SQL query to answer the following question:
`Which stage had suhardi hassan in the Malaysian rider classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" text,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "malaysian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stage had suhardi hassan in the Malaysian rider classification?`:
```sql
                SELECT "stage" FROM "classification_leadership" WHERE "malaysian_rider_classification"='suhardi hassan';
```
## Task
Generate a SQL query to answer the following question:
`How many drawn have points of 6 and lost by fewer than 4?`

### 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 `How many drawn have points of 6 and lost by fewer than 4?`:
```sql
                SELECT COUNT("drawn") FROM "first_round" WHERE "points"=6 AND "lost"<4;
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest game with a record of 23–6–4?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest game with a record of 23–6–4?`:
```sql
                SELECT MIN("game") FROM "regular_season" WHERE "record"='23–6–4';
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest game with a record of 16–4–3?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest game with a record of 16–4–3?`:
```sql
                SELECT MIN("game") FROM "regular_season" WHERE "record"='16–4–3';
```
## Task
Generate a SQL query to answer the following question:
`Which ERP W is the highest one that has a Call sign of w255bi?`

### 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,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ERP W is the highest one that has a Call sign of w255bi?`:
```sql
                SELECT MAX("erp_w") FROM "translators" WHERE "call_sign"='w255bi';
```
## Task
Generate a SQL query to answer the following question:
`Which FCC info has a Frequency MHz of 100.7?`

### 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,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which FCC info has a Frequency MHz of 100.7?`:
```sql
                SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz"=100.7;
```
## Task
Generate a SQL query to answer the following question:
`How much Frequency MHz has a Call sign of w264bg?`

### 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,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Frequency MHz has a Call sign of w264bg?`:
```sql
                SELECT COUNT("frequency_m_hz") FROM "translators" WHERE "call_sign"='w264bg';
```
## Task
Generate a SQL query to answer the following question:
`Which ERP W is the lowest one that has a Call sign of w233be?`

### 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,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ERP W is the lowest one that has a Call sign of w233be?`:
```sql
                SELECT MIN("erp_w") FROM "translators" WHERE "call_sign"='w233be';
```
## Task
Generate a SQL query to answer the following question:
`Which FCC info has a Frequency MHz larger than 102.3?`

### 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,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which FCC info has a Frequency MHz larger than 102.3?`:
```sql
                SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz">102.3;
```
## Task
Generate a SQL query to answer the following question:
`What date was Rica head of household?`

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

CREATE TABLE "head_of_household_and_hand_grenade" (
  "task_no" real,
  "date_given" text,
  "head_of_household" text,
  "hand_grenade_user" text,
  "hand_grenade_recipient" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was Rica head of household?`:
```sql
                SELECT "date_given" FROM "head_of_household_and_hand_grenade" WHERE "head_of_household"='rica';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest task number for which Cathy is head of household?`

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

CREATE TABLE "head_of_household_and_hand_grenade" (
  "task_no" real,
  "date_given" text,
  "head_of_household" text,
  "hand_grenade_user" text,
  "hand_grenade_recipient" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest task number for which Cathy is head of household?`:
```sql
                SELECT MAX("task_no") FROM "head_of_household_and_hand_grenade" WHERE "head_of_household"='cathy';
```
## Task
Generate a SQL query to answer the following question:
`Who is the head of household for task number 7?`

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

CREATE TABLE "head_of_household_and_hand_grenade" (
  "task_no" real,
  "date_given" text,
  "head_of_household" text,
  "hand_grenade_user" text,
  "hand_grenade_recipient" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the head of household for task number 7?`:
```sql
                SELECT "head_of_household" FROM "head_of_household_and_hand_grenade" WHERE "task_no"=7;
```
## Task
Generate a SQL query to answer the following question:
`Which task had Cathy as the hand grenade user?`

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

CREATE TABLE "head_of_household_and_hand_grenade" (
  "task_no" real,
  "date_given" text,
  "head_of_household" text,
  "hand_grenade_user" text,
  "hand_grenade_recipient" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which task had Cathy as the hand grenade user?`:
```sql
                SELECT "task_no" FROM "head_of_household_and_hand_grenade" WHERE "hand_grenade_user"='cathy';
```
## Task
Generate a SQL query to answer the following question:
`What is the task number on January 22, 2010 (day 111)?`

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

CREATE TABLE "head_of_household_and_hand_grenade" (
  "task_no" real,
  "date_given" text,
  "head_of_household" text,
  "hand_grenade_user" text,
  "hand_grenade_recipient" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the task number on January 22, 2010 (day 111)?`:
```sql
                SELECT MAX("task_no") FROM "head_of_household_and_hand_grenade" WHERE "date_given"='january 22, 2010 (day 111)';
```
## Task
Generate a SQL query to answer the following question:
`What was the record in the win 7 streak?`

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

CREATE TABLE "season_schedule" (
  "date" text,
  "opponent" text,
  "result" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record in the win 7 streak?`:
```sql
                SELECT "record" FROM "season_schedule" WHERE "streak"='win 7';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the opponent was Detroit Pistons?`

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

CREATE TABLE "season_schedule" (
  "date" text,
  "opponent" text,
  "result" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the opponent was Detroit Pistons?`:
```sql
                SELECT "score" FROM "season_schedule" WHERE "opponent"='detroit pistons';
```
## Task
Generate a SQL query to answer the following question:
`What is the date when streak was won 8?`

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

CREATE TABLE "season_schedule" (
  "date" text,
  "opponent" text,
  "result" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date when streak was won 8?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "streak"='won 8';
```
## Task
Generate a SQL query to answer the following question:
`What trips are operated by Atlantic coast charters?`

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

CREATE TABLE "intercounty_connector_bus_routes" (
  "route" text,
  "terminus" text,
  "operated_by" text,
  "corridors_served" text,
  "total_trips_am_pm" text,
  "operating_since" text
);
### SQL
Given the database schema, here is the SQL query that answers `What trips are operated by Atlantic coast charters?`:
```sql
                SELECT "total_trips_am_pm" FROM "intercounty_connector_bus_routes" WHERE "operated_by"='atlantic coast charters';
```
## Task
Generate a SQL query to answer the following question:
`What was the average week of a game with a result of l 10-7 attended by 37,500?`

### 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,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average week of a game with a result of l 10-7 attended by 37,500?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "result"='l 10-7' AND "attendance"<'37,500';
```
## Task
Generate a SQL query to answer the following question:
`What was the average attendance on October 30, 1938?`

### 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,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average attendance on October 30, 1938?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 30, 1938';
```
## Task
Generate a SQL query to answer the following question:
`When did Yugoslavia play a friendly game in Belgrade?`

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

CREATE TABLE "1974" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Yugoslavia play a friendly game in Belgrade?`:
```sql
                SELECT "date" FROM "1974" WHERE "city"='belgrade' AND "type_of_game"='friendly';
```
## Task
Generate a SQL query to answer the following question:
`When was the WC 1974 Qualifying game?`

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

CREATE TABLE "1974" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the WC 1974 Qualifying game?`:
```sql
                SELECT "date" FROM "1974" WHERE "type_of_game"='wc 1974 qualifying';
```
## Task
Generate a SQL query to answer the following question:
`What city did Yugoslavia play Norway in?`

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

CREATE TABLE "1974" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city did Yugoslavia play Norway in?`:
```sql
                SELECT "city" FROM "1974" WHERE "opponent"='norway';
```
## Task
Generate a SQL query to answer the following question:
`Who did Yugoslavia play against that led to a result of 2:3?`

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

CREATE TABLE "1974" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did Yugoslavia play against that led to a result of 2:3?`:
```sql
                SELECT "opponent" FROM "1974" WHERE "results"='2:3';
```
## Task
Generate a SQL query to answer the following question:
`What is the final score of the runner-up on 9 February 1992?`

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

CREATE TABLE "doubles_10_6_4" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_final" text,
  "score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final score of the runner-up on 9 February 1992?`:
```sql
                SELECT "score_in_final" FROM "doubles_10_6_4" WHERE "outcome"='runner-up' AND "date"='9 february 1992';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has a time of 1:50?`

### 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 `Which opponent has a time of 1:50?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='1:50';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has a time of 2:35?`

### 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 `Which opponent has a time of 2:35?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='2:35';
```
## Task
Generate a SQL query to answer the following question:
`What is the time when the opponent is stephanie palmer?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time when the opponent is stephanie palmer?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='stephanie palmer';
```
## Task
Generate a SQL query to answer the following question:
`What tournament has Samantha Stosur as the opponent in the final?`

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

CREATE TABLE "singles_wins_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament has Samantha Stosur as the opponent in the final?`:
```sql
                SELECT "tournament" FROM "singles_wins_5" WHERE "opponent_in_the_final"='samantha stosur';
```