cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`who wrote the episode "he ain't heavy"?`

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

CREATE TABLE "table1_27913766_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `who wrote the episode "he ain't heavy"?`:
```sql
                SELECT "written_by" FROM "table1_27913766_1" WHERE "title"='\"He Ain''t Heavy\"';
```
## Task
Generate a SQL query to answer the following question:
`how many times was the episode "the old maid of honor" originally aired?`

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

CREATE TABLE "table1_27913766_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times was the episode "the old maid of honor" originally aired?`:
```sql
                SELECT COUNT("original_air_date") FROM "table1_27913766_1" WHERE "title"='\"The Old Maid of Honor\"';
```
## Task
Generate a SQL query to answer the following question:
`the episode "a change in heart/pants" had a maximum of what number in the series?`

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

CREATE TABLE "table1_27913766_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `the episode "a change in heart/pants" had a maximum of what number in the series?`:
```sql
                SELECT MAX("series_num") FROM "table1_27913766_1" WHERE "title"='\"A Change in Heart/Pants\"';
```
## Task
Generate a SQL query to answer the following question:
`Name the callsign for davao mindanao region`

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

CREATE TABLE "table1_27914076_1" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "coverage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the callsign for davao mindanao region`:
```sql
                SELECT "callsign" FROM "table1_27914076_1" WHERE "coverage"='Davao Mindanao Region';
```
## Task
Generate a SQL query to answer the following question:
`Name the power for dymd-fm`

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

CREATE TABLE "table1_27914076_1" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "coverage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the power for dymd-fm`:
```sql
                SELECT "power_k_w" FROM "table1_27914076_1" WHERE "callsign"='DYMD-FM';
```
## Task
Generate a SQL query to answer the following question:
`Name the frequency for 103.7 energy fm dipolog*`

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

CREATE TABLE "table1_27914076_1" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "coverage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the frequency for 103.7 energy fm dipolog*`:
```sql
                SELECT "frequency" FROM "table1_27914076_1" WHERE "branding"='103.7 Energy FM Dipolog*';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of coverage for  106.7 energy fm`

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

CREATE TABLE "table1_27914076_1" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "coverage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of coverage for  106.7 energy fm`:
```sql
                SELECT COUNT("coverage") FROM "table1_27914076_1" WHERE "branding"='106.7 Energy FM';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of the episode in the season that had 7.19 millions of north american viewers? `

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

CREATE TABLE "table1_27914606_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of the episode in the season that had 7.19 millions of north american viewers? `:
```sql
                SELECT "season_num" FROM "table1_27914606_1" WHERE "u_s_viewers_millions"='7.19';
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the episode whose writers were jeff astrof & matt goldman? `

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

CREATE TABLE "table1_27914606_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the episode whose writers were jeff astrof & matt goldman? `:
```sql
                SELECT "title" FROM "table1_27914606_1" WHERE "written_by"='Jeff Astrof & Matt Goldman';
```
## Task
Generate a SQL query to answer the following question:
`who were the writers of the episode that had 5.56 millions of north american viewers? `

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

CREATE TABLE "table1_27914606_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `who were the writers of the episode that had 5.56 millions of north american viewers? `:
```sql
                SELECT "written_by" FROM "table1_27914606_1" WHERE "u_s_viewers_millions"='5.56';
```
## Task
Generate a SQL query to answer the following question:
`What is the average for the player with 313 runs?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" text,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average for the player with 313 runs?`:
```sql
                SELECT "average" FROM "batting_averages" WHERE "runs"=313;
```
## Task
Generate a SQL query to answer the following question:
`How few runs does the 97.00 average have?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "highest_score" text,
  "100s" real,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How few runs does the 97.00 average have?`:
```sql
                SELECT MIN("runs") FROM "batting_averages" WHERE "average"='97.00';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum number of 50s scored?`

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

CREATE TABLE "batting_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "runs" real,
  "average" text,
  "strike_rate" text,
  "highest_score" text,
  "50s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum number of 50s scored?`:
```sql
                SELECT MIN("50s") FROM "batting_averages";
```
## Task
Generate a SQL query to answer the following question:
`How many 4wi were recorded by the player with an economy of 4.17?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "average" text,
  "economy" text,
  "bbi" text,
  "4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many 4wi were recorded by the player with an economy of 4.17?`:
```sql
                SELECT "4wi" FROM "bowling_averages" WHERE "economy"='4.17';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of wickets recorded?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "average" text,
  "economy" text,
  "bbi" text,
  "4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of wickets recorded?`:
```sql
                SELECT MIN("wickets") FROM "bowling_averages";
```
## Task
Generate a SQL query to answer the following question:
`What was the BBI for the bowler whose average is 24.50?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "average" text,
  "economy" text,
  "bbi" text,
  "4wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the BBI for the bowler whose average is 24.50?`:
```sql
                SELECT "bbi" FROM "bowling_averages" WHERE "average"='24.50';
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of wickets?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "wickets" real,
  "average" text,
  "bbi" text,
  "bbm" text,
  "5wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of wickets?`:
```sql
                SELECT MIN("wickets") FROM "bowling_averages";
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of matches?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "wickets" real,
  "average" text,
  "bbi" text,
  "bbm" text,
  "5wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of matches?`:
```sql
                SELECT MIN("matches") FROM "bowling_averages";
```
## Task
Generate a SQL query to answer the following question:
`How many players had 12 wickets?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "wickets" real,
  "average" text,
  "bbi" text,
  "bbm" text,
  "5wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many players had 12 wickets?`:
```sql
                SELECT COUNT("player") FROM "bowling_averages" WHERE "wickets"=12;
```
## Task
Generate a SQL query to answer the following question:
`How many innings for the player with an average of 30.03?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "wickets" real,
  "average" text,
  "bbi" text,
  "bbm" text,
  "5wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many innings for the player with an average of 30.03?`:
```sql
                SELECT MIN("innings") FROM "bowling_averages" WHERE "average"='30.03';
```
## Task
Generate a SQL query to answer the following question:
`What is the average for the player with BBM 5/85?`

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

CREATE TABLE "bowling_averages" (
  "player" text,
  "matches" real,
  "innings" real,
  "wickets" real,
  "average" text,
  "bbi" text,
  "bbm" text,
  "5wi" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average for the player with BBM 5/85?`:
```sql
                SELECT "average" FROM "bowling_averages" WHERE "bbm"='5/85';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest episode number that had 4.03 million viewers?`

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

CREATE TABLE "table1_27927185_1" (
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest episode number that had 4.03 million viewers?`:
```sql
                SELECT MIN("episode_num") FROM "table1_27927185_1" WHERE "viewers_millions"='4.03';
```
## Task
Generate a SQL query to answer the following question:
`How many million viewers watched episodes prior to episode 2.0?`

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

CREATE TABLE "table1_27927185_1" (
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many million viewers watched episodes prior to episode 2.0?`:
```sql
                SELECT "viewers_millions" FROM "table1_27927185_1" WHERE "episode_num"<2.0;
```
## Task
Generate a SQL query to answer the following question:
`What was the original air-date that had 4.77 million viewers?`

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

CREATE TABLE "table1_27927185_1" (
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air-date that had 4.77 million viewers?`:
```sql
                SELECT "originalairdate" FROM "table1_27927185_1" WHERE "viewers_millions"='4.77';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with 6.37 million viewers?`

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

CREATE TABLE "table1_27927185_1" (
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with 6.37 million viewers?`:
```sql
                SELECT "directed_by" FROM "table1_27927185_1" WHERE "viewers_millions"='6.37';
```
## Task
Generate a SQL query to answer the following question:
`What is the release date of catalogue number DW023?`

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

CREATE TABLE "table1_27932399_1" (
  "catalogue_number" text,
  "artist" text,
  "release_title" text,
  "format" text,
  "release_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date of catalogue number DW023?`:
```sql
                SELECT MAX("release_date") FROM "table1_27932399_1" WHERE "catalogue_number"='DW023';
```
## Task
Generate a SQL query to answer the following question:
`What is the release date of "New Worlds for Old"?`

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

CREATE TABLE "table1_27932399_1" (
  "catalogue_number" text,
  "artist" text,
  "release_title" text,
  "format" text,
  "release_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date of "New Worlds for Old"?`:
```sql
                SELECT "release_date" FROM "table1_27932399_1" WHERE "release_title"='New Worlds For Old';
```
## Task
Generate a SQL query to answer the following question:
`What is the catalogue number for "Waves in the Air"?`

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

CREATE TABLE "table1_27932399_1" (
  "catalogue_number" text,
  "artist" text,
  "release_title" text,
  "format" text,
  "release_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the catalogue number for "Waves in the Air"?`:
```sql
                SELECT "catalogue_number" FROM "table1_27932399_1" WHERE "release_title"='Waves In The Air';
```
## Task
Generate a SQL query to answer the following question:
`What is the catalogue number for release dates of exactly 2005 and released by The Clear Spots?`

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

CREATE TABLE "table1_27932399_1" (
  "catalogue_number" text,
  "artist" text,
  "release_title" text,
  "format" text,
  "release_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the catalogue number for release dates of exactly 2005 and released by The Clear Spots?`:
```sql
                SELECT "catalogue_number" FROM "table1_27932399_1" WHERE "release_date"=2005 AND "artist"='The Clear Spots';
```
## Task
Generate a SQL query to answer the following question:
`Which artist had a release title of HH?`

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

CREATE TABLE "table1_27932399_1" (
  "catalogue_number" text,
  "artist" text,
  "release_title" text,
  "format" text,
  "release_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which artist had a release title of HH?`:
```sql
                SELECT "artist" FROM "table1_27932399_1" WHERE "release_title"='HH';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the album released by Heavy Winged?`

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

CREATE TABLE "table1_27932399_1" (
  "catalogue_number" text,
  "artist" text,
  "release_title" text,
  "format" text,
  "release_date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the album released by Heavy Winged?`:
```sql
                SELECT "release_title" FROM "table1_27932399_1" WHERE "artist"='Heavy Winged';
```
## Task
Generate a SQL query to answer the following question:
`Who was the dual television commentator in 1990?`

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

CREATE TABLE "commentators_and_spokespersons" (
  "year_s" real,
  "television_commentator" text,
  "dual_television_commentator" text,
  "radio_commentator" text,
  "spokesperson" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the dual television commentator in 1990?`:
```sql
                SELECT "dual_television_commentator" FROM "commentators_and_spokespersons" WHERE "year_s"=1990;
```
## Task
Generate a SQL query to answer the following question:
`Who made the comments for radio broadcast when Jan Gabrielsson made them for television broadcast?`

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

CREATE TABLE "commentators_and_spokespersons" (
  "year_s" real,
  "television_commentator" text,
  "dual_television_commentator" text,
  "radio_commentator" text,
  "spokesperson" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who made the comments for radio broadcast when Jan Gabrielsson made them for television broadcast?`:
```sql
                SELECT "radio_commentator" FROM "commentators_and_spokespersons" WHERE "television_commentator"='Jan Gabrielsson';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of moto2 winners for laguna seca`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "moto_gp_winner" text,
  "moto2_winner" text,
  "moto3_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of moto2 winners for laguna seca`:
```sql
                SELECT COUNT("moto2_winner") FROM "grands_prix" WHERE "circuit"='Laguna Seca';
```
## Task
Generate a SQL query to answer the following question:
`Name the circuit for hertz british grand prix`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "moto_gp_winner" text,
  "moto2_winner" text,
  "moto3_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the circuit for hertz british grand prix`:
```sql
                SELECT "circuit" FROM "grands_prix" WHERE "grand_prix"='Hertz British Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of rounds for brno`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "moto_gp_winner" text,
  "moto2_winner" text,
  "moto3_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of rounds for brno`:
```sql
                SELECT COUNT("round") FROM "grands_prix" WHERE "circuit"='Brno';
```
## Task
Generate a SQL query to answer the following question:
`Name the motogp winner for 6 may`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "moto_gp_winner" text,
  "moto2_winner" text,
  "moto3_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the motogp winner for 6 may`:
```sql
                SELECT "moto_gp_winner" FROM "grands_prix" WHERE "date"='6 May';
```
## Task
Generate a SQL query to answer the following question:
`when was the episode titled "cracked" originally aired?`

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

CREATE TABLE "table1_27936859_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the episode titled "cracked" originally aired?`:
```sql
                SELECT "original_air_date" FROM "table1_27936859_2" WHERE "title"='\"Cracked\"';
```
## Task
Generate a SQL query to answer the following question:
`Name the b winning car for  #88 team mitsubishi 88 mitsubishi starion`

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

CREATE TABLE "table1_27965906_2" (
  "rnd" real,
  "circuit" text,
  "gt_winning_car" text,
  "ss_winning_car" text,
  "a_winning_car" text,
  "b_winning_car" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the b winning car for  #88 team mitsubishi 88 mitsubishi starion`:
```sql
                SELECT "b_winning_car" FROM "table1_27965906_2" WHERE "a_winning_car"='#88 Team Mitsubishi 88 Mitsubishi Starion';
```
## Task
Generate a SQL query to answer the following question:
`Name the gt winning car for  #88 team mitsubishi 88 mitsubishi starion`

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

CREATE TABLE "table1_27965906_2" (
  "rnd" real,
  "circuit" text,
  "gt_winning_car" text,
  "ss_winning_car" text,
  "a_winning_car" text,
  "b_winning_car" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gt winning car for  #88 team mitsubishi 88 mitsubishi starion`:
```sql
                SELECT "gt_winning_car" FROM "table1_27965906_2" WHERE "a_winning_car"='#88 Team Mitsubishi 88 Mitsubishi Starion';
```
## Task
Generate a SQL query to answer the following question:
`Name the ss winning car for road atlanta and #35 quantum engineering #35 honda crx-si`

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

CREATE TABLE "table1_27965906_2" (
  "rnd" real,
  "circuit" text,
  "gt_winning_car" text,
  "ss_winning_car" text,
  "a_winning_car" text,
  "b_winning_car" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ss winning car for road atlanta and #35 quantum engineering #35 honda crx-si`:
```sql
                SELECT "ss_winning_car" FROM "table1_27965906_2" WHERE "circuit"='Road Atlanta' AND "b_winning_car"='#35 Quantum Engineering #35 Honda CRX-Si';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of rnd for kim baker, bobby archer, tommy archer`

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

CREATE TABLE "table1_27965906_2" (
  "rnd" real,
  "circuit" text,
  "gt_winning_car" text,
  "ss_winning_car" text,
  "a_winning_car" text,
  "b_winning_car" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of rnd for kim baker, bobby archer, tommy archer`:
```sql
                SELECT COUNT("rnd") FROM "table1_27965906_2" WHERE "ss_winning_car"='Kim Baker, Bobby Archer, Tommy Archer';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of b winning car and bobby archer, tommy archer`

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

CREATE TABLE "table1_27965906_2" (
  "rnd" real,
  "circuit" text,
  "gt_winning_car" text,
  "ss_winning_car" text,
  "a_winning_car" text,
  "b_winning_car" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of b winning car and bobby archer, tommy archer`:
```sql
                SELECT COUNT("b_winning_car") FROM "table1_27965906_2" WHERE "ss_winning_car"='Bobby Archer, Tommy Archer';
```
## Task
Generate a SQL query to answer the following question:
`How many institutes have the team name Spartans?`

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

CREATE TABLE "member_schools" (
  "institution" text,
  "city" text,
  "state" text,
  "team_name" text,
  "affiliation" text,
  "enrollment" real,
  "home_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many institutes have the team name Spartans?`:
```sql
                SELECT COUNT("institution") FROM "member_schools" WHERE "team_name"='Spartans';
```
## Task
Generate a SQL query to answer the following question:
`How many states were there when there was an enrollment of 2789?`

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

CREATE TABLE "member_schools" (
  "institution" text,
  "city" text,
  "state" text,
  "team_name" text,
  "affiliation" text,
  "enrollment" real,
  "home_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many states were there when there was an enrollment of 2789?`:
```sql
                SELECT COUNT("state") FROM "member_schools" WHERE "enrollment"=2789;
```
## Task
Generate a SQL query to answer the following question:
`What kind of institute is in Indiana?`

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

CREATE TABLE "member_schools" (
  "institution" text,
  "city" text,
  "state" text,
  "team_name" text,
  "affiliation" text,
  "enrollment" real,
  "home_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of institute is in Indiana?`:
```sql
                SELECT "affiliation" FROM "member_schools" WHERE "state"='Indiana';
```
## Task
Generate a SQL query to answer the following question:
`How many people enrolled for the institute with the Pioneers?`

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

CREATE TABLE "member_schools" (
  "institution" text,
  "city" text,
  "state" text,
  "team_name" text,
  "affiliation" text,
  "enrollment" real,
  "home_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people enrolled for the institute with the Pioneers?`:
```sql
                SELECT MIN("enrollment") FROM "member_schools" WHERE "team_name"='Pioneers';
```
## Task
Generate a SQL query to answer the following question:
`What team is in the city of Rock Island?`

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

CREATE TABLE "member_schools" (
  "institution" text,
  "city" text,
  "state" text,
  "team_name" text,
  "affiliation" text,
  "enrollment" real,
  "home_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team is in the city of Rock Island?`:
```sql
                SELECT "team_name" FROM "member_schools" WHERE "city"='Rock Island';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the episode written by alison cross?`

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

CREATE TABLE "table1_27969432_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the episode written by alison cross?`:
```sql
                SELECT "title" FROM "table1_27969432_2" WHERE "written_by"='Alison Cross';
```
## Task
Generate a SQL query to answer the following question:
`How many viewers watched the episode "the beast in me"?`

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

CREATE TABLE "table1_27969432_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers watched the episode "the beast in me"?`:
```sql
                SELECT "u_s_viewers_in_millions" FROM "table1_27969432_2" WHERE "title"='\"The Beast in Me\"';
```
## Task
Generate a SQL query to answer the following question:
`How many people wrote the "the beast in me"?`

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

CREATE TABLE "table1_27969432_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people wrote the "the beast in me"?`:
```sql
                SELECT COUNT("written_by") FROM "table1_27969432_2" WHERE "title"='\"The Beast in Me\"';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode written by karina csolty`

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

CREATE TABLE "table1_27969432_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode written by karina csolty`:
```sql
                SELECT "directed_by" FROM "table1_27969432_2" WHERE "written_by"='Karina Csolty';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the episode written by karina csolty?`

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

CREATE TABLE "table1_27969432_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the episode written by karina csolty?`:
```sql
                SELECT "title" FROM "table1_27969432_2" WHERE "written_by"='Karina Csolty';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode whose production code is 2m5901?`

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

CREATE TABLE "table1_27969432_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode whose production code is 2m5901?`:
```sql
                SELECT "directed_by" FROM "table1_27969432_4" WHERE "production"='2M5901';
```
## Task
Generate a SQL query to answer the following question:
`What is the first air date of the episode titled "Cuts like a knife"?`

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

CREATE TABLE "table1_27969432_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first air date of the episode titled "Cuts like a knife"?`:
```sql
                SELECT "original_air_date" FROM "table1_27969432_4" WHERE "title"='\"Cuts Like a Knife\"';
```
## Task
Generate a SQL query to answer the following question:
`How many viewers in millions were there for episode 4 of this season?`

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

CREATE TABLE "table1_27969432_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers in millions were there for episode 4 of this season?`:
```sql
                SELECT COUNT("u_s_viewers_in_millions") FROM "table1_27969432_4" WHERE "no_in_season"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the production code for the episode titled "Love the way you lie"?`

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

CREATE TABLE "table1_27969432_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for the episode titled "Love the way you lie"?`:
```sql
                SELECT "production" FROM "table1_27969432_4" WHERE "title"='\"Love the Way You Lie\"';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of rank for percentage change yoy 13.1%`

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

CREATE TABLE "universities_and_colleges_ranked_by_endo" (
  "state_rank" real,
  "national_rank" real,
  "institution" text,
  "location" text,
  "public_or_private" text,
  "endowment_funds" text,
  "percentage_change_yoy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of rank for percentage change yoy 13.1%`:
```sql
                SELECT COUNT("national_rank") FROM "universities_and_colleges_ranked_by_endo" WHERE "percentage_change_yoy"='13.1%';
```
## Task
Generate a SQL query to answer the following question:
`Name the percentage change yoy for presbyterian college`

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

CREATE TABLE "universities_and_colleges_ranked_by_endo" (
  "state_rank" real,
  "national_rank" real,
  "institution" text,
  "location" text,
  "public_or_private" text,
  "endowment_funds" text,
  "percentage_change_yoy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the percentage change yoy for presbyterian college`:
```sql
                SELECT "percentage_change_yoy" FROM "universities_and_colleges_ranked_by_endo" WHERE "institution"='Presbyterian College';
```
## Task
Generate a SQL query to answer the following question:
`Name the national rank for medical university of south carolina`

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

CREATE TABLE "universities_and_colleges_ranked_by_endo" (
  "state_rank" real,
  "national_rank" real,
  "institution" text,
  "location" text,
  "public_or_private" text,
  "endowment_funds" text,
  "percentage_change_yoy" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the national rank for medical university of south carolina`:
```sql
                SELECT "national_rank" FROM "universities_and_colleges_ranked_by_endo" WHERE "institution"='Medical University of South Carolina';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest numbered episode in the series?`

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

CREATE TABLE "table1_27969432_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest numbered episode in the series?`:
```sql
                SELECT MIN("no_in_series") FROM "table1_27969432_3";
```
## Task
Generate a SQL query to answer the following question:
`What numbered episode in the series is "remember me"?`

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

CREATE TABLE "table1_27969432_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What numbered episode in the series is "remember me"?`:
```sql
                SELECT MIN("no_in_series") FROM "table1_27969432_3" WHERE "title"='\"Remember Me\"';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were written by david j. north & janet tamaro?`

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

CREATE TABLE "table1_27969432_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were written by david j. north & janet tamaro?`:
```sql
                SELECT COUNT("original_air_date") FROM "table1_27969432_3" WHERE "written_by"='David J. North & Janet Tamaro';
```
## Task
Generate a SQL query to answer the following question:
`What are the original air dates for episodes directed by fred toye?`

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

CREATE TABLE "table1_27969432_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the original air dates for episodes directed by fred toye?`:
```sql
                SELECT "original_air_date" FROM "table1_27969432_3" WHERE "directed_by"='Fred Toye';
```
## Task
Generate a SQL query to answer the following question:
`What was the aggregate score for Montauban?`

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

CREATE TABLE "aggregate_results" (
  "proceed_to_quarter_final" text,
  "match_points" text,
  "aggregate_score" text,
  "points_margin" real,
  "eliminated_from_competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the aggregate score for Montauban?`:
```sql
                SELECT "aggregate_score" FROM "aggregate_results" WHERE "proceed_to_quarter_final"='Montauban';
```
## Task
Generate a SQL query to answer the following question:
`Who proceeded to the quarter finals with a points margin of 21?`

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

CREATE TABLE "aggregate_results" (
  "proceed_to_quarter_final" text,
  "match_points" text,
  "aggregate_score" text,
  "points_margin" real,
  "eliminated_from_competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who proceeded to the quarter finals with a points margin of 21?`:
```sql
                SELECT "proceed_to_quarter_final" FROM "aggregate_results" WHERE "points_margin"=21;
```
## Task
Generate a SQL query to answer the following question:
`What were the match points when Bordeaux-Bègles was eliminated from competition? `

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

CREATE TABLE "aggregate_results" (
  "proceed_to_quarter_final" text,
  "match_points" text,
  "aggregate_score" text,
  "points_margin" real,
  "eliminated_from_competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the match points when Bordeaux-Bègles was eliminated from competition? `:
```sql
                SELECT "match_points" FROM "aggregate_results" WHERE "eliminated_from_competition"='Bordeaux-Bègles';
```
## Task
Generate a SQL query to answer the following question:
`How many viewers saw the episode written by kevin biegel & bill lawrence?`

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

CREATE TABLE "table1_27987623_1" (
  "series_episode" real,
  "season_episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers saw the episode written by kevin biegel & bill lawrence?`:
```sql
                SELECT "u_s_viewers_in_million" FROM "table1_27987623_1" WHERE "written_by"='Kevin Biegel & Bill Lawrence';
```
## Task
Generate a SQL query to answer the following question:
`What was the episode number veiwed by 7.43 million viewers?`

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

CREATE TABLE "table1_27987623_1" (
  "series_episode" real,
  "season_episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the episode number veiwed by 7.43 million viewers?`:
```sql
                SELECT MAX("series_episode") FROM "table1_27987623_1" WHERE "u_s_viewers_in_million"='7.43';
```
## Task
Generate a SQL query to answer the following question:
`What was the title of the episode viewed by 5.03 million viewers?`

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

CREATE TABLE "table1_27987623_1" (
  "series_episode" real,
  "season_episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of the episode viewed by 5.03 million viewers?`:
```sql
                SELECT "title" FROM "table1_27987623_1" WHERE "u_s_viewers_in_million"='5.03';
```
## Task
Generate a SQL query to answer the following question:
`What was the episode number for the episode viewed by 5.68 million viewers?`

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

CREATE TABLE "table1_27987623_1" (
  "series_episode" real,
  "season_episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the episode number for the episode viewed by 5.68 million viewers?`:
```sql
                SELECT "season_episode" FROM "table1_27987623_1" WHERE "u_s_viewers_in_million"='5.68';
```
## Task
Generate a SQL query to answer the following question:
`What is the episode number with a title "baby's a rock 'n' roller"?`

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

CREATE TABLE "table1_27987623_1" (
  "series_episode" real,
  "season_episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode number with a title "baby's a rock 'n' roller"?`:
```sql
                SELECT MIN("series_episode") FROM "table1_27987623_1" WHERE "title"='\"Baby''s a Rock ''N'' Roller\"';
```
## Task
Generate a SQL query to answer the following question:
`How many times is the new entries this round is none?`

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

CREATE TABLE "calendar" (
  "round" text,
  "main_date" text,
  "number_of_fixtures" real,
  "clubs" text,
  "new_entries_this_round" text,
  "prize_money" text,
  "player_of_the_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the new entries this round is none?`:
```sql
                SELECT COUNT("number_of_fixtures") FROM "calendar" WHERE "new_entries_this_round"='none';
```
## Task
Generate a SQL query to answer the following question:
`What is the prize money when the clubs is 392 → 276?`

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

CREATE TABLE "calendar" (
  "round" text,
  "main_date" text,
  "number_of_fixtures" real,
  "clubs" text,
  "new_entries_this_round" text,
  "prize_money" text,
  "player_of_the_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the prize money when the clubs is 392 → 276?`:
```sql
                SELECT "prize_money" FROM "calendar" WHERE "clubs"='392 → 276';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of fixtures?`

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

CREATE TABLE "calendar" (
  "round" text,
  "main_date" text,
  "number_of_fixtures" real,
  "clubs" text,
  "new_entries_this_round" text,
  "prize_money" text,
  "player_of_the_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of fixtures?`:
```sql
                SELECT MIN("number_of_fixtures") FROM "calendar";
```