cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`For delegate is mcdonough, patrick l. pat mcdonough, specify all the district.`

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

CREATE TABLE "members" (
  "district" text,
  "counties_represented" text,
  "delegate" text,
  "party" text,
  "first_elected" real,
  "committee" text
);
### SQL
Given the database schema, here is the SQL query that answers `For delegate is mcdonough, patrick l. pat mcdonough, specify all the district.`:
```sql
                SELECT "district" FROM "members" WHERE "delegate"='McDonough, Patrick L. Pat McDonough';
```
## Task
Generate a SQL query to answer the following question:
`where committee is environmental matters and district is 36 please specify all the delegate name`

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

CREATE TABLE "members" (
  "district" text,
  "counties_represented" text,
  "delegate" text,
  "party" text,
  "first_elected" real,
  "committee" text
);
### SQL
Given the database schema, here is the SQL query that answers `where committee is environmental matters and district is 36 please specify all the delegate name`:
```sql
                SELECT "delegate" FROM "members" WHERE "committee"='Environmental Matters' AND "district"='36';
```
## Task
Generate a SQL query to answer the following question:
`For democratic party, countries represented is montgomery and where committee is judiciary mention all the delegate name.`

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

CREATE TABLE "members" (
  "district" text,
  "counties_represented" text,
  "delegate" text,
  "party" text,
  "first_elected" real,
  "committee" text
);
### SQL
Given the database schema, here is the SQL query that answers `For democratic party, countries represented is montgomery and where committee is judiciary mention all the delegate name.`:
```sql
                SELECT "delegate" FROM "members" WHERE "committee"='Judiciary' AND "party"='Democratic' AND "counties_represented"='Montgomery';
```
## Task
Generate a SQL query to answer the following question:
`Where delegate is feldman, brian j. brian j. feldman, please specify all the party`

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

CREATE TABLE "members" (
  "district" text,
  "counties_represented" text,
  "delegate" text,
  "party" text,
  "first_elected" real,
  "committee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where delegate is feldman, brian j. brian j. feldman, please specify all the party`:
```sql
                SELECT "party" FROM "members" WHERE "delegate"='Feldman, Brian J. Brian J. Feldman';
```
## Task
Generate a SQL query to answer the following question:
`For delegate is gaines, tawanna p. tawanna gaines, please specify all the party.`

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

CREATE TABLE "members" (
  "district" text,
  "counties_represented" text,
  "delegate" text,
  "party" text,
  "first_elected" real,
  "committee" text
);
### SQL
Given the database schema, here is the SQL query that answers `For delegate is gaines, tawanna p. tawanna gaines, please specify all the party.`:
```sql
                SELECT "party" FROM "members" WHERE "delegate"='Gaines, Tawanna P. Tawanna Gaines';
```
## Task
Generate a SQL query to answer the following question:
`If the number of floors is 70, what is the height?`

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

CREATE TABLE "see_also" (
  "position" real,
  "building" text,
  "city" text,
  "height" text,
  "number_of_floors" real,
  "completion" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the number of floors is 70, what is the height?`:
```sql
                SELECT "height" FROM "see_also" WHERE "number_of_floors"=70;
```
## Task
Generate a SQL query to answer the following question:
`if the completed is 2010, what is the number of floors?`

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

CREATE TABLE "see_also" (
  "position" real,
  "building" text,
  "city" text,
  "height" text,
  "number_of_floors" real,
  "completion" real
);
### SQL
Given the database schema, here is the SQL query that answers `if the completed is 2010, what is the number of floors?`:
```sql
                SELECT MIN("number_of_floors") FROM "see_also" WHERE "completion"=2010;
```
## Task
Generate a SQL query to answer the following question:
`If the building is Costanera Center Torre 1, what is the height?`

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

CREATE TABLE "see_also" (
  "position" real,
  "building" text,
  "city" text,
  "height" text,
  "number_of_floors" real,
  "completion" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the building is Costanera Center Torre 1, what is the height?`:
```sql
                SELECT "height" FROM "see_also" WHERE "building"='Costanera Center Torre 1';
```
## Task
Generate a SQL query to answer the following question:
`How many positions does building Costanera Center Torre 1 have?`

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

CREATE TABLE "see_also" (
  "position" real,
  "building" text,
  "city" text,
  "height" text,
  "number_of_floors" real,
  "completion" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions does building Costanera Center Torre 1 have?`:
```sql
                SELECT COUNT("position") FROM "see_also" WHERE "building"='Costanera Center Torre 1';
```
## Task
Generate a SQL query to answer the following question:
`Who is the outgoing manager when the team is simurq pfc?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the outgoing manager when the team is simurq pfc?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='Simurq PFC';
```
## Task
Generate a SQL query to answer the following question:
`How many date of appointment entries are there when the team is khazar lankaran?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many date of appointment entries are there when the team is khazar lankaran?`:
```sql
                SELECT COUNT("date_of_appointment") FROM "managerial_changes" WHERE "team"='Khazar Lankaran';
```
## Task
Generate a SQL query to answer the following question:
`What is the manner of departure when the replaced by is bahman hasanov?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the manner of departure when the replaced by is bahman hasanov?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "replaced_by"='Bahman Hasanov';
```
## Task
Generate a SQL query to answer the following question:
`What was the overall record for the Pandas in the 2003-04 season? `

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

CREATE TABLE "year_by_year" (
  "season" text,
  "coach" text,
  "conf_record" text,
  "overall" text,
  "standings" text,
  "postseason" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the overall record for the Pandas in the 2003-04 season? `:
```sql
                SELECT "overall" FROM "year_by_year" WHERE "season"='2003-04';
```
## Task
Generate a SQL query to answer the following question:
`What was the conference record in the season where the Pandas had an overall record of 33-4-1?`

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

CREATE TABLE "year_by_year" (
  "season" text,
  "coach" text,
  "conf_record" text,
  "overall" text,
  "standings" text,
  "postseason" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the conference record in the season where the Pandas had an overall record of 33-4-1?`:
```sql
                SELECT "conf_record" FROM "year_by_year" WHERE "overall"='33-4-1';
```
## Task
Generate a SQL query to answer the following question:
`Who was the coach of the Pandas when their overall record was 20-6-2?`

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

CREATE TABLE "year_by_year" (
  "season" text,
  "coach" text,
  "conf_record" text,
  "overall" text,
  "standings" text,
  "postseason" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the coach of the Pandas when their overall record was 20-6-2?`:
```sql
                SELECT "coach" FROM "year_by_year" WHERE "overall"='20-6-2';
```
## Task
Generate a SQL query to answer the following question:
`What was the conference record for the Pandas when they were first in the standings in the 2003-04 season? `

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

CREATE TABLE "year_by_year" (
  "season" text,
  "coach" text,
  "conf_record" text,
  "overall" text,
  "standings" text,
  "postseason" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the conference record for the Pandas when they were first in the standings in the 2003-04 season? `:
```sql
                SELECT "conf_record" FROM "year_by_year" WHERE "standings"='First' AND "season"='2003-04';
```
## Task
Generate a SQL query to answer the following question:
`What was the overall record for the Pandas when their conference record was 4-1-1? `

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

CREATE TABLE "year_by_year" (
  "season" text,
  "coach" text,
  "conf_record" text,
  "overall" text,
  "standings" text,
  "postseason" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the overall record for the Pandas when their conference record was 4-1-1? `:
```sql
                SELECT "overall" FROM "year_by_year" WHERE "conf_record"='4-1-1';
```
## Task
Generate a SQL query to answer the following question:
`In what season was the conference record for the Pandas 15-1-1? `

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

CREATE TABLE "year_by_year" (
  "season" text,
  "coach" text,
  "conf_record" text,
  "overall" text,
  "standings" text,
  "postseason" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what season was the conference record for the Pandas 15-1-1? `:
```sql
                SELECT "season" FROM "year_by_year" WHERE "conf_record"='15-1-1';
```
## Task
Generate a SQL query to answer the following question:
`how many times is the week # is audition?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the week # is audition?`:
```sql
                SELECT COUNT("original_artist") FROM "performances" WHERE "week_num"='Audition';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes are numbered 14 in the series?`

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

CREATE TABLE "table1_27081956_1" (
  "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real,
  "series_no" real,
  "episode" text,
  "director" text,
  "writer_s" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes are numbered 14 in the series?`:
```sql
                SELECT COUNT("episode") FROM "table1_27081956_1" WHERE "series_no"=14;
```
## Task
Generate a SQL query to answer the following question:
`How many writers for the episode "peace, brother"?`

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

CREATE TABLE "table1_27081956_1" (
  "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real,
  "series_no" real,
  "episode" text,
  "director" text,
  "writer_s" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many writers for the episode "peace, brother"?`:
```sql
                SELECT COUNT("writer_s") FROM "table1_27081956_1" WHERE "episode"='\"Peace, Brother\"';
```
## Task
Generate a SQL query to answer the following question:
`What series number is the episode "peace, brother"?`

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

CREATE TABLE "table1_27081956_1" (
  "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real,
  "series_no" real,
  "episode" text,
  "director" text,
  "writer_s" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What series number is the episode "peace, brother"?`:
```sql
                SELECT "series_no" FROM "table1_27081956_1" WHERE "episode"='\"Peace, Brother\"';
```
## Task
Generate a SQL query to answer the following question:
`How many times did episode 17 originally air?`

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

CREATE TABLE "table1_27081956_1" (
  "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real,
  "series_no" real,
  "episode" text,
  "director" text,
  "writer_s" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did episode 17 originally air?`:
```sql
                SELECT COUNT("original_airdate") FROM "table1_27081956_1" WHERE "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series"=17;
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date for "rock-a-bye-baby"?`

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

CREATE TABLE "table1_27081956_1" (
  "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real,
  "series_no" real,
  "episode" text,
  "director" text,
  "writer_s" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date for "rock-a-bye-baby"?`:
```sql
                SELECT "original_airdate" FROM "table1_27081956_1" WHERE "episode"='\"Rock-a-Bye-Baby\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date(s) for "the raid"?`

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

CREATE TABLE "table1_27081956_1" (
  "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real,
  "series_no" real,
  "episode" text,
  "director" text,
  "writer_s" text,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date(s) for "the raid"?`:
```sql
                SELECT "original_airdate" FROM "table1_27081956_1" WHERE "episode"='\"The Raid\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the format of 105.5 fm?`

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

CREATE TABLE "table1_2709_4" (
  "frequency" text,
  "call_sign" text,
  "name" text,
  "format" text,
  "owner" text,
  "target_city_market" text,
  "city_of_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format of 105.5 fm?`:
```sql
                SELECT "format" FROM "table1_2709_4" WHERE "frequency"='105.5 FM';
```
## Task
Generate a SQL query to answer the following question:
`What is the market for KLRJ?`

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

CREATE TABLE "table1_2709_4" (
  "frequency" text,
  "call_sign" text,
  "name" text,
  "format" text,
  "owner" text,
  "target_city_market" text,
  "city_of_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the market for KLRJ?`:
```sql
                SELECT "target_city_market" FROM "table1_2709_4" WHERE "call_sign"='KLRJ';
```
## Task
Generate a SQL query to answer the following question:
`What is the format for the station owned by Dakota Broadcasting?`

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

CREATE TABLE "table1_2709_4" (
  "frequency" text,
  "call_sign" text,
  "name" text,
  "format" text,
  "owner" text,
  "target_city_market" text,
  "city_of_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format for the station owned by Dakota Broadcasting?`:
```sql
                SELECT "format" FROM "table1_2709_4" WHERE "owner"='Dakota Broadcasting';
```
## Task
Generate a SQL query to answer the following question:
`What team's manager was replaced by Ercan Ertemçöz?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team's manager was replaced by Ercan Ertemçöz?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='Ercan Ertemçöz';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of appointment for the manager replacing Kadir Özcan?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of appointment for the manager replacing Kadir Özcan?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Kadir Özcan';
```
## Task
Generate a SQL query to answer the following question:
`Which manager was appointed on 08.06.2010?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which manager was appointed on 08.06.2010?`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_appointment"='08.06.2010';
```
## Task
Generate a SQL query to answer the following question:
`Who replaced the previous manager of Altay?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who replaced the previous manager of Altay?`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='Altay';
```
## Task
Generate a SQL query to answer the following question:
`What was date of appointment for Ergün Penbe? `

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was date of appointment for Ergün Penbe? `:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='Ergün Penbe';
```
## Task
Generate a SQL query to answer the following question:
`What is the overall total for the Omaha Nighthawks?`

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

CREATE TABLE "attendance" (
  "team" text,
  "home_gms" real,
  "home_total" real,
  "home_avg" real,
  "top_home_crowd" text,
  "road_gms" real,
  "road_total" real,
  "road_avg" real,
  "overall_gms" real,
  "overall_total" real,
  "overall_avg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the overall total for the Omaha Nighthawks?`:
```sql
                SELECT MIN("overall_total") FROM "attendance" WHERE "team"='Omaha Nighthawks';
```
## Task
Generate a SQL query to answer the following question:
`Which team has the home average of 18125?`

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

CREATE TABLE "attendance" (
  "team" text,
  "home_gms" real,
  "home_total" real,
  "home_avg" real,
  "top_home_crowd" text,
  "road_gms" real,
  "road_total" real,
  "road_avg" real,
  "overall_gms" real,
  "overall_total" real,
  "overall_avg" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has the home average of 18125?`:
```sql
                SELECT "team" FROM "attendance" WHERE "home_avg"=18125;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest home total?`

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

CREATE TABLE "attendance" (
  "team" text,
  "home_gms" real,
  "home_total" real,
  "home_avg" real,
  "top_home_crowd" text,
  "road_gms" real,
  "road_total" real,
  "road_avg" real,
  "overall_gms" real,
  "overall_total" real,
  "overall_avg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest home total?`:
```sql
                SELECT MAX("home_total") FROM "attendance";
```
## Task
Generate a SQL query to answer the following question:
`How many games had an average of 12796?`

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

CREATE TABLE "attendance" (
  "team" text,
  "home_gms" real,
  "home_total" real,
  "home_avg" real,
  "top_home_crowd" text,
  "road_gms" real,
  "road_total" real,
  "road_avg" real,
  "overall_gms" real,
  "overall_total" real,
  "overall_avg" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games had an average of 12796?`:
```sql
                SELECT COUNT("overall_gms") FROM "attendance" WHERE "overall_avg"=12796;
```
## Task
Generate a SQL query to answer the following question:
`Who was the stage winner of the letua cycling team on stage 2? `

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "asian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the stage winner of the letua cycling team on stage 2? `:
```sql
                SELECT "stage_winner" FROM "classification_leadership" WHERE "team_classification"='LeTua Cycling Team' AND "stage"=2;
```
## Task
Generate a SQL query to answer the following question:
`Who is listed under points classification when the stage winner is malcolm lange? `

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "asian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is listed under points classification when the stage winner is malcolm lange? `:
```sql
                SELECT "points_classification" FROM "classification_leadership" WHERE "stage_winner"='Malcolm Lange';
```
## Task
Generate a SQL query to answer the following question:
`Which mountains classification is listed under stage 3?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "asian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mountains classification is listed under stage 3?`:
```sql
                SELECT "mountains_classification" FROM "classification_leadership" WHERE "stage"=3;
```
## Task
Generate a SQL query to answer the following question:
`Who was listed under the general classification when the stage winner was suhardi hassan?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "asian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was listed under the general classification when the stage winner was suhardi hassan?`:
```sql
                SELECT "general_classification" FROM "classification_leadership" WHERE "stage_winner"='Suhardi Hassan';
```
## Task
Generate a SQL query to answer the following question:
`what is the greatest stage number in which suhardi hassan is the stage winner?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "asian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the greatest stage number in which suhardi hassan is the stage winner?`:
```sql
                SELECT MAX("stage") FROM "classification_leadership" WHERE "stage_winner"='Suhardi Hassan';
```
## Task
Generate a SQL query to answer the following question:
`Who is listed under general classification on stage 4?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "stage_winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "asian_rider_classification" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is listed under general classification on stage 4?`:
```sql
                SELECT "general_classification" FROM "classification_leadership" WHERE "stage"=4;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episodes with 7.70 u.s. viewers (million) ?`

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

CREATE TABLE "table1_27117365_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episodes with 7.70 u.s. viewers (million) ?`:
```sql
                SELECT "written_by" FROM "table1_27117365_1" WHERE "u_s_viewers_million"='7.70';
```
## Task
Generate a SQL query to answer the following question:
`What original air date has 5.85 u.s. viewers (million)?`

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

CREATE TABLE "table1_27117365_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What original air date has 5.85 u.s. viewers (million)?`:
```sql
                SELECT "original_air_date" FROM "table1_27117365_1" WHERE "u_s_viewers_million"='5.85';
```
## Task
Generate a SQL query to answer the following question:
`What's the title in the number 10 in the season?`

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

CREATE TABLE "table1_27117365_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title in the number 10 in the season?`:
```sql
                SELECT "title" FROM "table1_27117365_1" WHERE "no_in_season"=10;
```
## Task
Generate a SQL query to answer the following question:
`If the position in table is 10th, and the manner of departure was resigned, what was the date of vacancy?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_head_coach" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "position_in_table" text,
  "incoming_head_coach" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the position in table is 10th, and the manner of departure was resigned, what was the date of vacancy?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "manner_of_departure"='Resigned' AND "position_in_table"='10th';
```
## Task
Generate a SQL query to answer the following question:
`If the incoming head coach is Carlos Azenha, what is the date of vacancy?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_head_coach" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "position_in_table" text,
  "incoming_head_coach" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the incoming head coach is Carlos Azenha, what is the date of vacancy?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "incoming_head_coach"='Carlos Azenha';
```
## Task
Generate a SQL query to answer the following question:
`If the team is união de leiria, what is the date of appointment?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_head_coach" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "position_in_table" text,
  "incoming_head_coach" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the team is união de leiria, what is the date of appointment?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='União de Leiria';
```
## Task
Generate a SQL query to answer the following question:
`What is 2003 when 1999 is 2.1?`

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

CREATE TABLE "table1_27146868_1" (
  "greek_national_account" text,
  "1970" text,
  "1980" text,
  "1990" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001_1" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013_2" text,
  "2014_2" text,
  "2015_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2003 when 1999 is 2.1?`:
```sql
                SELECT "2003" FROM "table1_27146868_1" WHERE "1999"='2.1';
```
## Task
Generate a SQL query to answer the following question:
`What is 2010 when 2003 is 5.6?`

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

CREATE TABLE "table1_27146868_1" (
  "greek_national_account" text,
  "1970" text,
  "1980" text,
  "1990" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001_1" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013_2" text,
  "2014_2" text,
  "2015_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2010 when 2003 is 5.6?`:
```sql
                SELECT "2010" FROM "table1_27146868_1" WHERE "2003"='5.6';
```
## Task
Generate a SQL query to answer the following question:
`What is the greek national account when 1997 is 6.1?`

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

CREATE TABLE "table1_27146868_1" (
  "greek_national_account" text,
  "1970" text,
  "1980" text,
  "1990" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001_1" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013_2" text,
  "2014_2" text,
  "2015_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greek national account when 1997 is 6.1?`:
```sql
                SELECT "greek_national_account" FROM "table1_27146868_1" WHERE "1997"='6.1';
```
## Task
Generate a SQL query to answer the following question:
`What is 1995 when 20011 is 45.8?`

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

CREATE TABLE "table1_27146868_1" (
  "greek_national_account" text,
  "1970" text,
  "1980" text,
  "1990" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001_1" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013_2" text,
  "2014_2" text,
  "2015_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1995 when 20011 is 45.8?`:
```sql
                SELECT "1995" FROM "table1_27146868_1" WHERE "2001_1"='45.8';
```
## Task
Generate a SQL query to answer the following question:
`What is 2006 when 1997 is 6.8?`

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

CREATE TABLE "table1_27146868_1" (
  "greek_national_account" text,
  "1970" text,
  "1980" text,
  "1990" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001_1" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013_2" text,
  "2014_2" text,
  "2015_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2006 when 1997 is 6.8?`:
```sql
                SELECT "2006" FROM "table1_27146868_1" WHERE "1997"='6.8';
```
## Task
Generate a SQL query to answer the following question:
`What is 2002 when 2009 is 54.0?`

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

CREATE TABLE "table1_27146868_1" (
  "greek_national_account" text,
  "1970" text,
  "1980" text,
  "1990" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001_1" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013_2" text,
  "2014_2" text,
  "2015_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2002 when 2009 is 54.0?`:
```sql
                SELECT "2002" FROM "table1_27146868_1" WHERE "2009"='54.0';
```
## Task
Generate a SQL query to answer the following question:
`If the NFL team is the Houston Oilers and the position is DT, who is the Pro team?`

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

CREATE TABLE "third_round" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "pro_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the NFL team is the Houston Oilers and the position is DT, who is the Pro team?`:
```sql
                SELECT "pro_team" FROM "third_round" WHERE "position"='DT' AND "nfl_team"='Houston Oilers';
```
## Task
Generate a SQL query to answer the following question:
`How many different players does the Washington Redskins have?`

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

CREATE TABLE "third_round" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "pro_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different players does the Washington Redskins have?`:
```sql
                SELECT COUNT("player") FROM "third_round" WHERE "nfl_team"='Washington Redskins';
```
## Task
Generate a SQL query to answer the following question:
`If the college is Vanderbilt, what is the position?`

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

CREATE TABLE "third_round" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "pro_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the college is Vanderbilt, what is the position?`:
```sql
                SELECT "position" FROM "third_round" WHERE "college"='Vanderbilt';
```
## Task
Generate a SQL query to answer the following question:
`If the proteam is Jacksonville bulls, what is the position?`

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

CREATE TABLE "third_round" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "pro_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the proteam is Jacksonville bulls, what is the position?`:
```sql
                SELECT "position" FROM "third_round" WHERE "pro_team"='Jacksonville Bulls';
```
## Task
Generate a SQL query to answer the following question:
`If the college is SMU, what is the position?`

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

CREATE TABLE "third_round" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "pro_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the college is SMU, what is the position?`:
```sql
                SELECT "position" FROM "third_round" WHERE "college"='SMU';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with the production code of 3t7255?`

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

CREATE TABLE "table1_27116696_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with the production code of 3t7255?`:
```sql
                SELECT "written_by" FROM "table1_27116696_1" WHERE "production_code"='3T7255';
```
## Task
Generate a SQL query to answer the following question:
`How many U.S. viewers (million) watched the episode directed by Allison Liddi-Brown?`

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

CREATE TABLE "table1_27116696_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many U.S. viewers (million) watched the episode directed by Allison Liddi-Brown?`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_27116696_1" WHERE "directed_by"='Allison Liddi-Brown';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of production code listings of episodes written by Matthew Lau?`

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

CREATE TABLE "table1_27116696_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of production code listings of episodes written by Matthew Lau?`:
```sql
                SELECT COUNT("production_code") FROM "table1_27116696_1" WHERE "written_by"='Matthew Lau';
```
## Task
Generate a SQL query to answer the following question:
`What was the prize pool in New Orleans?`

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

CREATE TABLE "nsc_events_and_division_1_winners" (
  "year" real,
  "winner" text,
  "location" text,
  "entrants" real,
  "winners_prize" text,
  "total_prize_pool" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the prize pool in New Orleans?`:
```sql
                SELECT "total_prize_pool" FROM "nsc_events_and_division_1_winners" WHERE "location"='New Orleans';
```
## Task
Generate a SQL query to answer the following question:
`How many prizes were available in the competition where 696 people entered?`

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

CREATE TABLE "nsc_events_and_division_1_winners" (
  "year" real,
  "winner" text,
  "location" text,
  "entrants" real,
  "winners_prize" text,
  "total_prize_pool" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many prizes were available in the competition where 696 people entered?`:
```sql
                SELECT COUNT("winners_prize") FROM "nsc_events_and_division_1_winners" WHERE "entrants"=696;
```
## Task
Generate a SQL query to answer the following question:
`Name the accession number for  rhodopseudomonas palustris`

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

CREATE TABLE "homologs" (
  "genus_species" text,
  "gene_name" text,
  "accession_number" text,
  "sequence_length" text,
  "sequence_similarity" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the accession number for  rhodopseudomonas palustris`:
```sql
                SELECT "accession_number" FROM "homologs" WHERE "genus_species"='Rhodopseudomonas palustris';
```
## Task
Generate a SQL query to answer the following question:
`Name the genus/species of accession number bx897699.1`

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

CREATE TABLE "homologs" (
  "genus_species" text,
  "gene_name" text,
  "accession_number" text,
  "sequence_length" text,
  "sequence_similarity" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the genus/species of accession number bx897699.1`:
```sql
                SELECT "genus_species" FROM "homologs" WHERE "accession_number"='BX897699.1';
```
## Task
Generate a SQL query to answer the following question:
`Name the accession number for sequence similarity being 54`

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

CREATE TABLE "homologs" (
  "genus_species" text,
  "gene_name" text,
  "accession_number" text,
  "sequence_length" text,
  "sequence_similarity" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the accession number for sequence similarity being 54`:
```sql
                SELECT "accession_number" FROM "homologs" WHERE "sequence_similarity"=54;
```
## Task
Generate a SQL query to answer the following question:
`Name the gene name for methylobacterium nodulans`

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

CREATE TABLE "homologs" (
  "genus_species" text,
  "gene_name" text,
  "accession_number" text,
  "sequence_length" text,
  "sequence_similarity" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gene name for methylobacterium nodulans`:
```sql
                SELECT "gene_name" FROM "homologs" WHERE "genus_species"='Methylobacterium nodulans';
```
## Task
Generate a SQL query to answer the following question:
`Name the gene name for accession number bx897700.1`

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

CREATE TABLE "homologs" (
  "genus_species" text,
  "gene_name" text,
  "accession_number" text,
  "sequence_length" text,
  "sequence_similarity" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gene name for accession number bx897700.1`:
```sql
                SELECT "gene_name" FROM "homologs" WHERE "accession_number"='BX897700.1';
```
## Task
Generate a SQL query to answer the following question:
`What was the minimum % funded of the project that was closed on 2012-05-18?`

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

CREATE TABLE "ten_largest_successfully_completed_kicks" (
  "rank" real,
  "total_usd" real,
  "project_name" text,
  "creator" text,
  "category" text,
  "pct_funded" real,
  "backers" real,
  "closing_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the minimum % funded of the project that was closed on 2012-05-18?`:
```sql
                SELECT MIN("pct_funded") FROM "ten_largest_successfully_completed_kicks" WHERE "closing_date"='2012-05-18';
```