cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Name has a Round larger than 4, an Overall smaller than 338, a Pick smaller than 11, and a College of virginia tech?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a Round larger than 4, an Overall smaller than 338, a Pick smaller than 11, and a College of virginia tech?`:
```sql
                SELECT "name" FROM "washington_redskins_draft_history" WHERE "round">4 AND "overall"<338 AND "pick"<11 AND "college"='virginia tech';
```
## Task
Generate a SQL query to answer the following question:
`Who has the event of 36 arrow finals?`

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

CREATE TABLE "men_s_records" (
  "event" text,
  "score" real,
  "name" text,
  "nation" text,
  "games" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the event of 36 arrow finals?`:
```sql
                SELECT "name" FROM "men_s_records" WHERE "event"='36 arrow finals';
```
## Task
Generate a SQL query to answer the following question:
`What is the total score for the 36 arrow finals event?`

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

CREATE TABLE "men_s_records" (
  "event" text,
  "score" real,
  "name" text,
  "nation" text,
  "games" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total score for the 36 arrow finals event?`:
```sql
                SELECT COUNT("score") FROM "men_s_records" WHERE "event"='36 arrow finals';
```
## Task
Generate a SQL query to answer the following question:
`Who is moving with the nationality of Tri?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is moving with the nationality of Tri?`:
```sql
                SELECT "moving_to" FROM "out" WHERE "nat"='tri';
```
## Task
Generate a SQL query to answer the following question:
`What is the sSpec Number of the model with a 1ghz frequency?`

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

CREATE TABLE "180_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "l2_cache" text,
  "mult" text,
  "voltage" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sSpec Number of the model with a 1ghz frequency?`:
```sql
                SELECT "s_spec_number" FROM "180_nm" WHERE "frequency"='1ghz';
```
## Task
Generate a SQL query to answer the following question:
`What is the part number of the model that has a frequency of 933mhz?`

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

CREATE TABLE "180_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "l2_cache" text,
  "mult" text,
  "voltage" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the part number of the model that has a frequency of 933mhz?`:
```sql
                SELECT "part_number_s" FROM "180_nm" WHERE "frequency"='933mhz';
```
## Task
Generate a SQL query to answer the following question:
`What date was part number rk80533pz933256 released?`

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

CREATE TABLE "180_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "l2_cache" text,
  "mult" text,
  "voltage" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was part number rk80533pz933256 released?`:
```sql
                SELECT "release_date" FROM "180_nm" WHERE "part_number_s"='rk80533pz933256';
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency of the model with sSpec number sl5qj?`

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

CREATE TABLE "180_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "l2_cache" text,
  "mult" text,
  "voltage" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of the model with sSpec number sl5qj?`:
```sql
                SELECT "frequency" FROM "180_nm" WHERE "s_spec_number"='sl5qj';
```
## Task
Generate a SQL query to answer the following question:
`How many years does coach Jim Berryman have?`

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

CREATE TABLE "head_coaches" (
  "tenure" text,
  "coach" text,
  "years" text,
  "record" text,
  "pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many years does coach Jim Berryman have?`:
```sql
                SELECT "years" FROM "head_coaches" WHERE "coach"='jim berryman';
```
## Task
Generate a SQL query to answer the following question:
`Which Location has a Method of submission (rear naked choke), a Round of 1, and an Event of ufc 127?`

### 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 `Which Location has a Method of submission (rear naked choke), a Round of 1, and an Event of ufc 127?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "method"='submission (rear naked choke)' AND "round"=1 AND "event"='ufc 127';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Time of n/a?`

### 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 `Which Record has a Time of n/a?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Location of gold coast , australia, and a Method of submission (punches)?`

### 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 `Which Opponent has a Location of gold coast , australia, and a Method of submission (punches)?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "location"='gold coast , australia' AND "method"='submission (punches)';
```
## Task
Generate a SQL query to answer the following question:
`what is the location when the circuit is lowood circuit and the race is lowood trophy?`

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

CREATE TABLE "calendar" (
  "date" text,
  "race" text,
  "circuit" text,
  "location" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location when the circuit is lowood circuit and the race is lowood trophy?`:
```sql
                SELECT "location" FROM "calendar" WHERE "circuit"='lowood circuit' AND "race"='lowood trophy';
```
## Task
Generate a SQL query to answer the following question:
`what is the race on 23 october?`

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

CREATE TABLE "calendar" (
  "date" text,
  "race" text,
  "circuit" text,
  "location" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the race on 23 october?`:
```sql
                SELECT "race" FROM "calendar" WHERE "date"='23 october';
```
## Task
Generate a SQL query to answer the following question:
`what is the circuit when the winner is stan jones and the race is phillip island trophy race?`

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

CREATE TABLE "calendar" (
  "date" text,
  "race" text,
  "circuit" text,
  "location" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the circuit when the winner is stan jones and the race is phillip island trophy race?`:
```sql
                SELECT "circuit" FROM "calendar" WHERE "winner"='stan jones' AND "race"='phillip island trophy race';
```
## Task
Generate a SQL query to answer the following question:
`What is the displacement and configuration with a max speed of km/h (mph) and the car model Panamera 4s?`

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

CREATE TABLE "engines" (
  "car_model" text,
  "displacement_configuration" text,
  "max_motive_power_rpm" text,
  "max_torque_rpm" text,
  "max_speed" text,
  "emissions_co2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the displacement and configuration with a max speed of km/h (mph) and the car model Panamera 4s?`:
```sql
                SELECT "displacement_configuration" FROM "engines" WHERE "max_speed"='km/h (mph)' AND "car_model"='panamera 4s';
```
## Task
Generate a SQL query to answer the following question:
`What is the displacement & configuration with CO2 of 204 g/km emissions?`

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

CREATE TABLE "engines" (
  "car_model" text,
  "displacement_configuration" text,
  "max_motive_power_rpm" text,
  "max_torque_rpm" text,
  "max_speed" text,
  "emissions_co2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the displacement & configuration with CO2 of 204 g/km emissions?`:
```sql
                SELECT "displacement_configuration" FROM "engines" WHERE "emissions_co2"='204 g/km';
```
## Task
Generate a SQL query to answer the following question:
`What displacement & configuration does the car model Panamera 4s have?`

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

CREATE TABLE "engines" (
  "car_model" text,
  "displacement_configuration" text,
  "max_motive_power_rpm" text,
  "max_torque_rpm" text,
  "max_speed" text,
  "emissions_co2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What displacement & configuration does the car model Panamera 4s have?`:
```sql
                SELECT "displacement_configuration" FROM "engines" WHERE "car_model"='panamera 4s';
```
## Task
Generate a SQL query to answer the following question:
`What is the emissions CO2 with a max speed of km/h (mph) of the car model Panamera 4s?`

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

CREATE TABLE "engines" (
  "car_model" text,
  "displacement_configuration" text,
  "max_motive_power_rpm" text,
  "max_torque_rpm" text,
  "max_speed" text,
  "emissions_co2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the emissions CO2 with a max speed of km/h (mph) of the car model Panamera 4s?`:
```sql
                SELECT "emissions_co2" FROM "engines" WHERE "max_speed"='km/h (mph)' AND "car_model"='panamera 4s';
```
## Task
Generate a SQL query to answer the following question:
`How many tickets were available at Halle Tony Garnier on June 15, 2009?`

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

CREATE TABLE "tour_dates" (
  "date" text,
  "city" text,
  "country" text,
  "venue" text,
  "tickets_available_since" text,
  "attendance" real,
  "comment" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many tickets were available at Halle Tony Garnier on June 15, 2009?`:
```sql
                SELECT "tickets_available_since" FROM "tour_dates" WHERE "venue"='halle tony garnier' AND "date"='june 15, 2009';
```
## Task
Generate a SQL query to answer the following question:
`What city had tickets available since March 28, 2008 and went on sale on September 4, 2009?`

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

CREATE TABLE "tour_dates" (
  "date" text,
  "city" text,
  "country" text,
  "venue" text,
  "tickets_available_since" text,
  "attendance" real,
  "comment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city had tickets available since March 28, 2008 and went on sale on September 4, 2009?`:
```sql
                SELECT "city" FROM "tour_dates" WHERE "tickets_available_since"='march 28, 2008' AND "date"='september 4, 2009';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE PICK FOR JOE DAY, ROUND LARGER THAN 1, AND OVERALL SMALLER THAN 150?`

### 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 PICK FOR JOE DAY, ROUND LARGER THAN 1, AND OVERALL SMALLER THAN 150?`:
```sql
                SELECT MIN("pick") FROM "washington_redskins_draft_history" WHERE "round">1 AND "name"='joe day' AND "overall"<150;
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SUM OF PICK WITH AN OVERALL LARGER THAN 250, AND FOR FLORIDA COLLEGE?`

### 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 SUM OF PICK WITH AN OVERALL LARGER THAN 250, AND FOR FLORIDA COLLEGE?`:
```sql
                SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "overall">250 AND "college"='florida';
```
## Task
Generate a SQL query to answer the following question:
`What is the loan club with bbc sport as the start source and ended in 3 February?`

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

CREATE TABLE "loans_out" (
  "name" text,
  "country" text,
  "loan_club" text,
  "started" text,
  "ended" text,
  "start_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the loan club with bbc sport as the start source and ended in 3 February?`:
```sql
                SELECT "loan_club" FROM "loans_out" WHERE "start_source"='bbc sport' AND "ended"='3 february';
```
## Task
Generate a SQL query to answer the following question:
`When did the enews start source start?`

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

CREATE TABLE "loans_out" (
  "name" text,
  "country" text,
  "loan_club" text,
  "started" text,
  "ended" text,
  "start_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the enews start source start?`:
```sql
                SELECT "started" FROM "loans_out" WHERE "start_source"='enews';
```
## Task
Generate a SQL query to answer the following question:
`What is the start source of the irl country, which ended on 13 April?`

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

CREATE TABLE "loans_out" (
  "name" text,
  "country" text,
  "loan_club" text,
  "started" text,
  "ended" text,
  "start_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the start source of the irl country, which ended on 13 April?`:
```sql
                SELECT "start_source" FROM "loans_out" WHERE "country"='irl' AND "ended"='13 april';
```
## Task
Generate a SQL query to answer the following question:
`What is the country named feeney with a bbc sport start source?`

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

CREATE TABLE "loans_out" (
  "name" text,
  "country" text,
  "loan_club" text,
  "started" text,
  "ended" text,
  "start_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country named feeney with a bbc sport start source?`:
```sql
                SELECT "country" FROM "loans_out" WHERE "start_source"='bbc sport' AND "name"='feeney';
```
## Task
Generate a SQL query to answer the following question:
`What is the loan club named dennehy?`

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

CREATE TABLE "loans_out" (
  "name" text,
  "country" text,
  "loan_club" text,
  "started" text,
  "ended" text,
  "start_source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the loan club named dennehy?`:
```sql
                SELECT "loan_club" FROM "loans_out" WHERE "name"='dennehy';
```
## Task
Generate a SQL query to answer the following question:
`What's the most races with less than 10 podiums and 1st position?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the most races with less than 10 podiums and 1st position?`:
```sql
                SELECT MAX("races") FROM "career_summary" WHERE "position"='1st' AND "podiums"<10;
```
## Task
Generate a SQL query to answer the following question:
`How many runs did mahela jayawardene and thilan samaraweera have?`

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

CREATE TABLE "test_record_partnerships_by_wicket" (
  "wicket" text,
  "runs" real,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many runs did mahela jayawardene and thilan samaraweera have?`:
```sql
                SELECT SUM("runs") FROM "test_record_partnerships_by_wicket" WHERE "batting_partners"='mahela jayawardene and thilan samaraweera';
```
## Task
Generate a SQL query to answer the following question:
`What venue did mahela jayawardene and thilan samaraweera play at?`

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

CREATE TABLE "test_record_partnerships_by_wicket" (
  "wicket" text,
  "runs" real,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue did mahela jayawardene and thilan samaraweera play at?`:
```sql
                SELECT "venue" FROM "test_record_partnerships_by_wicket" WHERE "batting_partners"='mahela jayawardene and thilan samaraweera';
```
## Task
Generate a SQL query to answer the following question:
`Who were the batting partners that played for India in 1997?`

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

CREATE TABLE "test_record_partnerships_by_wicket" (
  "wicket" text,
  "runs" real,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the batting partners that played for India in 1997?`:
```sql
                SELECT "batting_partners" FROM "test_record_partnerships_by_wicket" WHERE "fielding_team"='india' AND "season"='1997';
```
## Task
Generate a SQL query to answer the following question:
`What is the defending forces when Al-Murassas shows for name?`

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

CREATE TABLE "other_arab_communities_in_baysan_distric" (
  "name" text,
  "date" text,
  "defending_forces" text,
  "brigade" text,
  "population" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the defending forces when Al-Murassas shows for name?`:
```sql
                SELECT "defending_forces" FROM "other_arab_communities_in_baysan_distric" WHERE "name"='al-murassas';
```
## Task
Generate a SQL query to answer the following question:
`What is the brigade Tall Al-Shawk shows for the name?`

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

CREATE TABLE "other_arab_communities_in_baysan_distric" (
  "name" text,
  "date" text,
  "defending_forces" text,
  "brigade" text,
  "population" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the brigade Tall Al-Shawk shows for the name?`:
```sql
                SELECT "brigade" FROM "other_arab_communities_in_baysan_distric" WHERE "name"='tall al-shawk';
```
## Task
Generate a SQL query to answer the following question:
`What is the brigade when Al-Bira is the name?`

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

CREATE TABLE "other_arab_communities_in_baysan_distric" (
  "name" text,
  "date" text,
  "defending_forces" text,
  "brigade" text,
  "population" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the brigade when Al-Bira is the name?`:
```sql
                SELECT "brigade" FROM "other_arab_communities_in_baysan_distric" WHERE "name"='al-bira';
```
## Task
Generate a SQL query to answer the following question:
`What is the brigade when Al-Hamra ('arab al-hamra) shows for name?`

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

CREATE TABLE "other_arab_communities_in_baysan_distric" (
  "name" text,
  "date" text,
  "defending_forces" text,
  "brigade" text,
  "population" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the brigade when Al-Hamra ('arab al-hamra) shows for name?`:
```sql
                SELECT "brigade" FROM "other_arab_communities_in_baysan_distric" WHERE "name"='al-hamra (''arab al-hamra)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Defending forces when the population was 120?`

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

CREATE TABLE "other_arab_communities_in_baysan_distric" (
  "name" text,
  "date" text,
  "defending_forces" text,
  "brigade" text,
  "population" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Defending forces when the population was 120?`:
```sql
                SELECT "defending_forces" FROM "other_arab_communities_in_baysan_distric" WHERE "population"='120';
```
## Task
Generate a SQL query to answer the following question:
`What was the rank of the park that had a value of 5,040,000 in 2010?`

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

CREATE TABLE "worldwide" (
  "rank" real,
  "location" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" real,
  "2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of the park that had a value of 5,040,000 in 2010?`:
```sql
                SELECT "rank" FROM "worldwide" WHERE "2010"='5,040,000';
```
## Task
Generate a SQL query to answer the following question:
`What was the overall pick number of the player selected before round 3?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "overall_pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the overall pick number of the player selected before round 3?`:
```sql
                SELECT COUNT("overall_pick") FROM "draft_picks" WHERE "round"<3;
```
## Task
Generate a SQL query to answer the following question:
`Which College/Junior/Club Team (League) did the player julien cayer who was selected before round 3 play for?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "overall_pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which College/Junior/Club Team (League) did the player julien cayer who was selected before round 3 play for?`:
```sql
                SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round">3 AND "player"='julien cayer';
```
## Task
Generate a SQL query to answer the following question:
`what is the least bronze when the rank is 3 and silver is less than 2?`

### 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 least bronze when the rank is 3 and silver is less than 2?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "rank"='3' AND "silver"<2;
```
## Task
Generate a SQL query to answer the following question:
`what is the total when bronze is 0 and the nation is hungary?`

### 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 total when bronze is 0 and the nation is hungary?`:
```sql
                SELECT MAX("total") FROM "medal_table" WHERE "bronze"=0 AND "nation"='hungary';
```
## Task
Generate a SQL query to answer the following question:
`what is the total when the rank is 7 and gold is more than 0?`

### 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 total when the rank is 7 and gold is more than 0?`:
```sql
                SELECT AVG("total") FROM "medal_table" WHERE "rank"='7' AND "gold">0;
```
## Task
Generate a SQL query to answer the following question:
`what is the highest gold when the nation is total and the total is less than 24?`

### 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 highest gold when the nation is total and the total is less than 24?`:
```sql
                SELECT MAX("gold") FROM "medal_table" WHERE "nation"='total' AND "total"<24;
```
## Task
Generate a SQL query to answer the following question:
`Looking only at matches occurring after Game 51, who was the opponent for the game that ended with a score of 99-129?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Looking only at matches occurring after Game 51, who was the opponent for the game that ended with a score of 99-129?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "game">51 AND "score"='99-129';
```
## Task
Generate a SQL query to answer the following question:
`For the game against the Washington Bullets, what was the final score?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the game against the Washington Bullets, what was the final score?`:
```sql
                SELECT "score" FROM "game_log" WHERE "opponent"='washington bullets';
```
## Task
Generate a SQL query to answer the following question:
`For the game where the opponent is listed as @ Indiana Pacers, what was the end record?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the game where the opponent is listed as @ Indiana Pacers, what was the end record?`:
```sql
                SELECT "record" FROM "game_log" WHERE "opponent"='@ indiana pacers';
```
## Task
Generate a SQL query to answer the following question:
`Which game number was played at Chicago Stadium?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game number was played at Chicago Stadium?`:
```sql
                SELECT "game" FROM "game_log" WHERE "location"='chicago stadium';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance of the match with motagua as the home team?`

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

CREATE TABLE "round_8" (
  "date" text,
  "home" text,
  "score" text,
  "away" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance of the match with motagua as the home team?`:
```sql
                SELECT AVG("attendance") FROM "round_8" WHERE "home"='motagua';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game where real espana was the home team?`

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

CREATE TABLE "round_8" (
  "date" text,
  "home" text,
  "score" text,
  "away" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game where real espana was the home team?`:
```sql
                SELECT "score" FROM "round_8" WHERE "home"='real espana';
```
## Task
Generate a SQL query to answer the following question:
`What team was the away team for the game with 916 in attendance?`

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

CREATE TABLE "round_8" (
  "date" text,
  "home" text,
  "score" text,
  "away" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the away team for the game with 916 in attendance?`:
```sql
                SELECT "away" FROM "round_8" WHERE "attendance"=916;
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game wehre the deportes savio were the home team?`

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

CREATE TABLE "round_8" (
  "date" text,
  "home" text,
  "score" text,
  "away" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game wehre the deportes savio were the home team?`:
```sql
                SELECT "score" FROM "round_8" WHERE "home"='deportes savio';
```
## Task
Generate a SQL query to answer the following question:
`In which championship did the winner have a score of −9 (66-69-73-71=279)?`

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

CREATE TABLE "wins_7" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which championship did the winner have a score of −9 (66-69-73-71=279)?`:
```sql
                SELECT "championship" FROM "wins_7" WHERE "winning_score"='−9 (66-69-73-71=279)';
```
## Task
Generate a SQL query to answer the following question:
`During the championship where the winning score was −9 (66-69-73-71=279)?, who was the runner-up?`

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

CREATE TABLE "wins_7" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the championship where the winning score was −9 (66-69-73-71=279)?, who was the runner-up?`:
```sql
                SELECT "runner_s_up" FROM "wins_7" WHERE "winning_score"='−9 (66-69-73-71=279)';
```
## Task
Generate a SQL query to answer the following question:
`What was the winning score in the year 2002?`

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

CREATE TABLE "wins_7" (
  "year" real,
  "championship" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score in the year 2002?`:
```sql
                SELECT "winning_score" FROM "wins_7" WHERE "year"=2002;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest goals of CD Alcoyano with more than 25 points?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest goals of CD Alcoyano with more than 25 points?`:
```sql
                SELECT MIN("goals_against") FROM "group_ii" WHERE "club"='cd alcoyano' AND "points">25;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of wins that had fewer than 7 draws and more than 30 played?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of wins that had fewer than 7 draws and more than 30 played?`:
```sql
                SELECT MIN("wins") FROM "group_ii" WHERE "draws"<7 AND "played">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest points that has more than 29 goals?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest points that has more than 29 goals?`:
```sql
                SELECT MIN("points") FROM "group_ii" WHERE "goal_difference">29;
```
## Task
Generate a SQL query to answer the following question:
`What date have highest 0-4-4 forney locomotive with number larger than 20 and works number larger than 23754?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "builder" text,
  "type" text,
  "date" real,
  "works_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date have highest 0-4-4 forney locomotive with number larger than 20 and works number larger than 23754?`:
```sql
                SELECT MAX("date") FROM "locomotives" WHERE "type"='0-4-4 forney locomotive' AND "number">20 AND "works_number">23754;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of number with type 0-4-4 forney locomotive, number smaller than 20 and works number of 1251?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "builder" text,
  "type" text,
  "date" real,
  "works_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of number with type 0-4-4 forney locomotive, number smaller than 20 and works number of 1251?`:
```sql
                SELECT COUNT("date") FROM "locomotives" WHERE "type"='0-4-4 forney locomotive' AND "number"<20 AND "works_number"=1251;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest attendance for the game that had a time of 3:31 and was before game 7?`

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

CREATE TABLE "tampa_bay_rays_vs_boston_red_sox" (
  "game" real,
  "date" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest attendance for the game that had a time of 3:31 and was before game 7?`:
```sql
                SELECT MIN("attendance") FROM "tampa_bay_rays_vs_boston_red_sox" WHERE "time"='3:31' AND "game"<7;
```
## Task
Generate a SQL query to answer the following question:
`What was the sum of attendance for games with a time of 3:23?`

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

CREATE TABLE "tampa_bay_rays_vs_boston_red_sox" (
  "game" real,
  "date" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the sum of attendance for games with a time of 3:23?`:
```sql
                SELECT SUM("attendance") FROM "tampa_bay_rays_vs_boston_red_sox" WHERE "time"='3:23';
```
## Task
Generate a SQL query to answer the following question:
`WHat is the lowest amount of bronze medals for teams with 9 silvers and less than 27 points?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHat is the lowest amount of bronze medals for teams with 9 silvers and less than 27 points?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "silver"=9 AND "total"<27;
```
## Task
Generate a SQL query to answer the following question:
`What is the To par of the New Zealand Player?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To par of the New Zealand Player?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "country"='new zealand';
```
## Task
Generate a SQL query to answer the following question:
`What Player had a Score of 70-71=141?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Player had a Score of 70-71=141?`:
```sql
                SELECT "player" FROM "second_round" WHERE "score"='70-71=141';
```
## Task
Generate a SQL query to answer the following question:
`What is Ernie Els' Score?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Ernie Els' Score?`:
```sql
                SELECT "score" FROM "second_round" WHERE "player"='ernie els';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance when Bournemouth was the away team?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance when Bournemouth was the away team?`:
```sql
                SELECT "attendance" FROM "second_round_proper" WHERE "away_team"='bournemouth';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team when Lincoln City was the home team?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team when Lincoln City was the home team?`:
```sql
                SELECT "away_team" FROM "second_round_proper" WHERE "home_team"='lincoln city';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Walsall was the away team?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Walsall was the away team?`:
```sql
                SELECT "score" FROM "second_round_proper" WHERE "away_team"='walsall';
```
## Task
Generate a SQL query to answer the following question:
`Which wheels were built 1920?`

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

CREATE TABLE "locomotives" (
  "builder" text,
  "works_no" real,
  "built" real,
  "wheels" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which wheels were built 1920?`:
```sql
                SELECT "wheels" FROM "locomotives" WHERE "built"=1920;
```
## Task
Generate a SQL query to answer the following question:
`Which builder has a Built smaller than 1880?`

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

CREATE TABLE "locomotives" (
  "builder" text,
  "works_no" real,
  "built" real,
  "wheels" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which builder has a Built smaller than 1880?`:
```sql
                SELECT "builder" FROM "locomotives" WHERE "built"<1880;
```
## Task
Generate a SQL query to answer the following question:
`What is Place, when Player is "Mike Souchak"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Player is "Mike Souchak"?`:
```sql
                SELECT "place" FROM "second_round" WHERE "player"='mike souchak';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Place is "T9", and when Player is "Jay Hebert"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Place is "T9", and when Player is "Jay Hebert"?`:
```sql
                SELECT "country" FROM "second_round" WHERE "place"='t9' AND "player"='jay hebert';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when Place is "T9", and when Score is "73-70=143"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Place is "T9", and when Score is "73-70=143"?`:
```sql
                SELECT "player" FROM "second_round" WHERE "place"='t9' AND "score"='73-70=143';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Player is "Dow Finsterwald"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Player is "Dow Finsterwald"?`:
```sql
                SELECT "country" FROM "second_round" WHERE "player"='dow finsterwald';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Country is "United States", when Place is "T9", and when Player is "Jay Hebert"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Country is "United States", when Place is "T9", and when Player is "Jay Hebert"?`:
```sql
                SELECT "score" FROM "second_round" WHERE "country"='united states' AND "place"='t9' AND "player"='jay hebert';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when To Par is "+1", and when Player is "Mike Souchak"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when To Par is "+1", and when Player is "Mike Souchak"?`:
```sql
                SELECT "score" FROM "second_round" WHERE "to_par"='+1' AND "player"='mike souchak';
```