output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("goals_against") FROM "group_ii" WHERE "played">38; |
## Task
Generate a SQL query to answer the following question:
`What is the number of goals against when the played is more than 38?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of goals against when the played is more than 38?`:
```sql
|
SELECT COUNT("draws") FROM "group_ii" WHERE "played"<38; |
## Task
Generate a SQL query to answer the following question:
`What is the number of draws when played is less than 38?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of draws when played is less than 38?`:
```sql
|
SELECT SUM("points") FROM "group_ii" WHERE "played"<38; |
## Task
Generate a SQL query to answer the following question:
`What is the points when played is less than 38?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the points when played is less than 38?`:
```sql
|
SELECT "transfer_window" FROM "squad_changes" WHERE "name"='tofas'; |
## Task
Generate a SQL query to answer the following question:
`Which Transfer window has a Name of tofas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_changes" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Transfer window has a Name of tofas?`:
```sql
|
SELECT "type" FROM "squad_changes" WHERE "transfer_fee"='free' AND "name"='kapetanos'; |
## Task
Generate a SQL query to answer the following question:
`Which Type has a Transfer fee of free, and a Name of kapetanos?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_changes" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Type has a Transfer fee of free, and a Name of kapetanos?`:
```sql
|
SELECT "type" FROM "squad_changes" WHERE "name"='edson ratinho'; |
## Task
Generate a SQL query to answer the following question:
`Which Type has a Name of edson ratinho?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_changes" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Type has a Name of edson ratinho?`:
```sql
|
SELECT "name" FROM "squad_changes" WHERE "type"='loan' AND "moving_to"='apollon kalamaria'; |
## Task
Generate a SQL query to answer the following question:
`Which Name has a Type of loan, and a Moving to of apollon kalamaria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "squad_changes" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a Type of loan, and a Moving to of apollon kalamaria?`:
```sql
|
SELECT "location" FROM "calendar_and_results" WHERE "circuit"='august 16'; |
## Task
Generate a SQL query to answer the following question:
`What is Location, when Circuit is August 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar_and_results" (
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Location, when Circuit is August 16?`:
```sql
|
SELECT "location" FROM "calendar_and_results" WHERE "fastest_lap"='ben spies' AND "pole_position"='ben spies' AND "winner"='ben spies' AND "date"='tooele, utah'; |
## Task
Generate a SQL query to answer the following question:
`What is Location, when Fastest Lap is Ben Spies, when Pole Position is Ben Spies, when Winner is Ben Spies, and when Date is Tooele, Utah?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar_and_results" (
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Location, when Fastest Lap is Ben Spies, when Pole Position is Ben Spies, when Winner is Ben Spies, and when Date is Tooele, Utah?`:
```sql
|
SELECT "fastest_lap" FROM "calendar_and_results" WHERE "date"='leeds, alabama' AND "circuit"='april 19'; |
## Task
Generate a SQL query to answer the following question:
`What is Fastest Lap, when Date is Leeds, Alabama, and when Circuit is April 19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar_and_results" (
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Fastest Lap, when Date is Leeds, Alabama, and when Circuit is April 19?`:
```sql
|
SELECT "winner" FROM "calendar_and_results" WHERE "circuit"='june 8'; |
## Task
Generate a SQL query to answer the following question:
`What is Winner, when Circuit is June 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar_and_results" (
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winner, when Circuit is June 8?`:
```sql
|
SELECT "pole_position" FROM "calendar_and_results" WHERE "fastest_lap"='ben spies' AND "location"='barber motorsports park'; |
## Task
Generate a SQL query to answer the following question:
`What is Pole Position, when Fastest Lap is Ben Spies, and when Location is Barber Motorsports Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar_and_results" (
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Pole Position, when Fastest Lap is Ben Spies, and when Location is Barber Motorsports Park?`:
```sql
|
SELECT "winner" FROM "calendar_and_results" WHERE "pole_position"='ben spies' AND "date"='elkhart lake, wisconsin'; |
## Task
Generate a SQL query to answer the following question:
`What is Winner, when Pole Position is Ben Spies, and when Date is Elkhart Lake, Wisconsin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "calendar_and_results" (
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winner, when Pole Position is Ben Spies, and when Date is Elkhart Lake, Wisconsin?`:
```sql
|
SELECT "surface" FROM "doubles_12_6_6" WHERE "score"='4–6, 6–4, 3–6'; |
## Task
Generate a SQL query to answer the following question:
`What is the Surface of the court in the match with a Score of 4–6, 6–4, 3–6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_12_6_6" (
"outcome" text,
"year" real,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Surface of the court in the match with a Score of 4–6, 6–4, 3–6?`:
```sql
|
SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "year">2010; |
## Task
Generate a SQL query to answer the following question:
`Which Team has a Year larger than 2010?`
### 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 a Year larger than 2010?`:
```sql
|
SELECT AVG("laps") FROM "24_hours_of_le_mans_results" WHERE "year"=2007; |
## Task
Generate a SQL query to answer the following question:
`Which Laps has a Year of 2007?`
### 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 Laps has a Year of 2007?`:
```sql
|
SELECT "tie_no" FROM "third_round_proper" WHERE "home_team"='swindon town'; |
## Task
Generate a SQL query to answer the following question:
`What was the tie number with the home team of Swindon Town?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tie number with the home team of Swindon Town?`:
```sql
|
SELECT "tie_no" FROM "third_round_proper" WHERE "away_team"='sheffield wednesday'; |
## Task
Generate a SQL query to answer the following question:
`What was the tie number with the away team of Sheffield Wednesday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tie number with the away team of Sheffield Wednesday?`:
```sql
|
SELECT "score" FROM "third_round_proper" WHERE "tie_no"='23'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for the match with tie number 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the match with tie number 23?`:
```sql
|
SELECT "home_team" FROM "third_round_proper" WHERE "away_team"='arsenal'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team for the match against Arsenal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team for the match against Arsenal?`:
```sql
|
SELECT "player" FROM "final_round" WHERE "country"='united states' AND "money">'535,000' AND "place"='t10' AND "score"='73-68-73-74=288'; |
## Task
Generate a SQL query to answer the following question:
`Which player has United States as the country, more money ($) than 535,000, t10 as the place, with 73-68-73-74=288 as the score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has United States as the country, more money ($) than 535,000, t10 as the place, with 73-68-73-74=288 as the score?`:
```sql
|
SELECT "place" FROM "final_round" WHERE "player"='payne stewart'; |
## Task
Generate a SQL query to answer the following question:
`Which place is payne stewart, the player in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which place is payne stewart, the player in?`:
```sql
|
SELECT "player" FROM "final_round" WHERE "to_par"='+7' AND "score"='69-69-75-74=287'; |
## Task
Generate a SQL query to answer the following question:
`What player has +7 as the to par, and 69-69-75-74=287 as the score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What player has +7 as the to par, and 69-69-75-74=287 as the score?`:
```sql
|
SELECT "tournament" FROM "pga_tour_8" WHERE "runner_s_up"='ryan palmer'; |
## Task
Generate a SQL query to answer the following question:
`Which tournaments was Ryan Palmer in as a runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournaments was Ryan Palmer in as a runner-up?`:
```sql
|
SELECT "margin_of_victory" FROM "pga_tour_8" WHERE "tournament"='the players championship'; |
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory for the Players Championship tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory for the Players Championship tournament?`:
```sql
|
SELECT "tournament" FROM "pga_tour_8" WHERE "runner_s_up"='kirk triplett'; |
## Task
Generate a SQL query to answer the following question:
`What tournament was Kirk Triplett a runner-up in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament was Kirk Triplett a runner-up in?`:
```sql
|
SELECT "winning_score" FROM "pga_tour_8" WHERE "tournament"='b.c. open 1'; |
## Task
Generate a SQL query to answer the following question:
`What is the winning score for the B.C. Open 1 tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning score for the B.C. Open 1 tournament?`:
```sql
|
SELECT "country" FROM "third_round" WHERE "player"='lee janzen'; |
## Task
Generate a SQL query to answer the following question:
`What country is Lee Janzen from?`
### 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 Lee Janzen from?`:
```sql
|
SELECT "to_par" FROM "third_round" WHERE "place"='t6' AND "player"='tom watson'; |
## Task
Generate a SQL query to answer the following question:
`When Tom Watson placed t6, what was the 2 par?`
### 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 `When Tom Watson placed t6, what was the 2 par?`:
```sql
|
SELECT "player" FROM "third_round" WHERE "score"='70-69-70=209'; |
## Task
Generate a SQL query to answer the following question:
`Who had a score of 70-69-70=209?`
### 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 `Who had a score of 70-69-70=209?`:
```sql
|
SELECT "opponent" FROM "singles_12_8" WHERE "tournament"='tarragona'; |
## Task
Generate a SQL query to answer the following question:
`What was the Opponent in the Tarragona Tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_12_8" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Opponent in the Tarragona Tournament?`:
```sql
|
SELECT "tournament" FROM "singles_12_8" WHERE "score"='6–2, 4–6, 6–4'; |
## Task
Generate a SQL query to answer the following question:
`What Tournament's Score was 6–2, 4–6, 6–4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_12_8" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Tournament's Score was 6–2, 4–6, 6–4?`:
```sql
|
SELECT "date" FROM "singles_12_8" WHERE "score"='6-2, 6-4'; |
## Task
Generate a SQL query to answer the following question:
`On what Date was the match with a Score of 6-2, 6-4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_12_8" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was the match with a Score of 6-2, 6-4?`:
```sql
|
SELECT COUNT("year") FROM "awards_and_honors" WHERE "category"='best actress in a revival'; |
## Task
Generate a SQL query to answer the following question:
`How many years had the best actress in a Revival category?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_honors" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years had the best actress in a Revival category?`:
```sql
|
SELECT "category" FROM "awards_and_honors" WHERE "year"<1992 AND "nominated_work"='yerma'; |
## Task
Generate a SQL query to answer the following question:
`What categories had a Nominated work of yerma before 1992?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_honors" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What categories had a Nominated work of yerma before 1992?`:
```sql
|
SELECT COUNT("shot_diameter_cm") FROM "english_gun_classes_c_1800_citation_need" WHERE "shot_volume_cm_3"<172.76; |
## Task
Generate a SQL query to answer the following question:
`How many times is the shot volume (cm3) less than 172.76?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "english_gun_classes_c_1800_citation_need" (
"gun_class_pdr" real,
"shot_diameter_cm" real,
"shot_volume_cm_3" real,
"approx_service_bore_cm" real,
"mass_of_projectile_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the shot volume (cm3) less than 172.76?`:
```sql
|
SELECT AVG("shot_volume_cm_3") FROM "english_gun_classes_c_1800_citation_need" WHERE "shot_diameter_cm"<6.04; |
## Task
Generate a SQL query to answer the following question:
`what is the average shot volume (cm 3) when the shot diameter (cm) is less than 6.04?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "english_gun_classes_c_1800_citation_need" (
"gun_class_pdr" real,
"shot_diameter_cm" real,
"shot_volume_cm_3" real,
"approx_service_bore_cm" real,
"mass_of_projectile_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average shot volume (cm 3) when the shot diameter (cm) is less than 6.04?`:
```sql
|
SELECT "role" FROM "awards_and_nominations" WHERE "festival_organization"='sydney film festival'; |
## Task
Generate a SQL query to answer the following question:
`What role was nominated at the Sydney Film Festival?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"nominated_won" text,
"award_category" text,
"festival_organization" text,
"role" text
);
### SQL
Given the database schema, here is the SQL query that answers `What role was nominated at the Sydney Film Festival?`:
```sql
|
SELECT "award_category" FROM "awards_and_nominations" WHERE "nominated_won"='won' AND "year"=2007; |
## Task
Generate a SQL query to answer the following question:
`In what category was an award won in 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"nominated_won" text,
"award_category" text,
"festival_organization" text,
"role" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what category was an award won in 2007?`:
```sql
|
SELECT MIN("year") FROM "awards_and_nominations" WHERE "festival_organization"='satellite award'; |
## Task
Generate a SQL query to answer the following question:
`What is the first year that there was a Satellite Award?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"nominated_won" text,
"award_category" text,
"festival_organization" text,
"role" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first year that there was a Satellite Award?`:
```sql
|
SELECT "role" FROM "awards_and_nominations" WHERE "year"=2008 AND "festival_organization"='sydney film festival'; |
## Task
Generate a SQL query to answer the following question:
`What role was at the Sydney Film Festival in 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"nominated_won" text,
"award_category" text,
"festival_organization" text,
"role" text
);
### SQL
Given the database schema, here is the SQL query that answers `What role was at the Sydney Film Festival in 2008?`:
```sql
|
SELECT "nominated_won" FROM "awards_and_nominations" WHERE "award_category"='jury award'; |
## Task
Generate a SQL query to answer the following question:
`What was nominated for the Jury Award?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"nominated_won" text,
"award_category" text,
"festival_organization" text,
"role" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was nominated for the Jury Award?`:
```sql
|
SELECT "released" FROM "series_3" WHERE "series_sorted"='6y/ai'; |
## Task
Generate a SQL query to answer the following question:
`what is the released when the series is sorted 6y/ai?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3" (
"series_sorted" text,
"title" text,
"doctor" text,
"featuring" text,
"released" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the released when the series is sorted 6y/ai?`:
```sql
|
SELECT "featuring" FROM "series_3" WHERE "doctor"='6th' AND "series_sorted"='6y/ak'; |
## Task
Generate a SQL query to answer the following question:
`who is the featuring when the doctor is the 6th and the series sorted is 6y/ak?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3" (
"series_sorted" text,
"title" text,
"doctor" text,
"featuring" text,
"released" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the featuring when the doctor is the 6th and the series sorted is 6y/ak?`:
```sql
|
SELECT "series_sorted" FROM "series_3" WHERE "released"='may 2012'; |
## Task
Generate a SQL query to answer the following question:
`what is the series sorted when the released is may 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3" (
"series_sorted" text,
"title" text,
"doctor" text,
"featuring" text,
"released" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the series sorted when the released is may 2012?`:
```sql
|
SELECT "featuring" FROM "series_3" WHERE "series_sorted"='6eb/b'; |
## Task
Generate a SQL query to answer the following question:
`who is the featuring when the series sorted is 6eb/b?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_3" (
"series_sorted" text,
"title" text,
"doctor" text,
"featuring" text,
"released" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the featuring when the series sorted is 6eb/b?`:
```sql
|
SELECT "country" FROM "missed_the_cut" WHERE "year_s_won"='1977'; |
## Task
Generate a SQL query to answer the following question:
`Which Country has a Year(s) won of 1977?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Year(s) won of 1977?`:
```sql
|
SELECT MIN("to_par") FROM "missed_the_cut" WHERE "year_s_won"='1962, 1967, 1972, 1980' AND "total">149; |
## Task
Generate a SQL query to answer the following question:
`Which To par is the lowest one that has a Year(s) won of 1962, 1967, 1972, 1980, and a Total larger than 149?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par is the lowest one that has a Year(s) won of 1962, 1967, 1972, 1980, and a Total larger than 149?`:
```sql
|
SELECT "country" FROM "missed_the_cut" WHERE "total"=148; |
## Task
Generate a SQL query to answer the following question:
`Which Country has a Total of 148?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Total of 148?`:
```sql
|
SELECT "year_s_won" FROM "missed_the_cut" WHERE "total"=147; |
## Task
Generate a SQL query to answer the following question:
`Which Year(s) won has a Total of 147?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year(s) won has a Total of 147?`:
```sql
|
SELECT MAX("to_par") FROM "missed_the_cut" WHERE "total"<148; |
## Task
Generate a SQL query to answer the following question:
`Which To par is the highest one that has a Total smaller than 148?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missed_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par is the highest one that has a Total smaller than 148?`:
```sql
|
SELECT "candidate" FROM "table_presidential_elections" WHERE "election"='2008 (2)'; |
## Task
Generate a SQL query to answer the following question:
`Who is the candidate in the 2008 (2) election?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_presidential_elections" (
"election" text,
"candidate" text,
"number_of_votes" text,
"share_of_votes" text,
"outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the candidate in the 2008 (2) election?`:
```sql
|
SELECT "share_of_votes" FROM "table_presidential_elections" WHERE "election"='2008 (1)'; |
## Task
Generate a SQL query to answer the following question:
`What is the share of votes in the 2008 (1) election?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_presidential_elections" (
"election" text,
"candidate" text,
"number_of_votes" text,
"share_of_votes" text,
"outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the share of votes in the 2008 (1) election?`:
```sql
|
SELECT "share_of_votes" FROM "table_presidential_elections" WHERE "election"='2000 (2nd)'; |
## Task
Generate a SQL query to answer the following question:
`What is the share of votes in the 2000 (2nd) election?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_presidential_elections" (
"election" text,
"candidate" text,
"number_of_votes" text,
"share_of_votes" text,
"outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the share of votes in the 2000 (2nd) election?`:
```sql
|
SELECT "election" FROM "table_presidential_elections" WHERE "outcome_of_election"='ndc opposition' AND "number_of_votes"='2,728,241'; |
## Task
Generate a SQL query to answer the following question:
`What is the election with an outcome of ndc opposition and 2,728,241 votes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_presidential_elections" (
"election" text,
"candidate" text,
"number_of_votes" text,
"share_of_votes" text,
"outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the election with an outcome of ndc opposition and 2,728,241 votes?`:
```sql
|
SELECT "outcome_of_election" FROM "table_presidential_elections" WHERE "share_of_votes"='43.3%'; |
## Task
Generate a SQL query to answer the following question:
`What is the outcome of the election with 43.3% share of votes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_presidential_elections" (
"election" text,
"candidate" text,
"number_of_votes" text,
"share_of_votes" text,
"outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the outcome of the election with 43.3% share of votes?`:
```sql
|
SELECT "candidate" FROM "table_presidential_elections" WHERE "election"='2012'; |
## Task
Generate a SQL query to answer the following question:
`Who is the candidate in the 2012 election?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_presidential_elections" (
"election" text,
"candidate" text,
"number_of_votes" text,
"share_of_votes" text,
"outcome_of_election" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the candidate in the 2012 election?`:
```sql
|
SELECT "score" FROM "final_round" WHERE "player"='mark o''meara'; |
## Task
Generate a SQL query to answer the following question:
`What is Mark O'Meara's Score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Mark O'Meara's Score?`:
```sql
|
SELECT "score" FROM "final_round" WHERE "player"='curtis strange'; |
## Task
Generate a SQL query to answer the following question:
`What is Curtis Strange's Score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Curtis Strange's Score?`:
```sql
|
SELECT "catalog" FROM "release_history" WHERE "label"='cbs' AND "tracks"='\"it''s automatic\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the Catalog number of the CBS Track "It's Automatic"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"date" real,
"tracks" text,
"length" text,
"label" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Catalog number of the CBS Track "It's Automatic"?`:
```sql
|
SELECT "tracks" FROM "release_history" WHERE "catalog"='ba 222304' AND "length"='2:57'; |
## Task
Generate a SQL query to answer the following question:
`What is the Tracks of the release in Catalog BA 222304 with a Length of 2:57?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"date" real,
"tracks" text,
"length" text,
"label" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tracks of the release in Catalog BA 222304 with a Length of 2:57?`:
```sql
|
SELECT SUM("date") FROM "release_history" WHERE "label"='columbia' AND "tracks"='\"do it again\"'; |
## Task
Generate a SQL query to answer the following question:
`On what Date did Columbia release the Track "Do it again"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"date" real,
"tracks" text,
"length" text,
"label" text,
"catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date did Columbia release the Track "Do it again"?`:
```sql
|
SELECT MAX("match_no") FROM "group_2" WHERE "date"='2008-03-21' AND "time"='16:00'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Match No., when Date is 2008-03-21, and when Time is 16:00?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_2" (
"match_no" real,
"date" text,
"time" text,
"score" text,
"venue" text,
"match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Match No., when Date is 2008-03-21, and when Time is 16:00?`:
```sql
|
SELECT "venue" FROM "highest_team_totals_against" WHERE "runs"='325/6'; |
## Task
Generate a SQL query to answer the following question:
`What was the venue for runs 325/6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_team_totals_against" (
"rank" text,
"runs" text,
"opponent" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue for runs 325/6?`:
```sql
|
SELECT "season" FROM "highest_team_totals_against" WHERE "runs"='310/9'; |
## Task
Generate a SQL query to answer the following question:
`What season were the runs 310/9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_team_totals_against" (
"rank" text,
"runs" text,
"opponent" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season were the runs 310/9?`:
```sql
|
SELECT "runs" FROM "highest_team_totals_against" WHERE "opponent"='west indies'; |
## Task
Generate a SQL query to answer the following question:
`What were the runs for the opponent from the West Indies?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_team_totals_against" (
"rank" text,
"runs" text,
"opponent" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the runs for the opponent from the West Indies?`:
```sql
|
SELECT "place" FROM "final_round" WHERE "country"='united states' AND "money">'145,000' AND "to_par"='–2' AND "score"='70-66-73-69=278'; |
## Task
Generate a SQL query to answer the following question:
`Which Place has a Country of united states, and Money ($) larger than 145,000, and a To par of –2, and a Score of 70-66-73-69=278?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Place has a Country of united states, and Money ($) larger than 145,000, and a To par of –2, and a Score of 70-66-73-69=278?`:
```sql
|
SELECT AVG("money") FROM "final_round" WHERE "score"='70-66-73-69=278'; |
## Task
Generate a SQL query to answer the following question:
`Which Money ($) has a Score of 70-66-73-69=278?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Money ($) has a Score of 70-66-73-69=278?`:
```sql
|
SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "opponent"='sam sotello'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds did the match last with Sam Sotello as the opponent?`
### 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,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds did the match last with Sam Sotello as the opponent?`:
```sql
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "event"='ufc 62'; |
## Task
Generate a SQL query to answer the following question:
`What is the record for the loss in UFC 62?`
### 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,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the loss in UFC 62?`:
```sql
|
SELECT "part_4" FROM "class_7" WHERE "part_3"='*heguldun *febungun'; |
## Task
Generate a SQL query to answer the following question:
`What is the part 4 with *heguldun *febungun in part 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "class_7" (
"subclass" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the part 4 with *heguldun *febungun in part 3?`:
```sql
|
SELECT "part_3" FROM "class_7" WHERE "part_2"='*hegait'; |
## Task
Generate a SQL query to answer the following question:
`What is the part 3 with *hegait in part 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "class_7" (
"subclass" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the part 3 with *hegait in part 2?`:
```sql
|
SELECT "part_4" FROM "class_7" WHERE "part_1"='*hlaupaną *stautaną'; |
## Task
Generate a SQL query to answer the following question:
`What is the part 4 with *hlaupaną *stautaną in part 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "class_7" (
"subclass" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the part 4 with *hlaupaną *stautaną in part 1?`:
```sql
|
SELECT "verb_meaning" FROM "class_7" WHERE "part_1"='*haldaną *fanhaną'; |
## Task
Generate a SQL query to answer the following question:
`What is the verb meaning of *haldaną *fanhaną in part 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "class_7" (
"subclass" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the verb meaning of *haldaną *fanhaną in part 1?`:
```sql
|
SELECT "producer_s" FROM "belgium_cd_track_listings" WHERE "songwriter_s"='sezen aksu'; |
## Task
Generate a SQL query to answer the following question:
`Who is sezen aksu's producer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "belgium_cd_track_listings" (
"track" real,
"title" text,
"songwriter_s" text,
"producer_s" text,
"length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is sezen aksu's producer?`:
```sql
|
SELECT "title" FROM "belgium_cd_track_listings" WHERE "songwriter_s"='hadise açıkgöz, stefaan fernande, elio deepcore'; |
## Task
Generate a SQL query to answer the following question:
`Which Title has a Songwriter(s) of hadise açıkgöz, stefaan fernande, elio deepcore?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "belgium_cd_track_listings" (
"track" real,
"title" text,
"songwriter_s" text,
"producer_s" text,
"length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Title has a Songwriter(s) of hadise açıkgöz, stefaan fernande, elio deepcore?`:
```sql
|
SELECT "title" FROM "belgium_cd_track_listings" WHERE "length"='3:32' AND "producer_s"='hadise açıkgöz, yves jongen'; |
## Task
Generate a SQL query to answer the following question:
`Which Title has a Length of 3:32, and a Producer(s) of hadise açıkgöz, yves jongen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "belgium_cd_track_listings" (
"track" real,
"title" text,
"songwriter_s" text,
"producer_s" text,
"length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Title has a Length of 3:32, and a Producer(s) of hadise açıkgöz, yves jongen?`:
```sql
|
SELECT "producer_s" FROM "belgium_cd_track_listings" WHERE "track"<8 AND "songwriter_s"='hadise açıkgöz, yves jongen' AND "length"='3:08'; |
## Task
Generate a SQL query to answer the following question:
`Which Producer(s) has a Track smaller than 8, and a Songwriter(s) of hadise açıkgöz, yves jongen, and a Length of 3:08?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "belgium_cd_track_listings" (
"track" real,
"title" text,
"songwriter_s" text,
"producer_s" text,
"length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Producer(s) has a Track smaller than 8, and a Songwriter(s) of hadise açıkgöz, yves jongen, and a Length of 3:08?`:
```sql
|
SELECT "title" FROM "belgium_cd_track_listings" WHERE "track"=6; |
## Task
Generate a SQL query to answer the following question:
`What is track 6's title?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "belgium_cd_track_listings" (
"track" real,
"title" text,
"songwriter_s" text,
"producer_s" text,
"length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is track 6's title?`:
```sql
|
SELECT "company_name" FROM "ecosystem_operators_mobile_phone_and_cli" WHERE "hardware_model"='nokia 700'; |
## Task
Generate a SQL query to answer the following question:
`What company makes the Nokia 700?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ecosystem_operators_mobile_phone_and_cli" (
"company_name" text,
"hardware_model" text,
"accreditation_type" text,
"accreditation_level" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What company makes the Nokia 700?`:
```sql
|
SELECT "accreditation_level" FROM "ecosystem_operators_mobile_phone_and_cli" WHERE "date"='approved (awarded 05.12.12)'; |
## Task
Generate a SQL query to answer the following question:
`What is the accreditation level for the approved (awarded 05.12.12) date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ecosystem_operators_mobile_phone_and_cli" (
"company_name" text,
"hardware_model" text,
"accreditation_type" text,
"accreditation_level" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the accreditation level for the approved (awarded 05.12.12) date?`:
```sql
|
SELECT "date" FROM "ecosystem_operators_mobile_phone_and_cli" WHERE "company_name"='samsung electronics co ltd' AND "hardware_model"='gt-i9100'; |
## Task
Generate a SQL query to answer the following question:
`When did Samsung Electronics Co LTD make the GT-i9100?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ecosystem_operators_mobile_phone_and_cli" (
"company_name" text,
"hardware_model" text,
"accreditation_type" text,
"accreditation_level" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did Samsung Electronics Co LTD make the GT-i9100?`:
```sql
|
SELECT "accreditation_type" FROM "ecosystem_operators_mobile_phone_and_cli" WHERE "accreditation_level"='joyn' AND "company_name"='nokia corporation'; |
## Task
Generate a SQL query to answer the following question:
`When the Nokia corporation had an accreditation level of joyn, what was the accreditation type?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ecosystem_operators_mobile_phone_and_cli" (
"company_name" text,
"hardware_model" text,
"accreditation_type" text,
"accreditation_level" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Nokia corporation had an accreditation level of joyn, what was the accreditation type?`:
```sql
|
SELECT "round" FROM "mixed_martial_arts_record" WHERE "record"='4-1'; |
## Task
Generate a SQL query to answer the following question:
`What is Round, when Record is "4-1"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Round, when Record is "4-1"?`:
```sql
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "location"='tokyo , japan' AND "method"='decision (unanimous)' AND "record"='4-1'; |
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Location is "Tokyo , Japan", when Method is "Decision (unanimous)", and when Record is "4-1"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when Location is "Tokyo , Japan", when Method is "Decision (unanimous)", and when Record is "4-1"?`:
```sql
|
SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='thiago alves'; |
## Task
Generate a SQL query to answer the following question:
`What is Method, when Opponent is "Thiago Alves"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Method, when Opponent is "Thiago Alves"?`:
```sql
|
SELECT "event" FROM "mixed_martial_arts_record" WHERE "round"='1' AND "location"='osaka , japan' AND "method"='tko (corner stoppage)'; |
## Task
Generate a SQL query to answer the following question:
`What is Event, when Round is "1", when Location is "Osaka , Japan", and when Method is "TKO (corner stoppage)"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Event, when Round is "1", when Location is "Osaka , Japan", and when Method is "TKO (corner stoppage)"?`:
```sql
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='ufc 64'; |
## Task
Generate a SQL query to answer the following question:
`What is Record, when Event is "UFC 64"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Record, when Event is "UFC 64"?`:
```sql
|
SELECT "record" FROM "schedule_and_results" WHERE "game"<24 AND "decision"='lundqvist' AND "november"<8 AND "opponent"='new york islanders'; |
## Task
Generate a SQL query to answer the following question:
`What is the Record for a game smaller than 24, Lundqvist was the decision, November less than 8, and opponent Was New York Islanders?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"decision" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record for a game smaller than 24, Lundqvist was the decision, November less than 8, and opponent Was New York Islanders?`:
```sql
|
SELECT MIN("game") FROM "schedule_and_results" WHERE "record"='16-7-2'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest game number with a record of 16-7-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"decision" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest game number with a record of 16-7-2?`:
```sql
|
SELECT "score" FROM "schedule_and_results" WHERE "decision"='lundqvist' AND "november"<28 AND "opponent"='boston bruins'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of the game with a decision of Lundqvist, the November less than 28, and opponent was Boston Bruins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"decision" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of the game with a decision of Lundqvist, the November less than 28, and opponent was Boston Bruins?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "competition"='2013 eaff east asian cup qualifier'; |
## Task
Generate a SQL query to answer the following question:
`Where was the 2013 Eaff East Asian Cup Qualifier played?`
### 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 `Where was the 2013 Eaff East Asian Cup Qualifier played?`:
```sql
|
SELECT MAX("points") FROM "groupe_a" WHERE "goal_average">4 AND "draws"<12 AND "goals_for"=63; |
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of points with a goal average larger than 4, less than 12 draws, and a goal of 63?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "groupe_a" (
"rank" real,
"club" text,
"points" real,
"played" real,
"victories" real,
"draws" real,
"defeats" real,
"goals_for" real,
"goals_against" real,
"goal_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of points with a goal average larger than 4, less than 12 draws, and a goal of 63?`:
```sql
|
SELECT MIN("goals_for") FROM "groupe_a" WHERE "goals_against"=37 AND "victories"<15; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest goal for a goal against 37 and less than 15 victories?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "groupe_a" (
"rank" real,
"club" text,
"points" real,
"played" real,
"victories" real,
"draws" real,
"defeats" real,
"goals_for" real,
"goals_against" real,
"goal_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest goal for a goal against 37 and less than 15 victories?`:
```sql
|
SELECT AVG("goals_for") FROM "groupe_a" WHERE "rank"=3; |
## Task
Generate a SQL query to answer the following question:
`How many goals on average are there for rank 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "groupe_a" (
"rank" real,
"club" text,
"points" real,
"played" real,
"victories" real,
"draws" real,
"defeats" real,
"goals_for" real,
"goals_against" real,
"goal_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals on average are there for rank 3?`:
```sql
|
SELECT AVG("goals_against") FROM "final_table" WHERE "played">42; |
## Task
Generate a SQL query to answer the following question:
`What is the average goals against when there are more than 42 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average goals against when there are more than 42 played?`:
```sql
|
SELECT "goal_difference" FROM "final_table" WHERE "team"='chorley'; |
## Task
Generate a SQL query to answer the following question:
`What is the goal difference for the team from Chorley?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the goal difference for the team from Chorley?`:
```sql
|
SELECT "score" FROM "final_round" WHERE "place"='t8' AND "player"='scott hoch'; |
## Task
Generate a SQL query to answer the following question:
`What is T8 Place Player Scott Hoch's Score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is T8 Place Player Scott Hoch's Score?`:
```sql
|
SELECT "place" FROM "final_round" WHERE "score"='67-76-74-67=284'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a Score of 67-76-74-67=284?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Place of the Player with a Score of 67-76-74-67=284?`:
```sql
|
SELECT "money" FROM "final_round" WHERE "score"='69-71-69-72=281'; |
## Task
Generate a SQL query to answer the following question:
`What is the Money of the Player with a Score of 69-71-69-72=281?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Money of the Player with a Score of 69-71-69-72=281?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.