cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is set 3 on week 6?`

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

CREATE TABLE "periodization" (
  "week" real,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "volume_lbs" real,
  "peak_intensity_last_set" text,
  "pct_of_1_rep_max_last_set" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is set 3 on week 6?`:
```sql
                SELECT "set_3" FROM "periodization" WHERE "week"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the per-capita GDP for the country with an overall GDP of 156.640?`

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

CREATE TABLE "1995_enlargement" (
  "member_countries" text,
  "population" text,
  "area_km" text,
  "gdp_billion_us" text,
  "gdp_per_capita_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the per-capita GDP for the country with an overall GDP of 156.640?`:
```sql
                SELECT "gdp_per_capita_us" FROM "1995_enlargement" WHERE "gdp_billion_us"='156.640';
```
## Task
Generate a SQL query to answer the following question:
`What is the per-capita GDP of the country with an overall GDP of 80.955?`

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

CREATE TABLE "1995_enlargement" (
  "member_countries" text,
  "population" text,
  "area_km" text,
  "gdp_billion_us" text,
  "gdp_per_capita_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the per-capita GDP of the country with an overall GDP of 80.955?`:
```sql
                SELECT "gdp_per_capita_us" FROM "1995_enlargement" WHERE "gdp_billion_us"='80.955';
```
## Task
Generate a SQL query to answer the following question:
`Which country has an area of 871,980 square km?`

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

CREATE TABLE "1995_enlargement" (
  "member_countries" text,
  "population" text,
  "area_km" text,
  "gdp_billion_us" text,
  "gdp_per_capita_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has an area of 871,980 square km?`:
```sql
                SELECT "member_countries" FROM "1995_enlargement" WHERE "area_km"='871,980';
```
## Task
Generate a SQL query to answer the following question:
`On October 1, 1995 with Dora Djilianova as a partner, what was the outcome of the match?`

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

CREATE TABLE "doubles_11_8_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `On October 1, 1995 with Dora Djilianova as a partner, what was the outcome of the match?`:
```sql
                SELECT "outcome" FROM "doubles_11_8_3" WHERE "partner"='dora djilianova' AND "date"='october 1, 1995';
```
## Task
Generate a SQL query to answer the following question:
`With Lindsay Lee-Waters as a partner, what was the final score?`

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

CREATE TABLE "doubles_11_8_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `With Lindsay Lee-Waters as a partner, what was the final score?`:
```sql
                SELECT "score_in_the_final" FROM "doubles_11_8_3" WHERE "partner"='lindsay lee-waters';
```
## Task
Generate a SQL query to answer the following question:
`Which score has a Date of august 17?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score has a Date of august 17?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='august 17';
```
## Task
Generate a SQL query to answer the following question:
`Which score has an Opponent of @ athletics, and a Record of 76-57?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score has an Opponent of @ athletics, and a Record of 76-57?`:
```sql
                SELECT "score" FROM "game_log" WHERE "opponent"='@ athletics' AND "record"='76-57';
```
## Task
Generate a SQL query to answer the following question:
`Which loss has a Record of 67-51?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which loss has a Record of 67-51?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='67-51';
```
## Task
Generate a SQL query to answer the following question:
`Which position has 2 wins in 1992?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "races" text,
  "wins" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has 2 wins in 1992?`:
```sql
                SELECT "position" FROM "career_summary" WHERE "wins"='2' AND "season"=1992;
```
## Task
Generate a SQL query to answer the following question:
`How many wins have a Series of formula nippon, and a Position of 8th?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "races" text,
  "wins" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins have a Series of formula nippon, and a Position of 8th?`:
```sql
                SELECT "wins" FROM "career_summary" WHERE "series"='formula nippon' AND "position"='8th';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championship>`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "races" text,
  "wins" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championship>`:
```sql
                SELECT MIN("season") FROM "career_summary" WHERE "races"='6' AND "series"='all-japan gt championship' AND "wins"='2';
```
## Task
Generate a SQL query to answer the following question:
`What was Mark Brooks total score when he finished more than 2 above par?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Mark Brooks total score when he finished more than 2 above par?`:
```sql
                SELECT AVG("total") FROM "missed_the_cut" WHERE "to_par">2 AND "player"='mark brooks';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning to par score of the 1993 PGA Championship?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning to par score of the 1993 PGA Championship?`:
```sql
                SELECT "to_par" FROM "missed_the_cut" WHERE "year_s_won"='1993';
```
## Task
Generate a SQL query to answer the following question:
`How many constructions has a Wheel arrange- ment of 4-4-0?`

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

CREATE TABLE "equipment" (
  "builder" text,
  "construct_tion_no" real,
  "date_ordered" text,
  "wheel_arrange_ment" text,
  "s_cylinder" text,
  "engine_weight" text,
  "tc_st_l_no_1883_84" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many constructions has a Wheel arrange- ment of 4-4-0?`:
```sql
                SELECT SUM("construct_tion_no") FROM "equipment" WHERE "wheel_arrange_ment"='4-4-0';
```
## Task
Generate a SQL query to answer the following question:
`Who built the order on November 1881 of more than 54 TC&StL no. (1883–84)?`

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

CREATE TABLE "equipment" (
  "builder" text,
  "construct_tion_no" real,
  "date_ordered" text,
  "wheel_arrange_ment" text,
  "s_cylinder" text,
  "engine_weight" text,
  "tc_st_l_no_1883_84" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who built the order on November 1881 of more than 54 TC&StL no. (1883–84)?`:
```sql
                SELECT "builder" FROM "equipment" WHERE "tc_st_l_no_1883_84">54 AND "date_ordered"='november 1881';
```
## Task
Generate a SQL query to answer the following question:
`What is the Season Outcome for the Sussex Central School?`

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

CREATE TABLE "2010_regular_season_football_standings" (
  "school" text,
  "team" text,
  "division_record" text,
  "overall_record" text,
  "season_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Season Outcome for the Sussex Central School?`:
```sql
                SELECT "season_outcome" FROM "2010_regular_season_football_standings" WHERE "school"='sussex central';
```
## Task
Generate a SQL query to answer the following question:
`What is the School of Sussex Tech's Team?`

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

CREATE TABLE "2010_regular_season_football_standings" (
  "school" text,
  "team" text,
  "division_record" text,
  "overall_record" text,
  "season_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the School of Sussex Tech's Team?`:
```sql
                SELECT "team" FROM "2010_regular_season_football_standings" WHERE "school"='sussex tech';
```
## Task
Generate a SQL query to answer the following question:
`What is the Team for the Milford School?`

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

CREATE TABLE "2010_regular_season_football_standings" (
  "school" text,
  "team" text,
  "division_record" text,
  "overall_record" text,
  "season_outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Team for the Milford School?`:
```sql
                SELECT "team" FROM "2010_regular_season_football_standings" WHERE "school"='milford';
```
## Task
Generate a SQL query to answer the following question:
`Which season was one of the players rated +33?`

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

CREATE TABLE "winners" (
  "season" text,
  "player" text,
  "team" text,
  "position" text,
  "rating" text,
  "win_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season was one of the players rated +33?`:
```sql
                SELECT "season" FROM "winners" WHERE "rating"='+33';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the team that had 1 win and a rating of +85?`

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

CREATE TABLE "winners" (
  "season" text,
  "player" text,
  "team" text,
  "position" text,
  "rating" text,
  "win_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the team that had 1 win and a rating of +85?`:
```sql
                SELECT "team" FROM "winners" WHERE "win_num"='1' AND "rating"='+85';
```
## Task
Generate a SQL query to answer the following question:
`Which season was one of the players rated +98?`

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

CREATE TABLE "winners" (
  "season" text,
  "player" text,
  "team" text,
  "position" text,
  "rating" text,
  "win_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season was one of the players rated +98?`:
```sql
                SELECT "season" FROM "winners" WHERE "rating"='+98';
```
## Task
Generate a SQL query to answer the following question:
`What is Patrice Bergeron's rating?`

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

CREATE TABLE "winners" (
  "season" text,
  "player" text,
  "team" text,
  "position" text,
  "rating" text,
  "win_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Patrice Bergeron's rating?`:
```sql
                SELECT "rating" FROM "winners" WHERE "player"='patrice bergeron';
```
## Task
Generate a SQL query to answer the following question:
`Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average?`:
```sql
                SELECT AVG("overall") FROM "indianapolis_colts_draft_history" WHERE "position"='defensive tackle' AND "round"=4 AND "pick_num"<36;
```
## Task
Generate a SQL query to answer the following question:
`Pick # that has a Name of jaimie thomas, and a Round smaller than 7 is how many numbers?`

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

CREATE TABLE "indianapolis_colts_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Pick # that has a Name of jaimie thomas, and a Round smaller than 7 is how many numbers?`:
```sql
                SELECT COUNT("pick_num") FROM "indianapolis_colts_draft_history" WHERE "name"='jaimie thomas' AND "round"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the muzzle device with a 1:7 barrel twist and a stock 4th generation?`

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

CREATE TABLE "mt_and_cr_series_models" (
  "colt_model_no" text,
  "name" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "case_deflector" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the muzzle device with a 1:7 barrel twist and a stock 4th generation?`:
```sql
                SELECT "muzzle_device" FROM "mt_and_cr_series_models" WHERE "barrel_twist"='1:7' AND "stock"='4th generation';
```
## Task
Generate a SQL query to answer the following question:
`When was the opponent Poland and the match type EC -qualifier?`

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

CREATE TABLE "national_team_matches" (
  "date" text,
  "location" text,
  "opponenent" text,
  "result" text,
  "match_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the opponent Poland and the match type EC -qualifier?`:
```sql
                SELECT "date" FROM "national_team_matches" WHERE "opponenent"='poland' AND "match_type"='ec -qualifier';
```
## Task
Generate a SQL query to answer the following question:
`Where was the opponent Germany?`

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

CREATE TABLE "national_team_matches" (
  "date" text,
  "location" text,
  "opponenent" text,
  "result" text,
  "match_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the opponent Germany?`:
```sql
                SELECT "location" FROM "national_team_matches" WHERE "opponenent"='germany';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the result was 2-2 (draw)?`

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

CREATE TABLE "national_team_matches" (
  "date" text,
  "location" text,
  "opponenent" text,
  "result" text,
  "match_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when the result was 2-2 (draw)?`:
```sql
                SELECT "opponenent" FROM "national_team_matches" WHERE "result"='2-2 (draw)';
```
## Task
Generate a SQL query to answer the following question:
`What was the match type in Budapest where the opponent was Luxembourg?`

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

CREATE TABLE "national_team_matches" (
  "date" text,
  "location" text,
  "opponenent" text,
  "result" text,
  "match_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the match type in Budapest where the opponent was Luxembourg?`:
```sql
                SELECT "match_type" FROM "national_team_matches" WHERE "location"='budapest' AND "opponenent"='luxembourg';
```
## Task
Generate a SQL query to answer the following question:
`Which player has the score 72-67-69=208?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has the score 72-67-69=208?`:
```sql
                SELECT "player" FROM "third_round" WHERE "score"='72-67-69=208';
```
## Task
Generate a SQL query to answer the following question:
`Who has the par score of 70-76-68-214?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the par score of 70-76-68-214?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "score"='70-76-68-214';
```
## Task
Generate a SQL query to answer the following question:
`Which country has the score 70-76-68-214?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has the score 70-76-68-214?`:
```sql
                SELECT "country" FROM "third_round" WHERE "score"='70-76-68-214';
```
## Task
Generate a SQL query to answer the following question:
`when was the first performance for the ballet with peter mazurowski in the final cast?`

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

CREATE TABLE "billy_elliot" (
  "status" text,
  "name" text,
  "first_performance" text,
  "last_performance" text,
  "style" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the first performance for the ballet with peter mazurowski in the final cast?`:
```sql
                SELECT "first_performance" FROM "billy_elliot" WHERE "style"='ballet' AND "status"='final cast' AND "name"='peter mazurowski';
```
## Task
Generate a SQL query to answer the following question:
`who had the first performance on 3 july 2011?`

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

CREATE TABLE "billy_elliot" (
  "status" text,
  "name" text,
  "first_performance" text,
  "last_performance" text,
  "style" text
);
### SQL
Given the database schema, here is the SQL query that answers `who had the first performance on 3 july 2011?`:
```sql
                SELECT "name" FROM "billy_elliot" WHERE "first_performance"='3 july 2011';
```
## Task
Generate a SQL query to answer the following question:
`who had a last performance of 3 july 2011?`

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

CREATE TABLE "billy_elliot" (
  "status" text,
  "name" text,
  "first_performance" text,
  "last_performance" text,
  "style" text
);
### SQL
Given the database schema, here is the SQL query that answers `who had a last performance of 3 july 2011?`:
```sql
                SELECT "name" FROM "billy_elliot" WHERE "last_performance"='3 july 2011';
```
## Task
Generate a SQL query to answer the following question:
`what's the status in the style of ballet/ gymnastics?`

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

CREATE TABLE "billy_elliot" (
  "status" text,
  "name" text,
  "first_performance" text,
  "last_performance" text,
  "style" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the status in the style of ballet/ gymnastics?`:
```sql
                SELECT "status" FROM "billy_elliot" WHERE "style"='ballet/ gymnastics';
```
## Task
Generate a SQL query to answer the following question:
`what's the name with final cast status and first performance on 12 november 2011?`

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

CREATE TABLE "billy_elliot" (
  "status" text,
  "name" text,
  "first_performance" text,
  "last_performance" text,
  "style" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the name with final cast status and first performance on 12 november 2011?`:
```sql
                SELECT "name" FROM "billy_elliot" WHERE "status"='final cast' AND "first_performance"='12 november 2011';
```
## Task
Generate a SQL query to answer the following question:
`what last performance has past status, ballet as style and tommy batchelor?`

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

CREATE TABLE "billy_elliot" (
  "status" text,
  "name" text,
  "first_performance" text,
  "last_performance" text,
  "style" text
);
### SQL
Given the database schema, here is the SQL query that answers `what last performance has past status, ballet as style and tommy batchelor?`:
```sql
                SELECT "last_performance" FROM "billy_elliot" WHERE "status"='past' AND "style"='ballet' AND "name"='tommy batchelor';
```
## Task
Generate a SQL query to answer the following question:
`How many goals was by Rix from Eng who started before 2005 in the youth system?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" real,
  "goals" real,
  "ends" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals was by Rix from Eng who started before 2005 in the youth system?`:
```sql
                SELECT COUNT("goals") FROM "squad_information" WHERE "nat"='eng' AND "transfer_fee"='youth system' AND "since"<2005 AND "name"='rix';
```
## Task
Generate a SQL query to answer the following question:
`Where is Rix from?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" real,
  "goals" real,
  "ends" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is Rix from?`:
```sql
                SELECT "nat" FROM "squad_information" WHERE "name"='rix';
```
## Task
Generate a SQL query to answer the following question:
`What is the specification of the locomotives with a total produced more than 19 and a model of fb-1?`

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

CREATE TABLE "cab_units_fa_fp_series" (
  "model" text,
  "specification" text,
  "build_date" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "prime_mover" text,
  "power_output" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the specification of the locomotives with a total produced more than 19 and a model of fb-1?`:
```sql
                SELECT "specification" FROM "cab_units_fa_fp_series" WHERE "total_produced">19 AND "model"='fb-1';
```
## Task
Generate a SQL query to answer the following question:
`What is the build date of the locomotives with a total produced less than 45 and a fb-2 model?`

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

CREATE TABLE "cab_units_fa_fp_series" (
  "model" text,
  "specification" text,
  "build_date" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "prime_mover" text,
  "power_output" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the build date of the locomotives with a total produced less than 45 and a fb-2 model?`:
```sql
                SELECT "build_date" FROM "cab_units_fa_fp_series" WHERE "total_produced"<45 AND "model"='fb-2';
```
## Task
Generate a SQL query to answer the following question:
`What is the prime mover of the locomotive with a fa-2 model?`

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

CREATE TABLE "cab_units_fa_fp_series" (
  "model" text,
  "specification" text,
  "build_date" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "prime_mover" text,
  "power_output" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the prime mover of the locomotive with a fa-2 model?`:
```sql
                SELECT "prime_mover" FROM "cab_units_fa_fp_series" WHERE "model"='fa-2';
```
## Task
Generate a SQL query to answer the following question:
`What is the build date of the locomotive with a fa-2 model?`

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

CREATE TABLE "cab_units_fa_fp_series" (
  "model" text,
  "specification" text,
  "build_date" text,
  "total_produced" real,
  "wheel_arrangement" text,
  "prime_mover" text,
  "power_output" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the build date of the locomotive with a fa-2 model?`:
```sql
                SELECT "build_date" FROM "cab_units_fa_fp_series" WHERE "model"='fa-2';
```
## Task
Generate a SQL query to answer the following question:
`What region has a transmitter located at Mount Sugarloaf?`

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

CREATE TABLE "main_transmitters" (
  "region_served" text,
  "city" text,
  "channels_analog_digital" text,
  "first_air_date" text,
  "erp_analog_digital" text,
  "haat_analog_digital_1" text,
  "transmitter_location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What region has a transmitter located at Mount Sugarloaf?`:
```sql
                SELECT "region_served" FROM "main_transmitters" WHERE "transmitter_location"='mount sugarloaf';
```
## Task
Generate a SQL query to answer the following question:
`Name the 3rd round for 1st eound of out of playoffs`

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

CREATE TABLE "playoffs" (
  "season" text,
  "prelim" text,
  "1st_round" text,
  "2nd_round" text,
  "3rd_round" text,
  "finals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 3rd round for 1st eound of out of playoffs`:
```sql
                SELECT "3rd_round" FROM "playoffs" WHERE "1st_round"='out of playoffs';
```
## Task
Generate a SQL query to answer the following question:
`Name the finals for prelim of out of playoffs`

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

CREATE TABLE "playoffs" (
  "season" text,
  "prelim" text,
  "1st_round" text,
  "2nd_round" text,
  "3rd_round" text,
  "finals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the finals for prelim of out of playoffs`:
```sql
                SELECT "finals" FROM "playoffs" WHERE "prelim"='out of playoffs';
```
## Task
Generate a SQL query to answer the following question:
`Name the 2nd round for 1st round of l, 1–3, sjnb`

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

CREATE TABLE "playoffs" (
  "season" text,
  "prelim" text,
  "1st_round" text,
  "2nd_round" text,
  "3rd_round" text,
  "finals" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 2nd round for 1st round of l, 1–3, sjnb`:
```sql
                SELECT "2nd_round" FROM "playoffs" WHERE "1st_round"='l, 1–3, sjnb';
```
## Task
Generate a SQL query to answer the following question:
`Who is the musical director of the film Vettaiyaadu vilaiyaadu?`

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

CREATE TABLE "notable_filmography" (
  "year" real,
  "song" text,
  "film" text,
  "language" text,
  "music_director" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the musical director of the film Vettaiyaadu vilaiyaadu?`:
```sql
                SELECT "music_director" FROM "notable_filmography" WHERE "film"='vettaiyaadu vilaiyaadu';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2007 film in Hindi with a music director Shantanu moitra?`

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

CREATE TABLE "notable_filmography" (
  "year" real,
  "song" text,
  "film" text,
  "language" text,
  "music_director" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2007 film in Hindi with a music director Shantanu moitra?`:
```sql
                SELECT "film" FROM "notable_filmography" WHERE "year"=2007 AND "language"='hindi' AND "music_director"='shantanu moitra';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of losses that coach John Kowalski has with a PTS smaller than 9?`

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

CREATE TABLE "winningest_coaches_by_wins" (
  "coach" text,
  "team" text,
  "wins" real,
  "loss" real,
  "pct" real,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of losses that coach John Kowalski has with a PTS smaller than 9?`:
```sql
                SELECT COUNT("loss") FROM "winningest_coaches_by_wins" WHERE "coach"='john kowalski' AND "pts"<9;
```
## Task
Generate a SQL query to answer the following question:
`What is the average PCT when it has a PTS smaller than 9 a wins larger than 1?`

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

CREATE TABLE "winningest_coaches_by_wins" (
  "coach" text,
  "team" text,
  "wins" real,
  "loss" real,
  "pct" real,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average PCT when it has a PTS smaller than 9 a wins larger than 1?`:
```sql
                SELECT AVG("pct") FROM "winningest_coaches_by_wins" WHERE "pts"<9 AND "wins">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of PTS when there is a PCT smaller than 0.1?`

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

CREATE TABLE "winningest_coaches_by_wins" (
  "coach" text,
  "team" text,
  "wins" real,
  "loss" real,
  "pct" real,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of PTS when there is a PCT smaller than 0.1?`:
```sql
                SELECT SUM("pts") FROM "winningest_coaches_by_wins" WHERE "pct"<0.1;
```
## Task
Generate a SQL query to answer the following question:
`What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19?`

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

CREATE TABLE "winningest_coaches_by_wins" (
  "coach" text,
  "team" text,
  "wins" real,
  "loss" real,
  "pct" real,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19?`:
```sql
                SELECT "coach" FROM "winningest_coaches_by_wins" WHERE "pct">0.1 AND "pts">9 AND "loss"=19;
```
## Task
Generate a SQL query to answer the following question:
`What's the name of spain rank greater than 2?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of spain rank greater than 2?`:
```sql
                SELECT "name" FROM "semifinal_2" WHERE "rank">2 AND "nationality"='spain';
```
## Task
Generate a SQL query to answer the following question:
`Spain had what time with lanes smaller than 4?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Spain had what time with lanes smaller than 4?`:
```sql
                SELECT "time" FROM "semifinal_2" WHERE "lane"<4 AND "nationality"='spain';
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest rank of noriko inada?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest rank of noriko inada?`:
```sql
                SELECT MIN("rank") FROM "semifinal_2" WHERE "name"='noriko inada';
```
## Task
Generate a SQL query to answer the following question:
`How many total losses have teams that played more than 30 games?`

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

CREATE TABLE "ppl_2004_final_standings" (
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total losses have teams that played more than 30 games?`:
```sql
                SELECT COUNT("lost") FROM "ppl_2004_final_standings" WHERE "played">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of the rank when the time is 2:15.98, in a lane larger than 7?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the rank when the time is 2:15.98, in a lane larger than 7?`:
```sql
                SELECT COUNT("rank") FROM "semifinal_2" WHERE "time"='2:15.98' AND "lane">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of the rank for the name of Chen Yan in a lane less than 2?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the rank for the name of Chen Yan in a lane less than 2?`:
```sql
                SELECT COUNT("rank") FROM "semifinal_2" WHERE "name"='chen yan' AND "lane"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest lane for rank 6?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest lane for rank 6?`:
```sql
                SELECT MIN("lane") FROM "semifinal_2" WHERE "rank"=6;
```
## Task
Generate a SQL query to answer the following question:
`What's the total for a league cup less than 1?`

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

CREATE TABLE "goals" (
  "name" text,
  "league" real,
  "play_offs" real,
  "fa_cup" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total for a league cup less than 1?`:
```sql
                SELECT COUNT("league_cup") FROM "goals" WHERE "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What's the FA Cup that has a league less than 1?`

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

CREATE TABLE "goals" (
  "name" text,
  "league" real,
  "play_offs" real,
  "fa_cup" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the FA Cup that has a league less than 1?`:
```sql
                SELECT SUM("fa_cup") FROM "goals" WHERE "league"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which town has the most villages with the hanzi 南流乡 and a population larger than 24,802?`

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

CREATE TABLE "administrative_divisions" (
  "name" text,
  "hanzi" text,
  "area_km" real,
  "population" real,
  "villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which town has the most villages with the hanzi 南流乡 and a population larger than 24,802?`:
```sql
                SELECT MAX("villages") FROM "administrative_divisions" WHERE "hanzi"='南流乡' AND "population">'24,802';
```
## Task
Generate a SQL query to answer the following question:
`What position did lap 296 come in?`

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

CREATE TABLE "complete_24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did lap 296 come in?`:
```sql
                SELECT "pos" FROM "complete_24_hours_of_le_mans_results" WHERE "laps"=296;
```
## Task
Generate a SQL query to answer the following question:
`How many games did the Club that has a try bonus of 4 and 391 points against play ?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did the Club that has a try bonus of 4 and 391 points against play ?`:
```sql
                SELECT "played" FROM "2008_2009_table" WHERE "try_bonus"='4' AND "points_against"='391';
```
## Task
Generate a SQL query to answer the following question:
`How many points against did Carmarthen Athletic RFC have when they played 22 games ?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points against did Carmarthen Athletic RFC have when they played 22 games ?`:
```sql
                SELECT "points_against" FROM "2008_2009_table" WHERE "played"='22' AND "club"='carmarthen athletic rfc';
```
## Task
Generate a SQL query to answer the following question:
`Which club lost 10 games ?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club lost 10 games ?`:
```sql
                SELECT "club" FROM "2008_2009_table" WHERE "lost"='10';
```
## Task
Generate a SQL query to answer the following question:
`How many points for did the club that had 77 tries for have ?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points for did the club that had 77 tries for have ?`:
```sql
                SELECT "points_for" FROM "2008_2009_table" WHERE "tries_for"='77';
```
## Task
Generate a SQL query to answer the following question:
`Which club has a try bonus of 2 ?`

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

CREATE TABLE "2008_2009_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club has a try bonus of 2 ?`:
```sql
                SELECT "club" FROM "2008_2009_table" WHERE "try_bonus"='2';
```
## Task
Generate a SQL query to answer the following question:
`Name the most attendance for october 11`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most attendance for october 11`:
```sql
                SELECT MAX("attendance") FROM "regular_season" WHERE "date"='october 11';
```
## Task
Generate a SQL query to answer the following question:
`Name the visitor for october 19`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the visitor for october 19`:
```sql
                SELECT "visitor" FROM "regular_season" WHERE "date"='october 19';
```
## Task
Generate a SQL query to answer the following question:
`The highest year for the series titled dragon laws ii: kidnapped is what?`

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

CREATE TABLE "dragon_laws_television_films" (
  "year" real,
  "series_title" text,
  "chinese_title" text,
  "role" text,
  "channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `The highest year for the series titled dragon laws ii: kidnapped is what?`:
```sql
                SELECT MAX("year") FROM "dragon_laws_television_films" WHERE "series_title"='dragon laws ii: kidnapped';
```
## Task
Generate a SQL query to answer the following question:
`The series titled dragon laws i: the undercover has what role?`

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

CREATE TABLE "dragon_laws_television_films" (
  "year" real,
  "series_title" text,
  "chinese_title" text,
  "role" text,
  "channel" text
);
### SQL
Given the database schema, here is the SQL query that answers `The series titled dragon laws i: the undercover has what role?`:
```sql
                SELECT "role" FROM "dragon_laws_television_films" WHERE "series_title"='dragon laws i: the undercover';
```
## Task
Generate a SQL query to answer the following question:
`Which athlete has the fastest time of 15.82?`

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

CREATE TABLE "paralympic_women" (
  "classification" text,
  "fastest_time_s" real,
  "athlete" text,
  "country" text,
  "date" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which athlete has the fastest time of 15.82?`:
```sql
                SELECT "athlete" FROM "paralympic_women" WHERE "fastest_time_s"=15.82;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of years that an entrant had more than 0 points?`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of years that an entrant had more than 0 points?`:
```sql
                SELECT COUNT("year") FROM "complete_world_championship_formula_one_" WHERE "points">0;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of years for brm straight-4`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of years for brm straight-4`:
```sql
                SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='brm straight-4';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of points for chassis of bmw t269 (f2)`

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

CREATE TABLE "complete_formula_one_world_championship_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of points for chassis of bmw t269 (f2)`:
```sql
                SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='bmw t269 (f2)';
```