cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What position does the player from Winston-Salem State play?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the player from Winston-Salem State play?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "school_club_team"='winston-salem state';
```
## Task
Generate a SQL query to answer the following question:
`What was the sum of the points for the song "why did you have to go?"`

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

CREATE TABLE "references" (
  "draw" real,
  "song" text,
  "performer" text,
  "points" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the sum of the points for the song "why did you have to go?"`:
```sql
                SELECT SUM("points") FROM "references" WHERE "song"='\"why did you have to go?\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of points for the song that was ranked 6th and had a draw number smaller than 5?`

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

CREATE TABLE "references" (
  "draw" real,
  "song" text,
  "performer" text,
  "points" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of points for the song that was ranked 6th and had a draw number smaller than 5?`:
```sql
                SELECT COUNT("points") FROM "references" WHERE "rank"='6th' AND "draw"<5;
```
## Task
Generate a SQL query to answer the following question:
`When was the average year that the number of floors was greater than 75?`

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

CREATE TABLE "tallest_buildings" (
  "rank" text,
  "name" text,
  "height_m_feet" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the average year that the number of floors was greater than 75?`:
```sql
                SELECT AVG("year") FROM "tallest_buildings" WHERE "floors">75;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of floors of the Venetian tower?`

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

CREATE TABLE "tallest_buildings" (
  "rank" text,
  "name" text,
  "height_m_feet" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of floors of the Venetian tower?`:
```sql
                SELECT AVG("floors") FROM "tallest_buildings" WHERE "name"='venetian tower';
```
## Task
Generate a SQL query to answer the following question:
`Which arena was founded in 2000?`

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

CREATE TABLE "teams" (
  "club" text,
  "home_town" text,
  "arena" text,
  "founded" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which arena was founded in 2000?`:
```sql
                SELECT "arena" FROM "teams" WHERE "founded"=2000;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the total number of Rank that has the Matches of 427, and the Goals smaller than 320?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the total number of Rank that has the Matches of 427, and the Goals smaller than 320?`:
```sql
                SELECT COUNT("rank") FROM "list_of_top_association_football_goal_sc" WHERE "matches"='427' AND "goals"<320;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Matches that has the Rank of 1?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Matches that has the Rank of 1?`:
```sql
                SELECT "matches" FROM "list_of_top_association_football_goal_sc" WHERE "rank"=1;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Matches that has the Rank smaller than 6, and the Years of 1943-62?`

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

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" text,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Matches that has the Rank smaller than 6, and the Years of 1943-62?`:
```sql
                SELECT "matches" FROM "list_of_top_association_football_goal_sc" WHERE "rank"<6 AND "years"='1943-62';
```
## Task
Generate a SQL query to answer the following question:
`Which class had a number under 4 and was built in 1988?`

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

CREATE TABLE "past_fleet" (
  "class" text,
  "type" text,
  "built" text,
  "number" real,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which class had a number under 4 and was built in 1988?`:
```sql
                SELECT "class" FROM "past_fleet" WHERE "number"<4 AND "built"='1988';
```
## Task
Generate a SQL query to answer the following question:
`How many items withdrawn had numbers over 5?`

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

CREATE TABLE "past_fleet" (
  "class" text,
  "type" text,
  "built" text,
  "number" real,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many items withdrawn had numbers over 5?`:
```sql
                SELECT COUNT("withdrawn") FROM "past_fleet" WHERE "number">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of numbers that had a type of Driving Van Trailer?`

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

CREATE TABLE "past_fleet" (
  "class" text,
  "type" text,
  "built" text,
  "number" real,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of numbers that had a type of Driving Van Trailer?`:
```sql
                SELECT SUM("number") FROM "past_fleet" WHERE "type"='driving van trailer';
```
## Task
Generate a SQL query to answer the following question:
`What rank has 1 silver, more than 2 gold, and a total larger than 3?`

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

CREATE TABLE "ice_dancing" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What rank has 1 silver, more than 2 gold, and a total larger than 3?`:
```sql
                SELECT COUNT("rank") FROM "ice_dancing" WHERE "silver"=1 AND "total">3 AND "gold">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the most gold where silver is 0?`

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

CREATE TABLE "ice_dancing" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most gold where silver is 0?`:
```sql
                SELECT MAX("gold") FROM "ice_dancing" WHERE "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of silver where the rank is higher than 4 and bronze is smaller than 1?`

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

CREATE TABLE "ice_dancing" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of silver where the rank is higher than 4 and bronze is smaller than 1?`:
```sql
                SELECT COUNT("silver") FROM "ice_dancing" WHERE "rank">4 AND "bronze"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank where the gold is 0?`

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

CREATE TABLE "ice_dancing" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank where the gold is 0?`:
```sql
                SELECT AVG("rank") FROM "ice_dancing" WHERE "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank that has 1 bronze and 1 silver?`

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

CREATE TABLE "ice_dancing" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank that has 1 bronze and 1 silver?`:
```sql
                SELECT COUNT("rank") FROM "ice_dancing" WHERE "bronze"=1 AND "silver">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total launch failures when there are 4 launches, and the not usable is greater than 0?`

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

CREATE TABLE "satellites_by_block" (
  "block" text,
  "launched" real,
  "operational" real,
  "not_usable" real,
  "retired" real,
  "launch_failures" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total launch failures when there are 4 launches, and the not usable is greater than 0?`:
```sql
                SELECT SUM("launch_failures") FROM "satellites_by_block" WHERE "launched"=4 AND "not_usable">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I?`

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

CREATE TABLE "satellites_by_block" (
  "block" text,
  "launched" real,
  "operational" real,
  "not_usable" real,
  "retired" real,
  "launch_failures" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I?`:
```sql
                SELECT MAX("not_usable") FROM "satellites_by_block" WHERE "launch_failures">0 AND "retired"<30 AND "block"='block i';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of not usable satellited when there are 0 retired, and the launch failures are less than 1?`

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

CREATE TABLE "satellites_by_block" (
  "block" text,
  "launched" real,
  "operational" real,
  "not_usable" real,
  "retired" real,
  "launch_failures" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of not usable satellited when there are 0 retired, and the launch failures are less than 1?`:
```sql
                SELECT AVG("not_usable") FROM "satellites_by_block" WHERE "retired"=0 AND "launch_failures"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of members on the Cultural and Educational Panel, when the University of Dublin had 3 members, when the Industrial and Commercial Panel had more than 0 members, and when the Agricultural Panel had more than 4 members?`

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

CREATE TABLE "composition_of_the_5th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of members on the Cultural and Educational Panel, when the University of Dublin had 3 members, when the Industrial and Commercial Panel had more than 0 members, and when the Agricultural Panel had more than 4 members?`:
```sql
                SELECT MIN("cultural_and_educational_panel") FROM "composition_of_the_5th_seanad" WHERE "university_of_dublin"<3 AND "industrial_and_commercial_panel">0 AND "agricultural_panel">4;
```
## Task
Generate a SQL query to answer the following question:
`What was the average number of members Nominated by the Taoiseach, when the Agricultural Panel had less than 1 member, and when the Administrative Panel had fewer than 0 members?`

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

CREATE TABLE "composition_of_the_5th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average number of members Nominated by the Taoiseach, when the Agricultural Panel had less than 1 member, and when the Administrative Panel had fewer than 0 members?`:
```sql
                SELECT AVG("nominated_by_the_taoiseach") FROM "composition_of_the_5th_seanad" WHERE "agricultural_panel"<1 AND "administrative_panel"<0;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest number of members on the Agricultural Panel, when the Industrial and Commercial Panel had 9 members, and when the National University of Ireland had more than 3 members?`

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

CREATE TABLE "composition_of_the_5th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest number of members on the Agricultural Panel, when the Industrial and Commercial Panel had 9 members, and when the National University of Ireland had more than 3 members?`:
```sql
                SELECT MIN("agricultural_panel") FROM "composition_of_the_5th_seanad" WHERE "industrial_and_commercial_panel"=9 AND "national_university_of_ireland">3;
```
## Task
Generate a SQL query to answer the following question:
`What was the greatest number of members for the National University of Ireland, when the Total number of members in the Seanad was 60, and when the Administrative Panel had more than 7 members?`

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

CREATE TABLE "composition_of_the_5th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the greatest number of members for the National University of Ireland, when the Total number of members in the Seanad was 60, and when the Administrative Panel had more than 7 members?`:
```sql
                SELECT MAX("national_university_of_ireland") FROM "composition_of_the_5th_seanad" WHERE "total"=60 AND "administrative_panel">7;
```
## Task
Generate a SQL query to answer the following question:
`What is Final round, when Player is Danilo Gallinari?`

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

CREATE TABLE "contestants" (
  "pos" text,
  "player" text,
  "team" text,
  "height" text,
  "weight" real,
  "first_round" real,
  "final_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Final round, when Player is Danilo Gallinari?`:
```sql
                SELECT "final_round" FROM "contestants" WHERE "player"='danilo gallinari';
```
## Task
Generate a SQL query to answer the following question:
`For the film with director listed as 1998, what was the gross in Singapore?`

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

CREATE TABLE "1990s" (
  "title" text,
  "director" text,
  "producer" text,
  "production_cost" text,
  "singapore_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the film with director listed as 1998, what was the gross in Singapore?`:
```sql
                SELECT "singapore_gross" FROM "1990s" WHERE "director"='1998';
```
## Task
Generate a SQL query to answer the following question:
`Who was the director for the film produced by River Films?`

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

CREATE TABLE "1990s" (
  "title" text,
  "director" text,
  "producer" text,
  "production_cost" text,
  "singapore_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director for the film produced by River Films?`:
```sql
                SELECT "director" FROM "1990s" WHERE "producer"='river films';
```
## Task
Generate a SQL query to answer the following question:
`Who was the producer for the film directed by 1998?`

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

CREATE TABLE "1990s" (
  "title" text,
  "director" text,
  "producer" text,
  "production_cost" text,
  "singapore_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the producer for the film directed by 1998?`:
```sql
                SELECT "producer" FROM "1990s" WHERE "director"='1998';
```
## Task
Generate a SQL query to answer the following question:
`For the film titled 1997, what was the gross in Singapore?`

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

CREATE TABLE "1990s" (
  "title" text,
  "director" text,
  "producer" text,
  "production_cost" text,
  "singapore_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the film titled 1997, what was the gross in Singapore?`:
```sql
                SELECT "singapore_gross" FROM "1990s" WHERE "title"='1997';
```
## Task
Generate a SQL query to answer the following question:
`Who was the producer for the film directed by 1997?`

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

CREATE TABLE "1990s" (
  "title" text,
  "director" text,
  "producer" text,
  "production_cost" text,
  "singapore_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the producer for the film directed by 1997?`:
```sql
                SELECT "producer" FROM "1990s" WHERE "director"='1997';
```
## Task
Generate a SQL query to answer the following question:
`For the directed by 1991, what was the gross in Singapore?`

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

CREATE TABLE "1990s" (
  "title" text,
  "director" text,
  "producer" text,
  "production_cost" text,
  "singapore_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the directed by 1991, what was the gross in Singapore?`:
```sql
                SELECT "singapore_gross" FROM "1990s" WHERE "director"='1991';
```
## Task
Generate a SQL query to answer the following question:
`What is the most points scored for teams with under 25 goals scored, 3 draws, and more than 21 games played?`

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

CREATE TABLE "2_lyga_zone_north" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most points scored for teams with under 25 goals scored, 3 draws, and more than 21 games played?`:
```sql
                SELECT MAX("points") FROM "2_lyga_zone_north" WHERE "goals_scored"<25 AND "draws"=3 AND "games_played">21;
```
## Task
Generate a SQL query to answer the following question:
`What day was there a set 1 of 25-18?`

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

CREATE TABLE "pool_a" (
  "game" real,
  "date" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "set_4" text,
  "set_5" text,
  "result_sets" text,
  "result_pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was there a set 1 of 25-18?`:
```sql
                SELECT "date" FROM "pool_a" WHERE "set_1"='25-18';
```
## Task
Generate a SQL query to answer the following question:
`What is the Week when the kick off was at 4:05 pm, and the result was w 31–14?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "kickoff_et" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "nfl_com_recap" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week when the kick off was at 4:05 pm, and the result was w 31–14?`:
```sql
                SELECT "week" FROM "schedule" WHERE "kickoff_et"='4:05 pm' AND "result"='w 31–14';
```
## Task
Generate a SQL query to answer the following question:
`What time was the kickoff when the miami dolphins were the opponent?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "kickoff_et" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "nfl_com_recap" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was the kickoff when the miami dolphins were the opponent?`:
```sql
                SELECT "kickoff_et" FROM "schedule" WHERE "opponent"='miami dolphins';
```
## Task
Generate a SQL query to answer the following question:
`What is Round 2 when Round 4 is Double and Round 3 is Single?`

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

CREATE TABLE "scoring_format" (
  "from" real,
  "goal" text,
  "round_1" text,
  "round_2" text,
  "round_3" text,
  "round_4" text,
  "round_5" text,
  "round_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Round 2 when Round 4 is Double and Round 3 is Single?`:
```sql
                SELECT "round_2" FROM "scoring_format" WHERE "round_4"='double' AND "round_3"='single';
```
## Task
Generate a SQL query to answer the following question:
`What is Round 5 when Round 4 is Triple, Round 3 is Double and Round 6+ is Triple?`

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

CREATE TABLE "scoring_format" (
  "from" real,
  "goal" text,
  "round_1" text,
  "round_2" text,
  "round_3" text,
  "round_4" text,
  "round_5" text,
  "round_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Round 5 when Round 4 is Triple, Round 3 is Double and Round 6+ is Triple?`:
```sql
                SELECT "round_5" FROM "scoring_format" WHERE "round_4"='triple' AND "round_3"='double' AND "round_6"='triple';
```
## Task
Generate a SQL query to answer the following question:
`What is Round 1 from 1977 where Round 3 is Double and Round 4 is Double?`

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

CREATE TABLE "scoring_format" (
  "from" real,
  "goal" text,
  "round_1" text,
  "round_2" text,
  "round_3" text,
  "round_4" text,
  "round_5" text,
  "round_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Round 1 from 1977 where Round 3 is Double and Round 4 is Double?`:
```sql
                SELECT "round_1" FROM "scoring_format" WHERE "round_4"='double' AND "from"=1977 AND "round_3"='double';
```
## Task
Generate a SQL query to answer the following question:
`What is Round 2 from 1999?`

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

CREATE TABLE "scoring_format" (
  "from" real,
  "goal" text,
  "round_1" text,
  "round_2" text,
  "round_3" text,
  "round_4" text,
  "round_5" text,
  "round_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Round 2 from 1999?`:
```sql
                SELECT "round_2" FROM "scoring_format" WHERE "from"=1999;
```
## Task
Generate a SQL query to answer the following question:
`What is Round 4 when Round 6+ is triple, Round 5 is triple and Round 3 is single?`

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

CREATE TABLE "scoring_format" (
  "from" real,
  "goal" text,
  "round_1" text,
  "round_2" text,
  "round_3" text,
  "round_4" text,
  "round_5" text,
  "round_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Round 4 when Round 6+ is triple, Round 5 is triple and Round 3 is single?`:
```sql
                SELECT "round_4" FROM "scoring_format" WHERE "round_6"='triple' AND "round_5"='triple' AND "round_3"='single';
```
## Task
Generate a SQL query to answer the following question:
`What is round 3 where From is earlier than 1990 and the Goal is 400?`

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

CREATE TABLE "scoring_format" (
  "from" real,
  "goal" text,
  "round_1" text,
  "round_2" text,
  "round_3" text,
  "round_4" text,
  "round_5" text,
  "round_6" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is round 3 where From is earlier than 1990 and the Goal is 400?`:
```sql
                SELECT "round_3" FROM "scoring_format" WHERE "from"<1990 AND "goal"='400';
```
## Task
Generate a SQL query to answer the following question:
`What points has united kingdom as the country, and 10 as the place?`

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

CREATE TABLE "1972_isle_of_man_junior_tt_350cc_final_s" (
  "place" real,
  "rider" text,
  "country" text,
  "machine" text,
  "speed" text,
  "time" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What points has united kingdom as the country, and 10 as the place?`:
```sql
                SELECT "points" FROM "1972_isle_of_man_junior_tt_350cc_final_s" WHERE "country"='united kingdom' AND "place"=10;
```
## Task
Generate a SQL query to answer the following question:
`What machine has tony rutter as the rider?`

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

CREATE TABLE "1972_isle_of_man_junior_tt_350cc_final_s" (
  "place" real,
  "rider" text,
  "country" text,
  "machine" text,
  "speed" text,
  "time" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What machine has tony rutter as the rider?`:
```sql
                SELECT "machine" FROM "1972_isle_of_man_junior_tt_350cc_final_s" WHERE "rider"='tony rutter';
```
## Task
Generate a SQL query to answer the following question:
`What machine has 5 as the place?`

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

CREATE TABLE "1972_isle_of_man_junior_tt_350cc_final_s" (
  "place" real,
  "rider" text,
  "country" text,
  "machine" text,
  "speed" text,
  "time" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What machine has 5 as the place?`:
```sql
                SELECT "machine" FROM "1972_isle_of_man_junior_tt_350cc_final_s" WHERE "place"=5;
```
## Task
Generate a SQL query to answer the following question:
`How many places have yamaha as the machine, and 89.85mph as the speed?`

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

CREATE TABLE "1972_isle_of_man_junior_tt_350cc_final_s" (
  "place" real,
  "rider" text,
  "country" text,
  "machine" text,
  "speed" text,
  "time" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many places have yamaha as the machine, and 89.85mph as the speed?`:
```sql
                SELECT SUM("place") FROM "1972_isle_of_man_junior_tt_350cc_final_s" WHERE "machine"='yamaha' AND "speed"='89.85mph';
```
## Task
Generate a SQL query to answer the following question:
`How many places did the artist Big Hit have with less than 2934 votes?`

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

CREATE TABLE "festival_da_can_o_2008_9_march_2008" (
  "draw" real,
  "artist" text,
  "song" text,
  "producer" text,
  "votes" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many places did the artist Big Hit have with less than 2934 votes?`:
```sql
                SELECT COUNT("place") FROM "festival_da_can_o_2008_9_march_2008" WHERE "artist"='big hit' AND "votes"<2934;
```
## Task
Generate a SQL query to answer the following question:
`How many average votes did producer carlos coelho have in a higher place than 6 and with a draw larger than 5?`

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

CREATE TABLE "festival_da_can_o_2008_9_march_2008" (
  "draw" real,
  "artist" text,
  "song" text,
  "producer" text,
  "votes" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many average votes did producer carlos coelho have in a higher place than 6 and with a draw larger than 5?`:
```sql
                SELECT AVG("votes") FROM "festival_da_can_o_2008_9_march_2008" WHERE "place"<6 AND "producer"='carlos coelho' AND "draw">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the MySpace Band with an Original Airdate of 19 february 2008?`

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

CREATE TABLE "series_1" (
  "pilot" text,
  "original_airdate" text,
  "musical_guest_song_performed" text,
  "you_tube_hero" text,
  "my_space_band" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the MySpace Band with an Original Airdate of 19 february 2008?`:
```sql
                SELECT "my_space_band" FROM "series_1" WHERE "original_airdate"='19 february 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the Musical Guest/Song with a pilot of 3?`

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

CREATE TABLE "series_1" (
  "pilot" text,
  "original_airdate" text,
  "musical_guest_song_performed" text,
  "you_tube_hero" text,
  "my_space_band" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Musical Guest/Song with a pilot of 3?`:
```sql
                SELECT "musical_guest_song_performed" FROM "series_1" WHERE "pilot"='3';
```
## Task
Generate a SQL query to answer the following question:
`What is the Original Airdate for the YouTube Hero greg pattillo?`

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

CREATE TABLE "series_1" (
  "pilot" text,
  "original_airdate" text,
  "musical_guest_song_performed" text,
  "you_tube_hero" text,
  "my_space_band" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Original Airdate for the YouTube Hero greg pattillo?`:
```sql
                SELECT "original_airdate" FROM "series_1" WHERE "you_tube_hero"='greg pattillo';
```
## Task
Generate a SQL query to answer the following question:
`What is the Musical Guest/Song with an original airdate of january 2008?`

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

CREATE TABLE "series_1" (
  "pilot" text,
  "original_airdate" text,
  "musical_guest_song_performed" text,
  "you_tube_hero" text,
  "my_space_band" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Musical Guest/Song with an original airdate of january 2008?`:
```sql
                SELECT "musical_guest_song_performed" FROM "series_1" WHERE "original_airdate"='january 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the Pilot number for the YouTube Hero greg pattillo?`

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

CREATE TABLE "series_1" (
  "pilot" text,
  "original_airdate" text,
  "musical_guest_song_performed" text,
  "you_tube_hero" text,
  "my_space_band" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Pilot number for the YouTube Hero greg pattillo?`:
```sql
                SELECT "pilot" FROM "series_1" WHERE "you_tube_hero"='greg pattillo';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the MySpace Band with an Original Airdate of 25 march 2008?`

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

CREATE TABLE "series_1" (
  "pilot" text,
  "original_airdate" text,
  "musical_guest_song_performed" text,
  "you_tube_hero" text,
  "my_space_band" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the MySpace Band with an Original Airdate of 25 march 2008?`:
```sql
                SELECT "my_space_band" FROM "series_1" WHERE "original_airdate"='25 march 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of top-25s for tournaments that had 0 wins, 1 cut made, and more than 5 events?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of top-25s for tournaments that had 0 wins, 1 cut made, and more than 5 events?`:
```sql
                SELECT COUNT("top_25") FROM "summary" WHERE "wins"=0 AND "cuts_made"=1 AND "events">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of top-5s for events with more than 1 win?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of top-5s for events with more than 1 win?`:
```sql
                SELECT MIN("top_5") FROM "summary" WHERE "wins">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of top-25s for events with 0 wins?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of top-25s for events with 0 wins?`:
```sql
                SELECT MAX("top_25") FROM "summary" WHERE "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the home leg who are opponents of rotor volgograd`

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

CREATE TABLE "european_record" (
  "season" text,
  "round" text,
  "opponents" text,
  "home_leg" text,
  "away_leg" text,
  "aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home leg who are opponents of rotor volgograd`:
```sql
                SELECT "home_leg" FROM "european_record" WHERE "opponents"='rotor volgograd';
```
## Task
Generate a SQL query to answer the following question:
`What is the round with ajax opponents`

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

CREATE TABLE "european_record" (
  "season" text,
  "round" text,
  "opponents" text,
  "home_leg" text,
  "away_leg" text,
  "aggregate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round with ajax opponents`:
```sql
                SELECT "round" FROM "european_record" WHERE "opponents"='ajax';
```
## Task
Generate a SQL query to answer the following question:
`Which acquisition via has a position of forward and is on the state school or club?`

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

CREATE TABLE "g" (
  "name" text,
  "position" text,
  "number" real,
  "school_club_team" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which acquisition via has a position of forward and is on the state school or club?`:
```sql
                SELECT "acquisition_via" FROM "g" WHERE "position"='forward' AND "school_club_team"='state';
```
## Task
Generate a SQL query to answer the following question:
`Which is the acquisition via that has a school or club team of state?`

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

CREATE TABLE "g" (
  "name" text,
  "position" text,
  "number" real,
  "school_club_team" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which is the acquisition via that has a school or club team of state?`:
```sql
                SELECT "acquisition_via" FROM "g" WHERE "school_club_team"='state';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of Allen Gamboa?`

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

CREATE TABLE "g" (
  "name" text,
  "position" text,
  "number" real,
  "school_club_team" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of Allen Gamboa?`:
```sql
                SELECT "position" FROM "g" WHERE "name"='allen gamboa';
```
## Task
Generate a SQL query to answer the following question:
`Which position is number 16?`

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

CREATE TABLE "g" (
  "name" text,
  "position" text,
  "number" real,
  "school_club_team" text,
  "season" text,
  "acquisition_via" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position is number 16?`:
```sql
                SELECT "position" FROM "g" WHERE "number"=16;
```
## Task
Generate a SQL query to answer the following question:
`What year had a date of TBA where the Oakland raiders were the home team?`

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

CREATE TABLE "game_history" (
  "year" real,
  "date" text,
  "television" text,
  "designated_visitors" text,
  "designated_home" text,
  "stadium" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had a date of TBA where the Oakland raiders were the home team?`:
```sql
                SELECT AVG("year") FROM "game_history" WHERE "date"='tba' AND "designated_home"='oakland raiders';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team on October 28 when the new england patriots were the visitors?`

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

CREATE TABLE "game_history" (
  "year" real,
  "date" text,
  "television" text,
  "designated_visitors" text,
  "designated_home" text,
  "stadium" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team on October 28 when the new england patriots were the visitors?`:
```sql
                SELECT "designated_home" FROM "game_history" WHERE "date"='october 28' AND "designated_visitors"='new england patriots';
```
## Task
Generate a SQL query to answer the following question:
`Who were the visitors when the Atlanta Falcons were the home team?`

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

CREATE TABLE "game_history" (
  "year" real,
  "date" text,
  "television" text,
  "designated_visitors" text,
  "designated_home" text,
  "stadium" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the visitors when the Atlanta Falcons were the home team?`:
```sql
                SELECT "designated_visitors" FROM "game_history" WHERE "designated_home"='atlanta falcons';
```
## Task
Generate a SQL query to answer the following question:
`Who were the home team during the game that aired on Fox after 2007 on October 23?`

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

CREATE TABLE "game_history" (
  "year" real,
  "date" text,
  "television" text,
  "designated_visitors" text,
  "designated_home" text,
  "stadium" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the home team during the game that aired on Fox after 2007 on October 23?`:
```sql
                SELECT "designated_home" FROM "game_history" WHERE "television"='fox' AND "year">2007 AND "date"='october 23';
```
## Task
Generate a SQL query to answer the following question:
`What was the birthplace of the player who weighs 98 KG and was born on May 1, 1984?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "2007_2008_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the birthplace of the player who weighs 98 KG and was born on May 1, 1984?`:
```sql
                SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "weight_kg"=98 AND "birthdate"='may 1, 1984';
```
## Task
Generate a SQL query to answer the following question:
`What was the average Jersey number of the player for the Calgary Flames, whose Weight (kg) was greater than 84?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_number" real,
  "name_v_t_e" text,
  "height_cm" real,
  "weight_kg" real,
  "birthplace" text,
  "1995_96_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average Jersey number of the player for the Calgary Flames, whose Weight (kg) was greater than 84?`:
```sql
                SELECT AVG("jersey_number") FROM "list_of_united_states_national_ice_hocke" WHERE "1995_96_team"='calgary flames' AND "weight_kg">84;
```
## Task
Generate a SQL query to answer the following question:
`What was the average Height (cm), for a player who had the Position, C, and whose 1995-96 team was the Buffalo Sabres, and whose Weight (kg) was less than 82?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_number" real,
  "name_v_t_e" text,
  "height_cm" real,
  "weight_kg" real,
  "birthplace" text,
  "1995_96_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average Height (cm), for a player who had the Position, C, and whose 1995-96 team was the Buffalo Sabres, and whose Weight (kg) was less than 82?`:
```sql
                SELECT AVG("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "position"='c' AND "1995_96_team"='buffalo sabres' AND "weight_kg"<82;
```
## Task
Generate a SQL query to answer the following question:
`What was the Name v t e, of the player whose Weight (kg) was 84, whose Position was D, and whose Jersey number was 2?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_number" real,
  "name_v_t_e" text,
  "height_cm" real,
  "weight_kg" real,
  "birthplace" text,
  "1995_96_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Name v t e, of the player whose Weight (kg) was 84, whose Position was D, and whose Jersey number was 2?`:
```sql
                SELECT "name_v_t_e" FROM "list_of_united_states_national_ice_hocke" WHERE "weight_kg"=84 AND "position"='d' AND "jersey_number"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest win percentage for when Perth Scorchers is the opposition?`

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

CREATE TABLE "result_summary_in_champions_league" (
  "opposition" text,
  "span" text,
  "lost" real,
  "tied" real,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest win percentage for when Perth Scorchers is the opposition?`:
```sql
                SELECT MIN("win_pct") FROM "result_summary_in_champions_league" WHERE "opposition"='perth scorchers';
```
## Task
Generate a SQL query to answer the following question:
`On which date was the game played on Week 13?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On which date was the game played on Week 13?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=13;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Std SAPs with 0-11 Opt SAPS?`

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

CREATE TABLE "enterprise_class" (
  "model" text,
  "books_p_us" text,
  "if_ls_u_if_ls" text,
  "z_aa_ps_z_ii_ps" text,
  "ic_fs" text,
  "opt_sa_ps" text,
  "std_sa_ps" real,
  "std_spares" real,
  "standard_memory_gb" text,
  "flexible_memory_gb" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Std SAPs with 0-11 Opt SAPS?`:
```sql
                SELECT COUNT("std_sa_ps") FROM "enterprise_class" WHERE "opt_sa_ps"='0-11';
```