output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "date" FROM "game_log" WHERE "team"='orlando'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Team is "Orlando"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Team is "Orlando"?`:
```sql
|
SELECT COUNT("laps") FROM "24_hours_of_le_mans_results" WHERE "class_pos"='7th' AND "year"<2008; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of laps that Benoît Tréyluyer completed when his position was 7th and the year was before 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of laps that Benoît Tréyluyer completed when his position was 7th and the year was before 2008?`:
```sql
|
SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "pos"='1st' AND "year"=2011; |
## Task
Generate a SQL query to answer the following question:
`Which team has finished in 1st place in 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has finished in 1st place in 2011?`:
```sql
|
SELECT "episode" FROM "director" WHERE "year"=2009 AND "show"='dexter'; |
## Task
Generate a SQL query to answer the following question:
`What is the Episode number of Ernest Dickerson in 2009 when the show was dexter?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "director" (
"year" real,
"show" text,
"season" text,
"episode" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Episode number of Ernest Dickerson in 2009 when the show was dexter?`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "date"='29 september 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the result on 29 September 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result on 29 September 2007?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "date"='29 september 2007'; |
## Task
Generate a SQL query to answer the following question:
`Which competition was on 29 September 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition was on 29 September 2007?`:
```sql
|
SELECT "location" FROM "game_log" WHERE "points"=80; |
## Task
Generate a SQL query to answer the following question:
`Where was the game where the senators scored 80 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game where the senators scored 80 points?`:
```sql
|
SELECT MAX("points") FROM "game_log" WHERE "opponent"='boston bruins' AND "game"=77; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of points against the boston bruins on game 77?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of points against the boston bruins on game 77?`:
```sql
|
SELECT MIN("grid") FROM "250cc_classification" WHERE "time_retired"='retirement' AND "laps">17; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE LOWEST GRID FOR RETIREMENT, AND LAPS LARGER THAN 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE LOWEST GRID FOR RETIREMENT, AND LAPS LARGER THAN 17?`:
```sql
|
SELECT MAX("grid") FROM "250cc_classification" WHERE "time_retired"='accident' AND "manufacturer"='honda'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE GRID WITH AN ACCIDENT AND HONDA MANUFACTURER?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE GRID WITH AN ACCIDENT AND HONDA MANUFACTURER?`:
```sql
|
SELECT "death_date" FROM "oldest_first_class_cricketers" WHERE "rank"<14 AND "age_as_of_1_february_2014"='103 years, 148 days'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of death for a rank below 14 and age of 103 years, 148 days?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oldest_first_class_cricketers" (
"rank" real,
"name" text,
"team_s" text,
"birth_date" text,
"death_date" text,
"age_as_of_1_february_2014" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of death for a rank below 14 and age of 103 years, 148 days?`:
```sql
|
SELECT "age_as_of_1_february_2014" FROM "oldest_first_class_cricketers" WHERE "name"='fred gibson'; |
## Task
Generate a SQL query to answer the following question:
`What is the age of Fred Gibson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oldest_first_class_cricketers" (
"rank" real,
"name" text,
"team_s" text,
"birth_date" text,
"death_date" text,
"age_as_of_1_february_2014" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the age of Fred Gibson?`:
```sql
|
SELECT "name" FROM "oldest_first_class_cricketers" WHERE "rank"=9; |
## Task
Generate a SQL query to answer the following question:
`Who is at rank 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "oldest_first_class_cricketers" (
"rank" real,
"name" text,
"team_s" text,
"birth_date" text,
"death_date" text,
"age_as_of_1_february_2014" text,
"nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is at rank 9?`:
```sql
|
SELECT "finish" FROM "made_the_cut" WHERE "player"='hale irwin'; |
## Task
Generate a SQL query to answer the following question:
`What is the finish of player Hale Irwin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the finish of player Hale Irwin?`:
```sql
|
SELECT "finish" FROM "made_the_cut" WHERE "country"='south africa'; |
## Task
Generate a SQL query to answer the following question:
`What is the finish of South Africa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the finish of South Africa?`:
```sql
|
SELECT "ergative" FROM "possessive_adjectives" WHERE "nominative"='chven-i'; |
## Task
Generate a SQL query to answer the following question:
`With a nominative of chven-i what is the ergative?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "possessive_adjectives" (
"nominative" text,
"ergative" text,
"dative" text,
"genitive" text,
"instrumental" text,
"adverbial" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a nominative of chven-i what is the ergative?`:
```sql
|
SELECT "instrumental" FROM "possessive_adjectives" WHERE "genitive"='tkven-i'; |
## Task
Generate a SQL query to answer the following question:
`What instrumental has tkven-i as the genitive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "possessive_adjectives" (
"nominative" text,
"ergative" text,
"dative" text,
"genitive" text,
"instrumental" text,
"adverbial" text
);
### SQL
Given the database schema, here is the SQL query that answers `What instrumental has tkven-i as the genitive?`:
```sql
|
SELECT "nominative" FROM "possessive_adjectives" WHERE "dative"='mis'; |
## Task
Generate a SQL query to answer the following question:
`What nominative has mis as the dative?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "possessive_adjectives" (
"nominative" text,
"ergative" text,
"dative" text,
"genitive" text,
"instrumental" text,
"adverbial" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nominative has mis as the dative?`:
```sql
|
SELECT "ergative" FROM "possessive_adjectives" WHERE "dative"='chem-s'; |
## Task
Generate a SQL query to answer the following question:
`With chem-s as the dative, what is the ergative?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "possessive_adjectives" (
"nominative" text,
"ergative" text,
"dative" text,
"genitive" text,
"instrumental" text,
"adverbial" text
);
### SQL
Given the database schema, here is the SQL query that answers `With chem-s as the dative, what is the ergative?`:
```sql
|
SELECT "instrumental" FROM "possessive_adjectives" WHERE "adverbial"='chven-s'; |
## Task
Generate a SQL query to answer the following question:
`What instrumental has chven-s as the adverbial?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "possessive_adjectives" (
"nominative" text,
"ergative" text,
"dative" text,
"genitive" text,
"instrumental" text,
"adverbial" text
);
### SQL
Given the database schema, here is the SQL query that answers `What instrumental has chven-s as the adverbial?`:
```sql
|
SELECT "ergative" FROM "possessive_adjectives" WHERE "nominative"='mis-i'; |
## Task
Generate a SQL query to answer the following question:
`Mis-i is the nominative of what ergative?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "possessive_adjectives" (
"nominative" text,
"ergative" text,
"dative" text,
"genitive" text,
"instrumental" text,
"adverbial" text
);
### SQL
Given the database schema, here is the SQL query that answers `Mis-i is the nominative of what ergative?`:
```sql
|
SELECT "week" FROM "singles" WHERE "surface"='hard' AND "tournament"='indian wells'; |
## Task
Generate a SQL query to answer the following question:
`what was the week for the match on a hard surface at Indian Wells tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the week for the match on a hard surface at Indian Wells tournament?`:
```sql
|
SELECT "week" FROM "singles" WHERE "tournament"='cincinnati'; |
## Task
Generate a SQL query to answer the following question:
`What week was the tournament at Cincinnati?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week was the tournament at Cincinnati?`:
```sql
|
SELECT "tournament" FROM "singles" WHERE "surface"='hard' AND "finalist"='jan-michael gambill (19)'; |
## Task
Generate a SQL query to answer the following question:
`Where was the tournament where the match was on a hard surface and jan-michael gambill (19) was the finalist?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the tournament where the match was on a hard surface and jan-michael gambill (19) was the finalist?`:
```sql
|
SELECT "semifinalists" FROM "singles" WHERE "tournament"='miami'; |
## Task
Generate a SQL query to answer the following question:
`Who was the semifinalist at the tournament in miami?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the semifinalist at the tournament in miami?`:
```sql
|
SELECT "winner" FROM "singles" WHERE "tournament"='hamburg'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner at the tournament in Hamburg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner at the tournament in Hamburg?`:
```sql
|
SELECT "venue" FROM "greek_cup_finals" WHERE "year"='21 june 1987'; |
## Task
Generate a SQL query to answer the following question:
`what is the venue on 21 june 1987?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "greek_cup_finals" (
"year" text,
"winner" text,
"runner_up" text,
"score" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the venue on 21 june 1987?`:
```sql
|
SELECT "year" FROM "greek_cup_finals" WHERE "winner"='panathinaikos' AND "runner_up"='olympiacos' AND "venue"='nikos goumas stadium'; |
## Task
Generate a SQL query to answer the following question:
`When is the winner panathinaikos, the runner-up olympiacos and the venue nikos goumas stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "greek_cup_finals" (
"year" text,
"winner" text,
"runner_up" text,
"score" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the winner panathinaikos, the runner-up olympiacos and the venue nikos goumas stadium?`:
```sql
|
SELECT "year" FROM "greek_cup_finals" WHERE "winner"='olympiacos' AND "venue"='georgios karaiskakis stadium' AND "runner_up"='iraklis'; |
## Task
Generate a SQL query to answer the following question:
`When is the winner olympiacos, the venue is georgios karaiskakis stadium and the runner-up is iraklis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "greek_cup_finals" (
"year" text,
"winner" text,
"runner_up" text,
"score" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the winner olympiacos, the venue is georgios karaiskakis stadium and the runner-up is iraklis?`:
```sql
|
SELECT "year" FROM "greek_cup_finals" WHERE "venue"='nikos goumas stadium' AND "score"='2–2 4–4 a.e.t. 6–5 pso'; |
## Task
Generate a SQL query to answer the following question:
`when is the venue nikos goumas stadium and the score is 2–2 4–4 a.e.t. 6–5 pso?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "greek_cup_finals" (
"year" text,
"winner" text,
"runner_up" text,
"score" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `when is the venue nikos goumas stadium and the score is 2–2 4–4 a.e.t. 6–5 pso?`:
```sql
|
SELECT "score" FROM "greek_cup_finals" WHERE "venue"='athens olympic stadium' AND "year"='30 april 2011'; |
## Task
Generate a SQL query to answer the following question:
`what is the score when the venue is athens olympic stadium on 30 april 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "greek_cup_finals" (
"year" text,
"winner" text,
"runner_up" text,
"score" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score when the venue is athens olympic stadium on 30 april 2011?`:
```sql
|
SELECT "season" FROM "teams" WHERE "skip"='eve muirhead' AND "third"='jackie lockhart (e/o) kelly wood (w)'; |
## Task
Generate a SQL query to answer the following question:
`Which Season has a Skip of Eve Muirhead with a thirs of Jackie Lockhart (e/o) Kelly Wood (w)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Season has a Skip of Eve Muirhead with a thirs of Jackie Lockhart (e/o) Kelly Wood (w)?`:
```sql
|
SELECT "season" FROM "teams" WHERE "skip"='eve muirhead' AND "third"='kerry barr'; |
## Task
Generate a SQL query to answer the following question:
`What is the season with a Skip of Eve Muirhead and a third of Kerry Barr?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season with a Skip of Eve Muirhead and a third of Kerry Barr?`:
```sql
|
SELECT "second" FROM "teams" WHERE "lead"='sarah macintyre (jr) anne laird (w)'; |
## Task
Generate a SQL query to answer the following question:
`Who is the second with a lead of Sarah Macintyre (jr) Anne Laird (w)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the second with a lead of Sarah Macintyre (jr) Anne Laird (w)?`:
```sql
|
SELECT "skip" FROM "teams" WHERE "third"='anna sloan' AND "season"='2012-13'; |
## Task
Generate a SQL query to answer the following question:
`What is the skip that has a third of Anna Sloan in season 2012-13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the skip that has a third of Anna Sloan in season 2012-13?`:
```sql
|
SELECT "lead" FROM "teams" WHERE "second"='vicki adams' AND "third"='anna sloan'; |
## Task
Generate a SQL query to answer the following question:
`What is the lead with a second of Vicki Adams and a third of Anna Sloan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lead with a second of Vicki Adams and a third of Anna Sloan?`:
```sql
|
SELECT "second" FROM "teams" WHERE "third"='kelly wood (e) anna sloan (jr)'; |
## Task
Generate a SQL query to answer the following question:
`Who is the second where the third of Kelly Wood (e) Anna Sloan (Jr)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"season" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the second where the third of Kelly Wood (e) Anna Sloan (Jr)?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "game"=65; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Game is "65"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Game is "65"?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "date"='march 12'; |
## Task
Generate a SQL query to answer the following question:
`What is High Rebounds, when Date is "March 12"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is High Rebounds, when Date is "March 12"?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "date"='march 13'; |
## Task
Generate a SQL query to answer the following question:
`What is High Rebounds, when Date is "March 13"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is High Rebounds, when Date is "March 13"?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "location_attendance"='td banknorth garden 18,624'; |
## Task
Generate a SQL query to answer the following question:
`What is Record, when Location Attendance is "TD Banknorth Garden 18,624"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Record, when Location Attendance is "TD Banknorth Garden 18,624"?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "game"=59; |
## Task
Generate a SQL query to answer the following question:
`What is Team, when Game is "59"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team, when Game is "59"?`:
```sql
|
SELECT "score" FROM "second_round_proper" WHERE "away_team"='torquay united'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score when the Away Team is Torquay United?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score when the Away Team is Torquay United?`:
```sql
|
SELECT "away_team" FROM "second_round_proper" WHERE "tie_no"='replay' AND "home_team"='chesterfield'; |
## Task
Generate a SQL query to answer the following question:
`Which Away Team has a Tie no of replay and a Home Team of Chesterfield?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Away Team has a Tie no of replay and a Home Team of Chesterfield?`:
```sql
|
SELECT "away_team" FROM "second_round_proper" WHERE "attendance"='6 december 1997' AND "home_team"='torquay united'; |
## Task
Generate a SQL query to answer the following question:
`What is the Away Team when the Home Team is Torquay United and the Attendence is 6 December 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Away Team when the Home Team is Torquay United and the Attendence is 6 December 1997?`:
```sql
|
SELECT "chassis" FROM "teams_and_drivers" WHERE "engine"='honda' AND "sponsor"='motorola'; |
## Task
Generate a SQL query to answer the following question:
`What is the Chassis of the Honda Engine with a Motorola sponsor?`
### 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,
"tire" text,
"sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Chassis of the Honda Engine with a Motorola sponsor?`:
```sql
|
SELECT "engine" FROM "teams_and_drivers" WHERE "tire"='goodyear' AND "sponsor"='herdez'; |
## Task
Generate a SQL query to answer the following question:
`What is the engine of the goodyear tire and Herdez as a sponsor?`
### 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,
"tire" text,
"sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the engine of the goodyear tire and Herdez as a sponsor?`:
```sql
|
SELECT "engine" FROM "teams_and_drivers" WHERE "team"='tasman motorsports'; |
## Task
Generate a SQL query to answer the following question:
`What engine does the Tasman Motorsports team have?`
### 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,
"tire" text,
"sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What engine does the Tasman Motorsports team have?`:
```sql
|
SELECT "tire" FROM "teams_and_drivers" WHERE "sponsor"='duracell'; |
## Task
Generate a SQL query to answer the following question:
`Which Tire has a Sponsor of Duracell?`
### 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,
"tire" text,
"sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tire has a Sponsor of Duracell?`:
```sql
|
SELECT "team" FROM "teams_and_drivers" WHERE "tire"='firestone' AND "chassis"='reynard 95i' AND "sponsor"='motorola'; |
## Task
Generate a SQL query to answer the following question:
`Which team has Firestone Tires a Reynard 95i Chassis and is sponsored by Motorola?`
### 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,
"tire" text,
"sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has Firestone Tires a Reynard 95i Chassis and is sponsored by Motorola?`:
```sql
|
SELECT MAX("num_of_constituency_votes") FROM "general_election_results" WHERE "election"=2005; |
## Task
Generate a SQL query to answer the following question:
`What is the highest # Of Constituency Votes, when Election is 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_election_results" (
"election" real,
"leader" text,
"num_of_candidates" real,
"num_of_constituency_votes" real,
"pct_of_constituency_vote" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest # Of Constituency Votes, when Election is 2005?`:
```sql
|
SELECT SUM("num_of_candidates") FROM "general_election_results" WHERE "num_of_constituency_votes"<'25,643,309' AND "leader"='masayoshi ōhira' AND "election"<1979; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of # Of Candidates, when # of Constituency Votes is less than 25,643,309, when Leader is Masayoshi Ōhira, and when Election is before 1979?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_election_results" (
"election" real,
"leader" text,
"num_of_candidates" real,
"num_of_constituency_votes" real,
"pct_of_constituency_vote" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of # Of Candidates, when # of Constituency Votes is less than 25,643,309, when Leader is Masayoshi Ōhira, and when Election is before 1979?`:
```sql
|
SELECT "pct_of_constituency_vote" FROM "general_election_results" WHERE "num_of_constituency_votes">'25,643,309' AND "num_of_candidates"=310; |
## Task
Generate a SQL query to answer the following question:
`What is the % Of Constituency Vote, when # Of Constituency Votes is greater than 25,643,309, and when # Of Candidates is 310?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_election_results" (
"election" real,
"leader" text,
"num_of_candidates" real,
"num_of_constituency_votes" real,
"pct_of_constituency_vote" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the % Of Constituency Vote, when # Of Constituency Votes is greater than 25,643,309, and when # Of Candidates is 310?`:
```sql
|
SELECT MAX("num_of_constituency_votes") FROM "general_election_results" WHERE "election"<1976 AND "leader"='eisaku satō' AND "num_of_candidates"<328; |
## Task
Generate a SQL query to answer the following question:
`What is the highest # Of Constituency Votes, when Election is before 1976, when Leader is Eisaku Satō, and when # Of Candidates is less than 328?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_election_results" (
"election" real,
"leader" text,
"num_of_candidates" real,
"num_of_constituency_votes" real,
"pct_of_constituency_vote" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest # Of Constituency Votes, when Election is before 1976, when Leader is Eisaku Satō, and when # Of Candidates is less than 328?`:
```sql
|
SELECT "overall" FROM "washington_redskins_draft_history" WHERE "college"='iowa' AND "position"='db'; |
## Task
Generate a SQL query to answer the following question:
`What was the overall draft pick of the player who was a db and attended college in iowa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the overall draft pick of the player who was a db and attended college in iowa?`:
```sql
|
SELECT AVG("pick") FROM "washington_redskins_draft_history" WHERE "overall"<28 AND "round"=3; |
## Task
Generate a SQL query to answer the following question:
`What number pick was the player drafted in round 3 at #28 overall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number pick was the player drafted in round 3 at #28 overall?`:
```sql
|
SELECT MIN("total") FROM "national_intelligence_program_nip" WHERE "data_processing_and_exploitation"='00 0,228' AND "management_and_support">'1,7'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest total data processing and exploitation of 00 0,228, and a management and support larger than 1,7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_intelligence_program_nip" (
"administrating_agencies_by_nip_funds_only" text,
"management_and_support" real,
"data_collection" text,
"data_processing_and_exploitation" text,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest total data processing and exploitation of 00 0,228, and a management and support larger than 1,7?`:
```sql
|
SELECT "permanent_account" FROM "defunct_sites" WHERE "userpics_free"='unknown' AND "registration"='invite-only'; |
## Task
Generate a SQL query to answer the following question:
`Which permanent account has registration of invite-only and userpics free of unknown?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defunct_sites" (
"name" text,
"year_began" text,
"registration" text,
"userpics_free" text,
"userpics_paid" text,
"monthly_cost_for_paid_account" text,
"yearly_cost_for_paid_account" text,
"permanent_account" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which permanent account has registration of invite-only and userpics free of unknown?`:
```sql
|
SELECT "year_began" FROM "defunct_sites" WHERE "userpics_paid"='n/a' AND "userpics_free"='1'; |
## Task
Generate a SQL query to answer the following question:
`What is the year began for the site with free userpics cost of $1 and a userpics paid value of N/A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defunct_sites" (
"name" text,
"year_began" text,
"registration" text,
"userpics_free" text,
"userpics_paid" text,
"monthly_cost_for_paid_account" text,
"yearly_cost_for_paid_account" text,
"permanent_account" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year began for the site with free userpics cost of $1 and a userpics paid value of N/A?`:
```sql
|
SELECT "week" FROM "singles" WHERE "tournament"='monte carlo'; |
## Task
Generate a SQL query to answer the following question:
`Which Week has a Tournament of monte carlo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week has a Tournament of monte carlo?`:
```sql
|
SELECT "winner_and_score" FROM "singles" WHERE "finalist"='aaron krickstein'; |
## Task
Generate a SQL query to answer the following question:
`Which Winner and score has a Finalist of aaron krickstein?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Winner and score has a Finalist of aaron krickstein?`:
```sql
|
SELECT "semifinalists" FROM "singles" WHERE "surface"='hard' AND "winner_and_score"='pete sampras 6–3, 3–6, 6–3'; |
## Task
Generate a SQL query to answer the following question:
`Which Semifinalists have a Surface of hard, and a Winner and score of pete sampras 6–3, 3–6, 6–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Semifinalists have a Surface of hard, and a Winner and score of pete sampras 6–3, 3–6, 6–3?`:
```sql
|
SELECT "finalist" FROM "singles" WHERE "winner_and_score"='boris becker 7–6(3), 6–3, 3–6, 6–3'; |
## Task
Generate a SQL query to answer the following question:
`Which Finalist has a Winner and score of boris becker 7–6(3), 6–3, 3–6, 6–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Finalist has a Winner and score of boris becker 7–6(3), 6–3, 3–6, 6–3?`:
```sql
|
SELECT "semifinalists" FROM "singles" WHERE "finalist"='andrei chesnokov'; |
## Task
Generate a SQL query to answer the following question:
`Which Semifinalists have a Finalist of andrei chesnokov?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Semifinalists have a Finalist of andrei chesnokov?`:
```sql
|
SELECT "surface" FROM "singles" WHERE "semifinalists"='wally masur malivai washington'; |
## Task
Generate a SQL query to answer the following question:
`Which Surface has Semifinalists of wally masur malivai washington?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"tournament" text,
"surface" text,
"week" text,
"winner_and_score" text,
"finalist" text,
"semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has Semifinalists of wally masur malivai washington?`:
```sql
|
SELECT "place" FROM "third_round" WHERE "score"='73-69-68=210'; |
## Task
Generate a SQL query to answer the following question:
`What place had a score of 73-69-68=210?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place had a score of 73-69-68=210?`:
```sql
|
SELECT "country" FROM "third_round" WHERE "place"='t9' AND "player"='gary player'; |
## Task
Generate a SQL query to answer the following question:
`What country is Gary Player from in T9 place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is Gary Player from in T9 place?`:
```sql
|
SELECT "score" FROM "third_round" WHERE "country"='new zealand'; |
## Task
Generate a SQL query to answer the following question:
`What's the score of New Zealand?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score of New Zealand?`:
```sql
|
SELECT "player" FROM "third_round" WHERE "score"='67-70-77=214'; |
## Task
Generate a SQL query to answer the following question:
`What player has a score of 67-70-77=214?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player has a score of 67-70-77=214?`:
```sql
|
SELECT "country" FROM "made_the_cut" WHERE "finish"='59'; |
## Task
Generate a SQL query to answer the following question:
`What country has a finish of 59?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a finish of 59?`:
```sql
|
SELECT "to_par" FROM "made_the_cut" WHERE "finish"='t16' AND "player"='julius boros'; |
## Task
Generate a SQL query to answer the following question:
`What is the To Par when the finish was t16 and the player was Julius Boros?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To Par when the finish was t16 and the player was Julius Boros?`:
```sql
|
SELECT "finish" FROM "made_the_cut" WHERE "player"='billy casper'; |
## Task
Generate a SQL query to answer the following question:
`What was the finish for Billy Casper?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finish for Billy Casper?`:
```sql
|
SELECT "competitor" FROM "alpine_skiing_at_the_1936_winter_olympic" WHERE "downhill">55 AND "1st_run"='dq'; |
## Task
Generate a SQL query to answer the following question:
`Who is the competitor with a downhill of more than 55, and 1st DQ run?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alpine_skiing_at_the_1936_winter_olympic" (
"place" text,
"downhill" real,
"competitor" text,
"1st_run" text,
"2nd_run" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the competitor with a downhill of more than 55, and 1st DQ run?`:
```sql
|
SELECT "1st_run" FROM "alpine_skiing_at_the_1936_winter_olympic" WHERE "downhill"<46 AND "points"='84.45'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1st run that is down hill less than 46, and 84.45 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "alpine_skiing_at_the_1936_winter_olympic" (
"place" text,
"downhill" real,
"competitor" text,
"1st_run" text,
"2nd_run" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st run that is down hill less than 46, and 84.45 points?`:
```sql
|
SELECT "ground" FROM "week_1" WHERE "home_team_score"='0.14.1.6 (93)'; |
## Task
Generate a SQL query to answer the following question:
`What ground has 0.14.1.6 (93) as the home team score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What ground has 0.14.1.6 (93) as the home team score?`:
```sql
|
SELECT "away_team_score" FROM "week_1" WHERE "home_team"='hawthorn'; |
## Task
Generate a SQL query to answer the following question:
`What away team score has hawthorn as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What away team score has hawthorn as the home team?`:
```sql
|
SELECT "make" FROM "gt300" WHERE "drivers"='hisashi wada'; |
## Task
Generate a SQL query to answer the following question:
`What is the make of the vehicle for driver Hisashi Wada?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gt300" (
"team" text,
"make" text,
"drivers" text,
"tyre" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the make of the vehicle for driver Hisashi Wada?`:
```sql
|
SELECT "rounds" FROM "gt300" WHERE "team"='avanzza rosso'; |
## Task
Generate a SQL query to answer the following question:
`In what rounds was the featured team of Avanzza Rosso?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gt300" (
"team" text,
"make" text,
"drivers" text,
"tyre" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what rounds was the featured team of Avanzza Rosso?`:
```sql
|
SELECT "rounds" FROM "gt300" WHERE "tyre"='y' AND "drivers"='tomonobu fujii'; |
## Task
Generate a SQL query to answer the following question:
`In what rounds was the featured driver Tomonobu Fujii with a Tyre of Y?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gt300" (
"team" text,
"make" text,
"drivers" text,
"tyre" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what rounds was the featured driver Tomonobu Fujii with a Tyre of Y?`:
```sql
|
SELECT "drivers" FROM "gt300" WHERE "tyre"='k' AND "team"='avanzza rosso'; |
## Task
Generate a SQL query to answer the following question:
`Who is the driver with a tyre of k for Avanzza Rosso?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gt300" (
"team" text,
"make" text,
"drivers" text,
"tyre" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the driver with a tyre of k for Avanzza Rosso?`:
```sql
|
SELECT "tyre" FROM "gt300" WHERE "drivers"='yoshihisa namekata'; |
## Task
Generate a SQL query to answer the following question:
`What is the tyre for Yoshihisa Namekata?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "gt300" (
"team" text,
"make" text,
"drivers" text,
"tyre" text,
"rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tyre for Yoshihisa Namekata?`:
```sql
|
SELECT MAX("overall") FROM "washington_redskins_draft_history" WHERE "position"='k' AND "pick"<28; |
## Task
Generate a SQL query to answer the following question:
`If the pick is under 28 and the position is k, what's the highest Overall pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the pick is under 28 and the position is k, what's the highest Overall pick?`:
```sql
|
SELECT MAX("overall") FROM "washington_redskins_draft_history" WHERE "position"='rb' AND "round"=8; |
## Task
Generate a SQL query to answer the following question:
`During round 8 when the Position being picked was rb, what was the highest overall pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `During round 8 when the Position being picked was rb, what was the highest overall pick?`:
```sql
|
SELECT "county" FROM "by_county" WHERE "bushnum"=566; |
## Task
Generate a SQL query to answer the following question:
`Which county had a Bush number of votes of 566?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which county had a Bush number of votes of 566?`:
```sql
|
SELECT "opponent" FROM "singles_10_8_2" WHERE "year">1996 AND "outcome"='winner'; |
## Task
Generate a SQL query to answer the following question:
`who is the opponent when the year is after 1996 and the outcome is winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_10_8_2" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the opponent when the year is after 1996 and the outcome is winner?`:
```sql
|
SELECT "surface" FROM "singles_10_8_2" WHERE "championship"='rome' AND "opponent"='sergi bruguera'; |
## Task
Generate a SQL query to answer the following question:
`what is the surface when the championship is rome and the opponent is sergi bruguera?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_10_8_2" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the surface when the championship is rome and the opponent is sergi bruguera?`:
```sql
|
SELECT "score" FROM "singles_10_8_2" WHERE "surface"='hard' AND "outcome"='runner-up'; |
## Task
Generate a SQL query to answer the following question:
`what is the score when the surface is hard and outcome is runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_10_8_2" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score when the surface is hard and outcome is runner-up?`:
```sql
|
SELECT SUM("game") FROM "game_log" WHERE "date"='february 24'; |
## Task
Generate a SQL query to answer the following question:
`What was the number of the game played on February 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the number of the game played on February 24?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "team"='oklahoma city'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the opponent was Oklahoma City, and what was the attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played when the opponent was Oklahoma City, and what was the attendance?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "game"=58; |
## Task
Generate a SQL query to answer the following question:
`What was the record when they played game 58?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record when they played game 58?`:
```sql
|
SELECT "score_in_the_final" FROM "singles_23_15_8" WHERE "date"='22 october 1990'; |
## Task
Generate a SQL query to answer the following question:
`What is Score In The Final, when Date is "22 October 1990"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_23_15_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score In The Final, when Date is "22 October 1990"?`:
```sql
|
SELECT "outcome" FROM "singles_23_15_8" WHERE "surface"='carpet (i)' AND "date"='15 november 1993'; |
## Task
Generate a SQL query to answer the following question:
`What is Outcome, when Surface is "Carpet (I)", and when Date is "15 November 1993"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_23_15_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Outcome, when Surface is "Carpet (I)", and when Date is "15 November 1993"?`:
```sql
|
SELECT "tournament" FROM "singles_23_15_8" WHERE "opponent_in_the_final"='andre agassi'; |
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when Opponent In The Final is "Andre Agassi"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_23_15_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when Opponent In The Final is "Andre Agassi"?`:
```sql
|
SELECT "score_in_the_final" FROM "singles_23_15_8" WHERE "date"='30 august 1993'; |
## Task
Generate a SQL query to answer the following question:
`What is Score In The Final, when Date is "30 August 1993"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_23_15_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score In The Final, when Date is "30 August 1993"?`:
```sql
|
SELECT "date" FROM "singles_23_15_8" WHERE "outcome"='winner' AND "surface"='grass'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Outcome is "Winner", and when Surface is "Grass"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_23_15_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Outcome is "Winner", and when Surface is "Grass"?`:
```sql
|
SELECT "opponent_in_the_final" FROM "singles_23_15_8" WHERE "outcome"='winner' AND "surface"='carpet (i)' AND "tournament"='lyon, france'; |
## Task
Generate a SQL query to answer the following question:
`What is Opponent In The Final, when Outcome is "Winner", when Surface is "Carpet (I)", and when Tournament is "Lyon, France"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_23_15_8" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent In The Final, when Outcome is "Winner", when Surface is "Carpet (I)", and when Tournament is "Lyon, France"?`:
```sql
|
SELECT COUNT("goals_against") FROM "preliminary_round" WHERE "wins"<5 AND "played"<5; |
## Task
Generate a SQL query to answer the following question:
`What are the total goals against the winner with less than 5 wins, and less than 5 plays?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preliminary_round" (
"rank" real,
"team" text,
"played" real,
"wins" real,
"ties" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total goals against the winner with less than 5 wins, and less than 5 plays?`:
```sql
|
SELECT AVG("losses") FROM "preliminary_round" WHERE "goals_for">22; |
## Task
Generate a SQL query to answer the following question:
`What is the average losses for 22 goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preliminary_round" (
"rank" real,
"team" text,
"played" real,
"wins" real,
"ties" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average losses for 22 goals?`:
```sql
|
SELECT SUM("wins") FROM "preliminary_round" WHERE "ties"<2 AND "goals_against"=18 AND "losses"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the total wins with less than 2 ties, 18 goals, and less than 2 losses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preliminary_round" (
"rank" real,
"team" text,
"played" real,
"wins" real,
"ties" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total wins with less than 2 ties, 18 goals, and less than 2 losses?`:
```sql
|
SELECT "overall_record" FROM "record_vs_big_12_opponents" WHERE "last_10_meetings"='ou, 7-3' AND "at_norman"='ou, 18-3'; |
## Task
Generate a SQL query to answer the following question:
`What is the Overall Record when the Last 10 Meetings is ou, 7-3, and Norman is ou, 18-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_vs_big_12_opponents" (
"oklahoma_vs" text,
"overall_record" text,
"at_norman" text,
"at_opponent_s_venue" text,
"at_neutral_site" text,
"last_5_meetings" text,
"last_10_meetings" text,
"current_streak" text,
"since_beginning_of_big_12" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Overall Record when the Last 10 Meetings is ou, 7-3, and Norman is ou, 18-3?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.