cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which team uses the kitmaker Saller and has Krombacher as their shirt sponsor?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team uses the kitmaker Saller and has Krombacher as their shirt sponsor?`:
```sql
                SELECT "team" FROM "personnel_and_sponsoring" WHERE "kitmaker"='saller' AND "shirt_sponsor"='krombacher';
```
## Task
Generate a SQL query to answer the following question:
`For the team led by head coach Felix Magath, who is the team captain?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the team led by head coach Felix Magath, who is the team captain?`:
```sql
                SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "head_coach"='felix magath';
```
## Task
Generate a SQL query to answer the following question:
`For the team whose shirt sponsor is Krombacher, who is the team captain?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the team whose shirt sponsor is Krombacher, who is the team captain?`:
```sql
                SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "shirt_sponsor"='krombacher';
```
## Task
Generate a SQL query to answer the following question:
`For the team whose shirt sponsor is Evonik, who is the kitmaker?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the team whose shirt sponsor is Evonik, who is the kitmaker?`:
```sql
                SELECT "kitmaker" FROM "personnel_and_sponsoring" WHERE "shirt_sponsor"='evonik';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Shirt Back Sponsor if the Shorts Sponsor is Telestet?`

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

CREATE TABLE "kit_sponsors_and_manufacturers" (
  "period" text,
  "manufacturer" text,
  "shirt_main_sponsor" text,
  "shirt_back_sponsor" text,
  "shorts_sponsor" text,
  "sleeves_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Shirt Back Sponsor if the Shorts Sponsor is Telestet?`:
```sql
                SELECT "shirt_back_sponsor" FROM "kit_sponsors_and_manufacturers" WHERE "shorts_sponsor"='telestet';
```
## Task
Generate a SQL query to answer the following question:
`Which of the Res., has Ryan Scheepe as an 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which of the Res., has Ryan Scheepe as an opponent?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='ryan scheepe';
```
## Task
Generate a SQL query to answer the following question:
`What position is Jeff Brown?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position is Jeff Brown?`:
```sql
                SELECT "position" FROM "round_five" WHERE "player"='jeff brown';
```
## Task
Generate a SQL query to answer the following question:
`which player played on Team Hamilton?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `which player played on Team Hamilton?`:
```sql
                SELECT "player" FROM "round_five" WHERE "cfl_team"='hamilton';
```
## Task
Generate a SQL query to answer the following question:
`What CFL team does Jeff brown play for?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What CFL team does Jeff brown play for?`:
```sql
                SELECT "cfl_team" FROM "round_five" WHERE "player"='jeff brown';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of picks for Calgary College?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of picks for Calgary College?`:
```sql
                SELECT COUNT("pick_num") FROM "round_five" WHERE "college"='calgary';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when the record was 2-3?`

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

CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team when the record was 2-3?`:
```sql
                SELECT "home" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "record"='2-3';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on April 10?`

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

CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on April 10?`:
```sql
                SELECT "record" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "date"='april 10';
```
## Task
Generate a SQL query to answer the following question:
`What spacecraft had an EVA that ended at 17:28?`

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

CREATE TABLE "ev_as" (
  "start_date_time" text,
  "duration" text,
  "end_time" text,
  "spacecraft" text,
  "crew" text
);
### SQL
Given the database schema, here is the SQL query that answers `What spacecraft had an EVA that ended at 17:28?`:
```sql
                SELECT "spacecraft" FROM "ev_as" WHERE "end_time"='17:28';
```
## Task
Generate a SQL query to answer the following question:
`What crew's EVA started on 20 February 20:09?`

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

CREATE TABLE "ev_as" (
  "start_date_time" text,
  "duration" text,
  "end_time" text,
  "spacecraft" text,
  "crew" text
);
### SQL
Given the database schema, here is the SQL query that answers `What crew's EVA started on 20 February 20:09?`:
```sql
                SELECT "crew" FROM "ev_as" WHERE "start_date_time"='20 february 20:09';
```
## Task
Generate a SQL query to answer the following question:
`The EVA that started on 8 July 12:38 went for how long?`

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

CREATE TABLE "ev_as" (
  "start_date_time" text,
  "duration" text,
  "end_time" text,
  "spacecraft" text,
  "crew" text
);
### SQL
Given the database schema, here is the SQL query that answers `The EVA that started on 8 July 12:38 went for how long?`:
```sql
                SELECT "duration" FROM "ev_as" WHERE "start_date_time"='8 july 12:38';
```
## Task
Generate a SQL query to answer the following question:
`The EVA that started 8 July 12:38 was from what spacecraft?`

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

CREATE TABLE "ev_as" (
  "start_date_time" text,
  "duration" text,
  "end_time" text,
  "spacecraft" text,
  "crew" text
);
### SQL
Given the database schema, here is the SQL query that answers `The EVA that started 8 July 12:38 was from what spacecraft?`:
```sql
                SELECT "spacecraft" FROM "ev_as" WHERE "start_date_time"='8 july 12:38';
```
## Task
Generate a SQL query to answer the following question:
`How many assists were in the k-league competition, which has more than 20 total Gs, the pohang steelers team, and chunnam dragons as the opponent?`

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

CREATE TABLE "members" (
  "name" text,
  "date" text,
  "goals" real,
  "assists" real,
  "team" text,
  "venue" text,
  "opponent" text,
  "competition" text,
  "total_gs" real,
  "total_as" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many assists were in the k-league competition, which has more than 20 total Gs, the pohang steelers team, and chunnam dragons as the opponent?`:
```sql
                SELECT "assists" FROM "members" WHERE "competition"='k-league' AND "total_gs">20 AND "team"='pohang steelers' AND "opponent"='chunnam dragons';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of goals of park sung-ho at the k-league competition, which has the pohang steelers team and less than 46 total Gs?`

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

CREATE TABLE "members" (
  "name" text,
  "date" text,
  "goals" real,
  "assists" real,
  "team" text,
  "venue" text,
  "opponent" text,
  "competition" text,
  "total_gs" real,
  "total_as" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of goals of park sung-ho at the k-league competition, which has the pohang steelers team and less than 46 total Gs?`:
```sql
                SELECT AVG("goals") FROM "members" WHERE "competition"='k-league' AND "team"='pohang steelers' AND "name"='park sung-ho' AND "total_gs"<46;
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the k-league cup, which has less than 28 goals, at the jeonju venue?`

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

CREATE TABLE "members" (
  "name" text,
  "date" text,
  "goals" real,
  "assists" real,
  "team" text,
  "venue" text,
  "opponent" text,
  "competition" text,
  "total_gs" real,
  "total_as" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the k-league cup, which has less than 28 goals, at the jeonju venue?`:
```sql
                SELECT "date" FROM "members" WHERE "venue"='jeonju' AND "goals"<28 AND "competition"='k-league cup';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the total As of team bucheon sk, who had the chunnam dragons as their opponent at the bucheon venue?`

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

CREATE TABLE "members" (
  "name" text,
  "date" text,
  "goals" real,
  "assists" real,
  "team" text,
  "venue" text,
  "opponent" text,
  "competition" text,
  "total_gs" real,
  "total_as" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the total As of team bucheon sk, who had the chunnam dragons as their opponent at the bucheon venue?`:
```sql
                SELECT SUM("total_as") FROM "members" WHERE "team"='bucheon sk' AND "opponent"='chunnam dragons' AND "venue"='bucheon';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the assists kang jae-soon had in the k-league competition in ulsan?`

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

CREATE TABLE "members" (
  "name" text,
  "date" text,
  "goals" real,
  "assists" real,
  "team" text,
  "venue" text,
  "opponent" text,
  "competition" text,
  "total_gs" real,
  "total_as" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the assists kang jae-soon had in the k-league competition in ulsan?`:
```sql
                SELECT SUM("assists") FROM "members" WHERE "venue"='ulsan' AND "competition"='k-league' AND "name"='kang jae-soon';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the goals on 2007-06-16?`

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

CREATE TABLE "members" (
  "name" text,
  "date" text,
  "goals" real,
  "assists" real,
  "team" text,
  "venue" text,
  "opponent" text,
  "competition" text,
  "total_gs" real,
  "total_as" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the goals on 2007-06-16?`:
```sql
                SELECT SUM("goals") FROM "members" WHERE "date"='2007-06-16';
```
## Task
Generate a SQL query to answer the following question:
`What was Bill Glasson's score to par after 2 rounds?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Bill Glasson's score to par after 2 rounds?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "player"='bill glasson';
```
## Task
Generate a SQL query to answer the following question:
`What was Phil Mickelson's score to par?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Phil Mickelson's score to par?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "player"='phil mickelson';
```
## Task
Generate a SQL query to answer the following question:
`What place was Bill Glasson in?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place was Bill Glasson in?`:
```sql
                SELECT "place" FROM "second_round" WHERE "player"='bill glasson';
```
## Task
Generate a SQL query to answer the following question:
`What is the average pick with 85 overall in a round lower than 3?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average pick with 85 overall in a round lower than 3?`:
```sql
                SELECT AVG("pick") FROM "washington_redskins_draft_history" WHERE "overall"=85 AND "round"<3;
```
## Task
Generate a SQL query to answer the following question:
`What was the 2009 results that has q1 for 2010, and A as the result for 2011?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2009 results that has q1 for 2010, and A as the result for 2011?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2010"='q1' AND "2011"='a';
```
## Task
Generate a SQL query to answer the following question:
`What were the 2009 results that has 0 in 2010?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the 2009 results that has 0 in 2010?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2010"='0';
```
## Task
Generate a SQL query to answer the following question:
`With a 2011 of 0 what was the 2006 result?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a 2011 of 0 what was the 2006 result?`:
```sql
                SELECT "2006" FROM "singles_performance_timeline" WHERE "2011"='0';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for 2004 when A is the result for 2005, and the result of q1 when 2009?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for 2004 when A is the result for 2005, and the result of q1 when 2009?`:
```sql
                SELECT "2004" FROM "singles_performance_timeline" WHERE "2005"='a' AND "2009"='q1';
```
## Task
Generate a SQL query to answer the following question:
`With a 2008 result of 153 what is the result for 2007?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a 2008 result of 153 what is the result for 2007?`:
```sql
                SELECT "2007" FROM "singles_performance_timeline" WHERE "2008"='153';
```
## Task
Generate a SQL query to answer the following question:
`What are the results in 2008 when 2009 is 0, and the ATP Tournaments Won is the tournament?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the results in 2008 when 2009 is 0, and the ATP Tournaments Won is the tournament?`:
```sql
                SELECT "2008" FROM "singles_performance_timeline" WHERE "2009"='0' AND "tournament"='atp tournaments won';
```
## Task
Generate a SQL query to answer the following question:
`Which team was in 1951?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team was in 1951?`:
```sql
                SELECT "team" FROM "motorcycle_grand_prix_results" WHERE "year"=1951;
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the match with arnaud di pasquale as the opponent in the final?`

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

CREATE TABLE "singles_23_14_9" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the match with arnaud di pasquale as the opponent in the final?`:
```sql
                SELECT "date" FROM "singles_23_14_9" WHERE "opponent_in_the_final"='arnaud di pasquale';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the match with a winner outcome and jim courier as the opponent in the final?`

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

CREATE TABLE "singles_23_14_9" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the match with a winner outcome and jim courier as the opponent in the final?`:
```sql
                SELECT "date" FROM "singles_23_14_9" WHERE "outcome"='winner' AND "opponent_in_the_final"='jim courier';
```
## Task
Generate a SQL query to answer the following question:
`What is the surface of the palermo, italy championship?`

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

CREATE TABLE "singles_23_14_9" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface of the palermo, italy championship?`:
```sql
                SELECT "surface" FROM "singles_23_14_9" WHERE "championship"='palermo, italy';
```
## Task
Generate a SQL query to answer the following question:
`In what Round was OL Player Richard Zulys picked?`

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

CREATE TABLE "cfl_draft" (
  "round" real,
  "pick" text,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Round was OL Player Richard Zulys picked?`:
```sql
                SELECT SUM("round") FROM "cfl_draft" WHERE "position"='ol' AND "player"='richard zulys';
```
## Task
Generate a SQL query to answer the following question:
`What is the Player from McGill?`

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

CREATE TABLE "cfl_draft" (
  "round" real,
  "pick" text,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Player from McGill?`:
```sql
                SELECT "player" FROM "cfl_draft" WHERE "school_club_team"='mcgill';
```
## Task
Generate a SQL query to answer the following question:
`Which College had an Overall pick of 171?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which College had an Overall pick of 171?`:
```sql
                SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall"=171;
```
## Task
Generate a SQL query to answer the following question:
`Who had the overall pick of 72?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the overall pick of 72?`:
```sql
                SELECT "name" FROM "washington_redskins_draft_history" WHERE "overall"=72;
```
## Task
Generate a SQL query to answer the following question:
`What primary conference does the team nicknamed Phoenix belongs to?`

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

CREATE TABLE "member_teams" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text,
  "home_rink" text
);
### SQL
Given the database schema, here is the SQL query that answers `What primary conference does the team nicknamed Phoenix belongs to?`:
```sql
                SELECT "primary_conference" FROM "member_teams" WHERE "team_nickname"='phoenix';
```
## Task
Generate a SQL query to answer the following question:
`Where is the location for the home rink Triangle sports plex/Greensboro ice house?`

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

CREATE TABLE "member_teams" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text,
  "home_rink" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the location for the home rink Triangle sports plex/Greensboro ice house?`:
```sql
                SELECT "location" FROM "member_teams" WHERE "home_rink"='triangle sports plex/greensboro ice house';
```
## Task
Generate a SQL query to answer the following question:
`What pick was a player that previously played for the Minnesota Lynx?`

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

CREATE TABLE "2000_indiana_fever_miami_sol_portland_fi" (
  "pick" real,
  "player" text,
  "nationality" text,
  "new_wnba_team" text,
  "former_wnba_team" text,
  "college_country_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pick was a player that previously played for the Minnesota Lynx?`:
```sql
                SELECT SUM("pick") FROM "2000_indiana_fever_miami_sol_portland_fi" WHERE "former_wnba_team"='minnesota lynx';
```
## Task
Generate a SQL query to answer the following question:
`Which player was picked after 23?`

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

CREATE TABLE "2000_indiana_fever_miami_sol_portland_fi" (
  "pick" real,
  "player" text,
  "nationality" text,
  "new_wnba_team" text,
  "former_wnba_team" text,
  "college_country_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player was picked after 23?`:
```sql
                SELECT "player" FROM "2000_indiana_fever_miami_sol_portland_fi" WHERE "pick">23;
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the player who went to college at Mississippi?`

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

CREATE TABLE "2000_indiana_fever_miami_sol_portland_fi" (
  "pick" real,
  "player" text,
  "nationality" text,
  "new_wnba_team" text,
  "former_wnba_team" text,
  "college_country_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the player who went to college at Mississippi?`:
```sql
                SELECT "nationality" FROM "2000_indiana_fever_miami_sol_portland_fi" WHERE "college_country_team"='mississippi';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player who played for the Miami Sol and went to school at North Carolina State?`

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

CREATE TABLE "2000_indiana_fever_miami_sol_portland_fi" (
  "pick" real,
  "player" text,
  "nationality" text,
  "new_wnba_team" text,
  "former_wnba_team" text,
  "college_country_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player who played for the Miami Sol and went to school at North Carolina State?`:
```sql
                SELECT "player" FROM "2000_indiana_fever_miami_sol_portland_fi" WHERE "new_wnba_team"='miami sol' AND "college_country_team"='north carolina state';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALLER THAN 331?`

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

CREATE TABLE "assists" (
  "rank" real,
  "player" text,
  "years" text,
  "games" real,
  "ast_avg" real,
  "total_assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALLER THAN 331?`:
```sql
                SELECT AVG("ast_avg") FROM "assists" WHERE "games">101 AND "rank"=5 AND "total_assists"<331;
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SUM OF AST AVG WITH RANK 5 AND GAMES BIGGER THAN 108?`

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

CREATE TABLE "assists" (
  "rank" real,
  "player" text,
  "years" text,
  "games" real,
  "ast_avg" real,
  "total_assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SUM OF AST AVG WITH RANK 5 AND GAMES BIGGER THAN 108?`:
```sql
                SELECT SUM("ast_avg") FROM "assists" WHERE "rank"=5 AND "games">108;
```
## Task
Generate a SQL query to answer the following question:
`Which Round has a Name of john goodyear?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has a Name of john goodyear?`:
```sql
                SELECT "round" FROM "washington_redskins_draft_history" WHERE "name"='john goodyear';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has a College of appalachian state, and an Overall smaller than 156?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has a College of appalachian state, and an Overall smaller than 156?`:
```sql
                SELECT COUNT("round") FROM "washington_redskins_draft_history" WHERE "college"='appalachian state' AND "overall"<156;
```
## Task
Generate a SQL query to answer the following question:
`Which Pick has a Round larger than 17, and a Name of gene stewart?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pick has a Round larger than 17, and a Name of gene stewart?`:
```sql
                SELECT COUNT("pick") FROM "washington_redskins_draft_history" WHERE "round">17 AND "name"='gene stewart';
```
## Task
Generate a SQL query to answer the following question:
`What was the result when the opponent was Rory Markham?`

### 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,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when the opponent was Rory Markham?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='rory markham';
```
## Task
Generate a SQL query to answer the following question:
`Which Branding has a frequency of 1080khz?`

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

CREATE TABLE "am_stations_radyo_agila" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Branding has a frequency of 1080khz?`:
```sql
                SELECT "branding" FROM "am_stations_radyo_agila" WHERE "frequency"='1080khz';
```
## Task
Generate a SQL query to answer the following question:
`Which frequency is located in Dagupan?`

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

CREATE TABLE "am_stations_radyo_agila" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which frequency is located in Dagupan?`:
```sql
                SELECT "frequency" FROM "am_stations_radyo_agila" WHERE "location"='dagupan';
```
## Task
Generate a SQL query to answer the following question:
`What frequency does branding dzec radyo agila 1062 have?`

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

CREATE TABLE "am_stations_radyo_agila" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What frequency does branding dzec radyo agila 1062 have?`:
```sql
                SELECT "frequency" FROM "am_stations_radyo_agila" WHERE "branding"='dzec radyo agila 1062';
```
## Task
Generate a SQL query to answer the following question:
`Which frequency has 40kw power?`

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

CREATE TABLE "am_stations_radyo_agila" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which frequency has 40kw power?`:
```sql
                SELECT "frequency" FROM "am_stations_radyo_agila" WHERE "power_k_w"='40kw';
```
## Task
Generate a SQL query to answer the following question:
`Which frequency is located in Davao?`

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

CREATE TABLE "am_stations_radyo_agila" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which frequency is located in Davao?`:
```sql
                SELECT "frequency" FROM "am_stations_radyo_agila" WHERE "location"='davao';
```
## Task
Generate a SQL query to answer the following question:
`what is the peak population (year) for scranton?`

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

CREATE TABLE "cities_formerly_over_100_000_people" (
  "city" text,
  "state" text,
  "2010_population" text,
  "peak_population_year" text,
  "numeric_decline_from_peak_population" text,
  "percent_decline_from_peak_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the peak population (year) for scranton?`:
```sql
                SELECT "peak_population_year" FROM "cities_formerly_over_100_000_people" WHERE "city"='scranton';
```
## Task
Generate a SQL query to answer the following question:
`what is the numeric decline from peak population when the perfect decline from peak population is -16.76%`

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

CREATE TABLE "cities_formerly_over_100_000_people" (
  "city" text,
  "state" text,
  "2010_population" text,
  "peak_population_year" text,
  "numeric_decline_from_peak_population" text,
  "percent_decline_from_peak_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the numeric decline from peak population when the perfect decline from peak population is -16.76%`:
```sql
                SELECT "numeric_decline_from_peak_population" FROM "cities_formerly_over_100_000_people" WHERE "percent_decline_from_peak_population"='-16.76%';
```
## Task
Generate a SQL query to answer the following question:
`what is the numeric decline from peak population when 2010 population is 88857?`

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

CREATE TABLE "cities_formerly_over_100_000_people" (
  "city" text,
  "state" text,
  "2010_population" text,
  "peak_population_year" text,
  "numeric_decline_from_peak_population" text,
  "percent_decline_from_peak_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the numeric decline from peak population when 2010 population is 88857?`:
```sql
                SELECT "numeric_decline_from_peak_population" FROM "cities_formerly_over_100_000_people" WHERE "2010_population"='88857';
```
## Task
Generate a SQL query to answer the following question:
`what is the state when the peak population (year) is 134995 (1950)?`

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

CREATE TABLE "cities_formerly_over_100_000_people" (
  "city" text,
  "state" text,
  "2010_population" text,
  "peak_population_year" text,
  "numeric_decline_from_peak_population" text,
  "percent_decline_from_peak_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the state when the peak population (year) is 134995 (1950)?`:
```sql
                SELECT "state" FROM "cities_formerly_over_100_000_people" WHERE "peak_population_year"='134995 (1950)';
```
## Task
Generate a SQL query to answer the following question:
`what is the percent decline from peak population when the peak population (year) is 178320 (1960)?`

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

CREATE TABLE "cities_formerly_over_100_000_people" (
  "city" text,
  "state" text,
  "2010_population" text,
  "peak_population_year" text,
  "numeric_decline_from_peak_population" text,
  "percent_decline_from_peak_population" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the percent decline from peak population when the peak population (year) is 178320 (1960)?`:
```sql
                SELECT "percent_decline_from_peak_population" FROM "cities_formerly_over_100_000_people" WHERE "peak_population_year"='178320 (1960)';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE RANK OF UNIVERSAL, AND DIRECTOR JOHN HUGHES?`

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

CREATE TABLE "highest_grossing_films_u_s" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE RANK OF UNIVERSAL, AND DIRECTOR JOHN HUGHES?`:
```sql
                SELECT "rank" FROM "highest_grossing_films_u_s" WHERE "studio"='universal' AND "director"='john hughes';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE TITLE THAT HAS A RANK BIGGER THAN 10, FOR DIRECTOR WALTER HILL?`

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

CREATE TABLE "highest_grossing_films_u_s" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE TITLE THAT HAS A RANK BIGGER THAN 10, FOR DIRECTOR WALTER HILL?`:
```sql
                SELECT "title" FROM "highest_grossing_films_u_s" WHERE "rank">10 AND "director"='walter hill';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE STUDIO WITH THE TITLE MASK?`

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

CREATE TABLE "highest_grossing_films_u_s" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE STUDIO WITH THE TITLE MASK?`:
```sql
                SELECT "studio" FROM "highest_grossing_films_u_s" WHERE "title"='mask';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE RANK WITH A GROSS OF $96,773,200?`

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

CREATE TABLE "highest_grossing_films_u_s" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE RANK WITH A GROSS OF $96,773,200?`:
```sql
                SELECT COUNT("rank") FROM "highest_grossing_films_u_s" WHERE "gross"='$96,773,200';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the player drawn that had less than 12 losses and a goal difference of +20?`

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

CREATE TABLE "premier_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the player drawn that had less than 12 losses and a goal difference of +20?`:
```sql
                SELECT "drawn" FROM "premier_division_final_table" WHERE "lost"<12 AND "goal_difference"='+20';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the positions for the player who had less than 25 losses, a goal difference of +20, 10 draws, and played less than 42?`

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

CREATE TABLE "premier_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the positions for the player who had less than 25 losses, a goal difference of +20, 10 draws, and played less than 42?`:
```sql
                SELECT SUM("position") FROM "premier_division_final_table" WHERE "drawn"=10 AND "lost"<25 AND "goal_difference"='+20' AND "played"<42;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number played when there were less than 13 losses and a goal difference of +46?`

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

CREATE TABLE "premier_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number played when there were less than 13 losses and a goal difference of +46?`:
```sql
                SELECT MAX("played") FROM "premier_division_final_table" WHERE "lost"<13 AND "goal_difference"='+46';
```
## Task
Generate a SQL query to answer the following question:
`What is listed under points 1 when the position was greater than 4, there were 54 goals for and more than 11 losses?`

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

CREATE TABLE "premier_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed under points 1 when the position was greater than 4, there were 54 goals for and more than 11 losses?`:
```sql
                SELECT "points_1" FROM "premier_division_final_table" WHERE "position">4 AND "goals_for"=54 AND "lost">11;
```
## Task
Generate a SQL query to answer the following question:
`Who was the worship leader that had a lead supporting vocal Marcus Temu?`

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

CREATE TABLE "track_listing_cd" (
  "track" real,
  "song" text,
  "author" text,
  "worship_leader" text,
  "lead_supporting_vocal" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the worship leader that had a lead supporting vocal Marcus Temu?`:
```sql
                SELECT "worship_leader" FROM "track_listing_cd" WHERE "lead_supporting_vocal"='marcus temu';
```
## Task
Generate a SQL query to answer the following question:
`Who was the lead supporting vocalist on the song that was 4:54 long?`

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

CREATE TABLE "track_listing_cd" (
  "track" real,
  "song" text,
  "author" text,
  "worship_leader" text,
  "lead_supporting_vocal" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the lead supporting vocalist on the song that was 4:54 long?`:
```sql
                SELECT "lead_supporting_vocal" FROM "track_listing_cd" WHERE "time"='4:54';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Worship Leader for the song that was 7:05 long?`

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

CREATE TABLE "track_listing_cd" (
  "track" real,
  "song" text,
  "author" text,
  "worship_leader" text,
  "lead_supporting_vocal" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Worship Leader for the song that was 7:05 long?`:
```sql
                SELECT "worship_leader" FROM "track_listing_cd" WHERE "time"='7:05';
```
## Task
Generate a SQL query to answer the following question:
`What is the song name that featured Marcus Temu as the lead supporting vocalist?`

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

CREATE TABLE "track_listing_cd" (
  "track" real,
  "song" text,
  "author" text,
  "worship_leader" text,
  "lead_supporting_vocal" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the song name that featured Marcus Temu as the lead supporting vocalist?`:
```sql
                SELECT "song" FROM "track_listing_cd" WHERE "lead_supporting_vocal"='marcus temu';
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest diameter when the longitude is 71.1w?`

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

CREATE TABLE "sulci" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter" real,
  "year_named" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest diameter when the longitude is 71.1w?`:
```sql
                SELECT MIN("diameter") FROM "sulci" WHERE "longitude"='71.1w';
```