cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the launch date for the sattelite with a nssdc id of 1960-009a?`

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

CREATE TABLE "table1_2150068_1" (
  "satellite" text,
  "launch_date_utc" text,
  "decay" text,
  "mass_kg" text,
  "diameter_m" text,
  "nssdc_id" text,
  "nation" text,
  "usage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the launch date for the sattelite with a nssdc id of 1960-009a?`:
```sql
                SELECT "launch_date_utc" FROM "table1_2150068_1" WHERE "nssdc_id"='1960-009A';
```
## Task
Generate a SQL query to answer the following question:
`What is the decay for the sattelite with an id that is 1990-081c?`

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

CREATE TABLE "table1_2150068_1" (
  "satellite" text,
  "launch_date_utc" text,
  "decay" text,
  "mass_kg" text,
  "diameter_m" text,
  "nssdc_id" text,
  "nation" text,
  "usage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the decay for the sattelite with an id that is 1990-081c?`:
```sql
                SELECT "decay" FROM "table1_2150068_1" WHERE "nssdc_id"='1990-081C';
```
## Task
Generate a SQL query to answer the following question:
`How many song titles belong to the artist Ratt?`

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

CREATE TABLE "soundtrack" (
  "year" real,
  "song_title" text,
  "artist" text,
  "genre" text,
  "original_game" text,
  "band_tier_venue" text,
  "exportable_to_gh5_bh" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many song titles belong to the artist Ratt?`:
```sql
                SELECT COUNT("song_title") FROM "soundtrack" WHERE "artist"='Ratt';
```
## Task
Generate a SQL query to answer the following question:
`What is every original game for the artist Lynyrd Skynyrd?`

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

CREATE TABLE "soundtrack" (
  "year" real,
  "song_title" text,
  "artist" text,
  "genre" text,
  "original_game" text,
  "band_tier_venue" text,
  "exportable_to_gh5_bh" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every original game for the artist Lynyrd Skynyrd?`:
```sql
                SELECT "original_game" FROM "soundtrack" WHERE "artist"='Lynyrd Skynyrd';
```
## Task
Generate a SQL query to answer the following question:
`What is every song title for the rock genre and Guitar Hero as original game and the artist is Queens of the Stone Age?`

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

CREATE TABLE "soundtrack" (
  "year" real,
  "song_title" text,
  "artist" text,
  "genre" text,
  "original_game" text,
  "band_tier_venue" text,
  "exportable_to_gh5_bh" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every song title for the rock genre and Guitar Hero as original game and the artist is Queens of the Stone Age?`:
```sql
                SELECT "song_title" FROM "soundtrack" WHERE "genre"='Rock' AND "original_game"='Guitar Hero' AND "artist"='Queens of the Stone Age';
```
## Task
Generate a SQL query to answer the following question:
`What is every song title for 2007?`

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

CREATE TABLE "soundtrack" (
  "year" real,
  "song_title" text,
  "artist" text,
  "genre" text,
  "original_game" text,
  "band_tier_venue" text,
  "exportable_to_gh5_bh" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every song title for 2007?`:
```sql
                SELECT "song_title" FROM "soundtrack" WHERE "year"=2007;
```
## Task
Generate a SQL query to answer the following question:
`What was Lambert's song choice in the top 13?`

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

CREATE TABLE "table1_21501511_1" (
  "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 `What was Lambert's song choice in the top 13?`:
```sql
                SELECT "song_choice" FROM "table1_21501511_1" WHERE "week_num"='Top 13';
```
## Task
Generate a SQL query to answer the following question:
`What order did Lambert perform in the top 11?`

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

CREATE TABLE "table1_21501511_1" (
  "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 `What order did Lambert perform in the top 11?`:
```sql
                SELECT "order_num" FROM "table1_21501511_1" WHERE "week_num"='Top 11';
```
## Task
Generate a SQL query to answer the following question:
`What week was themed disco?`

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

CREATE TABLE "table1_21501511_1" (
  "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 `What week was themed disco?`:
```sql
                SELECT "week_num" FROM "table1_21501511_1" WHERE "theme"='Disco';
```
## Task
Generate a SQL query to answer the following question:
`What week #(s featured sara bareilles as the original artist?`

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

CREATE TABLE "performances_results" (
  "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 `What week #(s featured sara bareilles as the original artist?`:
```sql
                SELECT "week_num" FROM "performances_results" WHERE "original_artist"='Sara Bareilles';
```
## Task
Generate a SQL query to answer the following question:
`What week # featured first solo as the theme?`

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

CREATE TABLE "performances_results" (
  "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 `What week # featured first solo as the theme?`:
```sql
                SELECT "week_num" FROM "performances_results" WHERE "theme"='First Solo';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks featured duffy as the original artist?`

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

CREATE TABLE "performances_results" (
  "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 weeks featured duffy as the original artist?`:
```sql
                SELECT COUNT("theme") FROM "performances_results" WHERE "original_artist"='Duffy';
```
## Task
Generate a SQL query to answer the following question:
`Who was the originally artist when Jasmine Murray was selected?`

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

CREATE TABLE "performances_results" (
  "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 `Who was the originally artist when Jasmine Murray was selected?`:
```sql
                SELECT "original_artist" FROM "performances_results" WHERE "result"='Selected';
```
## Task
Generate a SQL query to answer the following question:
`With theme the Year They Were Born, what is the song of choice?`

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

CREATE TABLE "performances_results" (
  "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 `With theme the Year They Were Born, what is the song of choice?`:
```sql
                SELECT "song_choice" FROM "performances_results" WHERE "theme"='Year They Were Born';
```
## Task
Generate a SQL query to answer the following question:
`With order number 7 and the theme is Motown, who were the original artists?`

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

CREATE TABLE "performances_results" (
  "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 `With order number 7 and the theme is Motown, who were the original artists?`:
```sql
                SELECT "original_artist" FROM "performances_results" WHERE "order_num"='7' AND "theme"='Motown';
```
## Task
Generate a SQL query to answer the following question:
`With an original artist names Bette Midler, what is the order number?`

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

CREATE TABLE "performances_results" (
  "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 `With an original artist names Bette Midler, what is the order number?`:
```sql
                SELECT COUNT("order_num") FROM "performances_results" WHERE "original_artist"='Bette Midler';
```
## Task
Generate a SQL query to answer the following question:
`With original artist of Tina Turner, what is the week number?`

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

CREATE TABLE "performances_results" (
  "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 `With original artist of Tina Turner, what is the week number?`:
```sql
                SELECT "week_num" FROM "performances_results" WHERE "original_artist"='Tina Turner';
```
## Task
Generate a SQL query to answer the following question:
`Who is the original artist with a theme of N/A?`

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

CREATE TABLE "performances_results" (
  "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 `Who is the original artist with a theme of N/A?`:
```sql
                SELECT "original_artist" FROM "performances_results" WHERE "theme"='N/A';
```
## Task
Generate a SQL query to answer the following question:
`Name the team for june 16 jeff gordon`

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

CREATE TABLE "table1_2150776_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team for june 16 jeff gordon`:
```sql
                SELECT "team" FROM "table1_2150776_1" WHERE "date"='June 16' AND "driver"='Jeff Gordon';
```
## Task
Generate a SQL query to answer the following question:
`Name the driver for 200 laps 1997`

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

CREATE TABLE "table1_2150776_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the driver for 200 laps 1997`:
```sql
                SELECT "driver" FROM "table1_2150776_1" WHERE "laps"='200' AND "year"='1997';
```
## Task
Generate a SQL query to answer the following question:
`Name the team for ricky rudd`

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

CREATE TABLE "table1_2150776_1" (
  "year" text,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team for ricky rudd`:
```sql
                SELECT "team" FROM "table1_2150776_1" WHERE "driver"='Ricky Rudd';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank when RR2 has 4 points?`

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

CREATE TABLE "round_robin" (
  "team_name" text,
  "races" real,
  "won" real,
  "rr1_pts" real,
  "rr2_pts" real,
  "rr3_pts" real,
  "total_pts" real,
  "ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank when RR2 has 4 points?`:
```sql
                SELECT "ranking" FROM "round_robin" WHERE "rr2_pts"=4;
```
## Task
Generate a SQL query to answer the following question:
`How many points does Swedish America's Cup Challenge have for rr1?`

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

CREATE TABLE "round_robin" (
  "team_name" text,
  "races" real,
  "won" real,
  "rr1_pts" real,
  "rr2_pts" real,
  "rr3_pts" real,
  "total_pts" real,
  "ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does Swedish America's Cup Challenge have for rr1?`:
```sql
                SELECT COUNT("rr1_pts") FROM "round_robin" WHERE "team_name"='Swedish America''s Cup Challenge';
```
## Task
Generate a SQL query to answer the following question:
`Who was the senior US senator in the state whose governor was D. Patrick?`

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

CREATE TABLE "political_party_strength" (
  "state" text,
  "governor" text,
  "senior_u_s_senator" text,
  "junior_u_s_senator" text,
  "u_s_house_delegation" text,
  "upper_house_majority" text,
  "lower_house_majority" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the senior US senator in the state whose governor was D. Patrick?`:
```sql
                SELECT "senior_u_s_senator" FROM "political_party_strength" WHERE "governor"='D. Patrick';
```
## Task
Generate a SQL query to answer the following question:
`What's the lower house majority in the state whose Senior senator is J. Shaheen?`

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

CREATE TABLE "political_party_strength" (
  "state" text,
  "governor" text,
  "senior_u_s_senator" text,
  "junior_u_s_senator" text,
  "u_s_house_delegation" text,
  "upper_house_majority" text,
  "lower_house_majority" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lower house majority in the state whose Senior senator is J. Shaheen?`:
```sql
                SELECT "lower_house_majority" FROM "political_party_strength" WHERE "senior_u_s_senator"='J. Shaheen';
```
## Task
Generate a SQL query to answer the following question:
`Who is every name for time(cet) of 09:58?`

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

CREATE TABLE "special_stages" (
  "day" text,
  "stage" text,
  "time_cet" text,
  "name" text,
  "length" text,
  "winner" text,
  "time" text,
  "avg_spd" text,
  "rally_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every name for time(cet) of 09:58?`:
```sql
                SELECT "name" FROM "special_stages" WHERE "time_cet"='09:58';
```
## Task
Generate a SQL query to answer the following question:
`What is every time(cet) for the name of Lillehammer 2?`

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

CREATE TABLE "special_stages" (
  "day" text,
  "stage" text,
  "time_cet" text,
  "name" text,
  "length" text,
  "winner" text,
  "time" text,
  "avg_spd" text,
  "rally_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every time(cet) for the name of Lillehammer 2?`:
```sql
                SELECT "time_cet" FROM "special_stages" WHERE "name"='Lillehammer 2';
```
## Task
Generate a SQL query to answer the following question:
`Who is every name for time(cet) of 09:03?`

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

CREATE TABLE "special_stages" (
  "day" text,
  "stage" text,
  "time_cet" text,
  "name" text,
  "length" text,
  "winner" text,
  "time" text,
  "avg_spd" text,
  "rally_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every name for time(cet) of 09:03?`:
```sql
                SELECT "name" FROM "special_stages" WHERE "time_cet"='09:03';
```
## Task
Generate a SQL query to answer the following question:
`Which days have a stage of ss11?`

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

CREATE TABLE "special_stages" (
  "day" text,
  "stage" text,
  "time_cet" text,
  "name" text,
  "length" text,
  "winner" text,
  "time" text,
  "avg_spd" text,
  "rally_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which days have a stage of ss11?`:
```sql
                SELECT "day" FROM "special_stages" WHERE "stage"='SS11';
```
## Task
Generate a SQL query to answer the following question:
`What is every time(cet) for a time of 5:04.8?`

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

CREATE TABLE "special_stages" (
  "day" text,
  "stage" text,
  "time_cet" text,
  "name" text,
  "length" text,
  "winner" text,
  "time" text,
  "avg_spd" text,
  "rally_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every time(cet) for a time of 5:04.8?`:
```sql
                SELECT "time_cet" FROM "special_stages" WHERE "time"='5:04.8';
```
## Task
Generate a SQL query to answer the following question:
`How many calibers require the type LB/RN?`

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

CREATE TABLE "euronorm_standard_for_security_glazing" (
  "class" text,
  "weapon" text,
  "caliber" text,
  "type" text,
  "weight_g" text,
  "range_m" text,
  "velocity_m_s" text,
  "impact_energy" text,
  "shots" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many calibers require the type LB/RN?`:
```sql
                SELECT COUNT("caliber") FROM "euronorm_standard_for_security_glazing" WHERE "type"='LB/RN';
```
## Task
Generate a SQL query to answer the following question:
`Type FJ/RN/SC is associated with what class?`

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

CREATE TABLE "euronorm_standard_for_security_glazing" (
  "class" text,
  "weapon" text,
  "caliber" text,
  "type" text,
  "weight_g" text,
  "range_m" text,
  "velocity_m_s" text,
  "impact_energy" text,
  "shots" real
);
### SQL
Given the database schema, here is the SQL query that answers `Type FJ/RN/SC is associated with what class?`:
```sql
                SELECT "class" FROM "euronorm_standard_for_security_glazing" WHERE "type"='FJ/RN/SC';
```
## Task
Generate a SQL query to answer the following question:
`What type of glazing will stop a .44 magnum?`

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

CREATE TABLE "euronorm_standard_for_security_glazing" (
  "class" text,
  "weapon" text,
  "caliber" text,
  "type" text,
  "weight_g" text,
  "range_m" text,
  "velocity_m_s" text,
  "impact_energy" text,
  "shots" real
);
### SQL
Given the database schema, here is the SQL query that answers `What type of glazing will stop a .44 magnum?`:
```sql
                SELECT "type" FROM "euronorm_standard_for_security_glazing" WHERE "caliber"='.44 Magnum';
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest shots a glazing can handle?`

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

CREATE TABLE "euronorm_standard_for_security_glazing" (
  "class" text,
  "weapon" text,
  "caliber" text,
  "type" text,
  "weight_g" text,
  "range_m" text,
  "velocity_m_s" text,
  "impact_energy" text,
  "shots" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest shots a glazing can handle?`:
```sql
                SELECT MIN("shots") FROM "euronorm_standard_for_security_glazing";
```
## Task
Generate a SQL query to answer the following question:
`What range does type FJ/PB/SCP work at?`

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

CREATE TABLE "euronorm_standard_for_security_glazing" (
  "class" text,
  "weapon" text,
  "caliber" text,
  "type" text,
  "weight_g" text,
  "range_m" text,
  "velocity_m_s" text,
  "impact_energy" text,
  "shots" real
);
### SQL
Given the database schema, here is the SQL query that answers `What range does type FJ/PB/SCP work at?`:
```sql
                SELECT "range_m" FROM "euronorm_standard_for_security_glazing" WHERE "type"='FJ/PB/SCP';
```
## Task
Generate a SQL query to answer the following question:
`Name the drivetrain for 2ur-fse`

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

CREATE TABLE "table1_21530474_1" (
  "chassis_code" text,
  "model_no" text,
  "production_years" text,
  "drivetrain" text,
  "transmission" text,
  "engine_type" text,
  "engine_code" text,
  "region_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the drivetrain for 2ur-fse`:
```sql
                SELECT "drivetrain" FROM "table1_21530474_1" WHERE "engine_code"='2UR-FSE';
```
## Task
Generate a SQL query to answer the following question:
`Name the regions for usf45`

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

CREATE TABLE "table1_21530474_1" (
  "chassis_code" text,
  "model_no" text,
  "production_years" text,
  "drivetrain" text,
  "transmission" text,
  "engine_type" text,
  "engine_code" text,
  "region_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the regions for usf45`:
```sql
                SELECT "region_s" FROM "table1_21530474_1" WHERE "chassis_code"='USF45';
```
## Task
Generate a SQL query to answer the following question:
`Name the model number for usf46`

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

CREATE TABLE "table1_21530474_1" (
  "chassis_code" text,
  "model_no" text,
  "production_years" text,
  "drivetrain" text,
  "transmission" text,
  "engine_type" text,
  "engine_code" text,
  "region_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the model number for usf46`:
```sql
                SELECT "model_no" FROM "table1_21530474_1" WHERE "chassis_code"='USF46';
```
## Task
Generate a SQL query to answer the following question:
`Name the drivetrain for 1ur-fse for usf41`

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

CREATE TABLE "table1_21530474_1" (
  "chassis_code" text,
  "model_no" text,
  "production_years" text,
  "drivetrain" text,
  "transmission" text,
  "engine_type" text,
  "engine_code" text,
  "region_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the drivetrain for 1ur-fse for usf41`:
```sql
                SELECT "drivetrain" FROM "table1_21530474_1" WHERE "engine_code"='1UR-FSE' AND "chassis_code"='USF41';
```
## Task
Generate a SQL query to answer the following question:
`For the area which was 9.1 in October 2010, what is the figure for October 2012?`

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

CREATE TABLE "unemployment_rates_in_new_england" (
  "employment_area" text,
  "october_2010" text,
  "october_2011" text,
  "october_2012" text,
  "net_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the area which was 9.1 in October 2010, what is the figure for October 2012?`:
```sql
                SELECT "october_2012" FROM "unemployment_rates_in_new_england" WHERE "october_2010"='9.1';
```
## Task
Generate a SQL query to answer the following question:
`Where is the rate 5.7 in October 2010?`

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

CREATE TABLE "unemployment_rates_in_new_england" (
  "employment_area" text,
  "october_2010" text,
  "october_2011" text,
  "october_2012" text,
  "net_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the rate 5.7 in October 2010?`:
```sql
                SELECT "employment_area" FROM "unemployment_rates_in_new_england" WHERE "october_2010"='5.7';
```
## Task
Generate a SQL query to answer the following question:
`Name the original air date for 9.16 viewers`

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

CREATE TABLE "table1_21550870_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the original air date for 9.16 viewers`:
```sql
                SELECT "original_air_date" FROM "table1_21550870_1" WHERE "u_s_viewers_million"='9.16';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of production code for  episode by steve cohen & andrew dettman`

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

CREATE TABLE "table1_21550870_1" (
  "no" real,
  "num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_million" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of production code for  episode by steve cohen & andrew dettman`:
```sql
                SELECT COUNT("production_code") FROM "table1_21550870_1" WHERE "written_by"='Steve Cohen & Andrew Dettman';
```
## Task
Generate a SQL query to answer the following question:
`What is the population in millions for 2011 where the HDI for 2011 is 0.453 (low)?`

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

CREATE TABLE "members" (
  "country" text,
  "area_km" text,
  "population_millions_2011" text,
  "gdp_ppp_usd_per_capita" real,
  "gdp_nominal_billions_usd" text,
  "hdi_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population in millions for 2011 where the HDI for 2011 is 0.453 (low)?`:
```sql
                SELECT "population_millions_2011" FROM "members" WHERE "hdi_2011"='0.453 (low)';
```
## Task
Generate a SQL query to answer the following question:
`What is the population in millions for 2011 where the GDP (nominal) (billions USD) is 4? `

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

CREATE TABLE "members" (
  "country" text,
  "area_km" text,
  "population_millions_2011" text,
  "gdp_ppp_usd_per_capita" real,
  "gdp_nominal_billions_usd" text,
  "hdi_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population in millions for 2011 where the GDP (nominal) (billions USD) is 4? `:
```sql
                SELECT "population_millions_2011" FROM "members" WHERE "gdp_nominal_billions_usd"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is the HDI for 2011 in Tunisia? `

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

CREATE TABLE "members" (
  "country" text,
  "area_km" text,
  "population_millions_2011" text,
  "gdp_ppp_usd_per_capita" real,
  "gdp_nominal_billions_usd" text,
  "hdi_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the HDI for 2011 in Tunisia? `:
```sql
                SELECT "hdi_2011" FROM "members" WHERE "country"='Tunisia';
```
## Task
Generate a SQL query to answer the following question:
`What is the area (km2) where the population in millions for 2011 is 37.1? `

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

CREATE TABLE "members" (
  "country" text,
  "area_km" text,
  "population_millions_2011" text,
  "gdp_ppp_usd_per_capita" real,
  "gdp_nominal_billions_usd" text,
  "hdi_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area (km2) where the population in millions for 2011 is 37.1? `:
```sql
                SELECT "area_km" FROM "members" WHERE "population_millions_2011"='37.1';
```
## Task
Generate a SQL query to answer the following question:
`What is the GDP (PPP) (USD, per capita) for Algeria? `

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

CREATE TABLE "members" (
  "country" text,
  "area_km" text,
  "population_millions_2011" text,
  "gdp_ppp_usd_per_capita" real,
  "gdp_nominal_billions_usd" text,
  "hdi_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the GDP (PPP) (USD, per capita) for Algeria? `:
```sql
                SELECT MIN("gdp_ppp_usd_per_capita") FROM "members" WHERE "country"='Algeria';
```
## Task
Generate a SQL query to answer the following question:
`What is the GDP (nominal) (billions USD) where the population in millions for 2011 is 3.4? `

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

CREATE TABLE "members" (
  "country" text,
  "area_km" text,
  "population_millions_2011" text,
  "gdp_ppp_usd_per_capita" real,
  "gdp_nominal_billions_usd" text,
  "hdi_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the GDP (nominal) (billions USD) where the population in millions for 2011 is 3.4? `:
```sql
                SELECT "gdp_nominal_billions_usd" FROM "members" WHERE "population_millions_2011"='3.4';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of cab size for 4 medium tanker`

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

CREATE TABLE "table1_2155350_2" (
  "category" text,
  "sub_category" text,
  "cab_size" text,
  "drive_wheels" text,
  "capacity_litres" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of cab size for 4 medium tanker`:
```sql
                SELECT COUNT("cab_size") FROM "table1_2155350_2" WHERE "category"='4 Medium tanker';
```
## Task
Generate a SQL query to answer the following question:
`Name the category for cab size crew and super tanker`

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

CREATE TABLE "table1_2155350_2" (
  "category" text,
  "sub_category" text,
  "cab_size" text,
  "drive_wheels" text,
  "capacity_litres" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the category for cab size crew and super tanker`:
```sql
                SELECT "category" FROM "table1_2155350_2" WHERE "cab_size"='Crew' AND "sub_category"='Super tanker';
```
## Task
Generate a SQL query to answer the following question:
`Name the capacity for single cab size 2 medium tanker`

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

CREATE TABLE "table1_2155350_2" (
  "category" text,
  "sub_category" text,
  "cab_size" text,
  "drive_wheels" text,
  "capacity_litres" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the capacity for single cab size 2 medium tanker`:
```sql
                SELECT "capacity_litres" FROM "table1_2155350_2" WHERE "cab_size"='Single' AND "category"='2 Medium tanker';
```
## Task
Generate a SQL query to answer the following question:
`What school is in Brechin?`

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

CREATE TABLE "external_links" (
  "school" text,
  "location" text,
  "catchment" text,
  "roll" real,
  "gender" text,
  "external_link" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school is in Brechin?`:
```sql
                SELECT "external_link" FROM "external_links" WHERE "location"='Brechin';
```
## Task
Generate a SQL query to answer the following question:
`How many kids go to Brechin High School?`

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

CREATE TABLE "external_links" (
  "school" text,
  "location" text,
  "catchment" text,
  "roll" real,
  "gender" text,
  "external_link" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many kids go to Brechin High School?`:
```sql
                SELECT MAX("roll") FROM "external_links" WHERE "school"='Brechin High School';
```
## Task
Generate a SQL query to answer the following question:
`What year did Negro American League join?`

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

CREATE TABLE "former_teams" (
  "team" text,
  "sport" text,
  "league" text,
  "established" real,
  "began_in_st_louis" real,
  "venue" text,
  "championships_in_st_louis" text,
  "left_st_louis" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Negro American League join?`:
```sql
                SELECT MIN("began_in_st_louis") FROM "former_teams" WHERE "league"='Negro American League';
```
## Task
Generate a SQL query to answer the following question:
`What year did the team who played at the Scottrade Center leave the city?`

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

CREATE TABLE "former_teams" (
  "team" text,
  "sport" text,
  "league" text,
  "established" real,
  "began_in_st_louis" real,
  "venue" text,
  "championships_in_st_louis" text,
  "left_st_louis" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the team who played at the Scottrade Center leave the city?`:
```sql
                SELECT MIN("left_st_louis") FROM "former_teams" WHERE "venue"='Scottrade Center';
```
## Task
Generate a SQL query to answer the following question:
`How may championships were won by the team that started in 1950?`

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

CREATE TABLE "former_teams" (
  "team" text,
  "sport" text,
  "league" text,
  "established" real,
  "began_in_st_louis" real,
  "venue" text,
  "championships_in_st_louis" text,
  "left_st_louis" real
);
### SQL
Given the database schema, here is the SQL query that answers `How may championships were won by the team that started in 1950?`:
```sql
                SELECT "championships_in_st_louis" FROM "former_teams" WHERE "began_in_st_louis"=1950;
```
## Task
Generate a SQL query to answer the following question:
`How many championships were won for arena football?`

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

CREATE TABLE "former_teams" (
  "team" text,
  "sport" text,
  "league" text,
  "established" real,
  "began_in_st_louis" real,
  "venue" text,
  "championships_in_st_louis" text,
  "left_st_louis" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many championships were won for arena football?`:
```sql
                SELECT "championships_in_st_louis" FROM "former_teams" WHERE "sport"='Arena Football';
```
## Task
Generate a SQL query to answer the following question:
`When samai amari is the asian rider classification how many asian team classifications are there?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "asian_rider_classification" text,
  "team_classification" text,
  "asian_team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When samai amari is the asian rider classification how many asian team classifications are there?`:
```sql
                SELECT COUNT("asian_team_classification") FROM "classification_leadership" WHERE "asian_rider_classification"='Samai Amari';
```
## Task
Generate a SQL query to answer the following question:
`When 4 is the stage who is the general classification?`

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

CREATE TABLE "classification_leadership" (
  "stage" real,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "asian_rider_classification" text,
  "team_classification" text,
  "asian_team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 4 is the stage who is the general classification?`:
```sql
                SELECT "general_classification" FROM "classification_leadership" WHERE "stage"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the number in season for the episode written by Chris Mitchell and Erik Wiese?`

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

CREATE TABLE "table1_2156758_4" (
  "no_in_series" text,
  "no_in_season" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number in season for the episode written by Chris Mitchell and Erik Wiese?`:
```sql
                SELECT "no_in_season" FROM "table1_2156758_4" WHERE "written_by"='Chris Mitchell and Erik Wiese';
```
## Task
Generate a SQL query to answer the following question:
`What is the title for episode number in series of 28?`

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

CREATE TABLE "table1_2156758_4" (
  "no_in_series" text,
  "no_in_season" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title for episode number in series of 28?`:
```sql
                SELECT "title" FROM "table1_2156758_4" WHERE "no_in_series"='28';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode titled "Jack and the Zombies"?`

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

CREATE TABLE "table1_2156758_4" (
  "no_in_series" text,
  "no_in_season" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode titled "Jack and the Zombies"?`:
```sql
                SELECT "directed_by" FROM "table1_2156758_4" WHERE "title"='\"Jack and the Zombies\"';
```
## Task
Generate a SQL query to answer the following question:
`How many titles were written by Don Shank and Genndy Tartakovsky?`

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

CREATE TABLE "table1_2156758_4" (
  "no_in_series" text,
  "no_in_season" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many titles were written by Don Shank and Genndy Tartakovsky?`:
```sql
                SELECT COUNT("title") FROM "table1_2156758_4" WHERE "written_by"='Don Shank and Genndy Tartakovsky';
```
## Task
Generate a SQL query to answer the following question:
`When 3rd, sedgemoor division 1 is the ladies 1st xi what is the mens 3rd xi?`

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

CREATE TABLE "league_finishes" (
  "season" text,
  "mens_1st_xi" text,
  "mens_2nd_xi" text,
  "mens_3rd_xi" text,
  "ladies_1st_xi" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 3rd, sedgemoor division 1 is the ladies 1st xi what is the mens 3rd xi?`:
```sql
                SELECT "mens_3rd_xi" FROM "league_finishes" WHERE "ladies_1st_xi"='3rd, Sedgemoor Division 1';
```
## Task
Generate a SQL query to answer the following question:
`When 10th, south west district 1 is the mens 2nd xi what is the ladies 1st xi?`

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

CREATE TABLE "league_finishes" (
  "season" text,
  "mens_1st_xi" text,
  "mens_2nd_xi" text,
  "mens_3rd_xi" text,
  "ladies_1st_xi" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 10th, south west district 1 is the mens 2nd xi what is the ladies 1st xi?`:
```sql
                SELECT "ladies_1st_xi" FROM "league_finishes" WHERE "mens_2nd_xi"='10th, South West District 1';
```
## Task
Generate a SQL query to answer the following question:
`When 5th, south western district 2 is the mens 2nd xi what is the season?`

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

CREATE TABLE "league_finishes" (
  "season" text,
  "mens_1st_xi" text,
  "mens_2nd_xi" text,
  "mens_3rd_xi" text,
  "ladies_1st_xi" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 5th, south western district 2 is the mens 2nd xi what is the season?`:
```sql
                SELECT "season" FROM "league_finishes" WHERE "mens_2nd_xi"='5th, South Western District 2';
```
## Task
Generate a SQL query to answer the following question:
`When 6th, south division 2 is the mens 1st xi what is the mens 2nd xi?`

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

CREATE TABLE "league_finishes" (
  "season" text,
  "mens_1st_xi" text,
  "mens_2nd_xi" text,
  "mens_3rd_xi" text,
  "ladies_1st_xi" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 6th, south division 2 is the mens 1st xi what is the mens 2nd xi?`:
```sql
                SELECT "mens_2nd_xi" FROM "league_finishes" WHERE "mens_1st_xi"='6th, South Division 2';
```
## Task
Generate a SQL query to answer the following question:
`Which stage has kourdali as the name?`

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

CREATE TABLE "special_stages" (
  "day" text,
  "stage" text,
  "time_eet" text,
  "name" text,
  "length" text,
  "winner" text,
  "time" text,
  "avg_spd" text,
  "rally_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stage has kourdali as the name?`:
```sql
                SELECT "stage" FROM "special_stages" WHERE "name"='Kourdali';
```
## Task
Generate a SQL query to answer the following question:
`Which stage has 15:17 as time?`

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

CREATE TABLE "special_stages" (
  "day" text,
  "stage" text,
  "time_eet" text,
  "name" text,
  "length" text,
  "winner" text,
  "time" text,
  "avg_spd" text,
  "rally_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stage has 15:17 as time?`:
```sql
                SELECT "stage" FROM "special_stages" WHERE "time_eet"='15:17';
```
## Task
Generate a SQL query to answer the following question:
`What is the time when time is 10:46?`

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

CREATE TABLE "special_stages" (
  "day" text,
  "stage" text,
  "time_eet" text,
  "name" text,
  "length" text,
  "winner" text,
  "time" text,
  "avg_spd" text,
  "rally_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time when time is 10:46?`:
```sql
                SELECT "time" FROM "special_stages" WHERE "time_eet"='10:46';
```
## Task
Generate a SQL query to answer the following question:
`What is the time when ss12 is stage?`

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

CREATE TABLE "special_stages" (
  "day" text,
  "stage" text,
  "time_eet" text,
  "name" text,
  "length" text,
  "winner" text,
  "time" text,
  "avg_spd" text,
  "rally_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time when ss12 is stage?`:
```sql
                SELECT "time" FROM "special_stages" WHERE "stage"='SS12';
```
## Task
Generate a SQL query to answer the following question:
`Name the state class for resigned november 3, 1964`

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

CREATE TABLE "table1_2159506_3" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the state class for resigned november 3, 1964`:
```sql
                SELECT "state_class" FROM "table1_2159506_3" WHERE "reason_for_change"='Resigned November 3, 1964';
```
## Task
Generate a SQL query to answer the following question:
`How many champions are shown for the runner-up of stefan edberg?`

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

CREATE TABLE "table1_21584646_10" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many champions are shown for the runner-up of stefan edberg?`:
```sql
                SELECT COUNT("champion") FROM "table1_21584646_10" WHERE "runner_up"='Stefan Edberg';
```
## Task
Generate a SQL query to answer the following question:
`What week was stefan edberg anders järryd was semifinalist and champion is john mcenroe 7–6, 6–3?`

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

CREATE TABLE "table1_21584646_10" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week was stefan edberg anders järryd was semifinalist and champion is john mcenroe 7–6, 6–3?`:
```sql
                SELECT "week_of" FROM "table1_21584646_10" WHERE "semifinalists"='Stefan Edberg Anders Järryd' AND "champion"='John McEnroe 7–6, 6–3';
```
## Task
Generate a SQL query to answer the following question:
`Who is the runner up for the champion of john mcenroe 6–2, 6–3?`

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

CREATE TABLE "table1_21584646_10" (
  "week_of" text,
  "tournament" text,
  "champion" text,
  "runner_up" text,
  "semifinalists" text,
  "quarterfinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the runner up for the champion of john mcenroe 6–2, 6–3?`:
```sql
                SELECT "runner_up" FROM "table1_21584646_10" WHERE "champion"='John McEnroe 6–2, 6–3';
```