cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the Airport for New York City?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Airport for New York City?`:
```sql
                SELECT "airport" FROM "destinations" WHERE "city"='new york';
```
## Task
Generate a SQL query to answer the following question:
`What is the Country when the IATA was osl?`

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

CREATE TABLE "destinations" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Country when the IATA was osl?`:
```sql
                SELECT "country" FROM "destinations" WHERE "iata"='osl';
```
## Task
Generate a SQL query to answer the following question:
`Which Division has a Year larger than 1996,a Regular Season of 4th, and a Playoffs of final?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Division has a Year larger than 1996,a Regular Season of 4th, and a Playoffs of final?`:
```sql
                SELECT "division" FROM "year_by_year" WHERE "year">1996 AND "regular_season"='4th' AND "playoffs"='final';
```
## Task
Generate a SQL query to answer the following question:
`Which League that has a Open Cup of 1st round, and a Year of 2009?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which League that has a Open Cup of 1st round, and a Year of 2009?`:
```sql
                SELECT "league" FROM "year_by_year" WHERE "open_cup"='1st round' AND "year"=2009;
```
## Task
Generate a SQL query to answer the following question:
`Which Playoffs has a Division of 2 and a Regular Season of 4th, southeast?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Playoffs has a Division of 2 and a Regular Season of 4th, southeast?`:
```sql
                SELECT "playoffs" FROM "year_by_year" WHERE "division"='2' AND "regular_season"='4th, southeast';
```
## Task
Generate a SQL query to answer the following question:
`What are the least amount of points that have points for greater than 438, and points against greater than 943?`

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

CREATE TABLE "2007_results" (
  "club" text,
  "wins" real,
  "loses" real,
  "points_for" real,
  "points_against" real,
  "percentage" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the least amount of points that have points for greater than 438, and points against greater than 943?`:
```sql
                SELECT MIN("points") FROM "2007_results" WHERE "points_for">438 AND "points_against">943;
```
## Task
Generate a SQL query to answer the following question:
`What are the highest losses that have points agaisnt less than 956, high park demons as the club, and points less than 16?`

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

CREATE TABLE "2007_results" (
  "club" text,
  "wins" real,
  "loses" real,
  "points_for" real,
  "points_against" real,
  "percentage" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the highest losses that have points agaisnt less than 956, high park demons as the club, and points less than 16?`:
```sql
                SELECT MAX("loses") FROM "2007_results" WHERE "points_against"<956 AND "club"='high park demons' AND "points"<16;
```
## Task
Generate a SQL query to answer the following question:
`What club has losses greater than 1, 4 for the wins, with points against less than 894?`

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

CREATE TABLE "2007_results" (
  "club" text,
  "wins" real,
  "loses" real,
  "points_for" real,
  "points_against" real,
  "percentage" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What club has losses greater than 1, 4 for the wins, with points against less than 894?`:
```sql
                SELECT "club" FROM "2007_results" WHERE "loses">1 AND "wins"=4 AND "points_against"<894;
```
## Task
Generate a SQL query to answer the following question:
`How many losses have points against greater than 592, with high park demons as the club, and points for greater than 631?`

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

CREATE TABLE "2007_results" (
  "club" text,
  "wins" real,
  "loses" real,
  "points_for" real,
  "points_against" real,
  "percentage" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses have points against greater than 592, with high park demons as the club, and points for greater than 631?`:
```sql
                SELECT COUNT("loses") FROM "2007_results" WHERE "points_against">592 AND "club"='high park demons' AND "points_for">631;
```
## Task
Generate a SQL query to answer the following question:
`What losses have points for less than 1175, wins greater than 2, points against greater than 894, and 24 as the points?`

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

CREATE TABLE "2007_results" (
  "club" text,
  "wins" real,
  "loses" real,
  "points_for" real,
  "points_against" real,
  "percentage" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What losses have points for less than 1175, wins greater than 2, points against greater than 894, and 24 as the points?`:
```sql
                SELECT "loses" FROM "2007_results" WHERE "points_for"<1175 AND "wins">2 AND "points_against">894 AND "points"=24;
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest track written by dennis linde that's 2:50 minutes long`

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

CREATE TABLE "side_two" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "writer_s" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest track written by dennis linde that's 2:50 minutes long`:
```sql
                SELECT MIN("track") FROM "side_two" WHERE "writer_s"='dennis linde' AND "time"='2:50';
```
## Task
Generate a SQL query to answer the following question:
`How long is the song titled burning love?`

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

CREATE TABLE "side_two" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "writer_s" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long is the song titled burning love?`:
```sql
                SELECT "time" FROM "side_two" WHERE "song_title"='burning love';
```
## Task
Generate a SQL query to answer the following question:
`When was the song titled if you talk in your sleep released?`

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

CREATE TABLE "side_two" (
  "track" real,
  "recorded" text,
  "catalogue" text,
  "release_date" text,
  "song_title" text,
  "writer_s" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the song titled if you talk in your sleep released?`:
```sql
                SELECT "release_date" FROM "side_two" WHERE "song_title"='if you talk in your sleep';
```
## Task
Generate a SQL query to answer the following question:
`What is the city that is located in California when the year is greater than 2009?`

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

CREATE TABLE "televised_era" (
  "year" real,
  "venue" text,
  "city" text,
  "state" text,
  "host" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the city that is located in California when the year is greater than 2009?`:
```sql
                SELECT "city" FROM "televised_era" WHERE "state"='california' AND "year">2009;
```
## Task
Generate a SQL query to answer the following question:
`What is the host in a year greater than 1989 and when the venue is the Staples Center located in California?`

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

CREATE TABLE "televised_era" (
  "year" real,
  "venue" text,
  "city" text,
  "state" text,
  "host" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the host in a year greater than 1989 and when the venue is the Staples Center located in California?`:
```sql
                SELECT "host" FROM "televised_era" WHERE "year">1989 AND "state"='california' AND "venue"='staples center';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue in 2011, when the state is California?`

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

CREATE TABLE "televised_era" (
  "year" real,
  "venue" text,
  "city" text,
  "state" text,
  "host" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue in 2011, when the state is California?`:
```sql
                SELECT "venue" FROM "televised_era" WHERE "state"='california' AND "year"=2011;
```
## Task
Generate a SQL query to answer the following question:
`What is the wards/branches of the fort smith Arkansas stake?`

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

CREATE TABLE "arkansas_stakes" (
  "stake" text,
  "organized" text,
  "wards_branches_in_arkansas" real,
  "stake_president" text,
  "occupation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the wards/branches of the fort smith Arkansas stake?`:
```sql
                SELECT "wards_branches_in_arkansas" FROM "arkansas_stakes" WHERE "stake"='fort smith arkansas';
```
## Task
Generate a SQL query to answer the following question:
`What stake has realtor for American equity realty as their occupation?`

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

CREATE TABLE "arkansas_stakes" (
  "stake" text,
  "organized" text,
  "wards_branches_in_arkansas" real,
  "stake_president" text,
  "occupation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stake has realtor for American equity realty as their occupation?`:
```sql
                SELECT "stake" FROM "arkansas_stakes" WHERE "occupation"='realtor for american equity realty';
```
## Task
Generate a SQL query to answer the following question:
`What is the organized date of the stake with an occupation of senior buyer for Wal-mart?`

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

CREATE TABLE "arkansas_stakes" (
  "stake" text,
  "organized" text,
  "wards_branches_in_arkansas" real,
  "stake_president" text,
  "occupation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the organized date of the stake with an occupation of senior buyer for Wal-mart?`:
```sql
                SELECT "organized" FROM "arkansas_stakes" WHERE "occupation"='senior buyer for wal-mart';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the wards/branches in Arkansas of the North Little Rock Arkansas stake?`

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

CREATE TABLE "arkansas_stakes" (
  "stake" text,
  "organized" text,
  "wards_branches_in_arkansas" real,
  "stake_president" text,
  "occupation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the wards/branches in Arkansas of the North Little Rock Arkansas stake?`:
```sql
                SELECT SUM("wards_branches_in_arkansas") FROM "arkansas_stakes" WHERE "stake"='north little rock arkansas';
```
## Task
Generate a SQL query to answer the following question:
`What stake has 16 wards/branches in Arkansas?`

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

CREATE TABLE "arkansas_stakes" (
  "stake" text,
  "organized" text,
  "wards_branches_in_arkansas" real,
  "stake_president" text,
  "occupation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What stake has 16 wards/branches in Arkansas?`:
```sql
                SELECT "stake" FROM "arkansas_stakes" WHERE "wards_branches_in_arkansas"=16;
```
## Task
Generate a SQL query to answer the following question:
`What is Stable, when Current Rank is F1 Jūryō 14 West?`

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

CREATE TABLE "list" (
  "ring_name" text,
  "current_rank" text,
  "debut" text,
  "stable" text,
  "birthplace" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Stable, when Current Rank is F1 Jūryō 14 West?`:
```sql
                SELECT "stable" FROM "list" WHERE "current_rank"='f1 jūryō 14 west';
```
## Task
Generate a SQL query to answer the following question:
`What is Ring Name, when Current Rank is E0 Maegashira 9 West?`

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

CREATE TABLE "list" (
  "ring_name" text,
  "current_rank" text,
  "debut" text,
  "stable" text,
  "birthplace" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Ring Name, when Current Rank is E0 Maegashira 9 West?`:
```sql
                SELECT "ring_name" FROM "list" WHERE "current_rank"='e0 maegashira 9 west';
```
## Task
Generate a SQL query to answer the following question:
`What is Birthplace, when Ring Name is Masunoyama Tomoharu?`

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

CREATE TABLE "list" (
  "ring_name" text,
  "current_rank" text,
  "debut" text,
  "stable" text,
  "birthplace" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Birthplace, when Ring Name is Masunoyama Tomoharu?`:
```sql
                SELECT "birthplace" FROM "list" WHERE "ring_name"='masunoyama tomoharu';
```
## Task
Generate a SQL query to answer the following question:
`What is Current Rank, when Ring Name is Tamaasuka Daisuke?`

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

CREATE TABLE "list" (
  "ring_name" text,
  "current_rank" text,
  "debut" text,
  "stable" text,
  "birthplace" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Current Rank, when Ring Name is Tamaasuka Daisuke?`:
```sql
                SELECT "current_rank" FROM "list" WHERE "ring_name"='tamaasuka daisuke';
```
## Task
Generate a SQL query to answer the following question:
`What is Ring Name, when Stable is Kasugano, and when Birthplace is Z Mtskheta , Georgia?`

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

CREATE TABLE "list" (
  "ring_name" text,
  "current_rank" text,
  "debut" text,
  "stable" text,
  "birthplace" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Ring Name, when Stable is Kasugano, and when Birthplace is Z Mtskheta , Georgia?`:
```sql
                SELECT "ring_name" FROM "list" WHERE "stable"='kasugano' AND "birthplace"='z mtskheta , georgia';
```
## Task
Generate a SQL query to answer the following question:
`What is Current Rank, when Ring Name is Kimurayama Mamoru?`

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

CREATE TABLE "list" (
  "ring_name" text,
  "current_rank" text,
  "debut" text,
  "stable" text,
  "birthplace" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Current Rank, when Ring Name is Kimurayama Mamoru?`:
```sql
                SELECT "current_rank" FROM "list" WHERE "ring_name"='kimurayama mamoru';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Interview Subject on the Date when there were Pictorials of Christie Brinkley?`

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

CREATE TABLE "1984" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Interview Subject on the Date when there were Pictorials of Christie Brinkley?`:
```sql
                SELECT "interview_subject" FROM "1984" WHERE "pictorials"='christie brinkley';
```
## Task
Generate a SQL query to answer the following question:
`In the issue in which the Interview subject was Jesse Jackson, who were there Pictorials of?`

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

CREATE TABLE "1984" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the issue in which the Interview subject was Jesse Jackson, who were there Pictorials of?`:
```sql
                SELECT "pictorials" FROM "1984" WHERE "interview_subject"='jesse jackson';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Centerfold model in the issue in which the Interview subject was Paul Simon?`

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

CREATE TABLE "1984" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Centerfold model in the issue in which the Interview subject was Paul Simon?`:
```sql
                SELECT "centerfold_model" FROM "1984" WHERE "interview_subject"='paul simon';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Centerfold model in the issue in which the Interview subject was José Napoleón Duarte?`

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

CREATE TABLE "1984" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Centerfold model in the issue in which the Interview subject was José Napoleón Duarte?`:
```sql
                SELECT "centerfold_model" FROM "1984" WHERE "interview_subject"='josé napoleón duarte';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Cover model in the issue in which the Interview subject was Joan Collins?`

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

CREATE TABLE "1984" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Cover model in the issue in which the Interview subject was Joan Collins?`:
```sql
                SELECT "cover_model" FROM "1984" WHERE "interview_subject"='joan collins';
```
## Task
Generate a SQL query to answer the following question:
`Which date has a round more than 9?`

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

CREATE TABLE "race_calendar" (
  "round" real,
  "location" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has a round more than 9?`:
```sql
                SELECT "date" FROM "race_calendar" WHERE "round">9;
```
## Task
Generate a SQL query to answer the following question:
`Who is the driver that one for the winning tpc team qi-meritus that has a round more than 8?`

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

CREATE TABLE "race_calendar" (
  "round" real,
  "location" text,
  "circuit" text,
  "date" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the driver that one for the winning tpc team qi-meritus that has a round more than 8?`:
```sql
                SELECT "winning_driver" FROM "race_calendar" WHERE "winning_team"='tpc team qi-meritus' AND "round">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the time of 12 December 2009 with record start?`

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

CREATE TABLE "track_records" (
  "sport" text,
  "record" text,
  "athlete_s" text,
  "nation" text,
  "date" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of 12 December 2009 with record start?`:
```sql
                SELECT "time" FROM "track_records" WHERE "record"='start' AND "date"='12 december 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is Elizabeth Yarnold's nation?`

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

CREATE TABLE "track_records" (
  "sport" text,
  "record" text,
  "athlete_s" text,
  "nation" text,
  "date" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Elizabeth Yarnold's nation?`:
```sql
                SELECT "nation" FROM "track_records" WHERE "athlete_s"='elizabeth yarnold';
```
## Task
Generate a SQL query to answer the following question:
`What country is the Jiufotang Formation located in?`

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

CREATE TABLE "newly_named_pterosaurs" (
  "name" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is the Jiufotang Formation located in?`:
```sql
                SELECT "location" FROM "newly_named_pterosaurs" WHERE "unit"='jiufotang formation';
```
## Task
Generate a SQL query to answer the following question:
`Which author is located in Mexico?`

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

CREATE TABLE "newly_named_pterosaurs" (
  "name" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which author is located in Mexico?`:
```sql
                SELECT "authors" FROM "newly_named_pterosaurs" WHERE "location"='mexico';
```
## Task
Generate a SQL query to answer the following question:
`Where is wang li duan cheng located?`

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

CREATE TABLE "newly_named_pterosaurs" (
  "name" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is wang li duan cheng located?`:
```sql
                SELECT "location" FROM "newly_named_pterosaurs" WHERE "authors"='wang li duan cheng';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of the pterosaur named Cathayopterus?`

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

CREATE TABLE "newly_named_pterosaurs" (
  "name" text,
  "status" text,
  "authors" text,
  "unit" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the pterosaur named Cathayopterus?`:
```sql
                SELECT "status" FROM "newly_named_pterosaurs" WHERE "name"='cathayopterus';
```
## Task
Generate a SQL query to answer the following question:
`Which Years in Orlando has a School/Club Team of texas tech?`

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

CREATE TABLE "b" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Years in Orlando has a School/Club Team of texas tech?`:
```sql
                SELECT "years_in_orlando" FROM "b" WHERE "school_club_team"='texas tech';
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Player of keith bogans, and a Years in Orlando of 2006–2009?`

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

CREATE TABLE "b" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a Player of keith bogans, and a Years in Orlando of 2006–2009?`:
```sql
                SELECT "nationality" FROM "b" WHERE "player"='keith bogans' AND "years_in_orlando"='2006–2009';
```
## Task
Generate a SQL query to answer the following question:
`What is Pat Burke's Nationality?`

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

CREATE TABLE "b" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Pat Burke's Nationality?`:
```sql
                SELECT "nationality" FROM "b" WHERE "player"='pat burke';
```
## Task
Generate a SQL query to answer the following question:
`Which School/Club Team has a Player of michael bradley?`

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

CREATE TABLE "b" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School/Club Team has a Player of michael bradley?`:
```sql
                SELECT "school_club_team" FROM "b" WHERE "player"='michael bradley';
```
## Task
Generate a SQL query to answer the following question:
`Which Years in Orlando has a School/Club Team of kentucky?`

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

CREATE TABLE "b" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Years in Orlando has a School/Club Team of kentucky?`:
```sql
                SELECT "years_in_orlando" FROM "b" WHERE "school_club_team"='kentucky';
```
## Task
Generate a SQL query to answer the following question:
`Which School/Club Team has a Player of jud buechler?`

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

CREATE TABLE "b" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School/Club Team has a Player of jud buechler?`:
```sql
                SELECT "school_club_team" FROM "b" WHERE "player"='jud buechler';
```
## Task
Generate a SQL query to answer the following question:
`What is the position for years under 1999?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position for years under 1999?`:
```sql
                SELECT "pos" FROM "24_hours_of_le_mans_results" WHERE "year"<1999;
```
## Task
Generate a SQL query to answer the following question:
`What is the average year for Team Oreca?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year for Team Oreca?`:
```sql
                SELECT AVG("year") FROM "24_hours_of_le_mans_results" WHERE "team"='team oreca';
```
## Task
Generate a SQL query to answer the following question:
`Which team had a class position of 5th?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had a class position of 5th?`:
```sql
                SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "class_pos"='5th';
```
## Task
Generate a SQL query to answer the following question:
`What is the class having a year under 2010 and a class position of 5th?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class having a year under 2010 and a class position of 5th?`:
```sql
                SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "year"<2010 AND "class_pos"='5th';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has an Against larger than 17, and a Team of juventus, and a Drawn smaller 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 `Which Position has an Against larger than 17, and a Team of juventus, and a Drawn smaller than 4?`:
```sql
                SELECT MIN("position") FROM "campeonato_paulista" WHERE "against">17 AND "team"='juventus' AND "drawn"<4;
```
## Task
Generate a SQL query to answer the following question:
`Which Lost has an Against of 49 and a Played smaller than 20?`

### 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 `Which Lost has an Against of 49 and a Played smaller than 20?`:
```sql
                SELECT COUNT("lost") FROM "campeonato_paulista" WHERE "against"=49 AND "played"<20;
```
## Task
Generate a SQL query to answer the following question:
`In which championship had a previous champion of "defeated Justin Corino in tournament final"?`

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

CREATE TABLE "championships" (
  "championship" text,
  "current_champion_s" text,
  "previous_champion_s" text,
  "date_won" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which championship had a previous champion of "defeated Justin Corino in tournament final"?`:
```sql
                SELECT "championship" FROM "championships" WHERE "previous_champion_s"='defeated justin corino in tournament final';
```
## Task
Generate a SQL query to answer the following question:
`Which location had previous champions of Mike Webb and Nick Fahrenheit?`

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

CREATE TABLE "championships" (
  "championship" text,
  "current_champion_s" text,
  "previous_champion_s" text,
  "date_won" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location had previous champions of Mike Webb and Nick Fahrenheit?`:
```sql
                SELECT "location" FROM "championships" WHERE "previous_champion_s"='mike webb and nick fahrenheit';
```
## Task
Generate a SQL query to answer the following question:
`Who were the previous champions from the event won on May 1, 2010?`

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

CREATE TABLE "championships" (
  "championship" text,
  "current_champion_s" text,
  "previous_champion_s" text,
  "date_won" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the previous champions from the event won on May 1, 2010?`:
```sql
                SELECT "previous_champion_s" FROM "championships" WHERE "date_won"='may 1, 2010';
```
## Task
Generate a SQL query to answer the following question:
`Who is the current champion for the event in Beverly, MA, with previous champions of Mike Webb and Nick Fahrenheit?`

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

CREATE TABLE "championships" (
  "championship" text,
  "current_champion_s" text,
  "previous_champion_s" text,
  "date_won" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the current champion for the event in Beverly, MA, with previous champions of Mike Webb and Nick Fahrenheit?`:
```sql
                SELECT "current_champion_s" FROM "championships" WHERE "location"='beverly, ma' AND "previous_champion_s"='mike webb and nick fahrenheit';
```
## Task
Generate a SQL query to answer the following question:
`Who is the current champion in the NECW Heavyweight Championship?`

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

CREATE TABLE "championships" (
  "championship" text,
  "current_champion_s" text,
  "previous_champion_s" text,
  "date_won" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the current champion in the NECW Heavyweight Championship?`:
```sql
                SELECT "current_champion_s" FROM "championships" WHERE "championship"='necw heavyweight champion';
```
## Task
Generate a SQL query to answer the following question:
`Which location held the Iron 8 Championship tournament?`

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

CREATE TABLE "championships" (
  "championship" text,
  "current_champion_s" text,
  "previous_champion_s" text,
  "date_won" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location held the Iron 8 Championship tournament?`:
```sql
                SELECT "location" FROM "championships" WHERE "championship"='iron 8 championship tournament';
```
## Task
Generate a SQL query to answer the following question:
`What is the capacity of 3500v volts?`

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

CREATE TABLE "electrostatic_electrolytic_and_electroch" (
  "capacity" text,
  "volts" text,
  "temp" text,
  "energy_to_weight_ratio" text,
  "power_to_weight_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capacity of 3500v volts?`:
```sql
                SELECT "capacity" FROM "electrostatic_electrolytic_and_electroch" WHERE "volts"='3500v';
```
## Task
Generate a SQL query to answer the following question:
`How many volts has an energy-to-weight ratio of 54 kj/kg to 2.0v?`

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

CREATE TABLE "electrostatic_electrolytic_and_electroch" (
  "capacity" text,
  "volts" text,
  "temp" text,
  "energy_to_weight_ratio" text,
  "power_to_weight_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many volts has an energy-to-weight ratio of 54 kj/kg to 2.0v?`:
```sql
                SELECT "volts" FROM "electrostatic_electrolytic_and_electroch" WHERE "energy_to_weight_ratio"='54 kj/kg to 2.0v';
```
## Task
Generate a SQL query to answer the following question:
`What is the capacity with 2.7v volts and a power-to-weight ratio of 5.44 w/kg c/1 (1.875a)?`

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

CREATE TABLE "electrostatic_electrolytic_and_electroch" (
  "capacity" text,
  "volts" text,
  "temp" text,
  "energy_to_weight_ratio" text,
  "power_to_weight_ratio" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capacity with 2.7v volts and a power-to-weight ratio of 5.44 w/kg c/1 (1.875a)?`:
```sql
                SELECT "capacity" FROM "electrostatic_electrolytic_and_electroch" WHERE "volts"='2.7v' AND "power_to_weight_ratio"='5.44 w/kg c/1 (1.875a)';
```
## Task
Generate a SQL query to answer the following question:
`Which season led to a position of 13, and a head coach of Protasov Lyutyi Talalayev Balakhnin Baidachny?`

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

CREATE TABLE "final_league_positions_since_1992" (
  "season" text,
  "div" text,
  "pos" real,
  "top_scorer_league" text,
  "head_coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season led to a position of 13, and a head coach of Protasov Lyutyi Talalayev Balakhnin Baidachny?`:
```sql
                SELECT "season" FROM "final_league_positions_since_1992" WHERE "pos"=13 AND "head_coach"='protasov lyutyi talalayev balakhnin baidachny';
```
## Task
Generate a SQL query to answer the following question:
`Which week had the highest attendance with 58,701?`

### 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 `Which week had the highest attendance with 58,701?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "attendance"='58,701';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game against the San Diego Chargers?`

### 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 `What was the score of the game against the San Diego Chargers?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "opponent"='san diego chargers';
```
## Task
Generate a SQL query to answer the following question:
`When was the attendance less than 44,851 during the first 4 weeks of the season?`

### 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 was the attendance less than 44,851 during the first 4 weeks of the season?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"<4 AND "attendance"='44,851';
```
## Task
Generate a SQL query to answer the following question:
`On week 13 what was the score of the game?`

### 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 `On week 13 what was the score of the game?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=13;
```
## Task
Generate a SQL query to answer the following question:
`What week had 58,025 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 `What week had 58,025 in attendance?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "attendance"='58,025';
```
## Task
Generate a SQL query to answer the following question:
`When was the game that had 58,025 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 `When was the game that had 58,025 people in attendance?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance"='58,025';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of Drawn games for Team Mackenzie where the Played is less and 11 and the Points are greater than 7?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of Drawn games for Team Mackenzie where the Played is less and 11 and the Points are greater than 7?`:
```sql
                SELECT MIN("drawn") FROM "campeonato_paulista" WHERE "played"<11 AND "points">7 AND "team"='mackenzie';
```
## Task
Generate a SQL query to answer the following question:
`What number of Points are shown for Team Paulistano where the Drawn is less than 2 and the Against is less than 15?`

### 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 number of Points are shown for Team Paulistano where the Drawn is less than 2 and the Against is less than 15?`:
```sql
                SELECT COUNT("points") FROM "campeonato_paulista" WHERE "drawn"<2 AND "team"='paulistano' AND "against"<15;
```
## Task
Generate a SQL query to answer the following question:
`What is the Lowest lost for Team Ypiranga-SP where the games Played is more than 10 and the goals Against is greater than 50?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lowest lost for Team Ypiranga-SP where the games Played is more than 10 and the goals Against is greater than 50?`:
```sql
                SELECT MIN("lost") FROM "campeonato_paulista" WHERE "played">10 AND "team"='ypiranga-sp' AND "against">50;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of Played games with a Position smaller than 2 and Drawn games 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 `What is the highest number of Played games with a Position smaller than 2 and Drawn games less than 4?`:
```sql
                SELECT MAX("played") FROM "campeonato_paulista" WHERE "position"<2 AND "drawn"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of runner-up that National University, which has more than 2 total championships, has?`

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

CREATE TABLE "number_of_championships_by_school" (
  "university" text,
  "men_s" real,
  "women_s" real,
  "runner_up" real,
  "total_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of runner-up that National University, which has more than 2 total championships, has?`:
```sql
                SELECT AVG("runner_up") FROM "number_of_championships_by_school" WHERE "university"='national university' AND "total_championships">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of total championships of the university with 2 men's and more than 2 women's?`

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

CREATE TABLE "number_of_championships_by_school" (
  "university" text,
  "men_s" real,
  "women_s" real,
  "runner_up" real,
  "total_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of total championships of the university with 2 men's and more than 2 women's?`:
```sql
                SELECT MIN("total_championships") FROM "number_of_championships_by_school" WHERE "men_s"=2 AND "women_s">2;
```
## Task
Generate a SQL query to answer the following question:
`How many runner-ups does the university with more than 0 men's and less than 4 total championships have?`

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

CREATE TABLE "number_of_championships_by_school" (
  "university" text,
  "men_s" real,
  "women_s" real,
  "runner_up" real,
  "total_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many runner-ups does the university with more than 0 men's and less than 4 total championships have?`:
```sql
                SELECT "runner_up" FROM "number_of_championships_by_school" WHERE "men_s">0 AND "total_championships"<4;
```