cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5?`

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

CREATE TABLE "middleweight_77_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" text,
  "total_kg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch smaller than 122.5?`:
```sql
                SELECT MIN("bodyweight") FROM "middleweight_77_kg" WHERE "clean_jerk"='145.0' AND "snatch"<122.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the Clean & jerk for the bodyweight less than 76.55, and the Total (kg) of –?`

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

CREATE TABLE "middleweight_77_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" text,
  "total_kg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Clean & jerk for the bodyweight less than 76.55, and the Total (kg) of –?`:
```sql
                SELECT "clean_jerk" FROM "middleweight_77_kg" WHERE "bodyweight"<76.55 AND "total_kg"='–';
```
## Task
Generate a SQL query to answer the following question:
`What was the latest year that resulted in won?`

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

CREATE TABLE "2003_broadway_revival" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest year that resulted in won?`:
```sql
                SELECT MAX("year") FROM "2003_broadway_revival" WHERE "result"='won';
```
## Task
Generate a SQL query to answer the following question:
`Which position had a pick of 50?`

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

CREATE TABLE "selections" (
  "draft" text,
  "round" real,
  "pick" real,
  "nationality" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position had a pick of 50?`:
```sql
                SELECT "position" FROM "selections" WHERE "pick"=50;
```
## Task
Generate a SQL query to answer the following question:
`Which team had a 2008-3 2008 draft?`

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

CREATE TABLE "selections" (
  "draft" text,
  "round" real,
  "pick" real,
  "nationality" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had a 2008-3 2008 draft?`:
```sql
                SELECT "school_club_team" FROM "selections" WHERE "draft"='2008-3 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the average pick after Round 2?`

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

CREATE TABLE "selections" (
  "draft" text,
  "round" real,
  "pick" real,
  "nationality" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average pick after Round 2?`:
```sql
                SELECT AVG("pick") FROM "selections" WHERE "round">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game with a loss result in the Europe/Africa Group I, Round Robin competition in Murcia (esp) after 1998?`

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

CREATE TABLE "1990s" (
  "year" real,
  "competition" text,
  "date" text,
  "location" text,
  "score" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game with a loss result in the Europe/Africa Group I, Round Robin competition in Murcia (esp) after 1998?`:
```sql
                SELECT "date" FROM "1990s" WHERE "result"='loss' AND "competition"='europe/africa group i, round robin' AND "location"='murcia (esp)' AND "year">1998;
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the Europe/Africa Group I, play-off competition?`

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

CREATE TABLE "1990s" (
  "year" real,
  "competition" text,
  "date" text,
  "location" text,
  "score" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the Europe/Africa Group I, play-off competition?`:
```sql
                SELECT "result" FROM "1990s" WHERE "competition"='europe/africa group i, play-off';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the europe/africa group i, round robin game in Murcia (esp) before 1999?`

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

CREATE TABLE "1990s" (
  "year" real,
  "competition" text,
  "date" text,
  "location" text,
  "score" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the europe/africa group i, round robin game in Murcia (esp) before 1999?`:
```sql
                SELECT "result" FROM "1990s" WHERE "location"='murcia (esp)' AND "year"<1999 AND "competition"='europe/africa group i, round robin';
```
## Task
Generate a SQL query to answer the following question:
`What position did the person from Clemson school fill?`

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

CREATE TABLE "nfl_draft" (
  "pick" real,
  "round" text,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the person from Clemson school fill?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "school"='clemson';
```
## Task
Generate a SQL query to answer the following question:
`What was Rudy Harris' pick number in round 4?`

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

CREATE TABLE "nfl_draft" (
  "pick" real,
  "round" text,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Rudy Harris' pick number in round 4?`:
```sql
                SELECT MAX("pick") FROM "nfl_draft" WHERE "round"='round 4' AND "player"='rudy harris';
```
## Task
Generate a SQL query to answer the following question:
`What was the pick number for the kicker in round 8?`

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

CREATE TABLE "nfl_draft" (
  "pick" real,
  "round" text,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the pick number for the kicker in round 8?`:
```sql
                SELECT COUNT("pick") FROM "nfl_draft" WHERE "round"='round 8' AND "position"='kicker';
```
## Task
Generate a SQL query to answer the following question:
`What is the result from 2013?`

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

CREATE TABLE "history" (
  "year" real,
  "western_champion" text,
  "result" text,
  "eastern_champion" text,
  "finals_mvp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result from 2013?`:
```sql
                SELECT "result" FROM "history" WHERE "year"=2013;
```
## Task
Generate a SQL query to answer the following question:
`Who is the MVP finals that includes Detroit shock from the eastern championship and Sacramento monarchs from western championship?`

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

CREATE TABLE "history" (
  "year" real,
  "western_champion" text,
  "result" text,
  "eastern_champion" text,
  "finals_mvp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the MVP finals that includes Detroit shock from the eastern championship and Sacramento monarchs from western championship?`:
```sql
                SELECT "finals_mvp" FROM "history" WHERE "eastern_champion"='detroit shock' AND "western_champion"='sacramento monarchs';
```
## Task
Generate a SQL query to answer the following question:
`What is the score from the Sacramento monarchs from the west and the Connecticut sun from the east?`

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

CREATE TABLE "history" (
  "year" real,
  "western_champion" text,
  "result" text,
  "eastern_champion" text,
  "finals_mvp" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score from the Sacramento monarchs from the west and the Connecticut sun from the east?`:
```sql
                SELECT "result" FROM "history" WHERE "western_champion"='sacramento monarchs' AND "eastern_champion"='connecticut sun';
```
## Task
Generate a SQL query to answer the following question:
`Who is the nominee for Best Lead Actress?`

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

CREATE TABLE "awards" (
  "year" real,
  "ceremony" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the nominee for Best Lead Actress?`:
```sql
                SELECT "nominee" FROM "awards" WHERE "category"='best lead actress';
```
## Task
Generate a SQL query to answer the following question:
`In what category is Carmen Salinas nominated?`

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

CREATE TABLE "awards" (
  "year" real,
  "ceremony" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what category is Carmen Salinas nominated?`:
```sql
                SELECT "category" FROM "awards" WHERE "nominee"='carmen salinas';
```
## Task
Generate a SQL query to answer the following question:
`What year was there a category of Best Supporting Actress?`

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

CREATE TABLE "awards" (
  "year" real,
  "ceremony" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was there a category of Best Supporting Actress?`:
```sql
                SELECT SUM("year") FROM "awards" WHERE "category"='best supporting actress';
```
## Task
Generate a SQL query to answer the following question:
`What Londongborough has a Dialcode of 01992?`

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

CREATE TABLE "see_also" (
  "location" text,
  "londonborough" text,
  "post_town" text,
  "postcodedistrict" text,
  "dialcode" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Londongborough has a Dialcode of 01992?`:
```sql
                SELECT "londonborough" FROM "see_also" WHERE "dialcode"='01992';
```
## Task
Generate a SQL query to answer the following question:
`What is the Dialcode of whitechapel?`

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

CREATE TABLE "see_also" (
  "location" text,
  "londonborough" text,
  "post_town" text,
  "postcodedistrict" text,
  "dialcode" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Dialcode of whitechapel?`:
```sql
                SELECT "dialcode" FROM "see_also" WHERE "location"='whitechapel';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the Post code district that is in Eden Park?`

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

CREATE TABLE "see_also" (
  "location" text,
  "londonborough" text,
  "post_town" text,
  "postcodedistrict" text,
  "dialcode" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the Post code district that is in Eden Park?`:
```sql
                SELECT "postcodedistrict" FROM "see_also" WHERE "location"='eden park';
```
## Task
Generate a SQL query to answer the following question:
`Which Post Town has a Dialcode of 020 and is located in Hook?`

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

CREATE TABLE "see_also" (
  "location" text,
  "londonborough" text,
  "post_town" text,
  "postcodedistrict" text,
  "dialcode" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Post Town has a Dialcode of 020 and is located in Hook?`:
```sql
                SELECT "post_town" FROM "see_also" WHERE "dialcode"='020' AND "location"='hook';
```
## Task
Generate a SQL query to answer the following question:
`What Dialcode has a location of Edmonton?`

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

CREATE TABLE "see_also" (
  "location" text,
  "londonborough" text,
  "post_town" text,
  "postcodedistrict" text,
  "dialcode" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Dialcode has a location of Edmonton?`:
```sql
                SELECT "dialcode" FROM "see_also" WHERE "location"='edmonton';
```
## Task
Generate a SQL query to answer the following question:
`Which average rank has an Earning amount that is less than $224,589?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which average rank has an Earning amount that is less than $224,589?`:
```sql
                SELECT AVG("rank") FROM "leaders" WHERE "earnings"<'224,589';
```
## Task
Generate a SQL query to answer the following question:
`Which country has a rank of 2?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has a rank of 2?`:
```sql
                SELECT "country" FROM "leaders" WHERE "rank"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number on roll for Shelly Park school?`

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

CREATE TABLE "howick_local_board" (
  "name" text,
  "years" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number on roll for Shelly Park school?`:
```sql
                SELECT COUNT("roll") FROM "howick_local_board" WHERE "name"='shelly park school';
```
## Task
Generate a SQL query to answer the following question:
`What week was the record 0-5?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff_a" text,
  "game_site" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week was the record 0-5?`:
```sql
                SELECT "week" FROM "schedule" WHERE "record"='0-5';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game with the attendance of 45,320?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff_a" text,
  "game_site" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game with the attendance of 45,320?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='45,320';
```
## Task
Generate a SQL query to answer the following question:
`What time was the kickoff on September 15, 1985?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "kickoff_a" text,
  "game_site" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was the kickoff on September 15, 1985?`:
```sql
                SELECT "kickoff_a" FROM "schedule" WHERE "date"='september 15, 1985';
```
## Task
Generate a SQL query to answer the following question:
`Which Player had a Long of 5 and Yards of 6?`

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

CREATE TABLE "running_backs" (
  "player" text,
  "car" real,
  "yards" text,
  "avg" text,
  "td_s" real,
  "long" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player had a Long of 5 and Yards of 6?`:
```sql
                SELECT "player" FROM "running_backs" WHERE "long"='5' AND "yards"='6';
```
## Task
Generate a SQL query to answer the following question:
`What was the total number of TD's for Player Lashaun Ward while also having a Long of 2?`

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

CREATE TABLE "running_backs" (
  "player" text,
  "car" real,
  "yards" text,
  "avg" text,
  "td_s" real,
  "long" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of TD's for Player Lashaun Ward while also having a Long of 2?`:
```sql
                SELECT COUNT("td_s") FROM "running_backs" WHERE "long"='2' AND "player"='lashaun ward';
```
## Task
Generate a SQL query to answer the following question:
`How many Yards did Player Rob Turner collect?`

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

CREATE TABLE "running_backs" (
  "player" text,
  "car" real,
  "yards" text,
  "avg" text,
  "td_s" real,
  "long" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Yards did Player Rob Turner collect?`:
```sql
                SELECT "yards" FROM "running_backs" WHERE "player"='rob turner';
```
## Task
Generate a SQL query to answer the following question:
`Who is the home team on March 5?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the home team on March 5?`:
```sql
                SELECT "home" FROM "game_log" WHERE "date"='march 5';
```
## Task
Generate a SQL query to answer the following question:
`Who is the visitor on March 24?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the visitor on March 24?`:
```sql
                SELECT "visitor" FROM "game_log" WHERE "date"='march 24';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team on March 24?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team on March 24?`:
```sql
                SELECT "home" FROM "game_log" WHERE "date"='march 24';
```
## Task
Generate a SQL query to answer the following question:
`What was the total crowd at the game where the home team score was 8.21 (69)`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total crowd at the game where the home team score was 8.21 (69)`:
```sql
                SELECT COUNT("crowd") FROM "round_11" WHERE "home_team_score"='8.21 (69)';
```
## Task
Generate a SQL query to answer the following question:
`What date did a home team score 16.15 (111)`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did a home team score 16.15 (111)`:
```sql
                SELECT "date" FROM "round_11" WHERE "home_team_score"='16.15 (111)';
```
## Task
Generate a SQL query to answer the following question:
`what was the total crowd in the game where the home teams score was 18.12 (120)`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the total crowd in the game where the home teams score was 18.12 (120)`:
```sql
                SELECT MIN("crowd") FROM "round_11" WHERE "home_team_score"='18.12 (120)';
```
## Task
Generate a SQL query to answer the following question:
`On which date was the game where the home teams score was 22.15 (147), and the away teams score was 9.8 (62)`

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

CREATE TABLE "round_11" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date was the game where the home teams score was 22.15 (147), and the away teams score was 9.8 (62)`:
```sql
                SELECT "date" FROM "round_11" WHERE "home_team_score"='22.15 (147)' AND "away_team_score"='9.8 (62)';
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest solo when assisted is less than 10, td's is 0, sack is less than 3 and yards is more than 5?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "solo" real,
  "assisted" real,
  "sack" real,
  "yards" real,
  "td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest solo when assisted is less than 10, td's is 0, sack is less than 3 and yards is more than 5?`:
```sql
                SELECT MIN("solo") FROM "defense" WHERE "assisted"<10 AND "td_s"=0 AND "sack"<3 AND "yards">5;
```
## Task
Generate a SQL query to answer the following question:
`what is the assisted when the solo is 6 and sack is less than 5?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "solo" real,
  "assisted" real,
  "sack" real,
  "yards" real,
  "td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the assisted when the solo is 6 and sack is less than 5?`:
```sql
                SELECT "assisted" FROM "defense" WHERE "solo"=6 AND "sack"<5;
```
## Task
Generate a SQL query to answer the following question:
`what is the highest td's when the sack is less than 13, tackles is less than 8 and yards is less than 0?`

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

CREATE TABLE "defense" (
  "player" text,
  "tackles" real,
  "solo" real,
  "assisted" real,
  "sack" real,
  "yards" real,
  "td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest td's when the sack is less than 13, tackles is less than 8 and yards is less than 0?`:
```sql
                SELECT MAX("td_s") FROM "defense" WHERE "sack"<13 AND "tackles"<8 AND "yards"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many losses had a played number that was more than 34?`

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

CREATE TABLE "first_phase" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "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 `How many losses had a played number that was more than 34?`:
```sql
                SELECT COUNT("losses") FROM "first_phase" WHERE "played">34;
```
## Task
Generate a SQL query to answer the following question:
`Which highest 'goals against' number had wins of 19 and a 'goals for' number that was bigger than 53?`

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

CREATE TABLE "first_phase" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "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 `Which highest 'goals against' number had wins of 19 and a 'goals for' number that was bigger than 53?`:
```sql
                SELECT MAX("goals_against") FROM "first_phase" WHERE "wins"=19 AND "goals_for">53;
```
## Task
Generate a SQL query to answer the following question:
`Which mean number of losses had a played number that was bigger than 34?`

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

CREATE TABLE "first_phase" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "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 `Which mean number of losses had a played number that was bigger than 34?`:
```sql
                SELECT AVG("losses") FROM "first_phase" WHERE "played">34;
```
## Task
Generate a SQL query to answer the following question:
`Which lowest goals for number had a played number of less than 34?`

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

CREATE TABLE "first_phase" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "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 `Which lowest goals for number had a played number of less than 34?`:
```sql
                SELECT MIN("goals_for") FROM "first_phase" WHERE "played"<34;
```
## Task
Generate a SQL query to answer the following question:
`Which Played number had a goal difference of more than 0 when the club was Valencia CF?`

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

CREATE TABLE "first_phase" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "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 `Which Played number had a goal difference of more than 0 when the club was Valencia CF?`:
```sql
                SELECT COUNT("played") FROM "first_phase" WHERE "goal_difference">0 AND "club"='valencia cf';
```
## Task
Generate a SQL query to answer the following question:
`What player has a college named san sebastian?`

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

CREATE TABLE "round_5" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a college named san sebastian?`:
```sql
                SELECT "player" FROM "round_5" WHERE "college"='san sebastian';
```
## Task
Generate a SQL query to answer the following question:
`What college has pick 45`

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

CREATE TABLE "round_5" (
  "pick" real,
  "player" text,
  "country_of_origin" text,
  "pba_team" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college has pick 45`:
```sql
                SELECT "college" FROM "round_5" WHERE "pick"=45;
```
## Task
Generate a SQL query to answer the following question:
`Name the air date for the seasons before 14 and series less than 183 with production code more than 709`

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

CREATE TABLE "season_7_2011" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the air date for the seasons before 14 and series less than 183 with production code more than 709`:
```sql
                SELECT "original_air_date" FROM "season_7_2011" WHERE "season_num"<14 AND "production_code">709 AND "series_num"<183;
```
## Task
Generate a SQL query to answer the following question:
`Tell me the title for the production code less than 706 with series number more than 175`

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

CREATE TABLE "season_7_2011" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the title for the production code less than 706 with series number more than 175`:
```sql
                SELECT "title" FROM "season_7_2011" WHERE "series_num">175 AND "production_code"<706;
```
## Task
Generate a SQL query to answer the following question:
`Name the least series number with production code of 717 and season number less than 17`

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

CREATE TABLE "season_7_2011" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least series number with production code of 717 and season number less than 17`:
```sql
                SELECT MIN("series_num") FROM "season_7_2011" WHERE "production_code"=717 AND "season_num"<17;
```
## Task
Generate a SQL query to answer the following question:
`Which Can Yayınları has a Güzelçamlı’nin Kayıp Panteri of çevreci peri?`

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

CREATE TABLE "children_s_books" (
  "g_zel_aml_nin_kay_p_panteri" text,
  "g_zel_aml_s_lost_panther" text,
  "collection_of_short_stories" text,
  "can_yay_nlar" text,
  "2005" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Can Yayınları has a Güzelçamlı’nin Kayıp Panteri of çevreci peri?`:
```sql
                SELECT "can_yay_nlar" FROM "children_s_books" WHERE "g_zel_aml_nin_kay_p_panteri"='çevreci peri';
```
## Task
Generate a SQL query to answer the following question:
`Which 2005 has a Güzelçamlı’s Lost Panther of green fairy?`

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

CREATE TABLE "children_s_books" (
  "g_zel_aml_nin_kay_p_panteri" text,
  "g_zel_aml_s_lost_panther" text,
  "collection_of_short_stories" text,
  "can_yay_nlar" text,
  "2005" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2005 has a Güzelçamlı’s Lost Panther of green fairy?`:
```sql
                SELECT "2005" FROM "children_s_books" WHERE "g_zel_aml_s_lost_panther"='green fairy';
```
## Task
Generate a SQL query to answer the following question:
`Which 2005 has a Güzelçamlı’s Lost Panther of the muse?`

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

CREATE TABLE "children_s_books" (
  "g_zel_aml_nin_kay_p_panteri" text,
  "g_zel_aml_s_lost_panther" text,
  "collection_of_short_stories" text,
  "can_yay_nlar" text,
  "2005" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2005 has a Güzelçamlı’s Lost Panther of the muse?`:
```sql
                SELECT MAX("2005") FROM "children_s_books" WHERE "g_zel_aml_s_lost_panther"='the muse';
```
## Task
Generate a SQL query to answer the following question:
`what is the grid when the driver is pierre levegh?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the grid when the driver is pierre levegh?`:
```sql
                SELECT "grid" FROM "race" WHERE "driver"='pierre levegh';
```
## Task
Generate a SQL query to answer the following question:
`what is the grid when the laps is 2?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the grid when the laps is 2?`:
```sql
                SELECT "grid" FROM "race" WHERE "laps"=2;
```
## Task
Generate a SQL query to answer the following question:
`what is the time/retired when the driver is toulo de graffenried?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the time/retired when the driver is toulo de graffenried?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "driver"='toulo de graffenried';
```
## Task
Generate a SQL query to answer the following question:
`what is the time/retired when the grid is less than 13, the constructor is alfa romeo and the laps is more than 12?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the time/retired when the grid is less than 13, the constructor is alfa romeo and the laps is more than 12?`:
```sql
                SELECT "time_retired" FROM "race" WHERE "grid"<13 AND "constructor"='alfa romeo' AND "laps">12;
```
## Task
Generate a SQL query to answer the following question:
`what is the grid when the laps is more than 20?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the grid when the laps is more than 20?`:
```sql
                SELECT SUM("grid") FROM "race" WHERE "laps">20;
```
## Task
Generate a SQL query to answer the following question:
`What is the D 49 √ when  D 47 √ is d 67 +?`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_50" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 49 √ when  D 47 √ is d 67 +?`:
```sql
                SELECT "d_49" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_47"='d 67 +';
```
## Task
Generate a SQL query to answer the following question:
`What is the number for  D 44 √ when D 47 √ is r 7?`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_50" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number for  D 44 √ when D 47 √ is r 7?`:
```sql
                SELECT "d_44" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_47"='r 7';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 42 √ number when the D 45 √ is r 16?`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_50" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 42 √ number when the D 45 √ is r 16?`:
```sql
                SELECT "d_42" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_45"='r 16';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 49 √ number when the D 41 √ is d 61 √?`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_50" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 49 √ number when the D 41 √ is d 61 √?`:
```sql
                SELECT "d_49" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_41"='d 61 √';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 42 √ figure when D 46 √ is r 6?`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_50" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 42 √ figure when D 46 √ is r 6?`:
```sql
                SELECT "d_42" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_46"='r 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 50 √ when the D 47 √ is r 27 √?`

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

CREATE TABLE "senate_composition_as_a_result_of_the_el" (
  "d_50" text,
  "d_49" text,
  "d_48" text,
  "d_47" text,
  "d_46" text,
  "d_45" text,
  "d_44" text,
  "d_43" text,
  "d_42" text,
  "d_41" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 50 √ when the D 47 √ is r 27 √?`:
```sql
                SELECT "d_50" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_47"='r 27 √';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the player for ballarat football league`

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

CREATE TABLE "goal_to_win" (
  "player" text,
  "competition" text,
  "team" text,
  "opponent" text,
  "year" real,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the player for ballarat football league`:
```sql
                SELECT "player" FROM "goal_to_win" WHERE "competition"='ballarat football league';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the player for east perth`

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

CREATE TABLE "goal_to_win" (
  "player" text,
  "competition" text,
  "team" text,
  "opponent" text,
  "year" real,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the player for east perth`:
```sql
                SELECT "player" FROM "goal_to_win" WHERE "team"='east perth';
```
## Task
Generate a SQL query to answer the following question:
`Tell met he score for team of waaia`

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

CREATE TABLE "goal_to_win" (
  "player" text,
  "competition" text,
  "team" text,
  "opponent" text,
  "year" real,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell met he score for team of waaia`:
```sql
                SELECT "score" FROM "goal_to_win" WHERE "team"='waaia';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the team for victorian football league`

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

CREATE TABLE "goal_to_win" (
  "player" text,
  "competition" text,
  "team" text,
  "opponent" text,
  "year" real,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the team for victorian football league`:
```sql
                SELECT "team" FROM "goal_to_win" WHERE "competition"='victorian football league';
```
## Task
Generate a SQL query to answer the following question:
`What round was the debut of Scott Tunbridge?`

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

CREATE TABLE "in" (
  "name" text,
  "position" text,
  "from_club" text,
  "date_joined" text,
  "debut" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was the debut of Scott Tunbridge?`:
```sql
                SELECT "debut" FROM "in" WHERE "name"='scott tunbridge';
```
## Task
Generate a SQL query to answer the following question:
`What round was the debut of defender Stephen Laybutt?`

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

CREATE TABLE "in" (
  "name" text,
  "position" text,
  "from_club" text,
  "date_joined" text,
  "debut" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round was the debut of defender Stephen Laybutt?`:
```sql
                SELECT "debut" FROM "in" WHERE "position"='defender' AND "name"='stephen laybutt';
```
## Task
Generate a SQL query to answer the following question:
`What position had a debut in round 6?`

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

CREATE TABLE "in" (
  "name" text,
  "position" text,
  "from_club" text,
  "date_joined" text,
  "debut" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position had a debut in round 6?`:
```sql
                SELECT "position" FROM "in" WHERE "debut"='round 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player that had a debut in round 6?`

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

CREATE TABLE "in" (
  "name" text,
  "position" text,
  "from_club" text,
  "date_joined" text,
  "debut" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player that had a debut in round 6?`:
```sql
                SELECT "name" FROM "in" WHERE "debut"='round 6';
```
## Task
Generate a SQL query to answer the following question:
`What date did the player from Santo André debut?`

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

CREATE TABLE "in" (
  "name" text,
  "position" text,
  "from_club" text,
  "date_joined" text,
  "debut" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the player from Santo André debut?`:
```sql
                SELECT "date_joined" FROM "in" WHERE "from_club"='santo andré';
```
## Task
Generate a SQL query to answer the following question:
`what is the venue when the score is 20½–11½?`

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

CREATE TABLE "results" (
  "year" real,
  "venue" text,
  "location" text,
  "winning_team" text,
  "score" text,
  "u_s_captain" text,
  "international_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the venue when the score is 20½–11½?`:
```sql
                SELECT "venue" FROM "results" WHERE "score"='20½–11½';
```
## Task
Generate a SQL query to answer the following question:
`Who is the winning team when the year is more than 2003, the score is 19½–14½ and the venue is harding park golf club?`

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

CREATE TABLE "results" (
  "year" real,
  "venue" text,
  "location" text,
  "winning_team" text,
  "score" text,
  "u_s_captain" text,
  "international_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the winning team when the year is more than 2003, the score is 19½–14½ and the venue is harding park golf club?`:
```sql
                SELECT "winning_team" FROM "results" WHERE "year">2003 AND "score"='19½–14½' AND "venue"='harding park golf club';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest year that the U.S. captain is ken venturi?`

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

CREATE TABLE "results" (
  "year" real,
  "venue" text,
  "location" text,
  "winning_team" text,
  "score" text,
  "u_s_captain" text,
  "international_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest year that the U.S. captain is ken venturi?`:
```sql
                SELECT MAX("year") FROM "results" WHERE "u_s_captain"='ken venturi';
```
## Task
Generate a SQL query to answer the following question:
`what is the location when the year is less than 1998 and the international captain is david graham?`

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

CREATE TABLE "results" (
  "year" real,
  "venue" text,
  "location" text,
  "winning_team" text,
  "score" text,
  "u_s_captain" text,
  "international_captain" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location when the year is less than 1998 and the international captain is david graham?`:
```sql
                SELECT "location" FROM "results" WHERE "year"<1998 AND "international_captain"='david graham';
```
## Task
Generate a SQL query to answer the following question:
`How much did jim colbert earned ranked above 2?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much did jim colbert earned ranked above 2?`:
```sql
                SELECT COUNT("earnings") FROM "leaders" WHERE "player"='jim colbert' AND "rank"<2;
```