cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Pick has a College of ohio state?`

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

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

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has a Position of lb, and a Pick smaller than 25?`:
```sql
                SELECT COUNT("round") FROM "washington_redskins_draft_history" WHERE "position"='lb' AND "pick"<25;
```
## Task
Generate a SQL query to answer the following question:
`Which week has a result L 56-3?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week has a result L 56-3?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "result"='l 56-3';
```
## Task
Generate a SQL query to answer the following question:
`Where is the player Raymond Floyd?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the player Raymond Floyd?`:
```sql
                SELECT "place" FROM "final_leaderboard" WHERE "player"='raymond floyd';
```
## Task
Generate a SQL query to answer the following question:
`Which country has a score of 71-72-73-69=285?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a score of 71-72-73-69=285?`:
```sql
                SELECT "country" FROM "final_leaderboard" WHERE "score"='71-72-73-69=285';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Money ( $ ), when Score is "69-71-70-74=284"?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Money ( $ ), when Score is "69-71-70-74=284"?`:
```sql
                SELECT MAX("money") FROM "final_round" WHERE "score"='69-71-70-74=284';
```
## Task
Generate a SQL query to answer the following question:
`What is Place, when Score is "71-71-69-71=282"?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Score is "71-71-69-71=282"?`:
```sql
                SELECT "place" FROM "final_round" WHERE "score"='71-71-69-71=282';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Player is "Dow Finsterwald"?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Player is "Dow Finsterwald"?`:
```sql
                SELECT "score" FROM "final_round" WHERE "player"='dow finsterwald';
```
## Task
Generate a SQL query to answer the following question:
`Which venue did the runner have a note of 1:23:07?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue did the runner have a note of 1:23:07?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "notes"='1:23:07';
```
## Task
Generate a SQL query to answer the following question:
`What is the note result when the runner finished 19th in 2008?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the note result when the runner finished 19th in 2008?`:
```sql
                SELECT "notes" FROM "achievements" WHERE "year"=2008 AND "position"='19th';
```
## Task
Generate a SQL query to answer the following question:
`What are the points 1 for the team with position less than 13 and goal difference of +16?`

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

CREATE TABLE "division_one_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the points 1 for the team with position less than 13 and goal difference of +16?`:
```sql
                SELECT "points_1" FROM "division_one_final_table" WHERE "position"<13 AND "goal_difference"='+16';
```
## Task
Generate a SQL query to answer the following question:
`What is the goal difference where the goals against is less than 54, goals for is greater than 51 and points 1 is 63?`

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

CREATE TABLE "division_one_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the goal difference where the goals against is less than 54, goals for is greater than 51 and points 1 is 63?`:
```sql
                SELECT "goal_difference" FROM "division_one_final_table" WHERE "goals_against"<54 AND "goals_for">51 AND "points_1"='63';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of games lost when goal difference is +13 and draws are more than 12?`

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

CREATE TABLE "division_one_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of games lost when goal difference is +13 and draws are more than 12?`:
```sql
                SELECT COUNT("lost") FROM "division_one_final_table" WHERE "goal_difference"='+13' AND "drawn">12;
```
## Task
Generate a SQL query to answer the following question:
`What was the finishing position for the car that started in grid 6?`

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

CREATE TABLE "classification" (
  "fin_pos" text,
  "car_no" text,
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finishing position for the car that started in grid 6?`:
```sql
                SELECT "fin_pos" FROM "classification" WHERE "grid"='6';
```
## Task
Generate a SQL query to answer the following question:
`What team started in grid 11?`

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

CREATE TABLE "classification" (
  "fin_pos" text,
  "car_no" text,
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team started in grid 11?`:
```sql
                SELECT "team" FROM "classification" WHERE "grid"='11';
```
## Task
Generate a SQL query to answer the following question:
`What was the time/retired of car number 6.`

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

CREATE TABLE "classification" (
  "fin_pos" text,
  "car_no" text,
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time/retired of car number 6.`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "car_no"='6';
```
## Task
Generate a SQL query to answer the following question:
`What was the grid number of the team and driver with 14 points?`

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

CREATE TABLE "classification" (
  "fin_pos" text,
  "car_no" text,
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the grid number of the team and driver with 14 points?`:
```sql
                SELECT "grid" FROM "classification" WHERE "points"='14';
```
## Task
Generate a SQL query to answer the following question:
`Who did Thomaz Bellucci play against when he became runner-up on a clay surface?`

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

CREATE TABLE "singles_5_3_2" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did Thomaz Bellucci play against when he became runner-up on a clay surface?`:
```sql
                SELECT "opponent" FROM "singles_5_3_2" WHERE "outcome"='runner-up' AND "surface"='clay';
```
## Task
Generate a SQL query to answer the following question:
`What tournament did Thomaz Bellucci become runner-up on a clay surface?`

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

CREATE TABLE "singles_5_3_2" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament did Thomaz Bellucci become runner-up on a clay surface?`:
```sql
                SELECT "tournament" FROM "singles_5_3_2" WHERE "outcome"='runner-up' AND "surface"='clay';
```
## Task
Generate a SQL query to answer the following question:
`What type of surface did Thomaz Bellucci play against tommy robredo?`

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

CREATE TABLE "singles_5_3_2" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of surface did Thomaz Bellucci play against tommy robredo?`:
```sql
                SELECT "surface" FROM "singles_5_3_2" WHERE "opponent"='tommy robredo';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the match against Ryan Schultz?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the match against Ryan Schultz?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='ryan schultz';
```
## Task
Generate a SQL query to answer the following question:
`What round was the game against Cedric Marks?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was the game against Cedric Marks?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='cedric marks';
```
## Task
Generate a SQL query to answer the following question:
`What was the record of the match against Chris Mounce?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record of the match against Chris Mounce?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='chris mounce';
```
## Task
Generate a SQL query to answer the following question:
`What is the method in the round 2 win over Nick Gilardi?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the method in the round 2 win over Nick Gilardi?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"='2' AND "res"='win' AND "opponent"='nick gilardi';
```
## Task
Generate a SQL query to answer the following question:
`Who is number 7 when Sophia is number 3 and Abigail is number 10?`

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

CREATE TABLE "female_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is number 7 when Sophia is number 3 and Abigail is number 10?`:
```sql
                SELECT "no_7" FROM "female_names" WHERE "no_3"='sophia' AND "no_10"='abigail';
```
## Task
Generate a SQL query to answer the following question:
`Which region (year) has Abigail at number 7, Sophia at number 1 and Aaliyah at number 5?`

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

CREATE TABLE "female_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which region (year) has Abigail at number 7, Sophia at number 1 and Aaliyah at number 5?`:
```sql
                SELECT "region_year" FROM "female_names" WHERE "no_7"='abigail' AND "no_1"='sophia' AND "no_5"='aaliyah';
```
## Task
Generate a SQL query to answer the following question:
`Who is number 4 when Harper is number 10 and Abigail is number 5?`

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

CREATE TABLE "female_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is number 4 when Harper is number 10 and Abigail is number 5?`:
```sql
                SELECT "no_4" FROM "female_names" WHERE "no_10"='harper' AND "no_5"='abigail';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when To Par is "+1", and when Score is "75-68=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 To Par is "+1", and when Score is "75-68=143"?`:
```sql
                SELECT "player" FROM "second_round" WHERE "to_par"='+1' AND "score"='75-68=143';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Player is "Andy North"?`

### 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 Player is "Andy North"?`:
```sql
                SELECT "score" FROM "second_round" WHERE "player"='andy north';
```
## Task
Generate a SQL query to answer the following question:
`What is To Par, when Score is "69-72=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 is To Par, when Score is "69-72=141"`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "score"='69-72=141';
```
## Task
Generate a SQL query to answer the following question:
`What is Place, when Score is "73-71=144", and when Player is "Scott Simpson"?`

### 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 Score is "73-71=144", and when Player is "Scott Simpson"?`:
```sql
                SELECT "place" FROM "second_round" WHERE "score"='73-71=144' AND "player"='scott simpson';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Country is "United States", and when Player is "John Mahaffey"?`

### 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", and when Player is "John Mahaffey"?`:
```sql
                SELECT "score" FROM "second_round" WHERE "country"='united states' AND "player"='john mahaffey';
```
## Task
Generate a SQL query to answer the following question:
`What is To Par, when Place is "T1", and when Player is "Joey Rassett"?`

### 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 To Par, when Place is "T1", and when Player is "Joey Rassett"?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "place"='t1' AND "player"='joey rassett';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the away team was brighton & hove albion?`

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

CREATE TABLE "fourth_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 was the score when the away team was brighton & hove albion?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "away_team"='brighton & hove albion';
```
## Task
Generate a SQL query to answer the following question:
`When was the away team burnley?`

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

CREATE TABLE "fourth_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 away team burnley?`:
```sql
                SELECT "date" FROM "fourth_round_proper" WHERE "away_team"='burnley';
```
## Task
Generate a SQL query to answer the following question:
`Which home team had an away team of Reading?`

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

CREATE TABLE "fourth_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 `Which home team had an away team of Reading?`:
```sql
                SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='reading';
```
## Task
Generate a SQL query to answer the following question:
`What year was the accolade for Scottish albums of the decade?`

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

CREATE TABLE "accolades" (
  "publication" text,
  "country" text,
  "nominated_work" text,
  "accolade" text,
  "year" real,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the accolade for Scottish albums of the decade?`:
```sql
                SELECT "year" FROM "accolades" WHERE "accolade"='scottish albums of the decade';
```
## Task
Generate a SQL query to answer the following question:
`What country had the publication, Drowned in Sound?`

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

CREATE TABLE "accolades" (
  "publication" text,
  "country" text,
  "nominated_work" text,
  "accolade" text,
  "year" real,
  "rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country had the publication, Drowned in Sound?`:
```sql
                SELECT "country" FROM "accolades" WHERE "publication"='drowned in sound';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the home stadium of Brisbane Lions?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the home stadium of Brisbane Lions?`:
```sql
                SELECT "ground" FROM "round_2" WHERE "home_team"='brisbane lions';
```
## Task
Generate a SQL query to answer the following question:
`How much is the crowd attending at colonial stadium where Hawthorn plays?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much is the crowd attending at colonial stadium where Hawthorn plays?`:
```sql
                SELECT "crowd" FROM "round_2" WHERE "ground"='colonial stadium' AND "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended as the score ended 13.10 (88)?`

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

CREATE TABLE "round_2" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended as the score ended 13.10 (88)?`:
```sql
                SELECT "crowd" FROM "round_2" WHERE "home_team_score"='13.10 (88)';
```
## Task
Generate a SQL query to answer the following question:
`what is the least 60-64 when 30-34 is 1,403 and 20-24 is less than 378?`

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

CREATE TABLE "4_tatars" (
  "c_w_15" real,
  "oblast_age" text,
  "15_to_17" real,
  "18_to_19" real,
  "20_to_24" real,
  "25_to_29" real,
  "30_to_34" real,
  "35_to_39" real,
  "40_to_44" real,
  "45_to_49" real,
  "50_to_54" real,
  "55_to_59" real,
  "60_to_64" real,
  "65_to_69" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least 60-64 when 30-34 is 1,403 and 20-24 is less than 378?`:
```sql
                SELECT MIN("60_to_64") FROM "4_tatars" WHERE "30_to_34"='1,403' AND "20_to_24"<378;
```
## Task
Generate a SQL query to answer the following question:
`what is the 2nd leg when team #2 is žalgiris kaunas?`

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

CREATE TABLE "top_16" (
  "team_num1" text,
  "agg" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text,
  "3rd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the 2nd leg when team #2 is žalgiris kaunas?`:
```sql
                SELECT "2nd_leg" FROM "top_16" WHERE "team_num2"='žalgiris kaunas';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in week 6?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in week 6?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"=6;
```
## Task
Generate a SQL query to answer the following question:
`Which week had an attendance of 55,158?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week had an attendance of 55,158?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "attendance"='55,158';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest game on February 10?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest game on February 10?`:
```sql
                SELECT MIN("game") FROM "game_log" WHERE "date"='february 10';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Round larger than 5, and a Position of (g)?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Round larger than 5, and a Position of (g)?`:
```sql
                SELECT "player" FROM "draft_picks" WHERE "round">5 AND "position"='(g)';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has a Nationality of united states, and a Player of jimmy hayes?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has a Nationality of united states, and a Player of jimmy hayes?`:
```sql
                SELECT MAX("round") FROM "draft_picks" WHERE "nationality"='united states' AND "player"='jimmy hayes';
```
## Task
Generate a SQL query to answer the following question:
`Which Pick has a Nationality of canada, and a Round of 5?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pick has a Nationality of canada, and a Round of 5?`:
```sql
                SELECT "pick" FROM "draft_picks" WHERE "nationality"='canada' AND "round"=5;
```
## Task
Generate a SQL query to answer the following question:
`Which Club Team has a Position of (d), a Nationality of canada, and a Player of andrew macwilliam?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" text,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Club Team has a Position of (d), a Nationality of canada, and a Player of andrew macwilliam?`:
```sql
                SELECT "club_team" FROM "draft_picks" WHERE "position"='(d)' AND "nationality"='canada' AND "player"='andrew macwilliam';
```
## Task
Generate a SQL query to answer the following question:
`How much money did jodie mudd get?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much money did jodie mudd get?`:
```sql
                SELECT "money" FROM "final_leaderboard" WHERE "player"='jodie mudd';
```
## Task
Generate a SQL query to answer the following question:
`What score did Australia get?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What score did Australia get?`:
```sql
                SELECT "score" FROM "final_leaderboard" WHERE "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What is the sort value that had deaths of 71?`

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

CREATE TABLE "puerperal_fever_mortality_rates_for_birt" (
  "month" text,
  "births" text,
  "deaths" text,
  "rate_pct" text,
  "sort_restore" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sort value that had deaths of 71?`:
```sql
                SELECT "sort_restore" FROM "puerperal_fever_mortality_rates_for_birt" WHERE "deaths"='71';
```
## Task
Generate a SQL query to answer the following question:
`Which month had a sort value under 39 and 2 deaths?`

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

CREATE TABLE "puerperal_fever_mortality_rates_for_birt" (
  "month" text,
  "births" text,
  "deaths" text,
  "rate_pct" text,
  "sort_restore" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which month had a sort value under 39 and 2 deaths?`:
```sql
                SELECT "month" FROM "puerperal_fever_mortality_rates_for_birt" WHERE "sort_restore"<39 AND "deaths"='2';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of sort values associated with 389 births?`

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

CREATE TABLE "puerperal_fever_mortality_rates_for_birt" (
  "month" text,
  "births" text,
  "deaths" text,
  "rate_pct" text,
  "sort_restore" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of sort values associated with 389 births?`:
```sql
                SELECT COUNT("sort_restore") FROM "puerperal_fever_mortality_rates_for_birt" WHERE "births"='389';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Manufacturer for the Rider Colin Edwards?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Manufacturer for the Rider Colin Edwards?`:
```sql
                SELECT "manufacturer" FROM "moto_gp_classification" WHERE "rider"='colin edwards';
```
## Task
Generate a SQL query to answer the following question:
`With a Grid less than 15, and a Time of +52.833, what is the highest number of Laps?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a Grid less than 15, and a Time of +52.833, what is the highest number of Laps?`:
```sql
                SELECT MAX("laps") FROM "moto_gp_classification" WHERE "grid"<15 AND "time"='+52.833';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Grid for the Rider Toni Elias with Laps more than 30?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Grid for the Rider Toni Elias with Laps more than 30?`:
```sql
                SELECT AVG("grid") FROM "moto_gp_classification" WHERE "rider"='toni elias' AND "laps">30;
```
## Task
Generate a SQL query to answer the following question:
`With a Time of +1:37.055, which has the lowest Grid?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a Time of +1:37.055, which has the lowest Grid?`:
```sql
                SELECT MIN("grid") FROM "moto_gp_classification" WHERE "time"='+1:37.055';
```
## Task
Generate a SQL query to answer the following question:
`Which Silver is the highest one that has a Rank of 19, and a Gold larger than 0?`

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

CREATE TABLE "invitational_sports" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Silver is the highest one that has a Rank of 19, and a Gold larger than 0?`:
```sql
                SELECT MAX("silver") FROM "invitational_sports" WHERE "rank"='19' AND "gold">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze is the highest one that has a Rank of 26, and a Total larger than 1?`

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

CREATE TABLE "invitational_sports" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bronze is the highest one that has a Rank of 26, and a Total larger than 1?`:
```sql
                SELECT MAX("bronze") FROM "invitational_sports" WHERE "rank"='26' AND "total">1;
```
## Task
Generate a SQL query to answer the following question:
`Which Gold has a Nation of india, and a Bronze smaller than 0?`

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

CREATE TABLE "invitational_sports" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Gold has a Nation of india, and a Bronze smaller than 0?`:
```sql
                SELECT AVG("gold") FROM "invitational_sports" WHERE "nation"='india' AND "bronze"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Nation has a Gold larger than 0, and a Bronze smaller than 2, and a Total larger than 3, and a Silver larger than 1?`

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

CREATE TABLE "invitational_sports" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nation has a Gold larger than 0, and a Bronze smaller than 2, and a Total larger than 3, and a Silver larger than 1?`:
```sql
                SELECT "nation" FROM "invitational_sports" WHERE "gold">0 AND "bronze"<2 AND "total">3 AND "silver">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the round number when the record is 15–7–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 is the round number when the record is 15–7–1?`:
```sql
                SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "record"='15–7–1';
```
## Task
Generate a SQL query to answer the following question:
`What is the method when the time is 5:00, and the record is 14–6–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 is the method when the time is 5:00, and the record is 14–6–1?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "record"='14–6–1';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team of the game with a price decision and the new jersey devils as the visitor team?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team of the game with a price decision and the new jersey devils as the visitor team?`:
```sql
                SELECT "home" FROM "game_log" WHERE "decision"='price' AND "visitor"='new jersey devils';
```
## Task
Generate a SQL query to answer the following question:
`What was the record on November 7, when the opponent score was less than 99?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "nets_points" real,
  "opponent_score" real,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on November 7, when the opponent score was less than 99?`:
```sql
                SELECT "record" FROM "schedule" WHERE "opponent_score"<99 AND "date"='november 7';
```
## Task
Generate a SQL query to answer the following question:
`When the opponent scored 96 points after game 61, what was the streak?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "nets_points" real,
  "opponent_score" real,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the opponent scored 96 points after game 61, what was the streak?`:
```sql
                SELECT "streak" FROM "schedule" WHERE "game">61 AND "opponent_score"=96;
```
## Task
Generate a SQL query to answer the following question:
`What transfer fee did Birmingham City get on 30 June 2010?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What transfer fee did Birmingham City get on 30 June 2010?`:
```sql
                SELECT "transfer_fee" FROM "in" WHERE "ends"='30 june 2010' AND "moving_from"='birmingham city';
```
## Task
Generate a SQL query to answer the following question:
`What type of move was Elding from ENG?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of move was Elding from ENG?`:
```sql
                SELECT "type" FROM "in" WHERE "country"='eng' AND "name"='elding';
```
## Task
Generate a SQL query to answer the following question:
`When does Donaldson's move end?`

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

CREATE TABLE "in" (
  "name" text,
  "country" text,
  "type" text,
  "moving_from" text,
  "transfer_window" text,
  "ends" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `When does Donaldson's move end?`:
```sql
                SELECT "ends" FROM "in" WHERE "name"='donaldson';
```
## Task
Generate a SQL query to answer the following question:
`Which Silver has a Total of 7, and a Gold larger than 1?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Silver has a Total of 7, and a Gold larger than 1?`:
```sql
                SELECT AVG("silver") FROM "medal_table" WHERE "total"=7 AND "gold">1;
```
## Task
Generate a SQL query to answer the following question:
`Which Bronze has a Gold smaller than 16, a Rank of 10, and a Nation of italy?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Bronze has a Gold smaller than 16, a Rank of 10, and a Nation of italy?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "gold"<16 AND "rank"='10' AND "nation"='italy';
```
## Task
Generate a SQL query to answer the following question:
`Which Total has a Bronze larger than 2, a Gold smaller than 16, a Silver of 0, and a Rank of 13?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total has a Bronze larger than 2, a Gold smaller than 16, a Silver of 0, and a Rank of 13?`:
```sql
                SELECT AVG("total") FROM "medal_table" WHERE "bronze">2 AND "gold"<16 AND "silver"=0 AND "rank"='13';
```
## Task
Generate a SQL query to answer the following question:
`Which Gold has a Nation of malaysia, and a Silver smaller 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 `Which Gold has a Nation of malaysia, and a Silver smaller than 0?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "nation"='malaysia' AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Population (2005) has a Literacy (2003) of 90%, and an Infant Mortality (2002) of 18.3‰?`

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

CREATE TABLE "states_of_brazil" (
  "state" text,
  "abbreviation" text,
  "capital" text,
  "area_km" real,
  "population_2005" real,
  "density_2005" real,
  "gdp_pct_total_2004" text,
  "gdp_per_capita_us_2004" real,
  "hdi_2005" real,
  "literacy_2003" text,
  "infant_mortality_2002" text,
  "life_expectancy_2004" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Population (2005) has a Literacy (2003) of 90%, and an Infant Mortality (2002) of 18.3‰?`:
```sql
                SELECT SUM("population_2005") FROM "states_of_brazil" WHERE "literacy_2003"='90%' AND "infant_mortality_2002"='18.3‰';
```
## Task
Generate a SQL query to answer the following question:
`Which Density (2005) has an Area (km²) of 340086.7, and a Population (2005) smaller than 5926300?`

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

CREATE TABLE "states_of_brazil" (
  "state" text,
  "abbreviation" text,
  "capital" text,
  "area_km" real,
  "population_2005" real,
  "density_2005" real,
  "gdp_pct_total_2004" text,
  "gdp_per_capita_us_2004" real,
  "hdi_2005" real,
  "literacy_2003" text,
  "infant_mortality_2002" text,
  "life_expectancy_2004" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Density (2005) has an Area (km²) of 340086.7, and a Population (2005) smaller than 5926300?`:
```sql
                SELECT SUM("density_2005") FROM "states_of_brazil" WHERE "area_km"=340086.7 AND "population_2005"<5926300;
```