cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the earliest election with 2 seats and the outcome of the election of minority in parliament?`

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

CREATE TABLE "parliamentary_elections" (
  "election" real,
  "number_of_pnc_votes" text,
  "share_of_votes" text,
  "seats" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest election with 2 seats and the outcome of the election of minority in parliament?`:
```sql
                SELECT MIN("election") FROM "parliamentary_elections" WHERE "outcome_of_election"='minority in parliament' AND "seats"='2';
```
## Task
Generate a SQL query to answer the following question:
`How many seats does the election with the outcome of election of minority in parliament and 186,226 PNC votes have?`

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

CREATE TABLE "parliamentary_elections" (
  "election" real,
  "number_of_pnc_votes" text,
  "share_of_votes" text,
  "seats" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats does the election with the outcome of election of minority in parliament and 186,226 PNC votes have?`:
```sql
                SELECT "seats" FROM "parliamentary_elections" WHERE "outcome_of_election"='minority in parliament' AND "number_of_pnc_votes"='186,226';
```
## Task
Generate a SQL query to answer the following question:
`How many seats did the election before 2004 with 3.4% share of votes have?`

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

CREATE TABLE "parliamentary_elections" (
  "election" real,
  "number_of_pnc_votes" text,
  "share_of_votes" text,
  "seats" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats did the election before 2004 with 3.4% share of votes have?`:
```sql
                SELECT "seats" FROM "parliamentary_elections" WHERE "election"<2004 AND "share_of_votes"='3.4%';
```
## Task
Generate a SQL query to answer the following question:
`How many PNC votes did the election before 1996 have?`

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

CREATE TABLE "parliamentary_elections" (
  "election" real,
  "number_of_pnc_votes" text,
  "share_of_votes" text,
  "seats" text,
  "outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many PNC votes did the election before 1996 have?`:
```sql
                SELECT "number_of_pnc_votes" FROM "parliamentary_elections" WHERE "election"<1996;
```
## Task
Generate a SQL query to answer the following question:
`How many times is the postion S?`

### 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 `How many times is the postion S?`:
```sql
                SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "position"='s';
```
## Task
Generate a SQL query to answer the following question:
`how many times is the name Derek Smith when the round is higher 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 `how many times is the name Derek Smith when the round is higher than 3?`:
```sql
                SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "name"='derek smith' AND "round">3;
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest overall when the pick is 20?`

### 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 lowest overall when the pick is 20?`:
```sql
                SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "pick"=20;
```
## Task
Generate a SQL query to answer the following question:
`what is the highest round when the overall is less than 17?`

### 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 highest round when the overall is less than 17?`:
```sql
                SELECT MAX("round") FROM "washington_redskins_draft_history" WHERE "overall"<17;
```
## Task
Generate a SQL query to answer the following question:
`What is Partner, when Opponents In The Final is Remi Tezuka Shuko Aoyama?`

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

CREATE TABLE "doubles_35_20_15" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Partner, when Opponents In The Final is Remi Tezuka Shuko Aoyama?`:
```sql
                SELECT "partner" FROM "doubles_35_20_15" WHERE "opponents_in_the_final"='remi tezuka shuko aoyama';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponents In The Final, when Score is 4-1 5-4 (7) 4-2?`

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

CREATE TABLE "doubles_35_20_15" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponents In The Final, when Score is 4-1 5-4 (7) 4-2?`:
```sql
                SELECT "opponents_in_the_final" FROM "doubles_35_20_15" WHERE "score"='4-1 5-4 (7) 4-2';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Opponents In The Final, is Maria-Fernanda Alves Stéphanie Dubois?`

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

CREATE TABLE "doubles_35_20_15" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Opponents In The Final, is Maria-Fernanda Alves Stéphanie Dubois?`:
```sql
                SELECT "date" FROM "doubles_35_20_15" WHERE "opponents_in_the_final"='maria-fernanda alves stéphanie dubois';
```
## Task
Generate a SQL query to answer the following question:
`Where was the Fury FC 4: High Voltage event held?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the Fury FC 4: High Voltage event held?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "event"='fury fc 4: high voltage';
```
## Task
Generate a SQL query to answer the following question:
`What's the nat that ends in 2009?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the nat that ends in 2009?`:
```sql
                SELECT "nat" FROM "in" WHERE "ends"='2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the type when they move from Gimnàstic?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type when they move from Gimnàstic?`:
```sql
                SELECT "type" FROM "in" WHERE "moving_from"='gimnàstic';
```
## Task
Generate a SQL query to answer the following question:
`What's the transfer window that ends in 2012?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the transfer window that ends in 2012?`:
```sql
                SELECT "transfer_window" FROM "in" WHERE "ends"='2012';
```
## Task
Generate a SQL query to answer the following question:
`What's the type that ends in 2009?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the type that ends in 2009?`:
```sql
                SELECT "type" FROM "in" WHERE "ends"='2009';
```
## Task
Generate a SQL query to answer the following question:
`What's the moving of the Esp with a transfer and named De La Red?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the moving of the Esp with a transfer and named De La Red?`:
```sql
                SELECT "moving_from" FROM "in" WHERE "type"='transfer' AND "nat"='esp' AND "name"='de la red';
```
## Task
Generate a SQL query to answer the following question:
`What type is González?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type is González?`:
```sql
                SELECT "type" FROM "in" WHERE "name"='gonzález';
```
## Task
Generate a SQL query to answer the following question:
`How many sales took place with a peak of 1 for Boris?`

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

CREATE TABLE "singles" (
  "pos" real,
  "artist" text,
  "single" text,
  "year" real,
  "sales" real,
  "peak" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many sales took place with a peak of 1 for Boris?`:
```sql
                SELECT COUNT("sales") FROM "singles" WHERE "peak"=1 AND "artist"='boris';
```
## Task
Generate a SQL query to answer the following question:
`What was the record in the game where the opponent was the cincinnati royals?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record in the game where the opponent was the cincinnati royals?`:
```sql
                SELECT "record" FROM "game_log" WHERE "opponent"='cincinnati royals';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance of game 25 when the played the San Francisco Warriors?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance of game 25 when the played the San Francisco Warriors?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "opponent"='san francisco warriors' AND "game"=25;
```
## Task
Generate a SQL query to answer the following question:
`Which manufacturer has a grid of 6?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which manufacturer has a grid of 6?`:
```sql
                SELECT "manufacturer" FROM "250cc_classification" WHERE "grid"='6';
```
## Task
Generate a SQL query to answer the following question:
`Who is the rider for Honda with a grid of 25?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the rider for Honda with a grid of 25?`:
```sql
                SELECT "rider" FROM "250cc_classification" WHERE "manufacturer"='honda' AND "grid"='25';
```
## Task
Generate a SQL query to answer the following question:
`How many laps has a grid of 5?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps has a grid of 5?`:
```sql
                SELECT "laps" FROM "250cc_classification" WHERE "grid"='5';
```
## Task
Generate a SQL query to answer the following question:
`Who is the rider whose time/retired is accident?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the rider whose time/retired is accident?`:
```sql
                SELECT "rider" FROM "250cc_classification" WHERE "time_retired"='accident';
```
## Task
Generate a SQL query to answer the following question:
`How many laps have a time/retired of +23.080?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps have a time/retired of +23.080?`:
```sql
                SELECT "laps" FROM "250cc_classification" WHERE "time_retired"='+23.080';
```
## Task
Generate a SQL query to answer the following question:
`Who is the manufacturer for Henk Vd Lagemaat?`

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

CREATE TABLE "250cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the manufacturer for Henk Vd Lagemaat?`:
```sql
                SELECT "manufacturer" FROM "250cc_classification" WHERE "rider"='henk vd lagemaat';
```
## Task
Generate a SQL query to answer the following question:
`what is the technology when the gel pouring is no and the analysis time is 8 days?`

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

CREATE TABLE "performance_values_for_genome_sequencing" (
  "technology" text,
  "analysis_time" text,
  "average_read_length" text,
  "throughput_including_analysis" text,
  "gel_pouring" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the technology when the gel pouring is no and the analysis time is 8 days?`:
```sql
                SELECT "technology" FROM "performance_values_for_genome_sequencing" WHERE "gel_pouring"='no' AND "analysis_time"='8 days';
```
## Task
Generate a SQL query to answer the following question:
`what is the throughput (including analysis) when the analysis time is 4 hours?`

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

CREATE TABLE "performance_values_for_genome_sequencing" (
  "technology" text,
  "analysis_time" text,
  "average_read_length" text,
  "throughput_including_analysis" text,
  "gel_pouring" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the throughput (including analysis) when the analysis time is 4 hours?`:
```sql
                SELECT "throughput_including_analysis" FROM "performance_values_for_genome_sequencing" WHERE "analysis_time"='4 hours';
```
## Task
Generate a SQL query to answer the following question:
`What is Geust, when Result is 0:9?`

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

CREATE TABLE "round_of_64" (
  "date" text,
  "time" text,
  "home" text,
  "geust" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Geust, when Result is 0:9?`:
```sql
                SELECT "geust" FROM "round_of_64" WHERE "result"='0:9';
```
## Task
Generate a SQL query to answer the following question:
`What is Home, when Time is 18:00, and when Geust is Servette FC (CHL)?`

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

CREATE TABLE "round_of_64" (
  "date" text,
  "time" text,
  "home" text,
  "geust" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Home, when Time is 18:00, and when Geust is Servette FC (CHL)?`:
```sql
                SELECT "home" FROM "round_of_64" WHERE "time"='18:00' AND "geust"='servette fc (chl)';
```
## Task
Generate a SQL query to answer the following question:
`What is Time, when Geust is AC Bellinzona (CHL)?`

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

CREATE TABLE "round_of_64" (
  "date" text,
  "time" text,
  "home" text,
  "geust" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Time, when Geust is AC Bellinzona (CHL)?`:
```sql
                SELECT "time" FROM "round_of_64" WHERE "geust"='ac bellinzona (chl)';
```
## Task
Generate a SQL query to answer the following question:
`What was the transfer fee when winter was the transfer window?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the transfer fee when winter was the transfer window?`:
```sql
                SELECT "transfer_fee" FROM "squad_changes" WHERE "transfer_window"='winter';
```
## Task
Generate a SQL query to answer the following question:
`What transfer fee has both winter as the transfer window, and Madureira as the moving to?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What transfer fee has both winter as the transfer window, and Madureira as the moving to?`:
```sql
                SELECT "transfer_fee" FROM "squad_changes" WHERE "transfer_window"='winter' AND "moving_to"='madureira';
```
## Task
Generate a SQL query to answer the following question:
`What was the moving that has a free transfer fee, and the nationality of CYP, and winter as the transfer window?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the moving that has a free transfer fee, and the nationality of CYP, and winter as the transfer window?`:
```sql
                SELECT "moving_to" FROM "squad_changes" WHERE "transfer_fee"='free' AND "nat"='cyp' AND "transfer_window"='winter';
```
## Task
Generate a SQL query to answer the following question:
`Who is moving to Metalurh Donetsk?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is moving to Metalurh Donetsk?`:
```sql
                SELECT "name" FROM "squad_changes" WHERE "moving_to"='metalurh donetsk';
```
## Task
Generate a SQL query to answer the following question:
`The player moving to Villa Rio has what transfer fee?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `The player moving to Villa Rio has what transfer fee?`:
```sql
                SELECT "transfer_fee" FROM "squad_changes" WHERE "moving_to"='villa rio';
```
## Task
Generate a SQL query to answer the following question:
`Emerson has what transfer window?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Emerson has what transfer window?`:
```sql
                SELECT "transfer_window" FROM "squad_changes" WHERE "name"='emerson';
```
## Task
Generate a SQL query to answer the following question:
`Where was the fight located that lasted a time of 2:33?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the fight located that lasted a time of 2:33?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "time"='2:33';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Game, when Attendance is "18,568"?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Game, when Attendance is "18,568"?`:
```sql
                SELECT COUNT("game") FROM "game_log" WHERE "attendance"='18,568';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Game, when Attendance is greater than 18,007, and when Opponent is "Minnesota Wild"?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Game, when Attendance is greater than 18,007, and when Opponent is "Minnesota Wild"?`:
```sql
                SELECT SUM("game") FROM "game_log" WHERE "attendance">'18,007' AND "opponent"='minnesota wild';
```
## Task
Generate a SQL query to answer the following question:
`In Silver Bow County, Montana, when the capicity is more than 45 tons, what's the highest rank found?`

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

CREATE TABLE "leading_copper_producing_mines" (
  "rank" real,
  "mine" text,
  "county_and_state" text,
  "operator" text,
  "source_of_copper" text,
  "capacity_thousands_of_metric_tons" real
);
### SQL
Given the database schema, here is the SQL query that answers `In Silver Bow County, Montana, when the capicity is more than 45 tons, what's the highest rank found?`:
```sql
                SELECT MAX("rank") FROM "leading_copper_producing_mines" WHERE "county_and_state"='silver bow county, montana' AND "capacity_thousands_of_metric_tons">45;
```
## Task
Generate a SQL query to answer the following question:
`In Pinal County, Arizona, when there's a capacity of over 5 metric tons, and the rank is under 14, what's the mine called?`

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

CREATE TABLE "leading_copper_producing_mines" (
  "rank" real,
  "mine" text,
  "county_and_state" text,
  "operator" text,
  "source_of_copper" text,
  "capacity_thousands_of_metric_tons" real
);
### SQL
Given the database schema, here is the SQL query that answers `In Pinal County, Arizona, when there's a capacity of over 5 metric tons, and the rank is under 14, what's the mine called?`:
```sql
                SELECT "mine" FROM "leading_copper_producing_mines" WHERE "rank"<14 AND "capacity_thousands_of_metric_tons">5 AND "county_and_state"='pinal county, arizona';
```
## Task
Generate a SQL query to answer the following question:
`How many sets lost have a loss smaller than 3 and a rank larger than 1?`

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

CREATE TABLE "quarterfinals_standing" (
  "rank" real,
  "team" text,
  "loss" real,
  "sets_won" real,
  "sets_lost" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many sets lost have a loss smaller than 3 and a rank larger than 1?`:
```sql
                SELECT SUM("sets_lost") FROM "quarterfinals_standing" WHERE "loss"<3 AND "rank">1;
```
## Task
Generate a SQL query to answer the following question:
`What is Bids, when Champions is "1"?`

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

CREATE TABLE "record_by_conference" (
  "conference" text,
  "bids" real,
  "record" text,
  "win_pct" real,
  "quarterfinals" text,
  "semifinals" text,
  "final" text,
  "champions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Bids, when Champions is "1"?`:
```sql
                SELECT "bids" FROM "record_by_conference" WHERE "champions"='1';
```
## Task
Generate a SQL query to answer the following question:
`Which finalist played in the week of October 21?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner_and_score" text,
  "finalist" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which finalist played in the week of October 21?`:
```sql
                SELECT "finalist" FROM "singles" WHERE "week"='october 21';
```
## Task
Generate a SQL query to answer the following question:
`On what surface did they play the match in the week of October 21?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner_and_score" text,
  "finalist" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what surface did they play the match in the week of October 21?`:
```sql
                SELECT "surface" FROM "singles" WHERE "week"='october 21';
```
## Task
Generate a SQL query to answer the following question:
`Who was the finalist in the Monte Carlo Tournament?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner_and_score" text,
  "finalist" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the finalist in the Monte Carlo Tournament?`:
```sql
                SELECT "finalist" FROM "singles" WHERE "tournament"='monte carlo';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Nation with more than 1 Gold and a more than 4 Total medals?`

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

CREATE TABLE "medal_table" (
  "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 of the Nation with more than 1 Gold and a more than 4 Total medals?`:
```sql
                SELECT SUM("rank") FROM "medal_table" WHERE "gold">1 AND "total">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the Gold for the Nation in Rank 4 with less than 1 Silver?`

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

CREATE TABLE "medal_table" (
  "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 Gold for the Nation in Rank 4 with less than 1 Silver?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "rank"=4 AND "silver"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the transfer window for Steven Thompson?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the transfer window for Steven Thompson?`:
```sql
                SELECT "transfer_window" FROM "in" WHERE "name"='steven thompson';
```
## Task
Generate a SQL query to answer the following question:
`What type is Kevin Muscat?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type is Kevin Muscat?`:
```sql
                SELECT "type" FROM "in" WHERE "name"='kevin muscat';
```
## Task
Generate a SQL query to answer the following question:
`What is the freestyle leg for the Netherlands?`

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

CREATE TABLE "heats" (
  "rank" text,
  "heat" real,
  "country" text,
  "backstroke_leg" text,
  "breaststroke_leg" text,
  "butterfly_leg" text,
  "freestyle_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the freestyle leg for the Netherlands?`:
```sql
                SELECT "freestyle_leg" FROM "heats" WHERE "country"='netherlands';
```
## Task
Generate a SQL query to answer the following question:
`How much is the lowest glucose(mmol/L) with [Na +] under 0?`

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

CREATE TABLE "composition_of_common_crystalloid_soluti" (
  "solution" text,
  "other_name" text,
  "na_mmol_l" real,
  "cl_mmol_l" real,
  "glucose_mmol_l" real,
  "glucose_mg_dl" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the lowest glucose(mmol/L) with [Na +] under 0?`:
```sql
                SELECT MIN("glucose_mmol_l") FROM "composition_of_common_crystalloid_soluti" WHERE "na_mmol_l"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest glucose(mg/dl) with a solution of 2/3d & 1/3s and glucose(mmol/L) less than 185?`

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

CREATE TABLE "composition_of_common_crystalloid_soluti" (
  "solution" text,
  "other_name" text,
  "na_mmol_l" real,
  "cl_mmol_l" real,
  "glucose_mmol_l" real,
  "glucose_mg_dl" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest glucose(mg/dl) with a solution of 2/3d & 1/3s and glucose(mmol/L) less than 185?`:
```sql
                SELECT MAX("glucose_mg_dl") FROM "composition_of_common_crystalloid_soluti" WHERE "solution"='2/3d & 1/3s' AND "glucose_mmol_l"<185;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest [Cl -](mmol/L) with a solution of D5NS and [Na+](mmol/L) less than 154?`

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

CREATE TABLE "composition_of_common_crystalloid_soluti" (
  "solution" text,
  "other_name" text,
  "na_mmol_l" real,
  "cl_mmol_l" real,
  "glucose_mmol_l" real,
  "glucose_mg_dl" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest [Cl -](mmol/L) with a solution of D5NS and [Na+](mmol/L) less than 154?`:
```sql
                SELECT MAX("cl_mmol_l") FROM "composition_of_common_crystalloid_soluti" WHERE "solution"='d5ns' AND "na_mmol_l"<154;
```
## Task
Generate a SQL query to answer the following question:
`What is the release date when the location is Europe?`

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

CREATE TABLE "single_track_listings" (
  "name" text,
  "location" text,
  "format" text,
  "record_label" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date when the location is Europe?`:
```sql
                SELECT "release_date" FROM "single_track_listings" WHERE "location"='europe';
```
## Task
Generate a SQL query to answer the following question:
`What is the location when the name is "I feel free" b/w "n.s.u.", with a release date of December 1966, on the Atco 6462 label?`

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

CREATE TABLE "single_track_listings" (
  "name" text,
  "location" text,
  "format" text,
  "record_label" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location when the name is "I feel free" b/w "n.s.u.", with a release date of December 1966, on the Atco 6462 label?`:
```sql
                SELECT "location" FROM "single_track_listings" WHERE "name"='\"i feel free\" b/w \"n.s.u.\"' AND "release_date"='december 1966' AND "record_label"='atco 6462';
```
## Task
Generate a SQL query to answer the following question:
`What is the release in Germany?`

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

CREATE TABLE "single_track_listings" (
  "name" text,
  "location" text,
  "format" text,
  "record_label" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release in Germany?`:
```sql
                SELECT "release_date" FROM "single_track_listings" WHERE "location"='germany';
```
## Task
Generate a SQL query to answer the following question:
`What is the name with a release date of December 1966, and a Location of UK?`

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

CREATE TABLE "single_track_listings" (
  "name" text,
  "location" text,
  "format" text,
  "record_label" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name with a release date of December 1966, and a Location of UK?`:
```sql
                SELECT "name" FROM "single_track_listings" WHERE "release_date"='december 1966' AND "location"='uk';
```
## Task
Generate a SQL query to answer the following question:
`What is the US release date?`

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

CREATE TABLE "single_track_listings" (
  "name" text,
  "location" text,
  "format" text,
  "record_label" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the US release date?`:
```sql
                SELECT "release_date" FROM "single_track_listings" WHERE "location"='us';
```
## Task
Generate a SQL query to answer the following question:
`What is the name in the UK, with a release date of December 1966?`

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

CREATE TABLE "single_track_listings" (
  "name" text,
  "location" text,
  "format" text,
  "record_label" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name in the UK, with a release date of December 1966?`:
```sql
                SELECT "name" FROM "single_track_listings" WHERE "location"='uk' AND "release_date"='december 1966';
```
## Task
Generate a SQL query to answer the following question:
`What away team scored 107-104?`

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

CREATE TABLE "round_14" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What away team scored 107-104?`:
```sql
                SELECT "away_team" FROM "round_14" WHERE "score"='107-104';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team for the New Zealand breakers?`

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

CREATE TABLE "round_14" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team for the New Zealand breakers?`:
```sql
                SELECT "report" FROM "round_14" WHERE "away_team"='new zealand breakers';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team that scored 63-69?`

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

CREATE TABLE "round_14" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the away team that scored 63-69?`:
```sql
                SELECT "away_team" FROM "round_14" WHERE "score"='63-69';
```
## Task
Generate a SQL query to answer the following question:
`Where is the player Davis Love III?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the player Davis Love III?`:
```sql
                SELECT "place" FROM "first_round" WHERE "player"='davis love iii';
```
## Task
Generate a SQL query to answer the following question:
`What is the second qualifying time for the dale coyne racing team with a first qualifying time of 1:00.081?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the second qualifying time for the dale coyne racing team with a first qualifying time of 1:00.081?`:
```sql
                SELECT "qual_2" FROM "qualifying_results" WHERE "team"='dale coyne racing' AND "qual_1"='1:00.081';
```
## Task
Generate a SQL query to answer the following question:
`Which team had a second qualifying time of 58.539?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had a second qualifying time of 58.539?`:
```sql
                SELECT "team" FROM "qualifying_results" WHERE "qual_2"='58.539';
```
## Task
Generate a SQL query to answer the following question:
`What is the best time from patrick carpentier from the forsythe racing team?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best time from patrick carpentier from the forsythe racing team?`:
```sql
                SELECT "best" FROM "qualifying_results" WHERE "team"='forsythe racing' AND "name"='patrick carpentier';
```
## Task
Generate a SQL query to answer the following question:
`What is the best time for a team with a first-qualifying time of 59.448?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best time for a team with a first-qualifying time of 59.448?`:
```sql
                SELECT "best" FROM "qualifying_results" WHERE "qual_1"='59.448';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the racer with a best time of 57.546?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the racer with a best time of 57.546?`:
```sql
                SELECT "name" FROM "qualifying_results" WHERE "best"='57.546';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the racer with a first-qualifying time of 58.991?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the racer with a first-qualifying time of 58.991?`:
```sql
                SELECT "name" FROM "qualifying_results" WHERE "qual_1"='58.991';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Points, when Played is greater than 126?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "2006" text,
  "2007" text,
  "2008" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Points, when Played is greater than 126?`:
```sql
                SELECT AVG("points") FROM "relegation" WHERE "played">126;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Average, when 2006 is "36/40", and when Played is greater than 126?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "2006" text,
  "2007" text,
  "2008" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Average, when 2006 is "36/40", and when Played is greater than 126?`:
```sql
                SELECT SUM("average") FROM "relegation" WHERE "2006"='36/40' AND "played">126;
```
## Task
Generate a SQL query to answer the following question:
`What is 2006, when Team is "Tacuary"?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "2006" text,
  "2007" text,
  "2008" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2006, when Team is "Tacuary"?`:
```sql
                SELECT "2006" FROM "relegation" WHERE "team"='tacuary';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank has a Bronze of 3?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank has a Bronze of 3?`:
```sql
                SELECT "rank" FROM "medal_table" WHERE "bronze"=3;
```
## Task
Generate a SQL query to answer the following question:
`What are the Runner(s)-up of the 1956 Championship?`

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

CREATE TABLE "winners" (
  "year" text,
  "winner" text,
  "country" text,
  "score" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Runner(s)-up of the 1956 Championship?`:
```sql
                SELECT "runner_s_up" FROM "winners" WHERE "year"='1956';
```
## Task
Generate a SQL query to answer the following question:
`What are the Runner(s)-up of the 1972 Championship?`

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

CREATE TABLE "winners" (
  "year" text,
  "winner" text,
  "country" text,
  "score" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Runner(s)-up of the 1972 Championship?`:
```sql
                SELECT "runner_s_up" FROM "winners" WHERE "year"='1972';
```
## Task
Generate a SQL query to answer the following question:
`What is the Country of the Championship with a Score of 293?`

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

CREATE TABLE "winners" (
  "year" text,
  "winner" text,
  "country" text,
  "score" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Country of the Championship with a Score of 293?`:
```sql
                SELECT "country" FROM "winners" WHERE "score"='293';
```