cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`When the 2nd player's choice is r bb what is the probability the 1st player wins 0.11%?`

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

CREATE TABLE "variation_with_playing_cards" (
  "1st_player_s_choice" text,
  "2nd_player_s_choice" text,
  "probability_1st_player_wins" text,
  "probability_2nd_player_wins" text,
  "probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the 2nd player's choice is r bb what is the probability the 1st player wins 0.11%?`:
```sql
                SELECT "probability_of_a_draw" FROM "variation_with_playing_cards" WHERE "2nd_player_s_choice"='r bb' AND "probability_1st_player_wins"='0.11%';
```
## Task
Generate a SQL query to answer the following question:
`When the 2nd player chooses r bb, what is the 2nd player's probability of a winning draw of 93.54%?`

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

CREATE TABLE "variation_with_playing_cards" (
  "1st_player_s_choice" text,
  "2nd_player_s_choice" text,
  "probability_1st_player_wins" text,
  "probability_2nd_player_wins" text,
  "probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the 2nd player chooses r bb, what is the 2nd player's probability of a winning draw of 93.54%?`:
```sql
                SELECT "probability_of_a_draw" FROM "variation_with_playing_cards" WHERE "probability_2nd_player_wins"='93.54%' AND "2nd_player_s_choice"='r bb';
```
## Task
Generate a SQL query to answer the following question:
`What was Collingwood's score as the home team?`

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

CREATE TABLE "round_3" (
  "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 Collingwood's score as the home team?`:
```sql
                SELECT "home_team_score" FROM "round_3" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team when the away team scored 4.9 (33)?`

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

CREATE TABLE "round_3" (
  "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 home team when the away team scored 4.9 (33)?`:
```sql
                SELECT "home_team" FROM "round_3" WHERE "away_team_score"='4.9 (33)';
```
## Task
Generate a SQL query to answer the following question:
`What was the average crowd size when teh home team scored 13.24 (102)?`

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

CREATE TABLE "round_3" (
  "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 average crowd size when teh home team scored 13.24 (102)?`:
```sql
                SELECT AVG("crowd") FROM "round_3" WHERE "home_team_score"='13.24 (102)';
```
## Task
Generate a SQL query to answer the following question:
`What venue features carlton as the home side?`

### 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 venue features carlton as the home side?`:
```sql
                SELECT "venue" FROM "round_11" WHERE "home_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What day is collingwood the home side?`

### 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 day is collingwood the home side?`:
```sql
                SELECT "date" FROM "round_11" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team's score when hawthorn is away?`

### 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 is the away team's score when hawthorn is away?`:
```sql
                SELECT "away_team_score" FROM "round_11" WHERE "away_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`Who is the home side when the away side score is 8.8 (56)?`

### 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 `Who is the home side when the away side score is 8.8 (56)?`:
```sql
                SELECT "home_team" FROM "round_11" WHERE "away_team_score"='8.8 (56)';
```
## Task
Generate a SQL query to answer the following question:
`The event that has a record of 1-0 is none of the above.`

### 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 `The event that has a record of 1-0 is none of the above.`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='1-0';
```
## Task
Generate a SQL query to answer the following question:
`What year was Leon Blevins picked?`

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

CREATE TABLE "nba_draft_picks" (
  "name" text,
  "round" text,
  "overall_pick" text,
  "year" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Leon Blevins picked?`:
```sql
                SELECT SUM("year") FROM "nba_draft_picks" WHERE "name"='leon blevins';
```
## Task
Generate a SQL query to answer the following question:
`What year was Jordan Hill picked overall number 8?`

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

CREATE TABLE "nba_draft_picks" (
  "name" text,
  "round" text,
  "overall_pick" text,
  "year" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Jordan Hill picked overall number 8?`:
```sql
                SELECT MIN("year") FROM "nba_draft_picks" WHERE "overall_pick"='8' AND "name"='jordan hill';
```
## Task
Generate a SQL query to answer the following question:
`In 1981 which team picked overall 148?`

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

CREATE TABLE "nba_draft_picks" (
  "name" text,
  "round" text,
  "overall_pick" text,
  "year" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 1981 which team picked overall 148?`:
```sql
                SELECT "team" FROM "nba_draft_picks" WHERE "year"=1981 AND "overall_pick"='148';
```
## Task
Generate a SQL query to answer the following question:
`What is the place of the team that had a total score larger than 37 and a week one score above 20?`

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

CREATE TABLE "scoring_chart" (
  "couple" text,
  "place" real,
  "wk_1" real,
  "wk_2" real,
  "tot_1_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place of the team that had a total score larger than 37 and a week one score above 20?`:
```sql
                SELECT MIN("place") FROM "scoring_chart" WHERE "tot_1_2">37 AND "wk_1">20;
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game on December 2, 1951?`

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

CREATE TABLE "regular_season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game on December 2, 1951?`:
```sql
                SELECT "attendance" FROM "regular_season_schedule" WHERE "date"='december 2, 1951';
```
## Task
Generate a SQL query to answer the following question:
`After week 9, which games had an attendance greater than 24,229?`

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

CREATE TABLE "regular_season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `After week 9, which games had an attendance greater than 24,229?`:
```sql
                SELECT "date" FROM "regular_season_schedule" WHERE "attendance">'24,229' AND "week">9;
```
## Task
Generate a SQL query to answer the following question:
`What venue does st kilda play at as the away team?`

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

CREATE TABLE "round_18" (
  "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 venue does st kilda play at as the away team?`:
```sql
                SELECT "venue" FROM "round_18" WHERE "away_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`What is melbourne's home team score?`

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

CREATE TABLE "round_18" (
  "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 is melbourne's home team score?`:
```sql
                SELECT "home_team_score" FROM "round_18" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`How many games is collingwood the home side?`

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

CREATE TABLE "round_18" (
  "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 `How many games is collingwood the home side?`:
```sql
                SELECT COUNT("crowd") FROM "round_18" WHERE "home_team"='collingwood';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on the date of November 29, 1970 and the attendance was less than 31,427?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on the date of November 29, 1970 and the attendance was less than 31,427?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "date"='november 29, 1970' AND "attendance"<'31,427';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the game where is was later than Week 4 of the season and the opponent was the New York Giants?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the game where is was later than Week 4 of the season and the opponent was the New York Giants?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week">4 AND "opponent"='new york giants';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance of the game on December 13, 1970?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance of the game on December 13, 1970?`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "date"='december 13, 1970' AND "week">13;
```
## Task
Generate a SQL query to answer the following question:
`What is the date before week 13 and Miami Dolphins as an opponent?`

### 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,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date before week 13 and Miami Dolphins as an opponent?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"<13 AND "opponent"='miami dolphins';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance for week 11?`

### 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,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance for week 11?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the average crowd size when the home side scores 8.9 (57)?`

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

CREATE TABLE "round_17" (
  "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 is the average crowd size when the home side scores 8.9 (57)?`:
```sql
                SELECT AVG("crowd") FROM "round_17" WHERE "home_team_score"='8.9 (57)';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team's score for north melbourne?`

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

CREATE TABLE "round_17" (
  "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 is the home team's score for north melbourne?`:
```sql
                SELECT "home_team_score" FROM "round_17" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the average crowd size when the home team scores 16.9 (105)?`

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

CREATE TABLE "round_17" (
  "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 is the average crowd size when the home team scores 16.9 (105)?`:
```sql
                SELECT AVG("crowd") FROM "round_17" WHERE "home_team_score"='16.9 (105)';
```
## Task
Generate a SQL query to answer the following question:
`Who sponsors Josele Garza in all rounds?`

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

CREATE TABLE "teams_and_drivers" (
  "team" text,
  "chassis" text,
  "engine" text,
  "driver_s" text,
  "sponsor_s" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who sponsors Josele Garza in all rounds?`:
```sql
                SELECT "sponsor_s" FROM "teams_and_drivers" WHERE "rounds"='all' AND "driver_s"='josele garza';
```
## Task
Generate a SQL query to answer the following question:
`Which rounds did the team Walther participate in?`

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

CREATE TABLE "teams_and_drivers" (
  "team" text,
  "chassis" text,
  "engine" text,
  "driver_s" text,
  "sponsor_s" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rounds did the team Walther participate in?`:
```sql
                SELECT "rounds" FROM "teams_and_drivers" WHERE "team"='walther';
```
## Task
Generate a SQL query to answer the following question:
`What team was Tom Sneva on in rounds 1-9?`

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

CREATE TABLE "teams_and_drivers" (
  "team" text,
  "chassis" text,
  "engine" text,
  "driver_s" text,
  "sponsor_s" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was Tom Sneva on in rounds 1-9?`:
```sql
                SELECT "team" FROM "teams_and_drivers" WHERE "driver_s"='tom sneva' AND "rounds"='1-9';
```
## Task
Generate a SQL query to answer the following question:
`Which rounds do Arciero Wines sponsor a March 85c chassis?`

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

CREATE TABLE "teams_and_drivers" (
  "team" text,
  "chassis" text,
  "engine" text,
  "driver_s" text,
  "sponsor_s" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rounds do Arciero Wines sponsor a March 85c chassis?`:
```sql
                SELECT "rounds" FROM "teams_and_drivers" WHERE "sponsor_s"='arciero wines' AND "chassis"='march 85c';
```
## Task
Generate a SQL query to answer the following question:
`What years were the inactive North Carolina chapter active?`

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

CREATE TABLE "list_of_chapters" (
  "chapter" text,
  "chartered" text,
  "school" text,
  "state" text,
  "status" text,
  "charter_range" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years were the inactive North Carolina chapter active?`:
```sql
                SELECT "charter_range" FROM "list_of_chapters" WHERE "status"='inactive' AND "state"='north carolina';
```
## Task
Generate a SQL query to answer the following question:
`What years were the inactive Idaho chapter active?`

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

CREATE TABLE "list_of_chapters" (
  "chapter" text,
  "chartered" text,
  "school" text,
  "state" text,
  "status" text,
  "charter_range" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years were the inactive Idaho chapter active?`:
```sql
                SELECT "charter_range" FROM "list_of_chapters" WHERE "status"='inactive' AND "state"='idaho';
```
## Task
Generate a SQL query to answer the following question:
`Which chapter was active from 1906-1991?`

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

CREATE TABLE "list_of_chapters" (
  "chapter" text,
  "chartered" text,
  "school" text,
  "state" text,
  "status" text,
  "charter_range" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which chapter was active from 1906-1991?`:
```sql
                SELECT "chapter" FROM "list_of_chapters" WHERE "charter_range"='1906-1991';
```
## Task
Generate a SQL query to answer the following question:
`What are the active dates for the Montana State University chapter?`

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

CREATE TABLE "list_of_chapters" (
  "chapter" text,
  "chartered" text,
  "school" text,
  "state" text,
  "status" text,
  "charter_range" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the active dates for the Montana State University chapter?`:
```sql
                SELECT "charter_range" FROM "list_of_chapters" WHERE "school"='montana state university';
```
## Task
Generate a SQL query to answer the following question:
`What state had an active chapter from 1906-1991?`

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

CREATE TABLE "list_of_chapters" (
  "chapter" text,
  "chartered" text,
  "school" text,
  "state" text,
  "status" text,
  "charter_range" text
);
### SQL
Given the database schema, here is the SQL query that answers `What state had an active chapter from 1906-1991?`:
```sql
                SELECT "state" FROM "list_of_chapters" WHERE "charter_range"='1906-1991';
```
## Task
Generate a SQL query to answer the following question:
`How many people were at the game with a record of 6-1?`

### 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,
  "record" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were at the game with a record of 6-1?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "record"='6-1';
```
## Task
Generate a SQL query to answer the following question:
`When was there a game against the Indianapolis colts?`

### 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,
  "record" text,
  "tv_time" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was there a game against the Indianapolis colts?`:
```sql
                SELECT "date" FROM "schedule" WHERE "opponent"='indianapolis colts';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest crowd size at MCG?`

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

CREATE TABLE "round_16" (
  "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 is the lowest crowd size at MCG?`:
```sql
                SELECT MIN("crowd") FROM "round_16" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team name that has a score of 7.10 (52)?`

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

CREATE TABLE "round_16" (
  "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 is the away team name that has a score of 7.10 (52)?`:
```sql
                SELECT "away_team" FROM "round_16" WHERE "away_team_score"='7.10 (52)';
```
## Task
Generate a SQL query to answer the following question:
`What is the average crowd size when the home team is North Melbourne?`

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

CREATE TABLE "round_16" (
  "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 is the average crowd size when the home team is North Melbourne?`:
```sql
                SELECT AVG("crowd") FROM "round_16" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team score when the home team is North Melbourne?`

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

CREATE TABLE "round_16" (
  "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 is the away team score when the home team is North Melbourne?`:
```sql
                SELECT "away_team_score" FROM "round_16" WHERE "home_team"='north melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What is the pole position for marlboro challenge?`

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

CREATE TABLE "races" (
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pole position for marlboro challenge?`:
```sql
                SELECT "pole_position" FROM "races" WHERE "race_name"='marlboro challenge';
```
## Task
Generate a SQL query to answer the following question:
`What circut has an unknown fastest lap on July 19?`

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

CREATE TABLE "races" (
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What circut has an unknown fastest lap on July 19?`:
```sql
                SELECT "circuit" FROM "races" WHERE "fastest_lap"='unknown' AND "date"='july 19';
```
## Task
Generate a SQL query to answer the following question:
`What circuit did marlboro team penske win with an unknown fastest lap?`

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

CREATE TABLE "races" (
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What circuit did marlboro team penske win with an unknown fastest lap?`:
```sql
                SELECT "circuit" FROM "races" WHERE "winning_team"='marlboro team penske' AND "fastest_lap"='unknown';
```
## Task
Generate a SQL query to answer the following question:
`What team does mario andretti play pole position for?`

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

CREATE TABLE "races" (
  "race_name" text,
  "circuit" text,
  "city_location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team does mario andretti play pole position for?`:
```sql
                SELECT "winning_team" FROM "races" WHERE "pole_position"='mario andretti';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue where Carlton was the away team?`

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

CREATE TABLE "round_4" (
  "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 venue where Carlton was the away team?`:
```sql
                SELECT "venue" FROM "round_4" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue where the home team scored 13.9 (87)?`

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

CREATE TABLE "round_4" (
  "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 venue where the home team scored 13.9 (87)?`:
```sql
                SELECT "venue" FROM "round_4" WHERE "home_team_score"='13.9 (87)';
```
## Task
Generate a SQL query to answer the following question:
`What was the away team whose opponents scored 8.16 (64)?`

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

CREATE TABLE "round_4" (
  "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 away team whose opponents scored 8.16 (64)?`:
```sql
                SELECT "away_team" FROM "round_4" WHERE "home_team_score"='8.16 (64)';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue when Carlton was the away team?`

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

CREATE TABLE "round_4" (
  "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 venue when Carlton was the away team?`:
```sql
                SELECT "venue" FROM "round_4" WHERE "away_team"='carlton';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest heat with a time slower than 48.87 from sweden?`

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

CREATE TABLE "semifinals" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest heat with a time slower than 48.87 from sweden?`:
```sql
                SELECT MAX("heat") FROM "semifinals" WHERE "time">48.87 AND "nationality"='sweden';
```
## Task
Generate a SQL query to answer the following question:
`How many lanes featured a swimmer ranked above 4, in a heat later than 1, from australia, named ashley callus?`

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

CREATE TABLE "semifinals" (
  "rank" real,
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many lanes featured a swimmer ranked above 4, in a heat later than 1, from australia, named ashley callus?`:
```sql
                SELECT COUNT("lane") FROM "semifinals" WHERE "rank">4 AND "heat">1 AND "nationality"='australia' AND "name"='ashley callus';
```
## Task
Generate a SQL query to answer the following question:
`What is the Eurozone result for Population M (LUZ) of 3.08?`

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

CREATE TABLE "cities_by_gdp" (
  "rank" real,
  "city" text,
  "state" text,
  "gdp_in_id_b" text,
  "population_m_luz" real,
  "gdp_per_capita_id_k" text,
  "eurozone" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Eurozone result for Population M (LUZ) of 3.08?`:
```sql
                SELECT "eurozone" FROM "cities_by_gdp" WHERE "population_m_luz"=3.08;
```
## Task
Generate a SQL query to answer the following question:
`What is the GDP $IDB in Istanbul?`

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

CREATE TABLE "cities_by_gdp" (
  "rank" real,
  "city" text,
  "state" text,
  "gdp_in_id_b" text,
  "population_m_luz" real,
  "gdp_per_capita_id_k" text,
  "eurozone" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the GDP $IDB in Istanbul?`:
```sql
                SELECT "gdp_in_id_b" FROM "cities_by_gdp" WHERE "city"='istanbul';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recently founded school that joined in 2011?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "men_s_nickname" text,
  "women_s_nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recently founded school that joined in 2011?`:
```sql
                SELECT MAX("founded") FROM "current_members" WHERE "joined"='2011';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team that scored 24.14 (158) in front of a crowd larger than 18,000?`

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

CREATE TABLE "round_12" (
  "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 home team that scored 24.14 (158) in front of a crowd larger than 18,000?`:
```sql
                SELECT "home_team" FROM "round_12" WHERE "crowd">'18,000' AND "home_team_score"='24.14 (158)';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team that played Geelong?`

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

CREATE TABLE "round_12" (
  "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 home team that played Geelong?`:
```sql
                SELECT "home_team_score" FROM "round_12" WHERE "away_team"='geelong';
```
## Task
Generate a SQL query to answer the following question:
`What was the home team's score when they played Richmond?`

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

CREATE TABLE "round_12" (
  "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 home team's score when they played Richmond?`:
```sql
                SELECT "home_team_score" FROM "round_12" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`What is Melbourne's home venue?`

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

CREATE TABLE "round_12" (
  "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 is Melbourne's home venue?`:
```sql
                SELECT "venue" FROM "round_12" WHERE "home_team"='melbourne';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue when the away team scored 9.17 (71)?`

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

CREATE TABLE "round_12" (
  "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 venue when the away team scored 9.17 (71)?`:
```sql
                SELECT "venue" FROM "round_12" WHERE "away_team_score"='9.17 (71)';
```
## Task
Generate a SQL query to answer the following question:
`What was the overall draft pick for the player selected for the tight end position?`

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

CREATE TABLE "2003_new_england_patriots_draft_selectio" (
  "round" real,
  "overall" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the overall draft pick for the player selected for the tight end position?`:
```sql
                SELECT "overall" FROM "2003_new_england_patriots_draft_selectio" WHERE "position"='tight end';
```
## Task
Generate a SQL query to answer the following question:
`Which home team corresponds to an away team score of 10.12 (72)?`

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

CREATE TABLE "round_5" (
  "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 `Which home team corresponds to an away team score of 10.12 (72)?`:
```sql
                SELECT "home_team" FROM "round_5" WHERE "away_team_score"='10.12 (72)';
```
## Task
Generate a SQL query to answer the following question:
`On what date is Hawthorn the home team?`

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

CREATE TABLE "round_5" (
  "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 what date is Hawthorn the home team?`:
```sql
                SELECT "date" FROM "round_5" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`On what date is St Kilda the away team?`

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

CREATE TABLE "round_5" (
  "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 what date is St Kilda the away team?`:
```sql
                SELECT "date" FROM "round_5" WHERE "away_team"='st kilda';
```
## Task
Generate a SQL query to answer the following question:
`Who did the Browns play on October 13, 1968?`

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

CREATE TABLE "regular_season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the Browns play on October 13, 1968?`:
```sql
                SELECT "opponent" FROM "regular_season_schedule" WHERE "date"='october 13, 1968';
```
## Task
Generate a SQL query to answer the following question:
`Which game is named tsegay kebede category:articles with hcards?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game is named tsegay kebede category:articles with hcards?`:
```sql
                SELECT "games" FROM "list_of_medalists" WHERE "name"='tsegay kebede category:articles with hcards';
```
## Task
Generate a SQL query to answer the following question:
`Which event in the 2000 Sydney games was in the category gete wami category:articles with hcards?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event in the 2000 Sydney games was in the category gete wami category:articles with hcards?`:
```sql
                SELECT "event" FROM "list_of_medalists" WHERE "games"='2000 sydney' AND "name"='gete wami category:articles with hcards';
```
## Task
Generate a SQL query to answer the following question:
`Which event in the 2008 Beijing Games had a bronze medal?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event in the 2008 Beijing Games had a bronze medal?`:
```sql
                SELECT "event" FROM "list_of_medalists" WHERE "games"='2008 beijing' AND "medal"='bronze';
```
## Task
Generate a SQL query to answer the following question:
`What is the medal named fatuma roba category:articles with hcards for?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the medal named fatuma roba category:articles with hcards for?`:
```sql
                SELECT "medal" FROM "list_of_medalists" WHERE "name"='fatuma roba category:articles with hcards';
```
## Task
Generate a SQL query to answer the following question:
`What is the game named derartu tulu category:articles with hcards?`

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

CREATE TABLE "list_of_medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game named derartu tulu category:articles with hcards?`:
```sql
                SELECT "games" FROM "list_of_medalists" WHERE "name"='derartu tulu category:articles with hcards';
```
## Task
Generate a SQL query to answer the following question:
`What is the fastest time for the Kentucky Derby race?`

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

CREATE TABLE "races" (
  "finish" text,
  "race" text,
  "distance" text,
  "jockey" text,
  "time" text,
  "grade" text,
  "runner_up_winner" text,
  "track" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fastest time for the Kentucky Derby race?`:
```sql
                SELECT "time" FROM "races" WHERE "race"='kentucky derby';
```
## Task
Generate a SQL query to answer the following question:
`Which track does the Woodward Stakes race take place on?`

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

CREATE TABLE "races" (
  "finish" text,
  "race" text,
  "distance" text,
  "jockey" text,
  "time" text,
  "grade" text,
  "runner_up_winner" text,
  "track" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which track does the Woodward Stakes race take place on?`:
```sql
                SELECT "track" FROM "races" WHERE "race"='woodward stakes';
```
## Task
Generate a SQL query to answer the following question:
`What grade did jockey Robby Albarado get when racing with Ravens Pass?`

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

CREATE TABLE "races" (
  "finish" text,
  "race" text,
  "distance" text,
  "jockey" text,
  "time" text,
  "grade" text,
  "runner_up_winner" text,
  "track" text
);
### SQL
Given the database schema, here is the SQL query that answers `What grade did jockey Robby Albarado get when racing with Ravens Pass?`:
```sql
                SELECT "grade" FROM "races" WHERE "jockey"='robby albarado' AND "runner_up_winner"='ravens pass';
```
## Task
Generate a SQL query to answer the following question:
`In which Age Category is Marco Manenti?`

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

CREATE TABLE "men_s_lanterne_rouge" (
  "year" real,
  "name" text,
  "nationality" text,
  "time" text,
  "age_category" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which Age Category is Marco Manenti?`:
```sql
                SELECT "age_category" FROM "men_s_lanterne_rouge" WHERE "name"='marco manenti';
```
## Task
Generate a SQL query to answer the following question:
`Which year has a Time of 13:23:43?`

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

CREATE TABLE "men_s_lanterne_rouge" (
  "year" real,
  "name" text,
  "nationality" text,
  "time" text,
  "age_category" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year has a Time of 13:23:43?`:
```sql
                SELECT "year" FROM "men_s_lanterne_rouge" WHERE "time"='13:23:43';
```
## Task
Generate a SQL query to answer the following question:
`What score has 3-7 as the record?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "time" text,
  "att" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has 3-7 as the record?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='3-7';
```
## Task
Generate a SQL query to answer the following question:
`What loss has 16,458 as an Att.?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "time" text,
  "att" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What loss has 16,458 as an Att.?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "att"='16,458';
```
## Task
Generate a SQL query to answer the following question:
`What date has 5-3 as the score, and holt (1-1) as a loss?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "time" text,
  "att" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has 5-3 as the score, and holt (1-1) as a loss?`:
```sql
                SELECT "date" FROM "game_log" WHERE "score"='5-3' AND "loss"='holt (1-1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the sector of the company with an incorporated date before 1983?`

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

CREATE TABLE "transport" (
  "s_no" real,
  "company" text,
  "incorporated" real,
  "ministry" text,
  "sector" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sector of the company with an incorporated date before 1983?`:
```sql
                SELECT "sector" FROM "transport" WHERE "incorporated"<1983;
```