cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the lowest Top-25 for the open championship, with a Top-10 larger than 3?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Top-25 for the open championship, with a Top-10 larger than 3?`:
```sql
                SELECT MIN("top_25") FROM "summary" WHERE "tournament"='the open championship' AND "top_10">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Top-5 when the Tournament is the open championship, with a Top-25 less than 9?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Top-5 when the Tournament is the open championship, with a Top-25 less than 9?`:
```sql
                SELECT MAX("top_5") FROM "summary" WHERE "tournament"='the open championship' AND "top_25"<9;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Top-25 that has a Top-10 less than 7, and the Tournament is the open championship, with a Top-5more than 1?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Top-25 that has a Top-10 less than 7, and the Tournament is the open championship, with a Top-5more than 1?`:
```sql
                SELECT AVG("top_25") FROM "summary" WHERE "top_10"<7 AND "tournament"='the open championship' AND "top_5">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Top-5 when the Top-25 is 6, and a Cuts made are less than 12?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Top-5 when the Top-25 is 6, and a Cuts made are less than 12?`:
```sql
                SELECT COUNT("top_5") FROM "summary" WHERE "top_25"=6 AND "cuts_made"<12;
```
## Task
Generate a SQL query to answer the following question:
`Which date had a home team of the Wizards?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date had a home team of the Wizards?`:
```sql
                SELECT "date" FROM "february" WHERE "home"='wizards';
```
## Task
Generate a SQL query to answer the following question:
`What was the latest week with a date of November 12, 1967 and less than 34,761 in attendance?`

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

CREATE TABLE "season_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 latest week with a date of November 12, 1967 and less than 34,761 in attendance?`:
```sql
                SELECT MAX("week") FROM "season_schedule" WHERE "date"='november 12, 1967' AND "attendance"<'34,761';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the game with an opponent of the Houston Oilers from before week 3?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the game with an opponent of the Houston Oilers from before week 3?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "week"<3 AND "opponent"='houston oilers';
```
## Task
Generate a SQL query to answer the following question:
`What is the total for New York's game?`

### 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 `What is the total for New York's game?`:
```sql
                SELECT SUM("game") FROM "game_log" WHERE "team"='new york';
```
## Task
Generate a SQL query to answer the following question:
`What round was a player from Indiana picked?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was a player from Indiana picked?`:
```sql
                SELECT "round" FROM "nfl_draft" WHERE "college"='indiana';
```
## Task
Generate a SQL query to answer the following question:
`How many losses had a total of 17 and more than 10 wins?`

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

CREATE TABLE "overall_results_in_the_ipl" (
  "year" text,
  "total" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "pct_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses had a total of 17 and more than 10 wins?`:
```sql
                SELECT COUNT("losses") FROM "overall_results_in_the_ipl" WHERE "total"=17 AND "wins">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the win percentage when there's more than 16 totals and less than 7 losses?`

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

CREATE TABLE "overall_results_in_the_ipl" (
  "year" text,
  "total" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "pct_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the win percentage when there's more than 16 totals and less than 7 losses?`:
```sql
                SELECT "pct_win" FROM "overall_results_in_the_ipl" WHERE "total">16 AND "losses"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest no result when the year was 2012 and there were more than 10 wins?`

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

CREATE TABLE "overall_results_in_the_ipl" (
  "year" text,
  "total" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "pct_win" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest no result when the year was 2012 and there were more than 10 wins?`:
```sql
                SELECT MIN("no_result") FROM "overall_results_in_the_ipl" WHERE "year"='2012' AND "wins">10;
```
## Task
Generate a SQL query to answer the following question:
`What is the name on the Socialist ticket when the Democratic ticket is george k. shuler?`

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

CREATE TABLE "1924_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "socialist_ticket" text,
  "workers_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name on the Socialist ticket when the Democratic ticket is george k. shuler?`:
```sql
                SELECT "socialist_ticket" FROM "1924_state_election_results" WHERE "democratic_ticket"='george k. shuler';
```
## Task
Generate a SQL query to answer the following question:
`What is the name on the Democratic ticket when the Workers ticket is franklin p. brill?`

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

CREATE TABLE "1924_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "socialist_ticket" text,
  "workers_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name on the Democratic ticket when the Workers ticket is franklin p. brill?`:
```sql
                SELECT "democratic_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='franklin p. brill';
```
## Task
Generate a SQL query to answer the following question:
`What is the name on the Democratic ticket when the Workers ticket is james p. cannon?`

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

CREATE TABLE "1924_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "socialist_ticket" text,
  "workers_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name on the Democratic ticket when the Workers ticket is james p. cannon?`:
```sql
                SELECT "democratic_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='james p. cannon';
```
## Task
Generate a SQL query to answer the following question:
`What is the Office when the Republican ticket shows seymour lowman?`

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

CREATE TABLE "1924_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "socialist_ticket" text,
  "workers_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Office when the Republican ticket shows seymour lowman?`:
```sql
                SELECT "office" FROM "1924_state_election_results" WHERE "republican_ticket"='seymour lowman';
```
## Task
Generate a SQL query to answer the following question:
`What is the name on the Republican ticket when the Socialist ticket was louis waldman?`

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

CREATE TABLE "1924_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "socialist_ticket" text,
  "workers_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name on the Republican ticket when the Socialist ticket was louis waldman?`:
```sql
                SELECT "republican_ticket" FROM "1924_state_election_results" WHERE "socialist_ticket"='louis waldman';
```
## Task
Generate a SQL query to answer the following question:
`What is the name on the Republican ticket when the Workers ticket is edward lindgren?`

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

CREATE TABLE "1924_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "socialist_ticket" text,
  "workers_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name on the Republican ticket when the Workers ticket is edward lindgren?`:
```sql
                SELECT "republican_ticket" FROM "1924_state_election_results" WHERE "workers_ticket"='edward lindgren';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Democratic ticket with a Socialist Labor ticket of belle j. rosen?`

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

CREATE TABLE "1930_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "law_preservation_ticket" text,
  "socialist_ticket" text,
  "socialist_labor_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Democratic ticket with a Socialist Labor ticket of belle j. rosen?`:
```sql
                SELECT "democratic_ticket" FROM "1930_state_election_results" WHERE "socialist_labor_ticket"='belle j. rosen';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Socialist Labor ticket with a Republican ticket of cuthbert w. pound?`

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

CREATE TABLE "1930_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "law_preservation_ticket" text,
  "socialist_ticket" text,
  "socialist_labor_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Socialist Labor ticket with a Republican ticket of cuthbert w. pound?`:
```sql
                SELECT "socialist_labor_ticket" FROM "1930_state_election_results" WHERE "republican_ticket"='cuthbert w. pound';
```
## Task
Generate a SQL query to answer the following question:
`Which Office has a Republican ticket of daniel h. conway?`

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

CREATE TABLE "1930_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "law_preservation_ticket" text,
  "socialist_ticket" text,
  "socialist_labor_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Office has a Republican ticket of daniel h. conway?`:
```sql
                SELECT "office" FROM "1930_state_election_results" WHERE "republican_ticket"='daniel h. conway';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Socialist ticket with a Law Preservation ticket of (none), and a Socialist Labor ticket of belle j. rosen?`

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

CREATE TABLE "1930_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "law_preservation_ticket" text,
  "socialist_ticket" text,
  "socialist_labor_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Socialist ticket with a Law Preservation ticket of (none), and a Socialist Labor ticket of belle j. rosen?`:
```sql
                SELECT "socialist_ticket" FROM "1930_state_election_results" WHERE "law_preservation_ticket"='(none)' AND "socialist_labor_ticket"='belle j. rosen';
```
## Task
Generate a SQL query to answer the following question:
`Which Office has a Democratic ticket of herbert h. lehman?`

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

CREATE TABLE "1930_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "law_preservation_ticket" text,
  "socialist_ticket" text,
  "socialist_labor_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Office has a Democratic ticket of herbert h. lehman?`:
```sql
                SELECT "office" FROM "1930_state_election_results" WHERE "democratic_ticket"='herbert h. lehman';
```
## Task
Generate a SQL query to answer the following question:
`Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson?`

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

CREATE TABLE "1930_state_election_results" (
  "office" text,
  "democratic_ticket" text,
  "republican_ticket" text,
  "law_preservation_ticket" text,
  "socialist_ticket" text,
  "socialist_labor_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who's the Socialist ticket with a Socialist Labor ticket of charles m. carlson?`:
```sql
                SELECT "socialist_ticket" FROM "1930_state_election_results" WHERE "socialist_labor_ticket"='charles m. carlson';
```
## Task
Generate a SQL query to answer the following question:
`Which bowl game has a season greater than 2008, with new orleans, Louisiana as the location?`

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

CREATE TABLE "summary_table" (
  "season" real,
  "bowl_game" text,
  "result" text,
  "opponent" text,
  "stadium" text,
  "location" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which bowl game has a season greater than 2008, with new orleans, Louisiana as the location?`:
```sql
                SELECT "bowl_game" FROM "summary_table" WHERE "season">2008 AND "location"='new orleans, louisiana';
```
## Task
Generate a SQL query to answer the following question:
`What result has 1947 sun bowl as the bowl game?`

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

CREATE TABLE "summary_table" (
  "season" real,
  "bowl_game" text,
  "result" text,
  "opponent" text,
  "stadium" text,
  "location" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What result has 1947 sun bowl as the bowl game?`:
```sql
                SELECT "result" FROM "summary_table" WHERE "bowl_game"='1947 sun bowl';
```
## Task
Generate a SQL query to answer the following question:
`What result has texas longhorns as the opponent?`

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

CREATE TABLE "summary_table" (
  "season" real,
  "bowl_game" text,
  "result" text,
  "opponent" text,
  "stadium" text,
  "location" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What result has texas longhorns as the opponent?`:
```sql
                SELECT "result" FROM "summary_table" WHERE "opponent"='texas longhorns';
```
## Task
Generate a SQL query to answer the following question:
`What location has 51,212 as the attendance?`

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

CREATE TABLE "summary_table" (
  "season" real,
  "bowl_game" text,
  "result" text,
  "opponent" text,
  "stadium" text,
  "location" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location has 51,212 as the attendance?`:
```sql
                SELECT "location" FROM "summary_table" WHERE "attendance"='51,212';
```
## Task
Generate a SQL query to answer the following question:
`Who was the 3rd place team in the season in which Real Madrid finished 2nd?`

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

CREATE TABLE "by_season" (
  "season" text,
  "1st_place" text,
  "2nd_place" text,
  "3rd_place" text,
  "4th_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 3rd place team in the season in which Real Madrid finished 2nd?`:
```sql
                SELECT "3rd_place" FROM "by_season" WHERE "2nd_place"='real madrid';
```
## Task
Generate a SQL query to answer the following question:
`Which season had a 3rd place of CSKA Moscow and 1st place of Panathinaikos?`

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

CREATE TABLE "by_season" (
  "season" text,
  "1st_place" text,
  "2nd_place" text,
  "3rd_place" text,
  "4th_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season had a 3rd place of CSKA Moscow and 1st place of Panathinaikos?`:
```sql
                SELECT "season" FROM "by_season" WHERE "3rd_place"='cska moscow' AND "1st_place"='panathinaikos';
```
## Task
Generate a SQL query to answer the following question:
`Who preforms at 2:00PM on Monday?`

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

CREATE TABLE "afternoon" (
  "time" text,
  "12_00_pm" text,
  "01_00_pm" text,
  "02_00_pm" text,
  "03_00_pm" text,
  "04_00_pm" text,
  "05_00_pm" text,
  "05_55_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who preforms at 2:00PM on Monday?`:
```sql
                SELECT "02_00_pm" FROM "afternoon" WHERE "time"='monday';
```
## Task
Generate a SQL query to answer the following question:
`Who preforms at 3:00PM on Tuesday?`

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

CREATE TABLE "afternoon" (
  "time" text,
  "12_00_pm" text,
  "01_00_pm" text,
  "02_00_pm" text,
  "03_00_pm" text,
  "04_00_pm" text,
  "05_00_pm" text,
  "05_55_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who preforms at 3:00PM on Tuesday?`:
```sql
                SELECT "03_00_pm" FROM "afternoon" WHERE "time"='tuesday';
```
## Task
Generate a SQL query to answer the following question:
`Who preforms at 5:55PM on Monday?`

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

CREATE TABLE "afternoon" (
  "time" text,
  "12_00_pm" text,
  "01_00_pm" text,
  "02_00_pm" text,
  "03_00_pm" text,
  "04_00_pm" text,
  "05_00_pm" text,
  "05_55_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who preforms at 5:55PM on Monday?`:
```sql
                SELECT "05_55_pm" FROM "afternoon" WHERE "time"='monday';
```
## Task
Generate a SQL query to answer the following question:
`Which Pictorials is on 5-01?`

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

CREATE TABLE "2001" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pictorials is on 5-01?`:
```sql
                SELECT "pictorials" FROM "2001" WHERE "date"='5-01';
```
## Task
Generate a SQL query to answer the following question:
`Which Cover model has a Pictorials of brande roderick-pmoy, naked news?`

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

CREATE TABLE "2001" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Cover model has a Pictorials of brande roderick-pmoy, naked news?`:
```sql
                SELECT "cover_model" FROM "2001" WHERE "pictorials"='brande roderick-pmoy, naked news';
```
## Task
Generate a SQL query to answer the following question:
`which Cover model has a Centerfold model of jennifer walcott?`

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

CREATE TABLE "2001" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `which Cover model has a Centerfold model of jennifer walcott?`:
```sql
                SELECT "cover_model" FROM "2001" WHERE "centerfold_model"='jennifer walcott';
```
## Task
Generate a SQL query to answer the following question:
`Which over model has a 20 Questions of edward burns?`

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

CREATE TABLE "2001" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which over model has a 20 Questions of edward burns?`:
```sql
                SELECT "cover_model" FROM "2001" WHERE "20_questions"='edward burns';
```
## Task
Generate a SQL query to answer the following question:
`Which Centerfold model has a Cover model of irina voronina?`

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

CREATE TABLE "2001" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Centerfold model has a Cover model of irina voronina?`:
```sql
                SELECT "centerfold_model" FROM "2001" WHERE "cover_model"='irina voronina';
```
## Task
Generate a SQL query to answer the following question:
`Which Centerfold model has a Date of 3-01?`

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

CREATE TABLE "2001" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Centerfold model has a Date of 3-01?`:
```sql
                SELECT "centerfold_model" FROM "2001" WHERE "date"='3-01';
```
## Task
Generate a SQL query to answer the following question:
`What is the score on 15 Aug with a 17:30 time?`

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

CREATE TABLE "pool_f" (
  "date" text,
  "time" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score on 15 Aug with a 17:30 time?`:
```sql
                SELECT "score" FROM "pool_f" WHERE "date"='15 aug' AND "time"='17:30';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of round values that had opponents named Paul Sutherland?`

### 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 total number of round values that had opponents named Paul Sutherland?`:
```sql
                SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "opponent"='paul sutherland';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent led to a record of 10-6?`

### 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 led to a record of 10-6?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='10-6';
```
## Task
Generate a SQL query to answer the following question:
`Which method led to a record of 9-4?`

### 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 method led to a record of 9-4?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='9-4';
```
## Task
Generate a SQL query to answer the following question:
`What song had an index of m6?`

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

CREATE TABLE "episode_8_2_march_2008" (
  "index" text,
  "name" text,
  "song" text,
  "group_song" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What song had an index of m6?`:
```sql
                SELECT "song" FROM "episode_8_2_march_2008" WHERE "index"='m6';
```
## Task
Generate a SQL query to answer the following question:
`For which song was the score 6.5 + 6.0 + 6.0 + 5.5 = 24.0?`

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

CREATE TABLE "episode_8_2_march_2008" (
  "index" text,
  "name" text,
  "song" text,
  "group_song" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `For which song was the score 6.5 + 6.0 + 6.0 + 5.5 = 24.0?`:
```sql
                SELECT "song" FROM "episode_8_2_march_2008" WHERE "score"='6.5 + 6.0 + 6.0 + 5.5 = 24.0';
```
## Task
Generate a SQL query to answer the following question:
`When the played number is less than 8 and against is 23, what is the least amount of points?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the played number is less than 8 and against is 23, what is the least amount of points?`:
```sql
                SELECT MIN("points") FROM "torneio_rio_s_o_paulo" WHERE "against"=23 AND "played"<8;
```
## Task
Generate a SQL query to answer the following question:
`When the corinthians have a position of less than 5, what is the average against?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the corinthians have a position of less than 5, what is the average against?`:
```sql
                SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "position"<5 AND "team"='corinthians';
```
## Task
Generate a SQL query to answer the following question:
`What position has less than 6 Points?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position has less than 6 Points?`:
```sql
                SELECT COUNT("position") FROM "torneio_rio_s_o_paulo" WHERE "points"<6;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of against when the difference is 10 and played is greater than 8?`

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

CREATE TABLE "torneio_rio_s_o_paulo" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of against when the difference is 10 and played is greater than 8?`:
```sql
                SELECT COUNT("against") FROM "torneio_rio_s_o_paulo" WHERE "difference"='10' AND "played">8;
```
## Task
Generate a SQL query to answer the following question:
`What was the stake president when the organized date is April 18, 1965?`

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

CREATE TABLE "other_stakes_with_congregations_in_arkan" (
  "stake" text,
  "organized" text,
  "number_of_wards_branches_in_arkansas" real,
  "stake_president" text,
  "occupation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the stake president when the organized date is April 18, 1965?`:
```sql
                SELECT "stake_president" FROM "other_stakes_with_congregations_in_arkan" WHERE "organized"='april 18, 1965';
```
## Task
Generate a SQL query to answer the following question:
`What is the organized section when the stake president was henry john platt?`

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

CREATE TABLE "other_stakes_with_congregations_in_arkan" (
  "stake" text,
  "organized" text,
  "number_of_wards_branches_in_arkansas" real,
  "stake_president" text,
  "occupation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the organized section when the stake president was henry john platt?`:
```sql
                SELECT "organized" FROM "other_stakes_with_congregations_in_arkan" WHERE "stake_president"='henry john platt';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the award given for the category Mercury Prize?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the award given for the category Mercury Prize?`:
```sql
                SELECT "award" FROM "awards_and_nominations" WHERE "category"='mercury prize';
```
## Task
Generate a SQL query to answer the following question:
`How many years has the Mercury Prize award been given?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years has the Mercury Prize award been given?`:
```sql
                SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award"='mercury prize';
```
## Task
Generate a SQL query to answer the following question:
`For how many years has the Mercury Prize been awarded?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `For how many years has the Mercury Prize been awarded?`:
```sql
                SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award"='mercury prize';
```
## Task
Generate a SQL query to answer the following question:
`In what year, prior to 2009, was the Mercury Prize awarded?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year, prior to 2009, was the Mercury Prize awarded?`:
```sql
                SELECT "result" FROM "awards_and_nominations" WHERE "year"<2009 AND "award"='mercury prize';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Points when against is 50, and there are less than 20 played?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Points when against is 50, and there are less than 20 played?`:
```sql
                SELECT MIN("points") FROM "campeonato_paulista" WHERE "against"=50 AND "played"<20;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Position with less than 57 against and the team is Juventus?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Position with less than 57 against and the team is Juventus?`:
```sql
                SELECT AVG("position") FROM "campeonato_paulista" WHERE "against"<57 AND "team"='juventus';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Position when the against is less than 41, and lost is more than 7?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Position when the against is less than 41, and lost is more than 7?`:
```sql
                SELECT MAX("position") FROM "campeonato_paulista" WHERE "against"<41 AND "lost">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Lost when there are 57 against?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Lost when there are 57 against?`:
```sql
                SELECT AVG("lost") FROM "campeonato_paulista" WHERE "against"=57;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Lost for são paulo railway, Points more than 21?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Lost for são paulo railway, Points more than 21?`:
```sql
                SELECT MIN("lost") FROM "campeonato_paulista" WHERE "team"='são paulo railway' AND "points">21;
```
## Task
Generate a SQL query to answer the following question:
`What unit is in Mongolia?`

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

CREATE TABLE "newly_named_birds" (
  "name" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What unit is in Mongolia?`:
```sql
                SELECT "unit" FROM "newly_named_birds" WHERE "location"='mongolia';
```
## Task
Generate a SQL query to answer the following question:
`What unit is in Argentina?`

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

CREATE TABLE "newly_named_birds" (
  "name" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What unit is in Argentina?`:
```sql
                SELECT "unit" FROM "newly_named_birds" WHERE "location"='argentina';
```
## Task
Generate a SQL query to answer the following question:
`What name is located in China?`

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

CREATE TABLE "newly_named_birds" (
  "name" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name is located in China?`:
```sql
                SELECT "name" FROM "newly_named_birds" WHERE "location"='china';
```
## Task
Generate a SQL query to answer the following question:
`What unit is located in China and has Zhou Zhang as an author?`

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

CREATE TABLE "newly_named_birds" (
  "name" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What unit is located in China and has Zhou Zhang as an author?`:
```sql
                SELECT "unit" FROM "newly_named_birds" WHERE "location"='china' AND "authors"='zhou zhang';
```
## Task
Generate a SQL query to answer the following question:
`What kind of  Manufacturer has a Laps smaller than 20 and a Grid of 21`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of  Manufacturer has a Laps smaller than 20 and a Grid of 21`:
```sql
                SELECT "manufacturer" FROM "250cc_classification" WHERE "laps"<20 AND "grid"=21;
```
## Task
Generate a SQL query to answer the following question:
`Which Airline has a Fleet size larger than 17, and a IATA of pr?`

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

CREATE TABLE "commercial_airlines" (
  "airline" text,
  "icao" text,
  "iata" text,
  "callsign" text,
  "commenced_operations" real,
  "fleet_size" real,
  "headquarters" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Airline has a Fleet size larger than 17, and a IATA of pr?`:
```sql
                SELECT "airline" FROM "commercial_airlines" WHERE "fleet_size">17 AND "iata"='pr';
```
## Task
Generate a SQL query to answer the following question:
`Which ICAO has a Fleet size of 2?`

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

CREATE TABLE "commercial_airlines" (
  "airline" text,
  "icao" text,
  "iata" text,
  "callsign" text,
  "commenced_operations" real,
  "fleet_size" real,
  "headquarters" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ICAO has a Fleet size of 2?`:
```sql
                SELECT "icao" FROM "commercial_airlines" WHERE "fleet_size"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the of Fleet size with a IATA of pr, and a Commenced operations smaller than 1941?`

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

CREATE TABLE "commercial_airlines" (
  "airline" text,
  "icao" text,
  "iata" text,
  "callsign" text,
  "commenced_operations" real,
  "fleet_size" real,
  "headquarters" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the of Fleet size with a IATA of pr, and a Commenced operations smaller than 1941?`:
```sql
                SELECT SUM("fleet_size") FROM "commercial_airlines" WHERE "iata"='pr' AND "commenced_operations"<1941;
```
## Task
Generate a SQL query to answer the following question:
`Which ICAO has a Commenced operations larger than 2011?`

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

CREATE TABLE "commercial_airlines" (
  "airline" text,
  "icao" text,
  "iata" text,
  "callsign" text,
  "commenced_operations" real,
  "fleet_size" real,
  "headquarters" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ICAO has a Commenced operations larger than 2011?`:
```sql
                SELECT "icao" FROM "commercial_airlines" WHERE "commenced_operations">2011;
```
## Task
Generate a SQL query to answer the following question:
`What is the Status with an Author that is woodruff?`

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

CREATE TABLE "insects" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Status with an Author that is woodruff?`:
```sql
                SELECT "status" FROM "insects" WHERE "authors"='woodruff';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Pick # when the CFL Team is the Toronto Argonauts?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Pick # when the CFL Team is the Toronto Argonauts?`:
```sql
                SELECT MAX("pick_num") FROM "round_six" WHERE "cfl_team"='toronto argonauts';
```
## Task
Generate a SQL query to answer the following question:
`What is the CFL Team with #48 as the pick number?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the CFL Team with #48 as the pick number?`:
```sql
                SELECT "cfl_team" FROM "round_six" WHERE "pick_num"=48;
```
## Task
Generate a SQL query to answer the following question:
`What is the College with a Position of db, and the CFL Team was Winnipeg Blue Bombers?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the College with a Position of db, and the CFL Team was Winnipeg Blue Bombers?`:
```sql
                SELECT "college" FROM "round_six" WHERE "position"='db' AND "cfl_team"='winnipeg blue bombers';
```
## Task
Generate a SQL query to answer the following question:
`What is the CFL Team with Will Grant?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the CFL Team with Will Grant?`:
```sql
                SELECT "cfl_team" FROM "round_six" WHERE "player"='will grant';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year of a gratitude type mission with 99 in the entourage?`

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

CREATE TABLE "ry_ky_an_missions_to_edo" (
  "year" real,
  "mission_type" text,
  "shogun" text,
  "ry_ky_an_king" text,
  "lead_envoy" text,
  "number_in_entourage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year of a gratitude type mission with 99 in the entourage?`:
```sql
                SELECT MAX("year") FROM "ry_ky_an_missions_to_edo" WHERE "number_in_entourage"='99' AND "mission_type"='gratitude';
```
## Task
Generate a SQL query to answer the following question:
`Who was the lead envoy of the mission with the Ryūkyūan King shō eki?`

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

CREATE TABLE "ry_ky_an_missions_to_edo" (
  "year" real,
  "mission_type" text,
  "shogun" text,
  "ry_ky_an_king" text,
  "lead_envoy" text,
  "number_in_entourage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the lead envoy of the mission with the Ryūkyūan King shō eki?`:
```sql
                SELECT "lead_envoy" FROM "ry_ky_an_missions_to_edo" WHERE "ry_ky_an_king"='shō eki';
```