cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the highest year with a formula of Grand Prix?`

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

CREATE TABLE "winners_of_the_circuit_des_ardennes" (
  "year" real,
  "formula" text,
  "driver" text,
  "constructor" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest year with a formula of Grand Prix?`:
```sql
                SELECT MAX("year") FROM "winners_of_the_circuit_des_ardennes" WHERE "formula"='grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Which formula had a driver of John Moore-Brabazon?`

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

CREATE TABLE "winners_of_the_circuit_des_ardennes" (
  "year" real,
  "formula" text,
  "driver" text,
  "constructor" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which formula had a driver of John Moore-Brabazon?`:
```sql
                SELECT "formula" FROM "winners_of_the_circuit_des_ardennes" WHERE "driver"='john moore-brabazon';
```
## Task
Generate a SQL query to answer the following question:
`Which driver had a year under 1905?`

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

CREATE TABLE "winners_of_the_circuit_des_ardennes" (
  "year" real,
  "formula" text,
  "driver" text,
  "constructor" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver had a year under 1905?`:
```sql
                SELECT "driver" FROM "winners_of_the_circuit_des_ardennes" WHERE "year"<1905;
```
## Task
Generate a SQL query to answer the following question:
`How many years had a formula of Grand Prix?`

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

CREATE TABLE "winners_of_the_circuit_des_ardennes" (
  "year" real,
  "formula" text,
  "driver" text,
  "constructor" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years had a formula of Grand Prix?`:
```sql
                SELECT COUNT("year") FROM "winners_of_the_circuit_des_ardennes" WHERE "formula"='grand prix';
```
## Task
Generate a SQL query to answer the following question:
`Which location was won by George Heath?`

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

CREATE TABLE "winners_of_the_circuit_des_ardennes" (
  "year" real,
  "formula" text,
  "driver" text,
  "constructor" text,
  "location" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location was won by George Heath?`:
```sql
                SELECT "location" FROM "winners_of_the_circuit_des_ardennes" WHERE "driver"='george heath';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2010 total for ghana?`

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

CREATE TABLE "2010_statistics_at_least_1_000_000_passe" (
  "country" text,
  "airport" text,
  "city" text,
  "2010" real,
  "change_10_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2010 total for ghana?`:
```sql
                SELECT COUNT("2010") FROM "2010_statistics_at_least_1_000_000_passe" WHERE "country"='ghana';
```
## Task
Generate a SQL query to answer the following question:
`Which country is the nnamdi azikiwe international airport in?`

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

CREATE TABLE "2010_statistics_at_least_1_000_000_passe" (
  "country" text,
  "airport" text,
  "city" text,
  "2010" real,
  "change_10_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country is the nnamdi azikiwe international airport in?`:
```sql
                SELECT "country" FROM "2010_statistics_at_least_1_000_000_passe" WHERE "airport"='nnamdi azikiwe international airport';
```
## Task
Generate a SQL query to answer the following question:
`What is the average lane for Kenya with react larger than 0.212?`

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

CREATE TABLE "heat_3" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average lane for Kenya with react larger than 0.212?`:
```sql
                SELECT AVG("lane") FROM "heat_3" WHERE "nationality"='kenya' AND "react">0.212;
```
## Task
Generate a SQL query to answer the following question:
`what is the highest rank for tim maeyens?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest rank for tim maeyens?`:
```sql
                SELECT MAX("rank") FROM "heat_1" WHERE "athlete"='tim maeyens';
```
## Task
Generate a SQL query to answer the following question:
`what is the notes for andre vonarburg?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the notes for andre vonarburg?`:
```sql
                SELECT "notes" FROM "heat_1" WHERE "athlete"='andre vonarburg';
```
## Task
Generate a SQL query to answer the following question:
`Who is the athlete from greece?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the athlete from greece?`:
```sql
                SELECT "athlete" FROM "heat_1" WHERE "country"='greece';
```
## Task
Generate a SQL query to answer the following question:
`who is the athlete with the rank smaller than 2?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the athlete with the rank smaller than 2?`:
```sql
                SELECT "athlete" FROM "heat_1" WHERE "rank"<2;
```
## Task
Generate a SQL query to answer the following question:
`what is the notes for the athlete with the time of 7:38.87?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "athlete" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the notes for the athlete with the time of 7:38.87?`:
```sql
                SELECT "notes" FROM "heat_1" WHERE "time"='7:38.87';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the gold medals of the nation with 4 silvers and more than 6 total medals?`

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

CREATE TABLE "medals_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 `What is the sum of the gold medals of the nation with 4 silvers and more than 6 total medals?`:
```sql
                SELECT SUM("gold") FROM "medals_table" WHERE "silver"=4 AND "total">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of bronze medals of west germany, which has more than 0 golds?`

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

CREATE TABLE "medals_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 `What is the highest number of bronze medals of west germany, which has more than 0 golds?`:
```sql
                SELECT MAX("bronze") FROM "medals_table" WHERE "nation"='west germany' AND "gold">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average total medals of the soviet union, which has more than 2 bronze and more than 0 silver medals?`

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

CREATE TABLE "medals_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 `What is the average total medals of the soviet union, which has more than 2 bronze and more than 0 silver medals?`:
```sql
                SELECT AVG("total") FROM "medals_table" WHERE "bronze">2 AND "silver">0 AND "nation"='soviet union';
```
## Task
Generate a SQL query to answer the following question:
`What year did the ship Europa, have the dates of 14 – 23 October?`

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

CREATE TABLE "westbound_record_breakers_blue_riband_ho" (
  "ship" text,
  "year" real,
  "dates" text,
  "line" text,
  "from" text,
  "distance" text,
  "days_hours_minutes" text,
  "speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the ship Europa, have the dates of 14 – 23 October?`:
```sql
                SELECT AVG("year") FROM "westbound_record_breakers_blue_riband_ho" WHERE "ship"='europa' AND "dates"='14 – 23 october';
```
## Task
Generate a SQL query to answer the following question:
`What is the ship in the Cunard line from Liverpool 19 – 29 July?`

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

CREATE TABLE "westbound_record_breakers_blue_riband_ho" (
  "ship" text,
  "year" real,
  "dates" text,
  "line" text,
  "from" text,
  "distance" text,
  "days_hours_minutes" text,
  "speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ship in the Cunard line from Liverpool 19 – 29 July?`:
```sql
                SELECT "ship" FROM "westbound_record_breakers_blue_riband_ho" WHERE "line"='cunard' AND "from"='liverpool' AND "dates"='19 – 29 july';
```
## Task
Generate a SQL query to answer the following question:
`What is the distance for 5 d, 23 h, 7 m?`

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

CREATE TABLE "westbound_record_breakers_blue_riband_ho" (
  "ship" text,
  "year" real,
  "dates" text,
  "line" text,
  "from" text,
  "distance" text,
  "days_hours_minutes" text,
  "speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distance for 5 d, 23 h, 7 m?`:
```sql
                SELECT "distance" FROM "westbound_record_breakers_blue_riband_ho" WHERE "days_hours_minutes"='5 d, 23 h, 7 m';
```
## Task
Generate a SQL query to answer the following question:
`What is the Days, hours, minutes for the GW line from Liverpool?`

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

CREATE TABLE "westbound_record_breakers_blue_riband_ho" (
  "ship" text,
  "year" real,
  "dates" text,
  "line" text,
  "from" text,
  "distance" text,
  "days_hours_minutes" text,
  "speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Days, hours, minutes for the GW line from Liverpool?`:
```sql
                SELECT "days_hours_minutes" FROM "westbound_record_breakers_blue_riband_ho" WHERE "line"='gw' AND "from"='liverpool';
```
## Task
Generate a SQL query to answer the following question:
`What is the Days, hours, minutes for 21 – 26 October?`

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

CREATE TABLE "westbound_record_breakers_blue_riband_ho" (
  "ship" text,
  "year" real,
  "dates" text,
  "line" text,
  "from" text,
  "distance" text,
  "days_hours_minutes" text,
  "speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Days, hours, minutes for 21 – 26 October?`:
```sql
                SELECT "days_hours_minutes" FROM "westbound_record_breakers_blue_riband_ho" WHERE "dates"='21 – 26 october';
```
## Task
Generate a SQL query to answer the following question:
`Which year did the school with the mascot of the Vikings join?`

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

CREATE TABLE "former_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "county" text,
  "year_joined" text,
  "year_left" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year did the school with the mascot of the Vikings join?`:
```sql
                SELECT "year_joined" FROM "former_members" WHERE "mascot"='vikings';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the album recorded at funhouse studios with a time of 3:27?`

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

CREATE TABLE "track_listing" (
  "title" text,
  "time" text,
  "writer_s" text,
  "performer_s" text,
  "producer_s" text,
  "recorded_at" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the album recorded at funhouse studios with a time of 3:27?`:
```sql
                SELECT "writer_s" FROM "track_listing" WHERE "recorded_at"='funhouse studios' AND "time"='3:27';
```
## Task
Generate a SQL query to answer the following question:
`Who performed the song recorded at the Cabin in the Woods Studio with a Time of 3:16?`

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

CREATE TABLE "track_listing" (
  "title" text,
  "time" text,
  "writer_s" text,
  "performer_s" text,
  "producer_s" text,
  "recorded_at" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who performed the song recorded at the Cabin in the Woods Studio with a Time of 3:16?`:
```sql
                SELECT "performer_s" FROM "track_listing" WHERE "recorded_at"='the cabin in the woods studio' AND "time"='3:16';
```
## Task
Generate a SQL query to answer the following question:
`Which League Cup Goals have a League Cup Apps of 1 (1)?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "nation" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which League Cup Goals have a League Cup Apps of 1 (1)?`:
```sql
                SELECT "league_cup_goals" FROM "appearances_and_goals" WHERE "league_cup_apps"='1 (1)';
```
## Task
Generate a SQL query to answer the following question:
`Which FA Cup Apps have Total Goals larger than 6, and an FA Cup Goals smaller than 1?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "nation" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which FA Cup Apps have Total Goals larger than 6, and an FA Cup Goals smaller than 1?`:
```sql
                SELECT "fa_cup_apps" FROM "appearances_and_goals" WHERE "total_goals">6 AND "fa_cup_goals"<1;
```
## Task
Generate a SQL query to answer the following question:
`How many League Goals have an FA Cup Apps of 0 (1)?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "nation" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "flt_apps" text,
  "flt_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many League Goals have an FA Cup Apps of 0 (1)?`:
```sql
                SELECT COUNT("league_goals") FROM "appearances_and_goals" WHERE "fa_cup_apps"='0 (1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest round number in which Will Wilcox was selected?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round number in which Will Wilcox was selected?`:
```sql
                SELECT MIN("round") FROM "nfl_draft" WHERE "player"='will wilcox';
```
## Task
Generate a SQL query to answer the following question:
`Which player went to college at Tennessee-Chattanooga?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player went to college at Tennessee-Chattanooga?`:
```sql
                SELECT "player" FROM "nfl_draft" WHERE "college"='tennessee-chattanooga';
```
## Task
Generate a SQL query to answer the following question:
`Which Col (m) has an Elevation (m) smaller than 1,624?`

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

CREATE TABLE "scandinavia" (
  "peak" text,
  "country" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Col (m) has an Elevation (m) smaller than 1,624?`:
```sql
                SELECT MIN("col_m") FROM "scandinavia" WHERE "elevation_m"<'1,624';
```
## Task
Generate a SQL query to answer the following question:
`How much Elevation (m) has a Prominence (m) larger than 1,754?`

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

CREATE TABLE "scandinavia" (
  "peak" text,
  "country" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Elevation (m) has a Prominence (m) larger than 1,754?`:
```sql
                SELECT SUM("elevation_m") FROM "scandinavia" WHERE "prominence_m">'1,754';
```
## Task
Generate a SQL query to answer the following question:
`Which Col (m) has a Prominence (m) larger than 1,519, and a Peak of jiehkkevárri, and an Elevation (m) larger than 1,834?`

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

CREATE TABLE "scandinavia" (
  "peak" text,
  "country" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Col (m) has a Prominence (m) larger than 1,519, and a Peak of jiehkkevárri, and an Elevation (m) larger than 1,834?`:
```sql
                SELECT MIN("col_m") FROM "scandinavia" WHERE "prominence_m">'1,519' AND "peak"='jiehkkevárri' AND "elevation_m">'1,834';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest score when the 1st half is smaller than 289 and rank smaller than 61?`

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

CREATE TABLE "ranking_round" (
  "rank" real,
  "archer" text,
  "1st_half" real,
  "2nd_half" real,
  "score" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest score when the 1st half is smaller than 289 and rank smaller than 61?`:
```sql
                SELECT MAX("score") FROM "ranking_round" WHERE "1st_half"<289 AND "rank"<61;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest first half when the score is larger than 621 and the rank 35?`

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

CREATE TABLE "ranking_round" (
  "rank" real,
  "archer" text,
  "1st_half" real,
  "2nd_half" real,
  "score" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest first half when the score is larger than 621 and the rank 35?`:
```sql
                SELECT MIN("1st_half") FROM "ranking_round" WHERE "score">621 AND "rank"=35;
```
## Task
Generate a SQL query to answer the following question:
`Which Grid has Points larger than 10 and a Time/Retired of +13.7 secs?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grid has Points larger than 10 and a Time/Retired of +13.7 secs?`:
```sql
                SELECT "grid" FROM "race" WHERE "points">10 AND "time_retired"='+13.7 secs';
```
## Task
Generate a SQL query to answer the following question:
`Which Team has Points of 0, a Grid larger than 13, and a Driver of alex yoong?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has Points of 0, a Grid larger than 13, and a Driver of alex yoong?`:
```sql
                SELECT "team" FROM "race" WHERE "points"=0 AND "grid">13 AND "driver"='alex yoong';
```
## Task
Generate a SQL query to answer the following question:
`What is the hioghest amount of silver medals for a nation ranked higher than 19 and less than 2 gold medals?`

### 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 `What is the hioghest amount of silver medals for a nation ranked higher than 19 and less than 2 gold medals?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "rank"='19' AND "gold"<2;
```
## Task
Generate a SQL query to answer the following question:
`What nation finished with 11 silver medals?`

### 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 `What nation finished with 11 silver medals?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "silver"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is Benito Cheng's Pick number?`

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

CREATE TABLE "round_1" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Benito Cheng's Pick number?`:
```sql
                SELECT "pick" FROM "round_1" WHERE "player"='benito cheng';
```
## Task
Generate a SQL query to answer the following question:
`What is the Country of origin of PIck 6?`

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

CREATE TABLE "round_1" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Country of origin of PIck 6?`:
```sql
                SELECT "country_of_origin" FROM "round_1" WHERE "pick"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is Richard Bachmann's PBA team?`

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

CREATE TABLE "round_1" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Richard Bachmann's PBA team?`:
```sql
                SELECT "pba_team" FROM "round_1" WHERE "player"='richard bachmann';
```
## Task
Generate a SQL query to answer the following question:
`What is Far Eastern College Johnny Abarrientos' Pick number?`

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

CREATE TABLE "round_1" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Far Eastern College Johnny Abarrientos' Pick number?`:
```sql
                SELECT "pick" FROM "round_1" WHERE "college"='far eastern' AND "player"='johnny abarrientos';
```
## Task
Generate a SQL query to answer the following question:
`What home team has 10 as the tie no?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team has 10 as the tie no?`:
```sql
                SELECT "home_team" FROM "third_round_proper" WHERE "tie_no"='10';
```
## Task
Generate a SQL query to answer the following question:
`What is the game score when the tie no is 7?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game score when the tie no is 7?`:
```sql
                SELECT "score" FROM "third_round_proper" WHERE "tie_no"='7';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team on 10 January 1979 who had a tie no of 17?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team on 10 January 1979 who had a tie no of 17?`:
```sql
                SELECT "away_team" FROM "third_round_proper" WHERE "date"='10 january 1979' AND "tie_no"='17';
```
## Task
Generate a SQL query to answer the following question:
`When was the game that has tie no 2?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the game that has tie no 2?`:
```sql
                SELECT "date" FROM "third_round_proper" WHERE "tie_no"='2';
```
## Task
Generate a SQL query to answer the following question:
`What round did the match at the Golden Trophy 1999 event end?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round did the match at the Golden Trophy 1999 event end?`:
```sql
                SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "event"='golden trophy 1999';
```
## Task
Generate a SQL query to answer the following question:
`What event had a record of 8–5–1?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event had a record of 8–5–1?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='8–5–1';
```
## Task
Generate a SQL query to answer the following question:
`What's the HDR Output that has a name of name?`

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

CREATE TABLE "hdr_tonemapping_and_exposure_fusion" (
  "name" text,
  "merging_to_hdr_from_ldr_images" text,
  "hdr_output_exr_hdr_logluv_etc" text,
  "tonemapping" text,
  "exposure_fusion" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the HDR Output that has a name of name?`:
```sql
                SELECT "hdr_output_exr_hdr_logluv_etc" FROM "hdr_tonemapping_and_exposure_fusion" WHERE "name"='name';
```
## Task
Generate a SQL query to answer the following question:
`What's the exposure fusion of Panoramaplus x4?`

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

CREATE TABLE "hdr_tonemapping_and_exposure_fusion" (
  "name" text,
  "merging_to_hdr_from_ldr_images" text,
  "hdr_output_exr_hdr_logluv_etc" text,
  "tonemapping" text,
  "exposure_fusion" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the exposure fusion of Panoramaplus x4?`:
```sql
                SELECT "exposure_fusion" FROM "hdr_tonemapping_and_exposure_fusion" WHERE "name"='panoramaplus x4';
```
## Task
Generate a SQL query to answer the following question:
`What's the HDR output of Photovista Panorama?`

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

CREATE TABLE "hdr_tonemapping_and_exposure_fusion" (
  "name" text,
  "merging_to_hdr_from_ldr_images" text,
  "hdr_output_exr_hdr_logluv_etc" text,
  "tonemapping" text,
  "exposure_fusion" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the HDR output of Photovista Panorama?`:
```sql
                SELECT "hdr_output_exr_hdr_logluv_etc" FROM "hdr_tonemapping_and_exposure_fusion" WHERE "name"='photovista panorama';
```
## Task
Generate a SQL query to answer the following question:
`Which location has 101,119 as the capacity?`

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

CREATE TABLE "top_10_largest_american_football_stadium" (
  "rank" real,
  "stadium" text,
  "capacity" text,
  "location" text,
  "home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location has 101,119 as the capacity?`:
```sql
                SELECT "location" FROM "top_10_largest_american_football_stadium" WHERE "capacity"='101,119';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank that has university park, pa as the location?`

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

CREATE TABLE "top_10_largest_american_football_stadium" (
  "rank" real,
  "stadium" text,
  "capacity" text,
  "location" text,
  "home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank that has university park, pa as the location?`:
```sql
                SELECT MIN("rank") FROM "top_10_largest_american_football_stadium" WHERE "location"='university park, pa';
```
## Task
Generate a SQL query to answer the following question:
`What home team has a rank greater than 6, and 94,392 as the capacity?`

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

CREATE TABLE "top_10_largest_american_football_stadium" (
  "rank" real,
  "stadium" text,
  "capacity" text,
  "location" text,
  "home_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team has a rank greater than 6, and 94,392 as the capacity?`:
```sql
                SELECT "home_team" FROM "top_10_largest_american_football_stadium" WHERE "rank">6 AND "capacity"='94,392';
```
## Task
Generate a SQL query to answer the following question:
`Who was the builder for the USS cambridge?`

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

CREATE TABLE "ships_in_class" (
  "hull_number" text,
  "name" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the builder for the USS cambridge?`:
```sql
                SELECT "builder" FROM "ships_in_class" WHERE "name"='uss cambridge';
```
## Task
Generate a SQL query to answer the following question:
`What year was the USS Cambridge laid down?`

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

CREATE TABLE "ships_in_class" (
  "hull_number" text,
  "name" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the USS Cambridge laid down?`:
```sql
                SELECT "laid_down" FROM "ships_in_class" WHERE "name"='uss cambridge';
```
## Task
Generate a SQL query to answer the following question:
`What was the number of the game when the record was 11-12?`

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

CREATE TABLE "game_log" (
  "game" text,
  "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 number of the game when the record was 11-12?`:
```sql
                SELECT "game" FROM "game_log" WHERE "record"='11-12';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of Game 16?`

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

CREATE TABLE "game_log" (
  "game" text,
  "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 score of Game 16?`:
```sql
                SELECT "score" FROM "game_log" WHERE "game"='16';
```
## Task
Generate a SQL query to answer the following question:
`What was the location and attendance at the game when the record was 9-6?`

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

CREATE TABLE "game_log" (
  "game" text,
  "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 location and attendance at the game when the record was 9-6?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "record"='9-6';
```
## Task
Generate a SQL query to answer the following question:
`What date has 3 as the round (leg)?`

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

CREATE TABLE "league_cup" (
  "round_leg" text,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date has 3 as the round (leg)?`:
```sql
                SELECT "date" FROM "league_cup" WHERE "round_leg"='3';
```
## Task
Generate a SQL query to answer the following question:
`What was the year of Bridget Jones: The Edge of Reason that was nominated?`

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

CREATE TABLE "golden_globe_awards" (
  "year" real,
  "category" text,
  "film" text,
  "result" text,
  "lost_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the year of Bridget Jones: The Edge of Reason that was nominated?`:
```sql
                SELECT MIN("year") FROM "golden_globe_awards" WHERE "result"='nominated' AND "film"='bridget jones: the edge of reason';
```
## Task
Generate a SQL query to answer the following question:
`Who was the loss to for the film Chicago?`

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

CREATE TABLE "golden_globe_awards" (
  "year" real,
  "category" text,
  "film" text,
  "result" text,
  "lost_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the loss to for the film Chicago?`:
```sql
                SELECT "lost_to" FROM "golden_globe_awards" WHERE "film"='chicago';
```
## Task
Generate a SQL query to answer the following question:
`Which IHSAA Football Class has a IHSAA Class of aaa, and a Location of nashville?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA Football Class has a IHSAA Class of aaa, and a Location of nashville?`:
```sql
                SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aaa' AND "location"='nashville';
```
## Task
Generate a SQL query to answer the following question:
`Which Mascot has an Enrollment of 640?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Mascot has an Enrollment of 640?`:
```sql
                SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "enrollment"=640;
```
## Task
Generate a SQL query to answer the following question:
`Which IHSAA Class has a Location of brazil?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA Class has a Location of brazil?`:
```sql
                SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "location"='brazil';
```
## Task
Generate a SQL query to answer the following question:
`Which School has a Enrollment of 908?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "ihsaa_football_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which School has a Enrollment of 908?`:
```sql
                SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "enrollment"=908;
```
## Task
Generate a SQL query to answer the following question:
`What type of currency has a code of SEK?`

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

CREATE TABLE "criteria" (
  "currency" text,
  "code" text,
  "entry_erm_ii" text,
  "central_rate" text,
  "official_target_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of currency has a code of SEK?`:
```sql
                SELECT "currency" FROM "criteria" WHERE "code"='sek';
```
## Task
Generate a SQL query to answer the following question:
`What code is used to represent the currency of Croatian Kuna?`

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

CREATE TABLE "criteria" (
  "currency" text,
  "code" text,
  "entry_erm_ii" text,
  "central_rate" text,
  "official_target_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What code is used to represent the currency of Croatian Kuna?`:
```sql
                SELECT "code" FROM "criteria" WHERE "currency"='croatian kuna';
```
## Task
Generate a SQL query to answer the following question:
`What's the model that has chassis code W116.036?`

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

CREATE TABLE "models" (
  "chassis_code" text,
  "model_years" text,
  "model" text,
  "engine" text,
  "no_built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the model that has chassis code W116.036?`:
```sql
                SELECT "model" FROM "models" WHERE "chassis_code"='w116.036';
```
## Task
Generate a SQL query to answer the following question:
`What's the years that has a chassis code of W116.025 and number built was more than 150,593?`

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

CREATE TABLE "models" (
  "chassis_code" text,
  "model_years" text,
  "model" text,
  "engine" text,
  "no_built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the years that has a chassis code of W116.025 and number built was more than 150,593?`:
```sql
                SELECT "model_years" FROM "models" WHERE "no_built">'150,593' AND "chassis_code"='w116.025';
```
## Task
Generate a SQL query to answer the following question:
`What the score of the 1992 game?`

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

CREATE TABLE "west_german_champions_1973_1997" (
  "year" text,
  "champions" text,
  "score" text,
  "runners_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the score of the 1992 game?`:
```sql
                SELECT "score" FROM "west_german_champions_1973_1997" WHERE "year"='1992';
```
## Task
Generate a SQL query to answer the following question:
`What is the score when TSV Siegen was the runner-up?`

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

CREATE TABLE "west_german_champions_1973_1997" (
  "year" text,
  "champions" text,
  "score" text,
  "runners_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score when TSV Siegen was the runner-up?`:
```sql
                SELECT "score" FROM "west_german_champions_1973_1997" WHERE "runners_up"='tsv siegen';
```
## Task
Generate a SQL query to answer the following question:
`What year was the game at Bad Neuenahr Eppelborn?`

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

CREATE TABLE "west_german_champions_1973_1997" (
  "year" text,
  "champions" text,
  "score" text,
  "runners_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the game at Bad Neuenahr Eppelborn?`:
```sql
                SELECT "year" FROM "west_german_champions_1973_1997" WHERE "venue"='bad neuenahr eppelborn';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue when the runner up was Tennis Borussia Berlin, and the score was 4 – 2 *?`

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

CREATE TABLE "west_german_champions_1973_1997" (
  "year" text,
  "champions" text,
  "score" text,
  "runners_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue when the runner up was Tennis Borussia Berlin, and the score was 4 – 2 *?`:
```sql
                SELECT "venue" FROM "west_german_champions_1973_1997" WHERE "runners_up"='tennis borussia berlin' AND "score"='4 – 2 *';
```
## Task
Generate a SQL query to answer the following question:
`What team was runner-up at Bergisch Gladbach in 1983?`

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

CREATE TABLE "west_german_champions_1973_1997" (
  "year" text,
  "champions" text,
  "score" text,
  "runners_up" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was runner-up at Bergisch Gladbach in 1983?`:
```sql
                SELECT "runners_up" FROM "west_german_champions_1973_1997" WHERE "venue"='bergisch gladbach' AND "year"='1983';
```
## Task
Generate a SQL query to answer the following question:
`What was the time of the swimmer in lane 7?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time of the swimmer in lane 7?`:
```sql
                SELECT "time" FROM "semifinal_2" WHERE "lane"=7;
```
## Task
Generate a SQL query to answer the following question:
`What was the rank of the swimmer with a time of 1:55.40?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of the swimmer with a time of 1:55.40?`:
```sql
                SELECT "rank" FROM "semifinal_2" WHERE "time"='1:55.40';
```
## Task
Generate a SQL query to answer the following question:
`What was the date for game 13?`

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

CREATE TABLE "schedule" (
  "game" text,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date for game 13?`:
```sql
                SELECT "date" FROM "schedule" WHERE "game"='13';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for the opponent St. Louis Cardinals?`

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

CREATE TABLE "schedule" (
  "game" text,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the opponent St. Louis Cardinals?`:
```sql
                SELECT "record" FROM "schedule" WHERE "opponent"='st. louis cardinals';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for Game 8?`

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

CREATE TABLE "schedule" (
  "game" text,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for Game 8?`:
```sql
                SELECT "record" FROM "schedule" WHERE "game"='8';
```