cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei?`

### 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 congratulation mission in 1718 with the Ryūkyūan King shō kei?`:
```sql
                SELECT "lead_envoy" FROM "ry_ky_an_missions_to_edo" WHERE "ry_ky_an_king"='shō kei' AND "mission_type"='congratulation' AND "year"=1718;
```
## Task
Generate a SQL query to answer the following question:
`Who was the lead envoy with the Ryūkyūan King shō kō?`

### 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 with the Ryūkyūan King shō kō?`:
```sql
                SELECT "lead_envoy" FROM "ry_ky_an_missions_to_edo" WHERE "ry_ky_an_king"='shō kō';
```
## Task
Generate a SQL query to answer the following question:
`On 10/20/1979*, who was the Opponent?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "location" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On 10/20/1979*, who was the Opponent?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='10/20/1979*';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Attendance at a game with a Result of w 30-23?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "location" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Attendance at a game with a Result of w 30-23?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "result"='w 30-23';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Attendance at a game with the Result of w 25-17?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "location" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Attendance at a game with the Result of w 25-17?`:
```sql
                SELECT MIN("attendance") FROM "schedule" WHERE "result"='w 25-17';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Leading Scorer is Tyrone Hill , 20 Points?`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Leading Scorer is Tyrone Hill , 20 Points?`:
```sql
                SELECT "score" FROM "january" WHERE "leading_scorer"='tyrone hill , 20 points';
```
## Task
Generate a SQL query to answer the following question:
`What is Home, when Score is 103-93?`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Home, when Score is 103-93?`:
```sql
                SELECT "home" FROM "january" WHERE "score"='103-93';
```
## Task
Generate a SQL query to answer the following question:
`What is Attendance, when Home is Cleveland, and when Date is January 30?`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Attendance, when Home is Cleveland, and when Date is January 30?`:
```sql
                SELECT "attendance" FROM "january" WHERE "home"='cleveland' AND "date"='january 30';
```
## Task
Generate a SQL query to answer the following question:
`What is Leading Scorer, when Attendance is Gund Arena 20,562, and when Record is 20-10?`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Leading Scorer, when Attendance is Gund Arena 20,562, and when Record is 20-10?`:
```sql
                SELECT "leading_scorer" FROM "january" WHERE "attendance"='gund arena 20,562' AND "record"='20-10';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Date is January 12?`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Date is January 12?`:
```sql
                SELECT "score" FROM "january" WHERE "date"='january 12';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Attendance is Gund Arena 20,562, and when Date is January 27?`

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

CREATE TABLE "january" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Attendance is Gund Arena 20,562, and when Date is January 27?`:
```sql
                SELECT "score" FROM "january" WHERE "attendance"='gund arena 20,562' AND "date"='january 27';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Top-10(s), when Cuts made is less than 10, and when Top-5 is less than 0?`

### 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 sum of Top-10(s), when Cuts made is less than 10, and when Top-5 is less than 0?`:
```sql
                SELECT SUM("top_10") FROM "summary" WHERE "cuts_made"<10 AND "top_5"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Top-25, when Events is 10, and when Wins is greater than 0?`

### 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, when Events is 10, and when Wins is greater than 0?`:
```sql
                SELECT MIN("top_25") FROM "summary" WHERE "events"=10 AND "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Top-5, when Top-25 is less than 4, and when Cuts made is less than 7?`

### 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-5, when Top-25 is less than 4, and when Cuts made is less than 7?`:
```sql
                SELECT MIN("top_5") FROM "summary" WHERE "top_25"<4 AND "cuts_made"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the Height of Junior Meghan Austin?`

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

CREATE TABLE "roster" (
  "name" text,
  "height" text,
  "position" text,
  "year" text,
  "home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height of Junior Meghan Austin?`:
```sql
                SELECT "height" FROM "roster" WHERE "year"='junior' AND "name"='meghan austin';
```
## Task
Generate a SQL query to answer the following question:
`What is Martina Wood's Position?`

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

CREATE TABLE "roster" (
  "name" text,
  "height" text,
  "position" text,
  "year" text,
  "home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Martina Wood's Position?`:
```sql
                SELECT "position" FROM "roster" WHERE "name"='martina wood';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of the Player from Charlotte, NC?`

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

CREATE TABLE "roster" (
  "name" text,
  "height" text,
  "position" text,
  "year" text,
  "home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the Player from Charlotte, NC?`:
```sql
                SELECT "name" FROM "roster" WHERE "home_town"='charlotte, nc';
```
## Task
Generate a SQL query to answer the following question:
`What is 6-2 Martina Wood's Position?`

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

CREATE TABLE "roster" (
  "name" text,
  "height" text,
  "position" text,
  "year" text,
  "home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 6-2 Martina Wood's Position?`:
```sql
                SELECT "position" FROM "roster" WHERE "height"='6-2' AND "name"='martina wood';
```
## Task
Generate a SQL query to answer the following question:
`What is the Position of the Player from Temple Hills, MD?`

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

CREATE TABLE "roster" (
  "name" text,
  "height" text,
  "position" text,
  "year" text,
  "home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Position of the Player from Temple Hills, MD?`:
```sql
                SELECT "position" FROM "roster" WHERE "home_town"='temple hills, md';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of the Junior from Fayetteville, NC?`

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

CREATE TABLE "roster" (
  "name" text,
  "height" text,
  "position" text,
  "year" text,
  "home_town" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of the Junior from Fayetteville, NC?`:
```sql
                SELECT "name" FROM "roster" WHERE "year"='junior' AND "home_town"='fayetteville, nc';
```
## Task
Generate a SQL query to answer the following question:
`What rank has jo angel (wa) as the player?`

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

CREATE TABLE "most_career_wickets" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank has jo angel (wa) as the player?`:
```sql
                SELECT "rank" FROM "most_career_wickets" WHERE "player"='jo angel (wa)';
```
## Task
Generate a SQL query to answer the following question:
`What average has 1 as rhe rank?`

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

CREATE TABLE "most_career_wickets" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What average has 1 as rhe rank?`:
```sql
                SELECT "average" FROM "most_career_wickets" WHERE "rank"='1';
```
## Task
Generate a SQL query to answer the following question:
`What rank has andy bichel (qld) as the player?`

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

CREATE TABLE "most_career_wickets" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank has andy bichel (qld) as the player?`:
```sql
                SELECT "rank" FROM "most_career_wickets" WHERE "player"='andy bichel (qld)';
```
## Task
Generate a SQL query to answer the following question:
`What is the average that has 2 for the rank?`

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

CREATE TABLE "most_career_wickets" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average that has 2 for the rank?`:
```sql
                SELECT "average" FROM "most_career_wickets" WHERE "rank"='2';
```
## Task
Generate a SQL query to answer the following question:
`What playee has 24.21 as the average?`

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

CREATE TABLE "most_career_wickets" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What playee has 24.21 as the average?`:
```sql
                SELECT "player" FROM "most_career_wickets" WHERE "average"='24.21';
```
## Task
Generate a SQL query to answer the following question:
`What is the average that has 441 as wicket?`

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

CREATE TABLE "most_career_wickets" (
  "rank" text,
  "s_wicket" text,
  "player" text,
  "matches" text,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average that has 441 as wicket?`:
```sql
                SELECT "average" FROM "most_career_wickets" WHERE "s_wicket"='441';
```
## Task
Generate a SQL query to answer the following question:
`What was the year Elected of Republican Incumbent Dave Reichert?`

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

CREATE TABLE "races_and_results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text,
  "2008_candidates" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the year Elected of Republican Incumbent Dave Reichert?`:
```sql
                SELECT "elected" FROM "races_and_results" WHERE "party"='republican' AND "incumbent"='dave reichert';
```
## Task
Generate a SQL query to answer the following question:
`What were the Results in the Washington 2 District?`

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

CREATE TABLE "races_and_results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text,
  "2008_candidates" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the Results in the Washington 2 District?`:
```sql
                SELECT "results" FROM "races_and_results" WHERE "district"='washington 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2008 Candidates Elected before 1994 with Incumbent Jim McDermott?`

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

CREATE TABLE "races_and_results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text,
  "2008_candidates" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2008 Candidates Elected before 1994 with Incumbent Jim McDermott?`:
```sql
                SELECT "2008_candidates" FROM "races_and_results" WHERE "elected"<1994 AND "incumbent"='jim mcdermott';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Incumbent with Results of 68% 32%?`

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

CREATE TABLE "races_and_results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text,
  "2008_candidates" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Incumbent with Results of 68% 32%?`:
```sql
                SELECT "incumbent" FROM "races_and_results" WHERE "results"='68% 32%';
```
## Task
Generate a SQL query to answer the following question:
`What District had Republican Incumbent Cathy McMorris?`

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

CREATE TABLE "races_and_results" (
  "district" text,
  "incumbent" text,
  "party" text,
  "elected" real,
  "status" text,
  "2008_candidates" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What District had Republican Incumbent Cathy McMorris?`:
```sql
                SELECT "district" FROM "races_and_results" WHERE "party"='republican' AND "incumbent"='cathy mcmorris';
```
## Task
Generate a SQL query to answer the following question:
`What was Italy's highest total when there were less than 4 bronze and 1 gold?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Italy's highest total when there were less than 4 bronze and 1 gold?`:
```sql
                SELECT MAX("total") FROM "medals_table" WHERE "bronze"<4 AND "gold"=1 AND "nation"='italy';
```
## Task
Generate a SQL query to answer the following question:
`How many totals had more than 4 bronze?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many totals had more than 4 bronze?`:
```sql
                SELECT SUM("total") FROM "medals_table" WHERE "bronze">4;
```
## Task
Generate a SQL query to answer the following question:
`What was Austria's lowest total when the gold was more than 3?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Austria's lowest total when the gold was more than 3?`:
```sql
                SELECT MIN("total") FROM "medals_table" WHERE "nation"='austria' AND "gold">3;
```
## Task
Generate a SQL query to answer the following question:
`What are the years won when the to par is +5?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the years won when the to par is +5?`:
```sql
                SELECT "year_s_won" FROM "made_the_cut" WHERE "to_par"='+5';
```
## Task
Generate a SQL query to answer the following question:
`What is the average total for Tiger Woods?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total for Tiger Woods?`:
```sql
                SELECT AVG("total") FROM "made_the_cut" WHERE "player"='tiger woods';
```
## Task
Generate a SQL query to answer the following question:
`Which country had a total of 295?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country had a total of 295?`:
```sql
                SELECT "country" FROM "made_the_cut" WHERE "total"=295;
```
## Task
Generate a SQL query to answer the following question:
`What is the finish when the to par is +18?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the finish when the to par is +18?`:
```sql
                SELECT "finish" FROM "made_the_cut" WHERE "to_par"='+18';
```
## Task
Generate a SQL query to answer the following question:
`How many total No Results occured when the team had less than 46 wins and more than 16 matches?`

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

CREATE TABLE "summary_of_results" (
  "matches" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "success_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total No Results occured when the team had less than 46 wins and more than 16 matches?`:
```sql
                SELECT SUM("no_result") FROM "summary_of_results" WHERE "matches">16 AND "wins"<46;
```
## Task
Generate a SQL query to answer the following question:
`When the team had more than 46 wins, what were the average losses?`

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

CREATE TABLE "summary_of_results" (
  "matches" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "success_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the team had more than 46 wins, what were the average losses?`:
```sql
                SELECT AVG("losses") FROM "summary_of_results" WHERE "wins">46;
```
## Task
Generate a SQL query to answer the following question:
`How many total No Results are recorded for less than 6 wins?`

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

CREATE TABLE "summary_of_results" (
  "matches" real,
  "wins" real,
  "losses" real,
  "no_result" real,
  "success_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total No Results are recorded for less than 6 wins?`:
```sql
                SELECT COUNT("no_result") FROM "summary_of_results" WHERE "wins"<6;
```
## Task
Generate a SQL query to answer the following question:
`What Interview subject was on a Date that is 11-92?`

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

CREATE TABLE "1992" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Interview subject was on a Date that is 11-92?`:
```sql
                SELECT "interview_subject" FROM "1992" WHERE "date"='11-92';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest game number with Aris Thessaloniki with points smaller than 120?`

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

CREATE TABLE "points" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest game number with Aris Thessaloniki with points smaller than 120?`:
```sql
                SELECT MIN("games") FROM "points" WHERE "team"='aris thessaloniki' AND "points"<120;
```
## Task
Generate a SQL query to answer the following question:
`What is the game average that has a rank larger than 2 with team Olympiacos and points larger than 113?`

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

CREATE TABLE "points" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game average that has a rank larger than 2 with team Olympiacos and points larger than 113?`:
```sql
                SELECT AVG("games") FROM "points" WHERE "rank">2 AND "team"='olympiacos' AND "points">113;
```
## Task
Generate a SQL query to answer the following question:
`Which result was there when the opponents were the Buffalo Bills?`

### 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 `Which result was there when the opponents were the Buffalo Bills?`:
```sql
                SELECT "result" FROM "season_schedule" WHERE "opponent"='buffalo bills';
```
## Task
Generate a SQL query to answer the following question:
`What was the Purse ($) total for Iowa?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Purse ($) total for Iowa?`:
```sql
                SELECT COUNT("purse") FROM "tournament_results" WHERE "location"='iowa';
```
## Task
Generate a SQL query to answer the following question:
`When did the Score of 195 (-21) happen?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the Score of 195 (-21) happen?`:
```sql
                SELECT "date" FROM "tournament_results" WHERE "score"='195 (-21)';
```
## Task
Generate a SQL query to answer the following question:
`When did Scott Hoch (2) win?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Scott Hoch (2) win?`:
```sql
                SELECT "date" FROM "tournament_results" WHERE "winner"='scott hoch (2)';
```
## Task
Generate a SQL query to answer the following question:
`What team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth?`

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

CREATE TABLE "2000_01_to_date" (
  "season" text,
  "first" text,
  "second" text,
  "third" text,
  "fourth" text,
  "fifth" text,
  "sixth" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth?`:
```sql
                SELECT "second" FROM "2000_01_to_date" WHERE "fifth"='western australia' AND "sixth"='south australia' AND "fourth"='tasmania';
```
## Task
Generate a SQL query to answer the following question:
`What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first?`

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

CREATE TABLE "2000_01_to_date" (
  "season" text,
  "first" text,
  "second" text,
  "third" text,
  "fourth" text,
  "fifth" text,
  "sixth" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first?`:
```sql
                SELECT "sixth" FROM "2000_01_to_date" WHERE "fourth"='western australia' AND "first"='tasmania';
```
## Task
Generate a SQL query to answer the following question:
`What team placed sixth during the season where Tasmania placed second and Western Australia placed fourth?`

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

CREATE TABLE "2000_01_to_date" (
  "season" text,
  "first" text,
  "second" text,
  "third" text,
  "fourth" text,
  "fifth" text,
  "sixth" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team placed sixth during the season where Tasmania placed second and Western Australia placed fourth?`:
```sql
                SELECT "sixth" FROM "2000_01_to_date" WHERE "second"='tasmania' AND "fourth"='western australia';
```
## Task
Generate a SQL query to answer the following question:
`What team placed fifth during the season where Victoria placed second, Tasmania placed first, and South Australia placed sixth?`

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

CREATE TABLE "2000_01_to_date" (
  "season" text,
  "first" text,
  "second" text,
  "third" text,
  "fourth" text,
  "fifth" text,
  "sixth" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team placed fifth during the season where Victoria placed second, Tasmania placed first, and South Australia placed sixth?`:
```sql
                SELECT "fifth" FROM "2000_01_to_date" WHERE "second"='victoria' AND "first"='tasmania' AND "sixth"='south australia';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of losses for a position greater than 2 with 4 points and more than 2 draws?`

### 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 smallest number of losses for a position greater than 2 with 4 points and more than 2 draws?`:
```sql
                SELECT MIN("lost") FROM "campeonato_paulista" WHERE "position">2 AND "points"=4 AND "drawn">2;
```
## Task
Generate a SQL query to answer the following question:
`How many points occurred with a difference of 2 for position less than 4?`

### 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 `How many points occurred with a difference of 2 for position less than 4?`:
```sql
                SELECT COUNT("points") FROM "campeonato_paulista" WHERE "difference"='2' AND "position"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of points for a position less than 3 and less than 1 loss?`

### 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 number of points for a position less than 3 and less than 1 loss?`:
```sql
                SELECT MAX("points") FROM "campeonato_paulista" WHERE "position"<3 AND "lost"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which date's attendance was more than 39,058 with an opponent of Motherwell?`

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

CREATE TABLE "premier_division" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which date's attendance was more than 39,058 with an opponent of Motherwell?`:
```sql
                SELECT "date" FROM "premier_division" WHERE "attendance">'39,058' AND "opponent"='motherwell';
```
## Task
Generate a SQL query to answer the following question:
`In the round that had a 2nd leg score of 0-2, what did they score for the 1st leg?`

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

CREATE TABLE "preliminary_round_ii" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the round that had a 2nd leg score of 0-2, what did they score for the 1st leg?`:
```sql
                SELECT "1st_leg" FROM "preliminary_round_ii" WHERE "2nd_leg"='0-2';
```
## Task
Generate a SQL query to answer the following question:
`When Estudiantes was team #2, what was their agg. value?`

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

CREATE TABLE "preliminary_round_ii" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Estudiantes was team #2, what was their agg. value?`:
```sql
                SELECT "agg" FROM "preliminary_round_ii" WHERE "team_num2"='estudiantes';
```
## Task
Generate a SQL query to answer the following question:
`Who played against TSV bayer 04 leverkusen when they were team #1?`

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

CREATE TABLE "preliminary_round_ii" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played against TSV bayer 04 leverkusen when they were team #1?`:
```sql
                SELECT "2nd_leg" FROM "preliminary_round_ii" WHERE "team_num1"='tsv bayer 04 leverkusen';
```
## Task
Generate a SQL query to answer the following question:
`Who played against Hapoel tel aviv when they were team #1?`

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

CREATE TABLE "preliminary_round_ii" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played against Hapoel tel aviv when they were team #1?`:
```sql
                SELECT "team_num2" FROM "preliminary_round_ii" WHERE "team_num1"='hapoel tel aviv';
```
## Task
Generate a SQL query to answer the following question:
`what is the division in the western conference that finished 2nd in their division under rick adelman?`

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

CREATE TABLE "seasons" (
  "season" text,
  "team" text,
  "conf" text,
  "conf_finish" text,
  "div" text,
  "div_finish" text,
  "awards" text,
  "head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the division in the western conference that finished 2nd in their division under rick adelman?`:
```sql
                SELECT "div" FROM "seasons" WHERE "conf"='western' AND "div_finish"='2nd' AND "head_coach"='rick adelman';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2013 BAFA adult flag division in Aylesbury?`

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

CREATE TABLE "bafa_national_leagues" (
  "team" text,
  "location" text,
  "years_in_senior_adult_league" text,
  "2013_bafa_adult_division" text,
  "2013_bafa_adult_flag_division" text,
  "2013_bafa_junior_division" text,
  "other_teams" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2013 BAFA adult flag division in Aylesbury?`:
```sql
                SELECT "2013_bafa_adult_flag_division" FROM "bafa_national_leagues" WHERE "location"='aylesbury';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2013 BAFA junior division with a 2013 BAFA adult division in national central in the Birkenhead location?`

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

CREATE TABLE "bafa_national_leagues" (
  "team" text,
  "location" text,
  "years_in_senior_adult_league" text,
  "2013_bafa_adult_division" text,
  "2013_bafa_adult_flag_division" text,
  "2013_bafa_junior_division" text,
  "other_teams" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2013 BAFA junior division with a 2013 BAFA adult division in national central in the Birkenhead location?`:
```sql
                SELECT "2013_bafa_junior_division" FROM "bafa_national_leagues" WHERE "2013_bafa_adult_division"='national central' AND "location"='birkenhead';
```
## Task
Generate a SQL query to answer the following question:
`Records from Kontor Records from the catalog of Kontor446 was released in what format?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Records from Kontor Records from the catalog of Kontor446 was released in what format?`:
```sql
                SELECT "format" FROM "release_history" WHERE "label"='kontor records' AND "catalog"='kontor446';
```
## Task
Generate a SQL query to answer the following question:
`What date was the release that was Wrongun as the label?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the release that was Wrongun as the label?`:
```sql
                SELECT "date" FROM "release_history" WHERE "label"='wrongun';
```
## Task
Generate a SQL query to answer the following question:
`Catalog Nebdj068 was released when?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Catalog Nebdj068 was released when?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalog"='nebdj068';
```
## Task
Generate a SQL query to answer the following question:
`In what format was the release from the Nebt068 catalog on April 11, 2005 in?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what format was the release from the Nebt068 catalog on April 11, 2005 in?`:
```sql
                SELECT "format" FROM "release_history" WHERE "date"='april 11, 2005' AND "catalog"='nebt068';
```
## Task
Generate a SQL query to answer the following question:
`What region has the date of 2005 and Playground Music Scandinavia as a label?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What region has the date of 2005 and Playground Music Scandinavia as a label?`:
```sql
                SELECT "region" FROM "release_history" WHERE "date"='2005' AND "label"='playground music scandinavia';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result with a Venue that is filbert street?`

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

CREATE TABLE "first_division" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result with a Venue that is filbert street?`:
```sql
                SELECT "result" FROM "first_division" WHERE "venue"='filbert street';
```
## Task
Generate a SQL query to answer the following question:
`When did the Texans play BYE?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the Texans play BYE?`:
```sql
                SELECT "date" FROM "schedule" WHERE "opponent"='bye';
```
## Task
Generate a SQL query to answer the following question:
`Who did the Texans play when there were 70,724 people in attendance?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the Texans play when there were 70,724 people in attendance?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"='70,724';
```
## Task
Generate a SQL query to answer the following question:
`Who has the status of jr synonym of protosialis casca?`

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

CREATE TABLE "new_taxa" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the status of jr synonym of protosialis casca?`:
```sql
                SELECT "novelty" FROM "new_taxa" WHERE "status"='jr synonym of protosialis casca';
```
## Task
Generate a SQL query to answer the following question:
`Which writer is named mongolbittacus?`

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

CREATE TABLE "new_taxa" (
  "name" text,
  "novelty" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which writer is named mongolbittacus?`:
```sql
                SELECT "authors" FROM "new_taxa" WHERE "name"='mongolbittacus';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game that had 359 people in attendance?`

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

CREATE TABLE "second_round" (
  "match_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game that had 359 people in attendance?`:
```sql
                SELECT "score" FROM "second_round" WHERE "attendance"='359';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team of the game that ended with a score of 0-1?`

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

CREATE TABLE "second_round" (
  "match_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team of the game that ended with a score of 0-1?`:
```sql
                SELECT "home_team" FROM "second_round" WHERE "score"='0-1';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended Match No. 31?`

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

CREATE TABLE "second_round" (
  "match_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended Match No. 31?`:
```sql
                SELECT "attendance" FROM "second_round" WHERE "match_no"='31';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Home Team for Match No. 23?`

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

CREATE TABLE "second_round" (
  "match_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Home Team for Match No. 23?`:
```sql
                SELECT "home_team" FROM "second_round" WHERE "match_no"='23';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game with 1,125 people in attendance?`

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

CREATE TABLE "second_round" (
  "match_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game with 1,125 people in attendance?`:
```sql
                SELECT "score" FROM "second_round" WHERE "attendance"='1,125';
```
## Task
Generate a SQL query to answer the following question:
`What is the Country with a Launched that is april 3, 1990?`

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

CREATE TABLE "tv_channels" (
  "channel" text,
  "country" text,
  "type" text,
  "launched" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Country with a Launched that is april 3, 1990?`:
```sql
                SELECT "country" FROM "tv_channels" WHERE "launched"='april 3, 1990';
```
## Task
Generate a SQL query to answer the following question:
`What is the Launched from a Country that is spain?`

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

CREATE TABLE "tv_channels" (
  "channel" text,
  "country" text,
  "type" text,
  "launched" text,
  "description" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Launched from a Country that is spain?`:
```sql
                SELECT "launched" FROM "tv_channels" WHERE "country"='spain';
```