cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the barrel length for barrel twist of 1:7`

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

CREATE TABLE "ar_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 `Name the barrel length for barrel twist of 1:7`:
```sql
                SELECT "barrel_length" FROM "ar_series_models" WHERE "barrel_twist"='1:7';
```
## Task
Generate a SQL query to answer the following question:
`What is the three-mora word with a low tone accented mora and a one mora of 2?`

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

CREATE TABLE "kyoto_osaka_keihan_type" (
  "accented_mora" text,
  "one_mora" text,
  "two_mora_word" text,
  "three_mora_word" text,
  "gloss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the three-mora word with a low tone accented mora and a one mora of 2?`:
```sql
                SELECT "three_mora_word" FROM "kyoto_osaka_keihan_type" WHERE "accented_mora"='low tone' AND "one_mora"='2';
```
## Task
Generate a SQL query to answer the following question:
`What is the one mora for the three-mora word /kaze/ [kázé]?`

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

CREATE TABLE "kyoto_osaka_keihan_type" (
  "accented_mora" text,
  "one_mora" text,
  "two_mora_word" text,
  "three_mora_word" text,
  "gloss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the one mora for the three-mora word /kaze/ [kázé]?`:
```sql
                SELECT "one_mora" FROM "kyoto_osaka_keihan_type" WHERE "three_mora_word"='/kaze/ [kázé]';
```
## Task
Generate a SQL query to answer the following question:
`What is the one mora for the three-mora word /˩haruꜜ/ [hàɽɯ́ ~ hàɽɯ̂]?`

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

CREATE TABLE "kyoto_osaka_keihan_type" (
  "accented_mora" text,
  "one_mora" text,
  "two_mora_word" text,
  "three_mora_word" text,
  "gloss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the one mora for the three-mora word /˩haruꜜ/ [hàɽɯ́ ~ hàɽɯ̂]?`:
```sql
                SELECT "one_mora" FROM "kyoto_osaka_keihan_type" WHERE "three_mora_word"='/˩haruꜜ/ [hàɽɯ́ ~ hàɽɯ̂]';
```
## Task
Generate a SQL query to answer the following question:
`What is the two-mora word with a low tone accented mora and a gloss of /˩kusuꜜri/ [kɯ̀sɯ́ɽì]?`

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

CREATE TABLE "kyoto_osaka_keihan_type" (
  "accented_mora" text,
  "one_mora" text,
  "two_mora_word" text,
  "three_mora_word" text,
  "gloss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the two-mora word with a low tone accented mora and a gloss of /˩kusuꜜri/ [kɯ̀sɯ́ɽì]?`:
```sql
                SELECT "two_mora_word" FROM "kyoto_osaka_keihan_type" WHERE "accented_mora"='low tone' AND "gloss"='/˩kusuꜜri/ [kɯ̀sɯ́ɽì]';
```
## Task
Generate a SQL query to answer the following question:
`What is the one mora for a low tone mora with a gloss of /˩okiru/ [òkìɽɯ́]?`

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

CREATE TABLE "kyoto_osaka_keihan_type" (
  "accented_mora" text,
  "one_mora" text,
  "two_mora_word" text,
  "three_mora_word" text,
  "gloss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the one mora for a low tone mora with a gloss of /˩okiru/ [òkìɽɯ́]?`:
```sql
                SELECT "one_mora" FROM "kyoto_osaka_keihan_type" WHERE "accented_mora"='low tone' AND "gloss"='/˩okiru/ [òkìɽɯ́]';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Total Medals that has 0 Gold Medal and a Ensemble of east 80 indoor percussion?`

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

CREATE TABLE "percussion_independent_a_class" (
  "ensemble" text,
  "gold_medals" real,
  "silver_medals" real,
  "bronze_medals" real,
  "total_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Total Medals that has 0 Gold Medal and a Ensemble of east 80 indoor percussion?`:
```sql
                SELECT MAX("total_medals") FROM "percussion_independent_a_class" WHERE "gold_medals"=0 AND "ensemble"='east 80 indoor percussion';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Total Medals that has madison independent and Bronze Medals larger than 0`

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

CREATE TABLE "percussion_independent_a_class" (
  "ensemble" text,
  "gold_medals" real,
  "silver_medals" real,
  "bronze_medals" real,
  "total_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Total Medals that has madison independent and Bronze Medals larger than 0`:
```sql
                SELECT MIN("total_medals") FROM "percussion_independent_a_class" WHERE "ensemble"='madison independent' AND "bronze_medals">0;
```
## Task
Generate a SQL query to answer the following question:
`what is Gold Medals that has  salem blue devils and a Silver Medals less than 1?`

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

CREATE TABLE "percussion_independent_a_class" (
  "ensemble" text,
  "gold_medals" real,
  "silver_medals" real,
  "bronze_medals" real,
  "total_medals" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is Gold Medals that has  salem blue devils and a Silver Medals less than 1?`:
```sql
                SELECT MIN("gold_medals") FROM "percussion_independent_a_class" WHERE "ensemble"='salem blue devils' AND "silver_medals"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the match where the method was submission (armbar) and Mayra Conde was the opponent?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the match where the method was submission (armbar) and Mayra Conde was the opponent?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "method"='submission (armbar)' AND "opponent"='mayra conde';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent of the match with a method of submission (armbar) and a 9-3-1 record?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent of the match with a method of submission (armbar) and a 9-3-1 record?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "method"='submission (armbar)' AND "record"='9-3-1';
```
## Task
Generate a SQL query to answer the following question:
`What is the Time (EEST), when the Stage is ss8?`

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

CREATE TABLE "special_stages" (
  "stage" text,
  "time_eest" 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 (EEST), when the Stage is ss8?`:
```sql
                SELECT "time_eest" FROM "special_stages" WHERE "stage"='ss8';
```
## Task
Generate a SQL query to answer the following question:
`What is the Stage, when the Rally leader is C. Atkinson?`

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

CREATE TABLE "special_stages" (
  "stage" text,
  "time_eest" 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 Stage, when the Rally leader is C. Atkinson?`:
```sql
                SELECT "stage" FROM "special_stages" WHERE "rally_leader"='c. atkinson';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Winner, when the Name is Ouninpohja 1?`

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

CREATE TABLE "special_stages" (
  "stage" text,
  "time_eest" 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 the Winner, when the Name is Ouninpohja 1?`:
```sql
                SELECT "winner" FROM "special_stages" WHERE "name"='ouninpohja 1';
```
## Task
Generate a SQL query to answer the following question:
`What is the Length, when the Name is Himos?`

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

CREATE TABLE "special_stages" (
  "stage" text,
  "time_eest" 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 Length, when the Name is Himos?`:
```sql
                SELECT "length" FROM "special_stages" WHERE "name"='himos';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Winner when the Length is 21.27km?`

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

CREATE TABLE "special_stages" (
  "stage" text,
  "time_eest" 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 the Winner when the Length is 21.27km?`:
```sql
                SELECT "winner" FROM "special_stages" WHERE "length"='21.27km';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name, when the Time is 8:10.1?`

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

CREATE TABLE "special_stages" (
  "stage" text,
  "time_eest" 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 Name, when the Time is 8:10.1?`:
```sql
                SELECT "name" FROM "special_stages" WHERE "time"='8:10.1';
```
## Task
Generate a SQL query to answer the following question:
`In the Formula One World Championships, which entrant had 0 points with a Ferrari 156 Chassis after 1961?`

### 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 `In the Formula One World Championships, which entrant had 0 points with a Ferrari 156 Chassis after 1961?`:
```sql
                SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "points"=0 AND "year">1961 AND "chassis"='ferrari 156';
```
## Task
Generate a SQL query to answer the following question:
`During the Formula One World Championships, which engine was used in 1965?`

### 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 `During the Formula One World Championships, which engine was used in 1965?`:
```sql
                SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "year"=1965;
```
## Task
Generate a SQL query to answer the following question:
`How many points were earned with a Chassis of a Ferrari 156?`

### 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 `How many points were earned with a Chassis of a Ferrari 156?`:
```sql
                SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='ferrari 156';
```
## Task
Generate a SQL query to answer the following question:
`Where did the driver who started 9 with a qualifing speed of 152.672 and finished fewer than 197 laps finish?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the driver who started 9 with a qualifing speed of 152.672 and finished fewer than 197 laps finish?`:
```sql
                SELECT "finish" FROM "indy_500_results" WHERE "laps"<197 AND "start"='9' AND "qual"='152.672';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of game 7?`

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

CREATE TABLE "series_statistics" (
  "game" real,
  "date" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of game 7?`:
```sql
                SELECT "location" FROM "series_statistics" WHERE "game"=7;
```
## Task
Generate a SQL query to answer the following question:
`what is the location of game 4?`

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

CREATE TABLE "series_statistics" (
  "game" real,
  "date" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location of game 4?`:
```sql
                SELECT "location" FROM "series_statistics" WHERE "game"=4;
```
## Task
Generate a SQL query to answer the following question:
`Which of the two teams has 1st leg of 2-0?`

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

CREATE TABLE "first_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which of the two teams has 1st leg of 2-0?`:
```sql
                SELECT "team_2" FROM "first_round" WHERE "1st_leg"='2-0';
```
## Task
Generate a SQL query to answer the following question:
`Which team has an agg., that has a 1st leg of 1-2?`

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

CREATE TABLE "first_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has an agg., that has a 1st leg of 1-2?`:
```sql
                SELECT "agg" FROM "first_round" WHERE "1st_leg"='1-2';
```
## Task
Generate a SQL query to answer the following question:
`Which team of the team 1 column, has a 2nd leg of 1-0?`

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

CREATE TABLE "first_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team of the team 1 column, has a 2nd leg of 1-0?`:
```sql
                SELECT "team_1" FROM "first_round" WHERE "2nd_leg"='1-0';
```
## Task
Generate a SQL query to answer the following question:
`Who were the 2nd group scorers that were opponents of olympiacos?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "result_f_a" text,
  "scorers" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the 2nd group scorers that were opponents of olympiacos?`:
```sql
                SELECT "scorers" FROM "group_stage" WHERE "group_position"='2nd' AND "opponents"='olympiacos';
```
## Task
Generate a SQL query to answer the following question:
`Who were F–A of 1–0 scorers?`

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

CREATE TABLE "group_stage" (
  "date" text,
  "opponents" text,
  "result_f_a" text,
  "scorers" text,
  "attendance" real,
  "group_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were F–A of 1–0 scorers?`:
```sql
                SELECT "scorers" FROM "group_stage" WHERE "result_f_a"='1–0';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score of the game on November 17?`

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

CREATE TABLE "2002" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score of the game on November 17?`:
```sql
                SELECT "final_score" FROM "2002" WHERE "date"='november 17';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score of the game on November 24 with the visiting team the Indianapolis Colts?`

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

CREATE TABLE "2002" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score of the game on November 24 with the visiting team the Indianapolis Colts?`:
```sql
                SELECT "final_score" FROM "2002" WHERE "visiting_team"='indianapolis colts' AND "date"='november 24';
```
## Task
Generate a SQL query to answer the following question:
`When was the game at Gillette Stadium that ended in a final score of 30-17?`

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

CREATE TABLE "2002" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game at Gillette Stadium that ended in a final score of 30-17?`:
```sql
                SELECT "date" FROM "2002" WHERE "final_score"='30-17' AND "stadium"='gillette stadium';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team that played on September 15?`

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

CREATE TABLE "2002" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team that played on September 15?`:
```sql
                SELECT "visiting_team" FROM "2002" WHERE "date"='september 15';
```
## Task
Generate a SQL query to answer the following question:
`What year did the Nashville Metros have the Regular Season 2nd, central?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the Nashville Metros have the Regular Season 2nd, central?`:
```sql
                SELECT "year" FROM "year_by_year" WHERE "regular_season"='2nd, central';
```
## Task
Generate a SQL query to answer the following question:
`What division did the Nashville Metros play in during the year that they did not qualify for the Playoffs, where in the USL PDL League, and had the Regular Season 7th, Southeast?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What division did the Nashville Metros play in during the year that they did not qualify for the Playoffs, where in the USL PDL League, and had the Regular Season 7th, Southeast?`:
```sql
                SELECT "division" FROM "year_by_year" WHERE "playoffs"='did not qualify' AND "league"='usl pdl' AND "regular_season"='7th, southeast';
```
## Task
Generate a SQL query to answer the following question:
`What was the average year that the Nashville Metros did not qualify for the Playoffs, did not qualify for the Open Cup, and had the Regular Season 7th, Southeast?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" text,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average year that the Nashville Metros did not qualify for the Playoffs, did not qualify for the Open Cup, and had the Regular Season 7th, Southeast?`:
```sql
                SELECT AVG("year") FROM "year_by_year" WHERE "playoffs"='did not qualify' AND "open_cup"='did not qualify' AND "regular_season"='7th, southeast';
```
## Task
Generate a SQL query to answer the following question:
`Which chassis scored 52 points?`

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

CREATE TABLE "cart" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "rank" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which chassis scored 52 points?`:
```sql
                SELECT "chassis" FROM "cart" WHERE "points"=52;
```
## Task
Generate a SQL query to answer the following question:
`Which engine scored 6 points and used the march 88c chassis?`

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

CREATE TABLE "cart" (
  "year" real,
  "team" text,
  "chassis" text,
  "engine" text,
  "rank" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which engine scored 6 points and used the march 88c chassis?`:
```sql
                SELECT "engine" FROM "cart" WHERE "points"=6 AND "chassis"='march 88c';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 43 with D 48 of d 9`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 43 with D 48 of d 9`:
```sql
                SELECT "d_43" FROM "senate_composition_before_the_elections" WHERE "d_48"='d 9';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 42 with D 43 of d 14`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 42 with D 43 of d 14`:
```sql
                SELECT "d_42" FROM "senate_composition_before_the_elections" WHERE "d_43"='d 14';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 47 when it has D 48 of d 29`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 47 when it has D 48 of d 29`:
```sql
                SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_48"='d 29';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 43 and D 48 of r 28`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 43 and D 48 of r 28`:
```sql
                SELECT "d_43" FROM "senate_composition_before_the_elections" WHERE "d_48"='r 28';
```
## Task
Generate a SQL query to answer the following question:
`Name the D 47 which has D 42 of d 22`

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

CREATE TABLE "senate_composition_before_the_elections" (
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the D 47 which has D 42 of d 22`:
```sql
                SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_42"='d 22';
```
## Task
Generate a SQL query to answer the following question:
`Which region had a label of Central Station?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which region had a label of Central Station?`:
```sql
                SELECT "region" FROM "release_history" WHERE "label"='central station';
```
## Task
Generate a SQL query to answer the following question:
`Which catalog has a format of 12" EP?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which catalog has a format of 12" EP?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "format"='12\" ep';
```
## Task
Generate a SQL query to answer the following question:
`Which label released the album on 12" EP in Germany?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which label released the album on 12" EP in Germany?`:
```sql
                SELECT "label" FROM "release_history" WHERE "format"='12\" ep' AND "region"='germany';
```
## Task
Generate a SQL query to answer the following question:
`What NHL team has a centre and pick number of 105?`

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

CREATE TABLE "round_eight" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What NHL team has a centre and pick number of 105?`:
```sql
                SELECT "nhl_team" FROM "round_eight" WHERE "position"='centre' AND "pick_num"='105';
```
## Task
Generate a SQL query to answer the following question:
`What Pick # does the St. Louis Blues have?`

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

CREATE TABLE "round_eight" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Pick # does the St. Louis Blues have?`:
```sql
                SELECT "pick_num" FROM "round_eight" WHERE "nhl_team"='st. louis blues';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of the player with a Pick # of 108?`

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

CREATE TABLE "round_eight" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of the player with a Pick # of 108?`:
```sql
                SELECT "position" FROM "round_eight" WHERE "pick_num"='108';
```
## Task
Generate a SQL query to answer the following question:
`What position in the Vancouver Canucks has a Pick # of 101?`

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

CREATE TABLE "round_eight" (
  "pick_num" text,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position in the Vancouver Canucks has a Pick # of 101?`:
```sql
                SELECT "position" FROM "round_eight" WHERE "nhl_team"='vancouver canucks' AND "pick_num"='101';
```
## Task
Generate a SQL query to answer the following question:
`What was the team's record at the game attended by 30,452?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team's record at the game attended by 30,452?`:
```sql
                SELECT "record" FROM "game_log" WHERE "attendance"='30,452';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the game that had a loss of Crabtree (0-1)?`

### 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" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the game that had a loss of Crabtree (0-1)?`:
```sql
                SELECT "attendance" FROM "game_log" WHERE "loss"='crabtree (0-1)';
```
## Task
Generate a SQL query to answer the following question:
`What races were Chi-Chi Rodriguez the runner-up in?`

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

CREATE TABLE "senior_pga_tour_wins_10" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What races were Chi-Chi Rodriguez the runner-up in?`:
```sql
                SELECT "tournament" FROM "senior_pga_tour_wins_10" WHERE "runner_s_up"='chi-chi rodriguez';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory for Isao Aoki when he was a runner-up?`

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

CREATE TABLE "senior_pga_tour_wins_10" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory for Isao Aoki when he was a runner-up?`:
```sql
                SELECT "margin_of_victory" FROM "senior_pga_tour_wins_10" WHERE "runner_s_up"='isao aoki';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score in the mazda senior tournament players championship?`

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

CREATE TABLE "senior_pga_tour_wins_10" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score in the mazda senior tournament players championship?`:
```sql
                SELECT "winning_score" FROM "senior_pga_tour_wins_10" WHERE "tournament"='mazda senior tournament players championship';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament ended with a winning score of –27 (65-68-64-64=261)?`

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

CREATE TABLE "senior_pga_tour_wins_10" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament ended with a winning score of –27 (65-68-64-64=261)?`:
```sql
                SELECT "tournament" FROM "senior_pga_tour_wins_10" WHERE "winning_score"='–27 (65-68-64-64=261)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner(s)-up for the Feb 18, 1996 tournament?`

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

CREATE TABLE "senior_pga_tour_wins_10" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner(s)-up for the Feb 18, 1996 tournament?`:
```sql
                SELECT "runner_s_up" FROM "senior_pga_tour_wins_10" WHERE "date"='feb 18, 1996';
```
## Task
Generate a SQL query to answer the following question:
`What is Oriol Servia's average Grid on races with more than 43 laps?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Oriol Servia's average Grid on races with more than 43 laps?`:
```sql
                SELECT AVG("grid") FROM "race" WHERE "laps">43 AND "driver"='oriol servia';
```
## Task
Generate a SQL query to answer the following question:
`How many laps were there in the race that netted the winner 19 points?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps were there in the race that netted the winner 19 points?`:
```sql
                SELECT "laps" FROM "race" WHERE "points"=19;
```
## Task
Generate a SQL query to answer the following question:
`In what Season is Necaxa an Opponent?`

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

CREATE TABLE "domestic_goals_summary" (
  "date" text,
  "season" text,
  "playing_for" text,
  "opponent" text,
  "final_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Season is Necaxa an Opponent?`:
```sql
                SELECT "season" FROM "domestic_goals_summary" WHERE "opponent"='necaxa';
```
## Task
Generate a SQL query to answer the following question:
`In what season is Victoria the Opponent?`

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

CREATE TABLE "domestic_goals_summary" (
  "date" text,
  "season" text,
  "playing_for" text,
  "opponent" text,
  "final_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what season is Victoria the Opponent?`:
```sql
                SELECT "season" FROM "domestic_goals_summary" WHERE "opponent"='victoria';
```
## Task
Generate a SQL query to answer the following question:
`Name the authority when the decile is 6 for pongaroa school`

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

CREATE TABLE "tararua_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the authority when the decile is 6 for pongaroa school`:
```sql
                SELECT "authority" FROM "tararua_district" WHERE "decile"=6 AND "name"='pongaroa school';
```
## Task
Generate a SQL query to answer the following question:
`Name the years for dannevirke south school`

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

CREATE TABLE "tararua_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the years for dannevirke south school`:
```sql
                SELECT "years" FROM "tararua_district" WHERE "name"='dannevirke south school';
```
## Task
Generate a SQL query to answer the following question:
`Name the least decile for state authority and area of eketahuna with roll more than 44`

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

CREATE TABLE "tararua_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least decile for state authority and area of eketahuna with roll more than 44`:
```sql
                SELECT MIN("decile") FROM "tararua_district" WHERE "authority"='state' AND "area"='eketahuna' AND "roll">44;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the name with area of eketahuna`

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

CREATE TABLE "tararua_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the name with area of eketahuna`:
```sql
                SELECT "name" FROM "tararua_district" WHERE "area"='eketahuna';
```
## Task
Generate a SQL query to answer the following question:
`Name what was completed on 12 april 1934`

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

CREATE TABLE "e_class" (
  "ship" text,
  "pennant_number" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name what was completed on 12 april 1934`:
```sql
                SELECT "completed" FROM "e_class" WHERE "launched"='12 april 1934';
```
## Task
Generate a SQL query to answer the following question:
`Name the launched for 13 september 1934 completion`

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

CREATE TABLE "e_class" (
  "ship" text,
  "pennant_number" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the launched for 13 september 1934 completion`:
```sql
                SELECT "launched" FROM "e_class" WHERE "completed"='13 september 1934';
```
## Task
Generate a SQL query to answer the following question:
`Name the ship launched 29 may 1934`

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

CREATE TABLE "e_class" (
  "ship" text,
  "pennant_number" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ship launched 29 may 1934`:
```sql
                SELECT "ship" FROM "e_class" WHERE "launched"='29 may 1934';
```
## Task
Generate a SQL query to answer the following question:
`Name the laid down for launched being 16 february 1934`

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

CREATE TABLE "e_class" (
  "ship" text,
  "pennant_number" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the laid down for launched being 16 february 1934`:
```sql
                SELECT "laid_down" FROM "e_class" WHERE "launched"='16 february 1934';
```
## Task
Generate a SQL query to answer the following question:
`Name the pennant number for completion of 30 october 1934 and launched 29 march 1934`

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

CREATE TABLE "e_class" (
  "ship" text,
  "pennant_number" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the pennant number for completion of 30 october 1934 and launched 29 march 1934`:
```sql
                SELECT "pennant_number" FROM "e_class" WHERE "launched"='29 march 1934' AND "completed"='30 october 1934';
```
## Task
Generate a SQL query to answer the following question:
`Name the laid down for completed of 22 october 1934`

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

CREATE TABLE "e_class" (
  "ship" text,
  "pennant_number" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the laid down for completed of 22 october 1934`:
```sql
                SELECT "laid_down" FROM "e_class" WHERE "completed"='22 october 1934';
```
## Task
Generate a SQL query to answer the following question:
`what is the candidates name who is ranked 8th?`

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

CREATE TABLE "36_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the candidates name who is ranked 8th?`:
```sql
                SELECT "candidate_s_name" FROM "36_seats" WHERE "rank"='8th';
```
## Task
Generate a SQL query to answer the following question:
`where is harold j. ludwig riding when the votes are more than 484?`

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

CREATE TABLE "36_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `where is harold j. ludwig riding when the votes are more than 484?`:
```sql
                SELECT "riding" FROM "36_seats" WHERE "votes">484 AND "candidate_s_name"='harold j. ludwig';
```
## Task
Generate a SQL query to answer the following question:
`what is the gender of Ron Gray, ranked 5th?`

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

CREATE TABLE "36_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the gender of Ron Gray, ranked 5th?`:
```sql
                SELECT "gender" FROM "36_seats" WHERE "rank"='5th' AND "candidate_s_name"='ron gray';
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest votes of the candidate ranked 5th and riding in victoria?`

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

CREATE TABLE "36_seats" (
  "riding" text,
  "candidate_s_name" text,
  "gender" text,
  "residence" text,
  "occupation" text,
  "votes" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest votes of the candidate ranked 5th and riding in victoria?`:
```sql
                SELECT MIN("votes") FROM "36_seats" WHERE "rank"='5th' AND "riding"='victoria';
```
## Task
Generate a SQL query to answer the following question:
`Which home captian has aus by 295 runs as the result?`

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

CREATE TABLE "england_in_australia" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home captian has aus by 295 runs as the result?`:
```sql
                SELECT "home_captain" FROM "england_in_australia" WHERE "result"='aus by 295 runs';
```
## Task
Generate a SQL query to answer the following question:
`Which result has adelaide oval as the venue?`

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

CREATE TABLE "england_in_australia" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which result has adelaide oval as the venue?`:
```sql
                SELECT "result" FROM "england_in_australia" WHERE "venue"='adelaide oval';
```
## Task
Generate a SQL query to answer the following question:
`Born in 1982, this guard has what listed as a height?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "player" text,
  "height" real,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Born in 1982, this guard has what listed as a height?`:
```sql
                SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "position"='guard' AND "year_born"=1982;
```
## Task
Generate a SQL query to answer the following question:
`Which Points Classification Navy Blue Jersey that has a  Jersey of Graeme Brown`

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

CREATE TABLE "jersey_progress_chart" (
  "stage_winner" text,
  "general_classification_yellow_jersey" text,
  "mountains_classification_green_jersey" text,
  "points_classification_navy_blue_jersey" text,
  "intermediate_sprints_classification_red_jersey" text,
  "team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points Classification Navy Blue Jersey that has a  Jersey of Graeme Brown`:
```sql
                SELECT "points_classification_navy_blue_jersey" FROM "jersey_progress_chart" WHERE "general_classification_yellow_jersey"='graeme brown';
```