cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`If the runs is 5028, what is the matches maximum?`

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

CREATE TABLE "most_career_runs" (
  "rank" real,
  "runs" real,
  "player" text,
  "matches" real,
  "innings" real,
  "not_out" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the runs is 5028, what is the matches maximum?`:
```sql
                SELECT MAX("matches") FROM "most_career_runs" WHERE "runs"=5028;
```
## Task
Generate a SQL query to answer the following question:
`Name the least dismissals for sammy carter`

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

CREATE TABLE "most_dismissals_in_test_career_wicketkee" (
  "rank" real,
  "dismissals" real,
  "player" text,
  "caught" real,
  "stumped" real,
  "matches" real,
  "innings" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least dismissals for sammy carter`:
```sql
                SELECT MIN("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "player"='Sammy Carter';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of dismissals for adam gilchrist`

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

CREATE TABLE "most_dismissals_in_test_career_wicketkee" (
  "rank" real,
  "dismissals" real,
  "player" text,
  "caught" real,
  "stumped" real,
  "matches" real,
  "innings" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of dismissals for adam gilchrist`:
```sql
                SELECT COUNT("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "player"='Adam Gilchrist';
```
## Task
Generate a SQL query to answer the following question:
`Name the least dismissals for 4 rank`

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

CREATE TABLE "most_dismissals_in_test_career_wicketkee" (
  "rank" real,
  "dismissals" real,
  "player" text,
  "caught" real,
  "stumped" real,
  "matches" real,
  "innings" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least dismissals for 4 rank`:
```sql
                SELECT MAX("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "rank"=4;
```
## Task
Generate a SQL query to answer the following question:
`How many top 10 finishes did Ken Bouchard get in the year he won $17,695?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many top 10 finishes did Ken Bouchard get in the year he won $17,695?`:
```sql
                SELECT "top_10" FROM "nascar_nationwide_series" WHERE "winnings"='$17,695';
```
## Task
Generate a SQL query to answer the following question:
`What year did Ken Bouchard finish in 78th place?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Ken Bouchard finish in 78th place?`:
```sql
                SELECT "year" FROM "nascar_nationwide_series" WHERE "position"='78th';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons did Ken Bouchard finish in 38th place?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons did Ken Bouchard finish in 38th place?`:
```sql
                SELECT COUNT("year") FROM "nascar_nationwide_series" WHERE "position"='38th';
```
## Task
Generate a SQL query to answer the following question:
`What is the greatest number of wins Ken Bouchard had in a season?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest number of wins Ken Bouchard had in a season?`:
```sql
                SELECT MIN("wins") FROM "nascar_nationwide_series";
```
## Task
Generate a SQL query to answer the following question:
`How many races in 2012 season have 0 podiums?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many races in 2012 season have 0 podiums?`:
```sql
                SELECT COUNT("races") FROM "career_summary" WHERE "season"=2012 AND "podiums"=0;
```
## Task
Generate a SQL query to answer the following question:
`How many seasons have motopark team?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons have motopark team?`:
```sql
                SELECT COUNT("season") FROM "career_summary" WHERE "team"='Motopark';
```
## Task
Generate a SQL query to answer the following question:
`Which team has nc position for 2010 season?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has nc position for 2010 season?`:
```sql
                SELECT "team" FROM "career_summary" WHERE "position"='NC' AND "season"=2010;
```
## Task
Generate a SQL query to answer the following question:
`How many points have a series of british formula renault 2.0 winter cup and f/laps of 0?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points have a series of british formula renault 2.0 winter cup and f/laps of 0?`:
```sql
                SELECT "points" FROM "career_summary" WHERE "series"='British Formula Renault 2.0 Winter Cup' AND "f_laps"=0;
```
## Task
Generate a SQL query to answer the following question:
`If the amount of rebounds is 0, what is the maximum minutes?`

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

CREATE TABLE "wnit_player_stats" (
  "player" text,
  "games_played" real,
  "minutes" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the amount of rebounds is 0, what is the maximum minutes?`:
```sql
                SELECT MAX("minutes") FROM "wnit_player_stats" WHERE "rebounds"=0;
```
## Task
Generate a SQL query to answer the following question:
`What is the points total number if the assists is 7?`

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

CREATE TABLE "wnit_player_stats" (
  "player" text,
  "games_played" real,
  "minutes" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the points total number if the assists is 7?`:
```sql
                SELECT COUNT("points") FROM "wnit_player_stats" WHERE "assists"=7;
```
## Task
Generate a SQL query to answer the following question:
`If the field goals is 26, what are the players names?`

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

CREATE TABLE "wnit_player_stats" (
  "player" text,
  "games_played" real,
  "minutes" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the field goals is 26, what are the players names?`:
```sql
                SELECT "player" FROM "wnit_player_stats" WHERE "field_goals"=26;
```
## Task
Generate a SQL query to answer the following question:
`If the player is Jasmine Wynne, what is the minimum number of steals?`

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

CREATE TABLE "wnit_player_stats" (
  "player" text,
  "games_played" real,
  "minutes" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the player is Jasmine Wynne, what is the minimum number of steals?`:
```sql
                SELECT MIN("steals") FROM "wnit_player_stats" WHERE "player"='Jasmine Wynne';
```
## Task
Generate a SQL query to answer the following question:
`What is the blocks total number if the points is 4?`

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

CREATE TABLE "wnit_player_stats" (
  "player" text,
  "games_played" real,
  "minutes" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the blocks total number if the points is 4?`:
```sql
                SELECT COUNT("blocks") FROM "wnit_player_stats" WHERE "points"=4;
```
## Task
Generate a SQL query to answer the following question:
`How many steals did jasmine wynne have?`

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

CREATE TABLE "player_stats" (
  "player" text,
  "games_played" real,
  "minutes" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many steals did jasmine wynne have?`:
```sql
                SELECT "steals" FROM "player_stats" WHERE "player"='Jasmine Wynne';
```
## Task
Generate a SQL query to answer the following question:
`How many games did janae stokes play?`

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

CREATE TABLE "player_stats" (
  "player" text,
  "games_played" real,
  "minutes" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did janae stokes play?`:
```sql
                SELECT MAX("games_played") FROM "player_stats" WHERE "player"='Janae Stokes';
```
## Task
Generate a SQL query to answer the following question:
`How many rebounds did crystal ayers have?`

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

CREATE TABLE "player_stats" (
  "player" text,
  "games_played" real,
  "minutes" real,
  "field_goals" real,
  "three_pointers" real,
  "free_throws" real,
  "rebounds" real,
  "assists" real,
  "blocks" real,
  "steals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many rebounds did crystal ayers have?`:
```sql
                SELECT COUNT("rebounds") FROM "player_stats" WHERE "player"='Crystal Ayers';
```
## Task
Generate a SQL query to answer the following question:
`What was the Orangemen record during game 3?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "orangemen_points" real,
  "opponents" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Orangemen record during game 3?`:
```sql
                SELECT "record" FROM "schedule" WHERE "game"=3;
```
## Task
Generate a SQL query to answer the following question:
`What was the record for the Orangemen when they played against Army?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "orangemen_points" real,
  "opponents" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for the Orangemen when they played against Army?`:
```sql
                SELECT "record" FROM "schedule" WHERE "opponent"='Army';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the Orangemen score in game 1?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "orangemen_points" real,
  "opponents" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the Orangemen score in game 1?`:
```sql
                SELECT MAX("orangemen_points") FROM "schedule" WHERE "game"=1;
```
## Task
Generate a SQL query to answer the following question:
`Who did the Orangemen play against when their record was 5-1?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "orangemen_points" real,
  "opponents" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the Orangemen play against when their record was 5-1?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "record"='5-1';
```
## Task
Generate a SQL query to answer the following question:
`Name the location for 2007`

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

CREATE TABLE "movies" (
  "year" real,
  "title_of_movie" text,
  "name_of_role" text,
  "nature_of_role" text,
  "co_artists" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location for 2007`:
```sql
                SELECT "location" FROM "movies" WHERE "year"=2007;
```
## Task
Generate a SQL query to answer the following question:
`Display the lowest score for candidate Mir-Hossein Mousavi when candidate Mohsen Rezaee scored 44809 votes`

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

CREATE TABLE "provincial_results" (
  "province" text,
  "mahmoud_ahmadinejad" real,
  "mehdi_karroubi" real,
  "mir_hossein_mousavi" real,
  "mohsen_rezaee" real,
  "spoiled_ballots" real,
  "total_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `Display the lowest score for candidate Mir-Hossein Mousavi when candidate Mohsen Rezaee scored 44809 votes`:
```sql
                SELECT MIN("mir_hossein_mousavi") FROM "provincial_results" WHERE "mohsen_rezaee"=44809;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest score for candidate Mohsen Rezaee when  candidate mir-hossein mousavi  scored 837858 votes?`

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

CREATE TABLE "provincial_results" (
  "province" text,
  "mahmoud_ahmadinejad" real,
  "mehdi_karroubi" real,
  "mir_hossein_mousavi" real,
  "mohsen_rezaee" real,
  "spoiled_ballots" real,
  "total_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest score for candidate Mohsen Rezaee when  candidate mir-hossein mousavi  scored 837858 votes?`:
```sql
                SELECT MAX("mohsen_rezaee") FROM "provincial_results" WHERE "mir_hossein_mousavi"=837858;
```
## Task
Generate a SQL query to answer the following question:
`List all the total scores for the election which had 3072 invalid votes`

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

CREATE TABLE "provincial_results" (
  "province" text,
  "mahmoud_ahmadinejad" real,
  "mehdi_karroubi" real,
  "mir_hossein_mousavi" real,
  "mohsen_rezaee" real,
  "spoiled_ballots" real,
  "total_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `List all the total scores for the election which had 3072 invalid votes`:
```sql
                SELECT "total_votes" FROM "provincial_results" WHERE "spoiled_ballots"=3072;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest score of candidate mir-hossein mousavi in the location known as azarbaijan, west?`

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

CREATE TABLE "provincial_results" (
  "province" text,
  "mahmoud_ahmadinejad" real,
  "mehdi_karroubi" real,
  "mir_hossein_mousavi" real,
  "mohsen_rezaee" real,
  "spoiled_ballots" real,
  "total_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest score of candidate mir-hossein mousavi in the location known as azarbaijan, west?`:
```sql
                SELECT MAX("mir_hossein_mousavi") FROM "provincial_results" WHERE "province"='Azarbaijan, West';
```
## Task
Generate a SQL query to answer the following question:
`List all the results for mahmoud ahmadinejad when candidate mir-hossein mousavi obtained 218481 votes.`

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

CREATE TABLE "provincial_results" (
  "province" text,
  "mahmoud_ahmadinejad" real,
  "mehdi_karroubi" real,
  "mir_hossein_mousavi" real,
  "mohsen_rezaee" real,
  "spoiled_ballots" real,
  "total_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `List all the results for mahmoud ahmadinejad when candidate mir-hossein mousavi obtained 218481 votes.`:
```sql
                SELECT "mahmoud_ahmadinejad" FROM "provincial_results" WHERE "mir_hossein_mousavi"=218481;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683`

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

CREATE TABLE "provincial_results" (
  "province" text,
  "mahmoud_ahmadinejad" real,
  "mehdi_karroubi" real,
  "mir_hossein_mousavi" real,
  "mohsen_rezaee" real,
  "spoiled_ballots" real,
  "total_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683`:
```sql
                SELECT MAX("mir_hossein_mousavi") FROM "provincial_results" WHERE "spoiled_ballots"=5683;
```
## Task
Generate a SQL query to answer the following question:
`Name surface for 8 round`

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

CREATE TABLE "calendar" (
  "round" real,
  "finishing_date" text,
  "rally_name" text,
  "rally_base" text,
  "surface" text,
  "support_category" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name surface for 8 round`:
```sql
                SELECT "surface" FROM "calendar" WHERE "round"=8;
```
## Task
Generate a SQL query to answer the following question:
`Name the rally base for 5 round`

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

CREATE TABLE "calendar" (
  "round" real,
  "finishing_date" text,
  "rally_name" text,
  "rally_base" text,
  "surface" text,
  "support_category" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rally base for 5 round`:
```sql
                SELECT "rally_base" FROM "calendar" WHERE "round"=5;
```
## Task
Generate a SQL query to answer the following question:
`Name the rally base for rallye de france alsace`

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

CREATE TABLE "calendar" (
  "round" real,
  "finishing_date" text,
  "rally_name" text,
  "rally_base" text,
  "surface" text,
  "support_category" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rally base for rallye de france alsace`:
```sql
                SELECT "rally_base" FROM "calendar" WHERE "rally_name"='Rallye de France Alsace';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest position for a driver with 2 points?`

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

CREATE TABLE "drivers" (
  "pos" real,
  "driver" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "power_stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest position for a driver with 2 points?`:
```sql
                SELECT MAX("pos") FROM "drivers" WHERE "points"=2;
```
## Task
Generate a SQL query to answer the following question:
`What driver(s) had over 65 stag wins?`

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

CREATE TABLE "drivers" (
  "pos" real,
  "driver" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "power_stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What driver(s) had over 65 stag wins?`:
```sql
                SELECT "driver" FROM "drivers" WHERE "stage_wins"=65;
```
## Task
Generate a SQL query to answer the following question:
`What is the power stage wins total number if the wins is 10?`

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

CREATE TABLE "constructors" (
  "pos" real,
  "constructor" text,
  "chassis" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "power_stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power stage wins total number if the wins is 10?`:
```sql
                SELECT COUNT("power_stage_wins") FROM "constructors" WHERE "wins"=10;
```
## Task
Generate a SQL query to answer the following question:
`If finishes is 10, what is the POS minimum?`

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

CREATE TABLE "constructors" (
  "pos" real,
  "constructor" text,
  "chassis" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "power_stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `If finishes is 10, what is the POS minimum?`:
```sql
                SELECT MIN("pos") FROM "constructors" WHERE "finishes"=10;
```
## Task
Generate a SQL query to answer the following question:
`What is the finishes maximum number?`

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

CREATE TABLE "constructors" (
  "pos" real,
  "constructor" text,
  "chassis" text,
  "starts" real,
  "finishes" real,
  "wins" real,
  "podiums" real,
  "stage_wins" real,
  "power_stage_wins" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the finishes maximum number?`:
```sql
                SELECT MAX("finishes") FROM "constructors";
```
## Task
Generate a SQL query to answer the following question:
`When relay is the station type and 5kw is the power kw what is the branding?`

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

CREATE TABLE "ibc_tv_stations" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "location_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `When relay is the station type and 5kw is the power kw what is the branding?`:
```sql
                SELECT "branding" FROM "ibc_tv_stations" WHERE "power_k_w"='5kW' AND "station_type"='Relay';
```
## Task
Generate a SQL query to answer the following question:
`When dxrt-tv is the callsign what is the power kw?`

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

CREATE TABLE "ibc_tv_stations" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "location_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `When dxrt-tv is the callsign what is the power kw?`:
```sql
                SELECT "power_k_w" FROM "ibc_tv_stations" WHERE "callsign"='DXRT-TV';
```
## Task
Generate a SQL query to answer the following question:
`When dxzb-tv is the call sign what is the power kw?`

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

CREATE TABLE "ibc_tv_stations" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "location_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `When dxzb-tv is the call sign what is the power kw?`:
```sql
                SELECT "power_k_w" FROM "ibc_tv_stations" WHERE "callsign"='DXZB-TV';
```
## Task
Generate a SQL query to answer the following question:
`When dxcc-tv is the call sign how many station types are there?`

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

CREATE TABLE "ibc_tv_stations" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "location_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `When dxcc-tv is the call sign how many station types are there?`:
```sql
                SELECT COUNT("station_type") FROM "ibc_tv_stations" WHERE "callsign"='DXCC-TV';
```
## Task
Generate a SQL query to answer the following question:
`When dwhr-tv is the call sign how many station types are there?`

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

CREATE TABLE "ibc_tv_stations" (
  "branding" text,
  "callsign" text,
  "ch_num" text,
  "power_k_w" text,
  "station_type" text,
  "location_transmitter_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `When dwhr-tv is the call sign how many station types are there?`:
```sql
                SELECT COUNT("station_type") FROM "ibc_tv_stations" WHERE "callsign"='DWHR-TV';
```
## Task
Generate a SQL query to answer the following question:
`What date did Episode 22 originally air?`

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

CREATE TABLE "series_three" (
  "num" real,
  "title" text,
  "original_airdate" text,
  "timeslot" text,
  "viewers_millions" text,
  "nightly_rank" real,
  "weekly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date did Episode 22 originally air?`:
```sql
                SELECT COUNT("original_airdate") FROM "series_three" WHERE "num"=22;
```
## Task
Generate a SQL query to answer the following question:
`What episode premier received 0.680 million viewers?`

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

CREATE TABLE "series_three" (
  "num" real,
  "title" text,
  "original_airdate" text,
  "timeslot" text,
  "viewers_millions" text,
  "nightly_rank" real,
  "weekly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What episode premier received 0.680 million viewers?`:
```sql
                SELECT "original_airdate" FROM "series_three" WHERE "viewers_millions"='0.680';
```
## Task
Generate a SQL query to answer the following question:
`When did "The Intervention" originally air?`

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

CREATE TABLE "series_three" (
  "num" real,
  "title" text,
  "original_airdate" text,
  "timeslot" text,
  "viewers_millions" text,
  "nightly_rank" real,
  "weekly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did "The Intervention" originally air?`:
```sql
                SELECT "original_airdate" FROM "series_three" WHERE "title"='\"The Intervention\"';
```
## Task
Generate a SQL query to answer the following question:
`What timeslot received 0.673 viewers?`

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

CREATE TABLE "series_three" (
  "num" real,
  "title" text,
  "original_airdate" text,
  "timeslot" text,
  "viewers_millions" text,
  "nightly_rank" real,
  "weekly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What timeslot received 0.673 viewers?`:
```sql
                SELECT "timeslot" FROM "series_three" WHERE "viewers_millions"='0.673';
```
## Task
Generate a SQL query to answer the following question:
`When did "Man in the Machine" originally air?`

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

CREATE TABLE "series_three" (
  "num" real,
  "title" text,
  "original_airdate" text,
  "timeslot" text,
  "viewers_millions" text,
  "nightly_rank" real,
  "weekly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did "Man in the Machine" originally air?`:
```sql
                SELECT "original_airdate" FROM "series_three" WHERE "title"='\"Man in the Machine\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of the episode that was directed by David Paymer?`

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

CREATE TABLE "table1_23399481_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of the episode that was directed by David Paymer?`:
```sql
                SELECT "original_air_date" FROM "table1_23399481_2" WHERE "directed_by"='David Paymer';
```
## Task
Generate a SQL query to answer the following question:
`If the amount of U.S. viewers is 2.14 million, who was the episode directed by?`

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

CREATE TABLE "table1_23399481_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the amount of U.S. viewers is 2.14 million, who was the episode directed by?`:
```sql
                SELECT "directed_by" FROM "table1_23399481_2" WHERE "u_s_viewers_in_millions"='2.14';
```
## Task
Generate a SQL query to answer the following question:
`If the amount of U.S. viewers is 2.05 milliom, who was the episode directed by?`

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

CREATE TABLE "table1_23399481_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the amount of U.S. viewers is 2.05 milliom, who was the episode directed by?`:
```sql
                SELECT "directed_by" FROM "table1_23399481_2" WHERE "u_s_viewers_in_millions"='2.05';
```
## Task
Generate a SQL query to answer the following question:
`What is the director name is the U.S. viewers is 2.22 million?`

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

CREATE TABLE "table1_23399481_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the director name is the U.S. viewers is 2.22 million?`:
```sql
                SELECT "directed_by" FROM "table1_23399481_2" WHERE "u_s_viewers_in_millions"='2.22';
```
## Task
Generate a SQL query to answer the following question:
`What date did "we are no longer in the bible belt" air on?`

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

CREATE TABLE "us_ratings" (
  "num" real,
  "airdate" text,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date did "we are no longer in the bible belt" air on?`:
```sql
                SELECT "airdate" FROM "us_ratings" WHERE "episode"='\"We Are No Longer in the Bible Belt\"';
```
## Task
Generate a SQL query to answer the following question:
`How many million viewers watched the episode that had a 2.6/7 rating/share (18-49)`

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

CREATE TABLE "us_ratings" (
  "num" real,
  "airdate" text,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many million viewers watched the episode that had a 2.6/7 rating/share (18-49)`:
```sql
                SELECT "viewers_millions" FROM "us_ratings" WHERE "rating_share_18_49"='2.6/7';
```
## Task
Generate a SQL query to answer the following question:
`How many million viewers watched "nanna is kickin' your butt"?`

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

CREATE TABLE "us_ratings" (
  "num" real,
  "airdate" text,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many million viewers watched "nanna is kickin' your butt"?`:
```sql
                SELECT "viewers_millions" FROM "us_ratings" WHERE "episode"='\"Nanna Is Kickin'' Your Butt\"';
```
## Task
Generate a SQL query to answer the following question:
`How many million viewers watched the episode that aired on March 28, 2010?`

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

CREATE TABLE "us_ratings" (
  "num" real,
  "airdate" text,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many million viewers watched the episode that aired on March 28, 2010?`:
```sql
                SELECT "viewers_millions" FROM "us_ratings" WHERE "airdate"='March 28, 2010';
```
## Task
Generate a SQL query to answer the following question:
`How many rankings (timeslot) were there for the episode that aired on May 2, 2010?`

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

CREATE TABLE "us_ratings" (
  "num" real,
  "airdate" text,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many rankings (timeslot) were there for the episode that aired on May 2, 2010?`:
```sql
                SELECT COUNT("rank_timeslot") FROM "us_ratings" WHERE "airdate"='May 2, 2010';
```
## Task
Generate a SQL query to answer the following question:
`Who was the writer for the episode called "What Are You Made of?"`

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

CREATE TABLE "table1_23399481_3" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer for the episode called "What Are You Made of?"`:
```sql
                SELECT "written_by" FROM "table1_23399481_3" WHERE "title"='\"What Are You Made Of?\"';
```
## Task
Generate a SQL query to answer the following question:
`What episode had 1.42 million viewers?`

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

CREATE TABLE "table1_23399481_3" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode had 1.42 million viewers?`:
```sql
                SELECT "series_num" FROM "table1_23399481_3" WHERE "u_s_viewers_in_millions"='1.42';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date for episode 4? `

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

CREATE TABLE "table1_23399481_3" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date for episode 4? `:
```sql
                SELECT "original_air_date" FROM "table1_23399481_3" WHERE "season_num"=4;
```
## Task
Generate a SQL query to answer the following question:
`Who was the writer for the show titled "and the rocky goes to..."?`

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

CREATE TABLE "table1_23399481_3" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer for the show titled "and the rocky goes to..."?`:
```sql
                SELECT "written_by" FROM "table1_23399481_3" WHERE "title"='\"And the Rocky Goes To...\"';
```
## Task
Generate a SQL query to answer the following question:
`Which team uses lola t92/00/ buick for their chassis/engine?`

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

CREATE TABLE "race_results" (
  "pos" real,
  "no" real,
  "driver" text,
  "team" text,
  "chassis_engine" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "laps_led" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team uses lola t92/00/ buick for their chassis/engine?`:
```sql
                SELECT "team" FROM "race_results" WHERE "chassis_engine"='Lola T92/00/ Buick';
```
## Task
Generate a SQL query to answer the following question:
`When the pos equals 18 what is the max amount of points?`

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

CREATE TABLE "race_results" (
  "pos" real,
  "no" real,
  "driver" text,
  "team" text,
  "chassis_engine" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "laps_led" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the pos equals 18 what is the max amount of points?`:
```sql
                SELECT MAX("points") FROM "race_results" WHERE "pos"=18;
```
## Task
Generate a SQL query to answer the following question:
`How many drivers  used lola t92/00/ buick for their chassis/engine?`

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

CREATE TABLE "race_results" (
  "pos" real,
  "no" real,
  "driver" text,
  "team" text,
  "chassis_engine" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "laps_led" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many drivers  used lola t92/00/ buick for their chassis/engine?`:
```sql
                SELECT COUNT("no") FROM "race_results" WHERE "chassis_engine"='Lola T92/00/ Buick';
```
## Task
Generate a SQL query to answer the following question:
`What's the series number of the episode with a season number 5, written by Bernie Ancheta?`

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

CREATE TABLE "table1_23403578_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the series number of the episode with a season number 5, written by Bernie Ancheta?`:
```sql
                SELECT MIN("no_in_series") FROM "table1_23403578_3" WHERE "written_by"='Bernie Ancheta' AND "no_in_season"=5;
```
## Task
Generate a SQL query to answer the following question:
`When did the episode with production code 213 air for the first time?`

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

CREATE TABLE "table1_23403578_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode with production code 213 air for the first time?`:
```sql
                SELECT "original_air_date" FROM "table1_23403578_3" WHERE "prod_code"='213';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with production code 208?`

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

CREATE TABLE "table1_23403578_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with production code 208?`:
```sql
                SELECT "directed_by" FROM "table1_23403578_3" WHERE "prod_code"='208';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of people in the US saw the episode titled "Ball of Trash"?`

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

CREATE TABLE "table1_23403578_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text,
  "u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of people in the US saw the episode titled "Ball of Trash"?`:
```sql
                SELECT "u_s_viewers_in_millions" FROM "table1_23403578_3" WHERE "title"='\"Ball of Trash\"';
```
## Task
Generate a SQL query to answer the following question:
`What is every direction with 24 mountains as Wei 未 Kun 坤 Shen 申?`

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

CREATE TABLE "24_mountains" (
  "direction" text,
  "number" real,
  "trigram" text,
  "24_mountains" text,
  "bearing_degrees" text,
  "nature" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every direction with 24 mountains as Wei 未 Kun 坤 Shen 申?`:
```sql
                SELECT "direction" FROM "24_mountains" WHERE "24_mountains"='Wei 未 Kun 坤 Shen 申';
```
## Task
Generate a SQL query to answer the following question:
`How many values for 24 mountains when the bearing or degrees is 67.6 - 82.5 82.6 - 97.5 97.6 - 112.5?`

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

CREATE TABLE "24_mountains" (
  "direction" text,
  "number" real,
  "trigram" text,
  "24_mountains" text,
  "bearing_degrees" text,
  "nature" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values for 24 mountains when the bearing or degrees is 67.6 - 82.5 82.6 - 97.5 97.6 - 112.5?`:
```sql
                SELECT COUNT("24_mountains") FROM "24_mountains" WHERE "bearing_degrees"='67.6 - 82.5 82.6 - 97.5 97.6 - 112.5';
```
## Task
Generate a SQL query to answer the following question:
`What is every trigram when direction is Northwest?`

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

CREATE TABLE "24_mountains" (
  "direction" text,
  "number" real,
  "trigram" text,
  "24_mountains" text,
  "bearing_degrees" text,
  "nature" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every trigram when direction is Northwest?`:
```sql
                SELECT "trigram" FROM "24_mountains" WHERE "direction"='Northwest';
```
## Task
Generate a SQL query to answer the following question:
`What are all values for 24 mountains when direction is Northeast?`

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

CREATE TABLE "24_mountains" (
  "direction" text,
  "number" real,
  "trigram" text,
  "24_mountains" text,
  "bearing_degrees" text,
  "nature" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all values for 24 mountains when direction is Northeast?`:
```sql
                SELECT "24_mountains" FROM "24_mountains" WHERE "direction"='Northeast';
```
## Task
Generate a SQL query to answer the following question:
`How many career titles does roy emerson have?`

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

CREATE TABLE "chronological_list_of_grand_slam_singles" (
  "years_led" text,
  "span_of_years_led" real,
  "player" text,
  "titles_won_at_point_of_lead" real,
  "total_career_titles" real,
  "tournament_at_which_lead_began" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many career titles does roy emerson have?`:
```sql
                SELECT "total_career_titles" FROM "chronological_list_of_grand_slam_singles" WHERE "player"='Roy Emerson';
```