cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the date of the that was played with the Baltimore Colts at home?`

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

CREATE TABLE "playoff_games_that_went_at_least_into_do" (
  "length_of_game" text,
  "date" text,
  "away_team" text,
  "score" text,
  "home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the that was played with the Baltimore Colts at home?`:
```sql
                SELECT "date" FROM "playoff_games_that_went_at_least_into_do" WHERE "home_team"='baltimore colts';
```
## Task
Generate a SQL query to answer the following question:
`How long did the game go that was played with the Houston Oilers at home?`

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

CREATE TABLE "playoff_games_that_went_at_least_into_do" (
  "length_of_game" text,
  "date" text,
  "away_team" text,
  "score" text,
  "home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long did the game go that was played with the Houston Oilers at home?`:
```sql
                SELECT "length_of_game" FROM "playoff_games_that_went_at_least_into_do" WHERE "home_team"='houston oilers';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game that lasted 75:43?`

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

CREATE TABLE "playoff_games_that_went_at_least_into_do" (
  "length_of_game" text,
  "date" text,
  "away_team" text,
  "score" text,
  "home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game that lasted 75:43?`:
```sql
                SELECT "date" FROM "playoff_games_that_went_at_least_into_do" WHERE "length_of_game"='75:43';
```
## Task
Generate a SQL query to answer the following question:
`Who is the away team for the game played on December 24, 1977?`

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

CREATE TABLE "playoff_games_that_went_at_least_into_do" (
  "length_of_game" text,
  "date" text,
  "away_team" text,
  "score" text,
  "home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the away team for the game played on December 24, 1977?`:
```sql
                SELECT "away_team" FROM "playoff_games_that_went_at_least_into_do" WHERE "date"='december 24, 1977';
```
## Task
Generate a SQL query to answer the following question:
`What was the length of the game where the Baltimore Colts were at home?`

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

CREATE TABLE "playoff_games_that_went_at_least_into_do" (
  "length_of_game" text,
  "date" text,
  "away_team" text,
  "score" text,
  "home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the length of the game where the Baltimore Colts were at home?`:
```sql
                SELECT "length_of_game" FROM "playoff_games_that_went_at_least_into_do" WHERE "home_team"='baltimore colts';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of laps for 16 grids?`

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

CREATE TABLE "125cc_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's the number of laps for 16 grids?`:
```sql
                SELECT SUM("laps") FROM "125cc_classification" WHERE "grid"=16;
```
## Task
Generate a SQL query to answer the following question:
`Who was the rider for laps less than 23 with grid greater than 21 that had a time of +1 lap?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the rider for laps less than 23 with grid greater than 21 that had a time of +1 lap?`:
```sql
                SELECT "rider" FROM "125cc_classification" WHERE "laps"<23 AND "grid">21 AND "time_retired"='+1 lap';
```
## Task
Generate a SQL query to answer the following question:
`What's the total grid for someone with a time/retire of +44.831`

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

CREATE TABLE "125cc_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's the total grid for someone with a time/retire of +44.831`:
```sql
                SELECT COUNT("grid") FROM "125cc_classification" WHERE "time_retired"='+44.831';
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest grid for Time/Retired of +22.687?`

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

CREATE TABLE "125cc_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's the smallest grid for Time/Retired of +22.687?`:
```sql
                SELECT MIN("grid") FROM "125cc_classification" WHERE "time_retired"='+22.687';
```
## Task
Generate a SQL query to answer the following question:
`What is the recoupa sudaamericana 1996 result of team flamengo, which did not qualify for the copa conmebol 1996?`

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

CREATE TABLE "brazilian_clubs_in_international_competi" (
  "team" text,
  "copa_libertadores_1996" text,
  "supercopa_sudamericana_1996" text,
  "copa_conmebol_1996" text,
  "recopa_sudamericana_1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the recoupa sudaamericana 1996 result of team flamengo, which did not qualify for the copa conmebol 1996?`:
```sql
                SELECT "recopa_sudamericana_1996" FROM "brazilian_clubs_in_international_competi" WHERE "copa_conmebol_1996"='did not qualify' AND "team"='flamengo';
```
## Task
Generate a SQL query to answer the following question:
`What is the copa libertadores 1996 result of the team with a copa conmebol 1996 result of quarterfinals?`

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

CREATE TABLE "brazilian_clubs_in_international_competi" (
  "team" text,
  "copa_libertadores_1996" text,
  "supercopa_sudamericana_1996" text,
  "copa_conmebol_1996" text,
  "recopa_sudamericana_1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the copa libertadores 1996 result of the team with a copa conmebol 1996 result of quarterfinals?`:
```sql
                SELECT "copa_libertadores_1996" FROM "brazilian_clubs_in_international_competi" WHERE "copa_conmebol_1996"='quarterfinals';
```
## Task
Generate a SQL query to answer the following question:
`What is the copa libertadores 1996 of team corinthians?`

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

CREATE TABLE "brazilian_clubs_in_international_competi" (
  "team" text,
  "copa_libertadores_1996" text,
  "supercopa_sudamericana_1996" text,
  "copa_conmebol_1996" text,
  "recopa_sudamericana_1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the copa libertadores 1996 of team corinthians?`:
```sql
                SELECT "copa_libertadores_1996" FROM "brazilian_clubs_in_international_competi" WHERE "team"='corinthians';
```
## Task
Generate a SQL query to answer the following question:
`What is the copa conmebol 1996 result of the team with a recopa sudamericana 1996 result of champions?`

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

CREATE TABLE "brazilian_clubs_in_international_competi" (
  "team" text,
  "copa_libertadores_1996" text,
  "supercopa_sudamericana_1996" text,
  "copa_conmebol_1996" text,
  "recopa_sudamericana_1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the copa conmebol 1996 result of the team with a recopa sudamericana 1996 result of champions?`:
```sql
                SELECT "copa_conmebol_1996" FROM "brazilian_clubs_in_international_competi" WHERE "recopa_sudamericana_1996"='champions';
```
## Task
Generate a SQL query to answer the following question:
`What is the recoupa sudamericana 1996 of the team with a copa libertadores 1996 result of the round of 16?`

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

CREATE TABLE "brazilian_clubs_in_international_competi" (
  "team" text,
  "copa_libertadores_1996" text,
  "supercopa_sudamericana_1996" text,
  "copa_conmebol_1996" text,
  "recopa_sudamericana_1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the recoupa sudamericana 1996 of the team with a copa libertadores 1996 result of the round of 16?`:
```sql
                SELECT "recopa_sudamericana_1996" FROM "brazilian_clubs_in_international_competi" WHERE "copa_libertadores_1996"='round of 16';
```
## Task
Generate a SQL query to answer the following question:
`What is the recoupa sudamericana 1996 result of team corinthians?`

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

CREATE TABLE "brazilian_clubs_in_international_competi" (
  "team" text,
  "copa_libertadores_1996" text,
  "supercopa_sudamericana_1996" text,
  "copa_conmebol_1996" text,
  "recopa_sudamericana_1996" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the recoupa sudamericana 1996 result of team corinthians?`:
```sql
                SELECT "recopa_sudamericana_1996" FROM "brazilian_clubs_in_international_competi" WHERE "team"='corinthians';
```
## Task
Generate a SQL query to answer the following question:
`What season has 195 runs as a margin?`

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

CREATE TABLE "greatest_win_margins_by_runs" (
  "rank" text,
  "margin" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season has 195 runs as a margin?`:
```sql
                SELECT "season" FROM "greatest_win_margins_by_runs" WHERE "margin"='195 runs';
```
## Task
Generate a SQL query to answer the following question:
`What season has 2 as a rank?`

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

CREATE TABLE "greatest_win_margins_by_runs" (
  "rank" text,
  "margin" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season has 2 as a rank?`:
```sql
                SELECT "season" FROM "greatest_win_margins_by_runs" WHERE "rank"='2';
```
## Task
Generate a SQL query to answer the following question:
`What venue has 2 as the rank?`

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

CREATE TABLE "greatest_win_margins_by_runs" (
  "rank" text,
  "margin" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue has 2 as the rank?`:
```sql
                SELECT "venue" FROM "greatest_win_margins_by_runs" WHERE "rank"='2';
```
## Task
Generate a SQL query to answer the following question:
`What opponent has 2011/12 as the season?`

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

CREATE TABLE "greatest_win_margins_by_runs" (
  "rank" text,
  "margin" text,
  "opponent" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent has 2011/12 as the season?`:
```sql
                SELECT "opponent" FROM "greatest_win_margins_by_runs" WHERE "season"='2011/12';
```
## Task
Generate a SQL query to answer the following question:
`What is the length of the version from 2003?`

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

CREATE TABLE "official_versions" (
  "version" text,
  "length" text,
  "album" text,
  "remixed_by" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length of the version from 2003?`:
```sql
                SELECT "length" FROM "official_versions" WHERE "year"=2003;
```
## Task
Generate a SQL query to answer the following question:
`Who remixed the version with a length of 4:22?`

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

CREATE TABLE "official_versions" (
  "version" text,
  "length" text,
  "album" text,
  "remixed_by" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who remixed the version with a length of 4:22?`:
```sql
                SELECT "remixed_by" FROM "official_versions" WHERE "length"='4:22';
```
## Task
Generate a SQL query to answer the following question:
`What is the length of the UK remix version?`

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

CREATE TABLE "official_versions" (
  "version" text,
  "length" text,
  "album" text,
  "remixed_by" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length of the UK remix version?`:
```sql
                SELECT "length" FROM "official_versions" WHERE "version"='uk remix';
```
## Task
Generate a SQL query to answer the following question:
`What year was the version with a remixes album?`

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

CREATE TABLE "official_versions" (
  "version" text,
  "length" text,
  "album" text,
  "remixed_by" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the version with a remixes album?`:
```sql
                SELECT "year" FROM "official_versions" WHERE "album"='remixes';
```
## Task
Generate a SQL query to answer the following question:
`How many losses did the team, Sturt, have when they had more than 0 wins?`

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

CREATE TABLE "sanfl" (
  "season" real,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses did the team, Sturt, have when they had more than 0 wins?`:
```sql
                SELECT COUNT("losses") FROM "sanfl" WHERE "team"='sturt' AND "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of draws for the team that had more than 0 wins?`

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

CREATE TABLE "sanfl" (
  "season" real,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of draws for the team that had more than 0 wins?`:
```sql
                SELECT AVG("draws") FROM "sanfl" WHERE "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of losses for the team that had more than 0 draws during the seasons earlier than 1926?`

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

CREATE TABLE "sanfl" (
  "season" real,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of losses for the team that had more than 0 draws during the seasons earlier than 1926?`:
```sql
                SELECT MIN("losses") FROM "sanfl" WHERE "draws">0 AND "season"<1926;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of wins for the team, Central District, who had less than 0 draws and took place during a season before 1995?`

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

CREATE TABLE "sanfl" (
  "season" real,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of wins for the team, Central District, who had less than 0 draws and took place during a season before 1995?`:
```sql
                SELECT MAX("wins") FROM "sanfl" WHERE "season"<1995 AND "team"='central district' AND "draws"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of wins before the season in 1906 where there were 0 draws?`

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

CREATE TABLE "sanfl" (
  "season" real,
  "team" text,
  "wins" real,
  "losses" real,
  "draws" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of wins before the season in 1906 where there were 0 draws?`:
```sql
                SELECT AVG("wins") FROM "sanfl" WHERE "season"<1906 AND "draws"<0;
```
## Task
Generate a SQL query to answer the following question:
`Who is the Opposing Pitcher when Team is phillies, Location is pittsburgh, and Inning is 8th?`

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

CREATE TABLE "chief_wilson_s_36_triples" (
  "triple" real,
  "game" real,
  "date" text,
  "inning" text,
  "location" text,
  "opposing_pitcher" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Opposing Pitcher when Team is phillies, Location is pittsburgh, and Inning is 8th?`:
```sql
                SELECT "opposing_pitcher" FROM "chief_wilson_s_36_triples" WHERE "team"='phillies' AND "location"='pittsburgh' AND "inning"='8th';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Game where Inning is 6th, and the Opposing Pitcher is cliff curtis?`

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

CREATE TABLE "chief_wilson_s_36_triples" (
  "triple" real,
  "game" real,
  "date" text,
  "inning" text,
  "location" text,
  "opposing_pitcher" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Game where Inning is 6th, and the Opposing Pitcher is cliff curtis?`:
```sql
                SELECT MIN("game") FROM "chief_wilson_s_36_triples" WHERE "inning"='6th' AND "opposing_pitcher"='cliff curtis';
```
## Task
Generate a SQL query to answer the following question:
`What is was Date that where Triple was smaller than 26, and Game was 25?`

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

CREATE TABLE "chief_wilson_s_36_triples" (
  "triple" real,
  "game" real,
  "date" text,
  "inning" text,
  "location" text,
  "opposing_pitcher" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is was Date that where Triple was smaller than 26, and Game was 25?`:
```sql
                SELECT "date" FROM "chief_wilson_s_36_triples" WHERE "triple"<26 AND "game"=25;
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest Votes (SW Eng) with a % (SW Eng) that's larger than 2.1, Votes (Gib) of 1,127, and a Change (SW Eng) that's larger than -3.6?`

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

CREATE TABLE "results" (
  "party" text,
  "votes_gib" real,
  "votes_sw_eng" real,
  "pct_gib" real,
  "pct_sw_eng" real,
  "change_sw_eng" real,
  "seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest Votes (SW Eng) with a % (SW Eng) that's larger than 2.1, Votes (Gib) of 1,127, and a Change (SW Eng) that's larger than -3.6?`:
```sql
                SELECT MIN("votes_sw_eng") FROM "results" WHERE "pct_sw_eng">2.1 AND "votes_gib"='1,127' AND "change_sw_eng">-3.6;
```
## Task
Generate a SQL query to answer the following question:
`Which Gold is the lowest one that has a Bronze of 14, and a Total larger than 42?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Gold is the lowest one that has a Bronze of 14, and a Total larger than 42?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "bronze"=14 AND "total">42;
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze is the lowest one that has a Nation of total, and a Gold smaller than 14?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bronze is the lowest one that has a Nation of total, and a Gold smaller than 14?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='total' AND "gold"<14;
```
## Task
Generate a SQL query to answer the following question:
`How much Total has a Nation of kazakhstan (kaz), and a Gold larger than 0?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Total has a Nation of kazakhstan (kaz), and a Gold larger than 0?`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "nation"='kazakhstan (kaz)' AND "gold">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Total is the highest one that has a Rank of 1, and a Gold larger than 11?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total is the highest one that has a Rank of 1, and a Gold larger than 11?`:
```sql
                SELECT MAX("total") FROM "medal_table" WHERE "rank"='1' AND "gold">11;
```
## Task
Generate a SQL query to answer the following question:
`Who finished 3rd in Oslo?`

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

CREATE TABLE "individual_events" (
  "round" text,
  "venue" text,
  "discipline" text,
  "date" text,
  "winner" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who finished 3rd in Oslo?`:
```sql
                SELECT "third" FROM "individual_events" WHERE "venue"='oslo';
```
## Task
Generate a SQL query to answer the following question:
`On November 22, what were the results of the friendly type game?`

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

CREATE TABLE "1950" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `On November 22, what were the results of the friendly type game?`:
```sql
                SELECT "results" FROM "1950" WHERE "type_of_game"='friendly' AND "date"='november 22';
```
## Task
Generate a SQL query to answer the following question:
`On October 8, what city was the game played?`

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

CREATE TABLE "1950" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `On October 8, what city was the game played?`:
```sql
                SELECT "city" FROM "1950" WHERE "date"='october 8';
```
## Task
Generate a SQL query to answer the following question:
`On June 29, who was the opponent?`

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

CREATE TABLE "1950" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `On June 29, who was the opponent?`:
```sql
                SELECT "opponent" FROM "1950" WHERE "date"='june 29';
```
## Task
Generate a SQL query to answer the following question:
`What date had an opponent of Sweden and a friendly type game?`

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

CREATE TABLE "1950" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date had an opponent of Sweden and a friendly type game?`:
```sql
                SELECT "date" FROM "1950" WHERE "type_of_game"='friendly' AND "opponent"='sweden';
```
## Task
Generate a SQL query to answer the following question:
`What were the results on September 7?`

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

CREATE TABLE "1950" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the results on September 7?`:
```sql
                SELECT "results" FROM "1950" WHERE "date"='september 7';
```
## Task
Generate a SQL query to answer the following question:
`Which 1990–95 is the highest one that has a State of karnataka, and a 2001–05 smaller than 0.2?`

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

CREATE TABLE "index_trends_in_major_states_by_respecti" (
  "state" text,
  "1990_95" real,
  "1996_00" real,
  "2001_05" real,
  "2006_10" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1990–95 is the highest one that has a State of karnataka, and a 2001–05 smaller than 0.2?`:
```sql
                SELECT MAX("1990_95") FROM "index_trends_in_major_states_by_respecti" WHERE "state"='karnataka' AND "2001_05"<0.2;
```
## Task
Generate a SQL query to answer the following question:
`Which 1996-00 is the lowest one that has a State of maharashtra, and a 2006–10 smaller than 0.26?`

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

CREATE TABLE "index_trends_in_major_states_by_respecti" (
  "state" text,
  "1990_95" real,
  "1996_00" real,
  "2001_05" real,
  "2006_10" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1996-00 is the lowest one that has a State of maharashtra, and a 2006–10 smaller than 0.26?`:
```sql
                SELECT MIN("1996_00") FROM "index_trends_in_major_states_by_respecti" WHERE "state"='maharashtra' AND "2006_10"<0.26;
```
## Task
Generate a SQL query to answer the following question:
`Which 1990–95 is the average one that has a 2001–05 larger than 0.55?`

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

CREATE TABLE "index_trends_in_major_states_by_respecti" (
  "state" text,
  "1990_95" real,
  "1996_00" real,
  "2001_05" real,
  "2006_10" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1990–95 is the average one that has a 2001–05 larger than 0.55?`:
```sql
                SELECT AVG("1990_95") FROM "index_trends_in_major_states_by_respecti" WHERE "2001_05">0.55;
```
## Task
Generate a SQL query to answer the following question:
`Which 1990–95 is the highest one that has a State of assam, and a 1996-00 smaller than 0.02?`

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

CREATE TABLE "index_trends_in_major_states_by_respecti" (
  "state" text,
  "1990_95" real,
  "1996_00" real,
  "2001_05" real,
  "2006_10" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1990–95 is the highest one that has a State of assam, and a 1996-00 smaller than 0.02?`:
```sql
                SELECT MAX("1990_95") FROM "index_trends_in_major_states_by_respecti" WHERE "state"='assam' AND "1996_00"<0.02;
```
## Task
Generate a SQL query to answer the following question:
`What is the Winning team on january 28, 2006?`

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

CREATE TABLE "2005_2006" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Winning team on january 28, 2006?`:
```sql
                SELECT "winning_team" FROM "2005_2006" WHERE "date"='january 28, 2006';
```
## Task
Generate a SQL query to answer the following question:
`Which Series has a Winning team of iowa state and a Sport of w basketball?`

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

CREATE TABLE "2005_2006" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Series has a Winning team of iowa state and a Sport of w basketball?`:
```sql
                SELECT "series" FROM "2005_2006" WHERE "winning_team"='iowa state' AND "sport"='w basketball';
```
## Task
Generate a SQL query to answer the following question:
`Which Series has a Site of ames on september 10, 2005?`

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

CREATE TABLE "2005_2006" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Series has a Site of ames on september 10, 2005?`:
```sql
                SELECT "series" FROM "2005_2006" WHERE "site"='ames' AND "date"='september 10, 2005';
```
## Task
Generate a SQL query to answer the following question:
`Which Series has a Site of ames and a Sport of w gymnastics?`

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

CREATE TABLE "2005_2006" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Series has a Site of ames and a Sport of w gymnastics?`:
```sql
                SELECT "series" FROM "2005_2006" WHERE "site"='ames' AND "sport"='w gymnastics';
```
## Task
Generate a SQL query to answer the following question:
`WHich port is on march 17, 2006 and has a Winning team of iowa state?`

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

CREATE TABLE "2005_2006" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich port is on march 17, 2006 and has a Winning team of iowa state?`:
```sql
                SELECT "sport" FROM "2005_2006" WHERE "date"='march 17, 2006' AND "winning_team"='iowa state';
```
## Task
Generate a SQL query to answer the following question:
`Which Site has a Date of march 17, 2006 and an iowa state Winning team?`

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

CREATE TABLE "2005_2006" (
  "date" text,
  "site" text,
  "sport" text,
  "winning_team" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Site has a Date of march 17, 2006 and an iowa state Winning team?`:
```sql
                SELECT "site" FROM "2005_2006" WHERE "date"='march 17, 2006' AND "winning_team"='iowa state';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent of the game before week 11 on October 31, 1976?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent of the game before week 11 on October 31, 1976?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"<11 AND "date"='october 31, 1976';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance of the game on week 9?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attendance of the game on week 9?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "week"=9;
```
## Task
Generate a SQL query to answer the following question:
`When is the last episode air date for season 3?`

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

CREATE TABLE "seasons" (
  "season" real,
  "episodes" real,
  "first_air_date" text,
  "last_air_date" text,
  "timeslot" text,
  "dvd_release" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the last episode air date for season 3?`:
```sql
                SELECT "last_air_date" FROM "seasons" WHERE "season"=3;
```
## Task
Generate a SQL query to answer the following question:
`Which season had its last episode air on March 11, 2001?`

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

CREATE TABLE "seasons" (
  "season" real,
  "episodes" real,
  "first_air_date" text,
  "last_air_date" text,
  "timeslot" text,
  "dvd_release" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season had its last episode air on March 11, 2001?`:
```sql
                SELECT "season" FROM "seasons" WHERE "last_air_date"='march 11, 2001';
```
## Task
Generate a SQL query to answer the following question:
`What games have more than 1 draw?`

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

CREATE TABLE "first_round" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What games have more than 1 draw?`:
```sql
                SELECT AVG("games") FROM "first_round" WHERE "drawn">1;
```
## Task
Generate a SQL query to answer the following question:
`What game is the lowest with 1 draw and less than 7 points?`

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

CREATE TABLE "first_round" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What game is the lowest with 1 draw and less than 7 points?`:
```sql
                SELECT MIN("games") FROM "first_round" WHERE "drawn"=1 AND "points"<7;
```
## Task
Generate a SQL query to answer the following question:
`Manager of art griggs had what lowest year?`

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

CREATE TABLE "western_league" (
  "year" real,
  "league" text,
  "class" text,
  "record" text,
  "finish" text,
  "manager" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Manager of art griggs had what lowest year?`:
```sql
                SELECT MIN("year") FROM "western_league" WHERE "manager"='art griggs';
```
## Task
Generate a SQL query to answer the following question:
`Manager of spencer abbott, and a Year of 1919 involves what playoffs?`

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

CREATE TABLE "western_league" (
  "year" real,
  "league" text,
  "class" text,
  "record" text,
  "finish" text,
  "manager" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Manager of spencer abbott, and a Year of 1919 involves what playoffs?`:
```sql
                SELECT "playoffs" FROM "western_league" WHERE "manager"='spencer abbott' AND "year"=1919;
```
## Task
Generate a SQL query to answer the following question:
`Manager of marty berghammer / nick allen is what year?`

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

CREATE TABLE "western_league" (
  "year" real,
  "league" text,
  "class" text,
  "record" text,
  "finish" text,
  "manager" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Manager of marty berghammer / nick allen is what year?`:
```sql
                SELECT "year" FROM "western_league" WHERE "manager"='marty berghammer / nick allen';
```
## Task
Generate a SQL query to answer the following question:
`Manager of lyman lamb / marty berghammer is in what league?`

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

CREATE TABLE "western_league" (
  "year" real,
  "league" text,
  "class" text,
  "record" text,
  "finish" text,
  "manager" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Manager of lyman lamb / marty berghammer is in what league?`:
```sql
                SELECT "league" FROM "western_league" WHERE "manager"='lyman lamb / marty berghammer';
```
## Task
Generate a SQL query to answer the following question:
`Manager of marty berghammer, and a Finish of 1st involved what lowest year?`

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

CREATE TABLE "western_league" (
  "year" real,
  "league" text,
  "class" text,
  "record" text,
  "finish" text,
  "manager" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Manager of marty berghammer, and a Finish of 1st involved what lowest year?`:
```sql
                SELECT MIN("year") FROM "western_league" WHERE "manager"='marty berghammer' AND "finish"='1st';
```
## Task
Generate a SQL query to answer the following question:
`Playoffs of league champs, and a Record of 77-63 is in what league?`

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

CREATE TABLE "western_league" (
  "year" real,
  "league" text,
  "class" text,
  "record" text,
  "finish" text,
  "manager" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Playoffs of league champs, and a Record of 77-63 is in what league?`:
```sql
                SELECT "league" FROM "western_league" WHERE "playoffs"='league champs' AND "record"='77-63';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2005 with 2007 of sf`

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

CREATE TABLE "doubles" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "career_w_l" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2005 with 2007 of sf`:
```sql
                SELECT "2005" FROM "doubles" WHERE "2007"='sf';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2006 with 2008 of 1r and 2004 of 1r`

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

CREATE TABLE "doubles" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "career_w_l" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2006 with 2008 of 1r and 2004 of 1r`:
```sql
                SELECT "2006" FROM "doubles" WHERE "2008"='1r' AND "2004"='1r';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2011 with 2002 of 1r and 2009 of a`

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

CREATE TABLE "doubles" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "career_w_l" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2011 with 2002 of 1r and 2009 of a`:
```sql
                SELECT "2011" FROM "doubles" WHERE "2002"='1r' AND "2009"='a';
```
## Task
Generate a SQL query to answer the following question:
`Name the 1999 with 2011 of 2r`

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

CREATE TABLE "doubles" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "career_w_l" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 1999 with 2011 of 2r`:
```sql
                SELECT "1999" FROM "doubles" WHERE "2011"='2r';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2008 with 1998 of a and 2002 of 1r with 2004 of 2r`

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

CREATE TABLE "doubles" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "career_w_l" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2008 with 1998 of a and 2002 of 1r with 2004 of 2r`:
```sql
                SELECT "2008" FROM "doubles" WHERE "1998"='a' AND "2002"='1r' AND "2004"='2r';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2001 with 2007 of sf`

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

CREATE TABLE "doubles" (
  "tournament" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "career_w_l" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2001 with 2007 of sf`:
```sql
                SELECT "2001" FROM "doubles" WHERE "2007"='sf';
```
## Task
Generate a SQL query to answer the following question:
`Which AAA class has Fort Bend Dulles as a Class AAAAA?`

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

CREATE TABLE "individual" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which AAA class has Fort Bend Dulles as a Class AAAAA?`:
```sql
                SELECT "class_aaa" FROM "individual" WHERE "class_aaaaa"='fort bend dulles';
```
## Task
Generate a SQL query to answer the following question:
`Which school year was the Class AAA dalhart and the class AAAAA edinburg?`

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

CREATE TABLE "individual" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school year was the Class AAA dalhart and the class AAAAA edinburg?`:
```sql
                SELECT "school_year" FROM "individual" WHERE "class_aaa"='dalhart' AND "class_aaaaa"='edinburg';
```
## Task
Generate a SQL query to answer the following question:
`For what Class A is the school year 1987-88?`

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

CREATE TABLE "individual" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `For what Class A is the school year 1987-88?`:
```sql
                SELECT "class_a" FROM "individual" WHERE "school_year"='1987-88';
```
## Task
Generate a SQL query to answer the following question:
`What is the Class AAAAA when Class AA is Tuscola Jim Ned and Class AAA Snyder?`

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

CREATE TABLE "individual" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Class AAAAA when Class AA is Tuscola Jim Ned and Class AAA Snyder?`:
```sql
                SELECT "class_aaaaa" FROM "individual" WHERE "class_aa"='tuscola jim ned' AND "class_aaa"='snyder';
```
## Task
Generate a SQL query to answer the following question:
`What is the Class AAAAA when the Class AAA is Gonzales?`

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

CREATE TABLE "individual" (
  "school_year" text,
  "class_a" text,
  "class_aa" text,
  "class_aaa" text,
  "class_aaaa" text,
  "class_aaaaa" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Class AAAAA when the Class AAA is Gonzales?`:
```sql
                SELECT "class_aaaa" FROM "individual" WHERE "class_aaa"='gonzales';
```
## Task
Generate a SQL query to answer the following question:
`Which team scored less than 35 points?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_b" (
  "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 `Which team scored less than 35 points?`:
```sql
                SELECT "team" FROM "campeonato_brasileiro_s_rie_b" WHERE "points"<35;
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Team of criciúma, and a Drawn larger than 8?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_b" (
  "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 `Which Position has a Team of criciúma, and a Drawn larger than 8?`:
```sql
                SELECT AVG("position") FROM "campeonato_brasileiro_s_rie_b" WHERE "team"='criciúma' AND "drawn">8;
```