output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "category" FROM "awards_and_nominations" WHERE "nominated"='maite perroni' AND "year"<2009; |
## Task
Generate a SQL query to answer the following question:
`Which category was Maite Perroni nominated for earlier than 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which category was Maite Perroni nominated for earlier than 2009?`:
```sql
|
SELECT "year" FROM "awards_and_nominations" WHERE "award"='tv adicto golden awards' AND "category"='female revelation'; |
## Task
Generate a SQL query to answer the following question:
`In what year was there an award for TV Adicto Golden Awards and the category Female Revelation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was there an award for TV Adicto Golden Awards and the category Female Revelation?`:
```sql
|
SELECT "winner" FROM "jersey_progress" WHERE "team_classification"='silence-lotto'; |
## Task
Generate a SQL query to answer the following question:
`What winner has silence-lotto as the team classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What winner has silence-lotto as the team classification?`:
```sql
|
SELECT "general_classification" FROM "jersey_progress" WHERE "mountains_classification"='david de la fuente' AND "points_classification"='thor hushovd'; |
## Task
Generate a SQL query to answer the following question:
`What general classification has david de la fuente as mountains classification, and thor hushovd as points classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What general classification has david de la fuente as mountains classification, and thor hushovd as points classification?`:
```sql
|
SELECT "general_classification" FROM "jersey_progress" WHERE "points_classification"='levi leipheimer'; |
## Task
Generate a SQL query to answer the following question:
`What general classification has levi leipheimer as points classification?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What general classification has levi leipheimer as points classification?`:
```sql
|
SELECT "team_classification" FROM "jersey_progress" WHERE "points_classification"='alejandro valverde' AND "winner"='alejandro valverde' AND "stage"='3'; |
## Task
Generate a SQL query to answer the following question:
`What team classification has alejandro valverde as points classification, with alejandro valverde as the winner, with 3 as the stage?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team classification has alejandro valverde as points classification, with alejandro valverde as the winner, with 3 as the stage?`:
```sql
|
SELECT "winner" FROM "jersey_progress" WHERE "mountains_classification"='pierre rolland' AND "stage"='7'; |
## Task
Generate a SQL query to answer the following question:
`What winner has pierre rolland as mountains classification, with 7 as the stage?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What winner has pierre rolland as mountains classification, with 7 as the stage?`:
```sql
|
SELECT "general_classification" FROM "jersey_progress" WHERE "stage"='4'; |
## Task
Generate a SQL query to answer the following question:
`What general classification has 4 as the stage?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jersey_progress" (
"stage" text,
"winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What general classification has 4 as the stage?`:
```sql
|
SELECT MIN("lost") FROM "first_division_final_table" WHERE "goals_against"=111; |
## Task
Generate a SQL query to answer the following question:
`What are the lowest lost has 111 as the goals against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lowest lost has 111 as the goals against?`:
```sql
|
SELECT MAX("goals_against") FROM "first_division_final_table" WHERE "position"=15; |
## Task
Generate a SQL query to answer the following question:
`What is the highest goals against that has 15 as position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_division_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 highest goals against that has 15 as position?`:
```sql
|
SELECT COUNT("losses") FROM "group_i" WHERE "goals_for"=30 AND "points">24; |
## Task
Generate a SQL query to answer the following question:
`Hiw many losses have 30 for the goals with points greater than 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_i" (
"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 `Hiw many losses have 30 for the goals with points greater than 24?`:
```sql
|
SELECT COUNT("draws") FROM "group_i" WHERE "goals_for"<56 AND "position"=10 AND "goals_against"<45; |
## Task
Generate a SQL query to answer the following question:
`How many draws have goals for less than 56, 10 as the postion, with goals against less than 45?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_i" (
"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 `How many draws have goals for less than 56, 10 as the postion, with goals against less than 45?`:
```sql
|
SELECT MAX("draws") FROM "group_i" WHERE "points"=31 AND "wins">12 AND "goal_difference"<11; |
## Task
Generate a SQL query to answer the following question:
`What is the highest draws that have 31 for points, wins greater than 12, with a goal difference less than 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group_i" (
"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 highest draws that have 31 for points, wins greater than 12, with a goal difference less than 11?`:
```sql
|
SELECT "road_team" FROM "nba_finals" WHERE "game"='game 4'; |
## Task
Generate a SQL query to answer the following question:
`Name Road Team of Game of game 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name Road Team of Game of game 4?`:
```sql
|
SELECT "date" FROM "nba_finals" WHERE "road_team"='chicago' AND "result"='88-85 (ot)'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Road Team of chicago, and a Result of 88-85 (ot)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Road Team of chicago, and a Result of 88-85 (ot)?`:
```sql
|
SELECT "home_team" FROM "nba_finals" WHERE "date"='june 12'; |
## Task
Generate a SQL query to answer the following question:
`Which Home Team is on june 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home Team is on june 12?`:
```sql
|
SELECT "result" FROM "nba_finals" WHERE "date"='june 5'; |
## Task
Generate a SQL query to answer the following question:
`Which Result that is on june 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result that is on june 5?`:
```sql
|
SELECT "date" FROM "nba_finals" WHERE "result"='86-87'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has Result of 86-87?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has Result of 86-87?`:
```sql
|
SELECT "result" FROM "nba_finals" WHERE "game"='game 1'; |
## Task
Generate a SQL query to answer the following question:
`Which Result has a Game of game 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has a Game of game 1?`:
```sql
|
SELECT "miss_maja_pilipinas" FROM "title_holders_from_1973_until_1991" WHERE "binibining_pilipinas_tourism"='not awarded' AND "binibining_pilipinas_universe"='anjanette abayari'; |
## Task
Generate a SQL query to answer the following question:
`What Miss Maja Pilipinas has a Binibining Pilipinas-Tourism of not awarded, and a Binibining Pilipinas-Universe of anjanette abayari?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "title_holders_from_1973_until_1991" (
"year" real,
"binibining_pilipinas_universe" text,
"binibining_pilipinas_international" text,
"miss_maja_pilipinas" text,
"binibining_pilipinas_tourism" text,
"first_runner_up" text,
"second_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Miss Maja Pilipinas has a Binibining Pilipinas-Tourism of not awarded, and a Binibining Pilipinas-Universe of anjanette abayari?`:
```sql
|
SELECT "binibining_pilipinas_international" FROM "title_holders_from_1973_until_1991" WHERE "year">1990 AND "binibining_pilipinas_universe"='maria lourdes gonzalez'; |
## Task
Generate a SQL query to answer the following question:
`What Binibining Pilipinas-International has a Year larger than 1990, and a Binibining Pilipinas-Universe of maria lourdes gonzalez?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "title_holders_from_1973_until_1991" (
"year" real,
"binibining_pilipinas_universe" text,
"binibining_pilipinas_international" text,
"miss_maja_pilipinas" text,
"binibining_pilipinas_tourism" text,
"first_runner_up" text,
"second_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Binibining Pilipinas-International has a Year larger than 1990, and a Binibining Pilipinas-Universe of maria lourdes gonzalez?`:
```sql
|
SELECT "first_runner_up" FROM "title_holders_from_1973_until_1991" WHERE "miss_maja_pilipinas"='nanette prodigalidad'; |
## Task
Generate a SQL query to answer the following question:
`What First runner-up has a Miss Maja Pilipinas of nanette prodigalidad?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "title_holders_from_1973_until_1991" (
"year" real,
"binibining_pilipinas_universe" text,
"binibining_pilipinas_international" text,
"miss_maja_pilipinas" text,
"binibining_pilipinas_tourism" text,
"first_runner_up" text,
"second_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What First runner-up has a Miss Maja Pilipinas of nanette prodigalidad?`:
```sql
|
SELECT MIN("year") FROM "title_holders_from_1973_until_1991" WHERE "binibining_pilipinas_international"='jessie alice salones dixson'; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest Year with a Binibining Pilipinas-International of jessie alice salones dixson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "title_holders_from_1973_until_1991" (
"year" real,
"binibining_pilipinas_universe" text,
"binibining_pilipinas_international" text,
"miss_maja_pilipinas" text,
"binibining_pilipinas_tourism" text,
"first_runner_up" text,
"second_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest Year with a Binibining Pilipinas-International of jessie alice salones dixson?`:
```sql
|
SELECT "binibining_pilipinas_international" FROM "title_holders_from_1973_until_1991" WHERE "year"=1975; |
## Task
Generate a SQL query to answer the following question:
`What Binibining Pilipinas-International has a Year of 1975?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "title_holders_from_1973_until_1991" (
"year" real,
"binibining_pilipinas_universe" text,
"binibining_pilipinas_international" text,
"miss_maja_pilipinas" text,
"binibining_pilipinas_tourism" text,
"first_runner_up" text,
"second_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Binibining Pilipinas-International has a Year of 1975?`:
```sql
|
SELECT "to_par" FROM "second_round" WHERE "player"='jesper parnevik'; |
## Task
Generate a SQL query to answer the following question:
`What is To par, when Player is "Jesper Parnevik"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is To par, when Player is "Jesper Parnevik"?`:
```sql
|
SELECT "player" FROM "second_round" WHERE "place"='1'; |
## Task
Generate a SQL query to answer the following question:
`What is Player, when Place is "1"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Place is "1"?`:
```sql
|
SELECT "to_par" FROM "second_round" WHERE "country"='united states' AND "player"='mark brooks'; |
## Task
Generate a SQL query to answer the following question:
`What is To par, when Country is "United States", and when Player is "Mark Brooks"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is To par, when Country is "United States", and when Player is "Mark Brooks"?`:
```sql
|
SELECT "place" FROM "second_round" WHERE "player"='phil mickelson'; |
## Task
Generate a SQL query to answer the following question:
`What is Place, when Player is "Phil Mickelson"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Player is "Phil Mickelson"?`:
```sql
|
SELECT "score" FROM "second_round" WHERE "player"='brad faxon'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Player is "Brad Faxon"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Player is "Brad Faxon"?`:
```sql
|
SELECT MIN("edition") FROM "vuko_karov_tournament" WHERE "year">2003 AND "third"='tikveš' AND "runner_up"='sileks'; |
## Task
Generate a SQL query to answer the following question:
`What was the edition after 2003 when the Third was Tikveš and Sileks was the runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vuko_karov_tournament" (
"edition" real,
"year" real,
"winner" text,
"runner_up" text,
"third" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the edition after 2003 when the Third was Tikveš and Sileks was the runner-up?`:
```sql
|
SELECT MAX("year") FROM "vuko_karov_tournament" WHERE "edition"=14; |
## Task
Generate a SQL query to answer the following question:
`What was the latest year with an edition of 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vuko_karov_tournament" (
"edition" real,
"year" real,
"winner" text,
"runner_up" text,
"third" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest year with an edition of 14?`:
```sql
|
SELECT "venue" FROM "2006" WHERE "date"='18/03/2006'; |
## Task
Generate a SQL query to answer the following question:
`What was the venue for the game on 18/03/2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue for the game on 18/03/2006?`:
```sql
|
SELECT "score" FROM "final_leaderboard" WHERE "place"='t8'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the place was t8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the place was t8?`:
```sql
|
SELECT "country" FROM "final_leaderboard" WHERE "score"='71-66-66-71=274'; |
## Task
Generate a SQL query to answer the following question:
`What country scored 71-66-66-71=274?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country scored 71-66-66-71=274?`:
```sql
|
SELECT "country" FROM "final_leaderboard" WHERE "score"='66-65-66-72=269'; |
## Task
Generate a SQL query to answer the following question:
`What country scored 66-65-66-72=269?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country scored 66-65-66-72=269?`:
```sql
|
SELECT "money" FROM "final_leaderboard" WHERE "place"='t3' AND "country"='united states'; |
## Task
Generate a SQL query to answer the following question:
`What was the money for place t3 and United States?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the money for place t3 and United States?`:
```sql
|
SELECT "country" FROM "final_leaderboard" WHERE "player"='jeff sluman'; |
## Task
Generate a SQL query to answer the following question:
`What country does Jeff Sluman play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country does Jeff Sluman play for?`:
```sql
|
SELECT "to_par" FROM "final_leaderboard" WHERE "place"='t8' AND "score"='71-66-66-71=274'; |
## Task
Generate a SQL query to answer the following question:
`What was the to par for place t8 and a score of 71-66-66-71=274?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the to par for place t8 and a score of 71-66-66-71=274?`:
```sql
|
SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='fleetwood town'; |
## Task
Generate a SQL query to answer the following question:
`What home team played against Fleetwood Town?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What home team played against Fleetwood Town?`:
```sql
|
SELECT "callsign" FROM "am" WHERE "frequency"=1300; |
## Task
Generate a SQL query to answer the following question:
`What callsign has 1300 as the frequency?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "am" (
"frequency" real,
"power_d_n" text,
"callsign" text,
"brand" text,
"city_of_license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What callsign has 1300 as the frequency?`:
```sql
|
SELECT "stadium" FROM "girone_c" WHERE "club"='f.c. igea virtus barcellona'; |
## Task
Generate a SQL query to answer the following question:
`What's the name of the stadium when the club was F.C. Igea Virtus Barcellona?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "girone_c" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2007_08_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the stadium when the club was F.C. Igea Virtus Barcellona?`:
```sql
|
SELECT "club" FROM "girone_c" WHERE "2007_08_season"='12th in serie c2/c'; |
## Task
Generate a SQL query to answer the following question:
`Who was the club when during the 2007-08 season had 12th in serie c2/c?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "girone_c" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2007_08_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the club when during the 2007-08 season had 12th in serie c2/c?`:
```sql
|
SELECT "club" FROM "girone_c" WHERE "2007_08_season"='14th in serie c2/c'; |
## Task
Generate a SQL query to answer the following question:
`Who was the club when during the 2007-08 season had 14th in serie c2/c?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "girone_c" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2007_08_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the club when during the 2007-08 season had 14th in serie c2/c?`:
```sql
|
SELECT "capacity" FROM "girone_c" WHERE "2007_08_season"='1st serie d/i'; |
## Task
Generate a SQL query to answer the following question:
`What is the capacity when the 2007–08 season was 1st Serie D/I?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "girone_c" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2007_08_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capacity when the 2007–08 season was 1st Serie D/I?`:
```sql
|
SELECT MAX("capacity") FROM "girone_c" WHERE "club"='f.c. igea virtus barcellona'; |
## Task
Generate a SQL query to answer the following question:
`What was the largest capacity when the club was F.C. Igea Virtus Barcellona?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "girone_c" (
"club" text,
"city" text,
"stadium" text,
"capacity" real,
"2007_08_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the largest capacity when the club was F.C. Igea Virtus Barcellona?`:
```sql
|
SELECT "name" FROM "most_tournaments_in_junior_san_yaku_komu" WHERE "total"=34; |
## Task
Generate a SQL query to answer the following question:
`Who had a total of 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_tournaments_in_junior_san_yaku_komu" (
"name" text,
"total" real,
"first" text,
"last" text,
"highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a total of 34?`:
```sql
|
SELECT "highest_rank" FROM "most_tournaments_in_junior_san_yaku_komu" WHERE "total"<30 AND "name"='takatōriki'; |
## Task
Generate a SQL query to answer the following question:
`What rank is Takatōriki having less than 30 total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_tournaments_in_junior_san_yaku_komu" (
"name" text,
"total" real,
"first" text,
"last" text,
"highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is Takatōriki having less than 30 total?`:
```sql
|
SELECT SUM("total") FROM "most_tournaments_in_junior_san_yaku_komu" WHERE "first"='november 1966'; |
## Task
Generate a SQL query to answer the following question:
`What was the total when the first was November 1966?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_tournaments_in_junior_san_yaku_komu" (
"name" text,
"total" real,
"first" text,
"last" text,
"highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total when the first was November 1966?`:
```sql
|
SELECT "last" FROM "most_tournaments_in_junior_san_yaku_komu" WHERE "total">26 AND "first"='january 2001'; |
## Task
Generate a SQL query to answer the following question:
`What is the last when the first was January 2001 and more than 26 total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_tournaments_in_junior_san_yaku_komu" (
"name" text,
"total" real,
"first" text,
"last" text,
"highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the last when the first was January 2001 and more than 26 total?`:
```sql
|
SELECT MAX("total") FROM "most_tournaments_in_junior_san_yaku_komu" WHERE "last"='september 1970'; |
## Task
Generate a SQL query to answer the following question:
`What is the greatest total when the last was September 1970?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_tournaments_in_junior_san_yaku_komu" (
"name" text,
"total" real,
"first" text,
"last" text,
"highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest total when the last was September 1970?`:
```sql
|
SELECT "highest_rank" FROM "most_tournaments_in_junior_san_yaku_komu" WHERE "name"='takatōriki'; |
## Task
Generate a SQL query to answer the following question:
`What rank is Takatōriki?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_tournaments_in_junior_san_yaku_komu" (
"name" text,
"total" real,
"first" text,
"last" text,
"highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is Takatōriki?`:
```sql
|
SELECT SUM("year") FROM "complete_world_championship_formula_one_" WHERE "pts"='54 (73)'; |
## Task
Generate a SQL query to answer the following question:
`What year has 54 (73) points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year has 54 (73) points?`:
```sql
|
SELECT "chassis" FROM "complete_world_championship_formula_one_" WHERE "year">1967; |
## Task
Generate a SQL query to answer the following question:
`What is the chassis more recent than 1967?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the chassis more recent than 1967?`:
```sql
|
SELECT AVG("year") FROM "complete_world_championship_formula_one_" WHERE "chassis"='lotus 25'; |
## Task
Generate a SQL query to answer the following question:
`What is the year of the Lotus 25 chassis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year of the Lotus 25 chassis?`:
```sql
|
SELECT COUNT("year") FROM "complete_world_championship_formula_one_" WHERE "chassis"='lotus 18'; |
## Task
Generate a SQL query to answer the following question:
`What is the year of the Lotus 18 chassis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year of the Lotus 18 chassis?`:
```sql
|
SELECT "first_elected" FROM "minnesota" WHERE "district"='minnesota 2'; |
## Task
Generate a SQL query to answer the following question:
`What is First Elected, when District is "Minnesota 2"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "minnesota" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is First Elected, when District is "Minnesota 2"?`:
```sql
|
SELECT MIN("first_elected") FROM "minnesota" WHERE "party"='republican' AND "district"='minnesota 1'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest First Elected, when Party is "Republican", and when District is "Minnesota 1"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "minnesota" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest First Elected, when Party is "Republican", and when District is "Minnesota 1"?`:
```sql
|
SELECT "party" FROM "minnesota" WHERE "results"='re-elected' AND "first_elected">1990 AND "district"='minnesota 4'; |
## Task
Generate a SQL query to answer the following question:
`What is Party, when Results is "Re-Elected", when First Elected is greater than 1990, and when District is "Minnesota 4"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "minnesota" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Party, when Results is "Re-Elected", when First Elected is greater than 1990, and when District is "Minnesota 4"?`:
```sql
|
SELECT "incumbent" FROM "minnesota" WHERE "results"='re-elected' AND "party"='democratic' AND "district"='minnesota 7'; |
## Task
Generate a SQL query to answer the following question:
`What is Incumbent, when Results is "Re-Elected", when Party is "Democratic", and when District is "Minnesota 7"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "minnesota" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Incumbent, when Results is "Re-Elected", when Party is "Democratic", and when District is "Minnesota 7"?`:
```sql
|
SELECT "score" FROM "final_round" WHERE "place"='t5' AND "country"='united states'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has a Place of t5, and a Country of united states?`
### 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 Score has a Place of t5, and a Country of united states?`:
```sql
|
SELECT "score" FROM "final_round" WHERE "player"='seve ballesteros'; |
## Task
Generate a SQL query to answer the following question:
`Name The Score of Player of seve ballesteros?`
### 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 `Name The Score of Player of seve ballesteros?`:
```sql
|
SELECT "country" FROM "final_round" WHERE "place"='2'; |
## Task
Generate a SQL query to answer the following question:
`Which Country has a Place of 2?`
### 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 Country has a Place of 2?`:
```sql
|
SELECT "wins" FROM "2007_ladder" WHERE "losses"=5; |
## Task
Generate a SQL query to answer the following question:
`How many wins did they have when they had 5 losses?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_ladder" (
"south_west_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did they have when they had 5 losses?`:
```sql
|
SELECT COUNT("byes") FROM "2007_ladder" WHERE "against"<1544 AND "wins"=13 AND "draws">0; |
## Task
Generate a SQL query to answer the following question:
`How many byes did they have against smaller than 1544, 13 wins, and draws larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_ladder" (
"south_west_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many byes did they have against smaller than 1544, 13 wins, and draws larger than 0?`:
```sql
|
SELECT COUNT("byes") FROM "2007_ladder" WHERE "draws">0; |
## Task
Generate a SQL query to answer the following question:
`How many byes has a draw larger than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_ladder" (
"south_west_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many byes has a draw larger than 0?`:
```sql
|
SELECT MIN("against") FROM "2007_ladder" WHERE "wins"<9 AND "draws"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest against that has less than 9 wins, and draws smaller than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_ladder" (
"south_west_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest against that has less than 9 wins, and draws smaller than 0?`:
```sql
|
SELECT COUNT("wins") FROM "2007_ladder" WHERE "byes"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of wins that has byes less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_ladder" (
"south_west_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of wins that has byes less than 0?`:
```sql
|
SELECT MAX("money") FROM "final_leaderboard" WHERE "score"='75-74-72-67=288'; |
## Task
Generate a SQL query to answer the following question:
`What is the most money for the score 75-74-72-67=288?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most money for the score 75-74-72-67=288?`:
```sql
|
SELECT "american" FROM "long_vowels" WHERE "australian"='əʉ'; |
## Task
Generate a SQL query to answer the following question:
`What's the American pronunciation when the Australian is əʉ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "long_vowels" (
"long_vowels" text,
"17th_c" text,
"american" text,
"british" text,
"australian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the American pronunciation when the Australian is əʉ?`:
```sql
|
SELECT "17th_c" FROM "long_vowels" WHERE "british"='əʊ'; |
## Task
Generate a SQL query to answer the following question:
`What is the 17th c. pronunciation when the british is əʊ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "long_vowels" (
"long_vowels" text,
"17th_c" text,
"american" text,
"british" text,
"australian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 17th c. pronunciation when the british is əʊ?`:
```sql
|
SELECT "17th_c" FROM "long_vowels" WHERE "british"='i' AND "long_vowels"='e /iː/'; |
## Task
Generate a SQL query to answer the following question:
`What is the 17th c. pronunciation when the British is i and the long vowels are e /iː/?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "long_vowels" (
"long_vowels" text,
"17th_c" text,
"american" text,
"british" text,
"australian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 17th c. pronunciation when the British is i and the long vowels are e /iː/?`:
```sql
|
SELECT "british" FROM "long_vowels" WHERE "american"='i' AND "australian"='i'; |
## Task
Generate a SQL query to answer the following question:
`What's the British pronunciation when the American and Australian is i?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "long_vowels" (
"long_vowels" text,
"17th_c" text,
"american" text,
"british" text,
"australian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the British pronunciation when the American and Australian is i?`:
```sql
|
SELECT "height" FROM "canada" WHERE "weight"='kg (lb)' AND "club"='sainte-foy' AND "pos"='cf'; |
## Task
Generate a SQL query to answer the following question:
`What is the Height if the weight is kg (lb), the club is Sainte-foy and the pos is cf?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "canada" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height if the weight is kg (lb), the club is Sainte-foy and the pos is cf?`:
```sql
|
SELECT "height" FROM "canada" WHERE "club"='sainte-foy' AND "name"='valérie dionne'; |
## Task
Generate a SQL query to answer the following question:
`What is the height of valérie dionne at Club Sainte-Foy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "canada" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of valérie dionne at Club Sainte-Foy?`:
```sql
|
SELECT "name" FROM "canada" WHERE "date_of_birth"='1980-07-29'; |
## Task
Generate a SQL query to answer the following question:
`Who has a Date of Birth 1980-07-29?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "canada" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a Date of Birth 1980-07-29?`:
```sql
|
SELECT "team_name" FROM "cooperative_programs" WHERE "schools"='cisne fairfield'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the team from cisne fairfield school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cooperative_programs" (
"team_name" text,
"schools" text,
"sports" text,
"host" text,
"nickname_s" text,
"colors" text,
"enrollment_2013_14" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the team from cisne fairfield school?`:
```sql
|
SELECT "team_name" FROM "cooperative_programs" WHERE "schools"='goreville vienna'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the team from goreville vienna school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cooperative_programs" (
"team_name" text,
"schools" text,
"sports" text,
"host" text,
"nickname_s" text,
"colors" text,
"enrollment_2013_14" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the team from goreville vienna school?`:
```sql
|
SELECT "colors" FROM "cooperative_programs" WHERE "host"='christopher'; |
## Task
Generate a SQL query to answer the following question:
`What are the colors of the team hosted by Christopher?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cooperative_programs" (
"team_name" text,
"schools" text,
"sports" text,
"host" text,
"nickname_s" text,
"colors" text,
"enrollment_2013_14" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the colors of the team hosted by Christopher?`:
```sql
|
SELECT "team_1" FROM "second_qualifying_round" WHERE "team_2"='renova'; |
## Task
Generate a SQL query to answer the following question:
`What is team 1 if Renova is team 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_qualifying_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is team 1 if Renova is team 2?`:
```sql
|
SELECT MAX("to_par") FROM "final_leaderboard" WHERE "score"='76-70-76-76=298'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest to par for the 76-70-76-76=298 score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest to par for the 76-70-76-76=298 score?`:
```sql
|
SELECT "score" FROM "final_leaderboard" WHERE "to_par"=12 AND "country"='jersey'; |
## Task
Generate a SQL query to answer the following question:
`What score has a to par of 12 and is from Jersey?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What score has a to par of 12 and is from Jersey?`:
```sql
|
SELECT AVG("money") FROM "final_leaderboard" WHERE "to_par"=15 AND "country"='united states'; |
## Task
Generate a SQL query to answer the following question:
`What is the average money for a to par of 15, and is from the United States?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average money for a to par of 15, and is from the United States?`:
```sql
|
SELECT COUNT("money") FROM "final_leaderboard" WHERE "place"='t2' AND "country"='united states' AND "player"='leo diegel'; |
## Task
Generate a SQL query to answer the following question:
`What is the total amount of money that has a t2 place, is from the United States for player Leo Diegel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total amount of money that has a t2 place, is from the United States for player Leo Diegel?`:
```sql
|
SELECT "country" FROM "final_leaderboard" WHERE "money"<188 AND "score"='74-76-73-75=298'; |
## Task
Generate a SQL query to answer the following question:
`What county has less than $188 and a score of 74-76-73-75=298?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real,
"money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What county has less than $188 and a score of 74-76-73-75=298?`:
```sql
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "location"='winnipeg, manitoba , canada'; |
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Location is "Winnipeg, Manitoba , Canada"?`
### 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,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when Location is "Winnipeg, Manitoba , Canada"?`:
```sql
|
SELECT "res" FROM "mixed_martial_arts_record" WHERE "location"='butte, montana , united states' AND "opponent"='jerome smith'; |
## Task
Generate a SQL query to answer the following question:
`What is Res., when Location is "Butte, Montana , United States", and when Opponent is "Jerome Smith"?`
### 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,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Res., when Location is "Butte, Montana , United States", and when Opponent is "Jerome Smith"?`:
```sql
|
SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='3:20'; |
## Task
Generate a SQL query to answer the following question:
`What is Method, when Time is "3:20"?`
### 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,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Method, when Time is "3:20"?`:
```sql
|
SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='mario rinaldi'; |
## Task
Generate a SQL query to answer the following question:
`What is Location, when Opponent is "Mario Rinaldi"?`
### 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,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Location, when Opponent is "Mario Rinaldi"?`:
```sql
|
SELECT SUM("grid") FROM "125cc_classification" WHERE "time_retired"='+0.785' AND "laps">29; |
## Task
Generate a SQL query to answer the following question:
`How much Grid has a Time/Retired of +0.785, and Laps larger than 29?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Grid has a Time/Retired of +0.785, and Laps larger than 29?`:
```sql
|
SELECT "grid" FROM "125cc_classification" WHERE "laps">8 AND "manufacturer"='honda' AND "time_retired"='retirement'; |
## Task
Generate a SQL query to answer the following question:
`Which Grid has more than 8 Laps, and a Manufacturer of honda, and a Time/Retired of retirement?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grid has more than 8 Laps, and a Manufacturer of honda, and a Time/Retired of retirement?`:
```sql
|
SELECT SUM("laps") FROM "125cc_classification" WHERE "grid"<5 AND "time_retired"='retirement'; |
## Task
Generate a SQL query to answer the following question:
`How many Laps have a Grid smaller than 5, and a Time/Retired of retirement?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Laps have a Grid smaller than 5, and a Time/Retired of retirement?`:
```sql
|
SELECT "time_retired" FROM "125cc_classification" WHERE "laps"<14 AND "rider"='darren barton'; |
## Task
Generate a SQL query to answer the following question:
`Which Time/Retired has Laps smaller than 14, and a Rider of darren barton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Time/Retired has Laps smaller than 14, and a Rider of darren barton?`:
```sql
|
SELECT MIN("lost") FROM "third_division_final_table" WHERE "goals_for"<21; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest lost entry for a team with fewer than 21 goals for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_division_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 was the lowest lost entry for a team with fewer than 21 goals for?`:
```sql
|
SELECT COUNT("position") FROM "third_division_final_table" WHERE "played">24; |
## Task
Generate a SQL query to answer the following question:
`What was the position has a played entry of more than 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_division_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 was the position has a played entry of more than 24?`:
```sql
|
SELECT MAX("position") FROM "third_division_final_table" WHERE "team"='nelson' AND "played">24; |
## Task
Generate a SQL query to answer the following question:
`What is the highest position for Nelson, with a played entry of more than 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_division_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 highest position for Nelson, with a played entry of more than 24?`:
```sql
|
SELECT AVG("lost") FROM "third_division_final_table" WHERE "team"='newton' AND "drawn"<5; |
## Task
Generate a SQL query to answer the following question:
`What was the average Lost entry for Newton, for games with a drawn less than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_division_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 was the average Lost entry for Newton, for games with a drawn less than 5?`:
```sql
|
SELECT MAX("lost") FROM "third_division_final_table" WHERE "drawn"<6 AND "goals_against"<44 AND "points_1"='27'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest lost entry that has a drawn entry less than 6, goals against less than 44, and a points 1 entry of 27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_division_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 highest lost entry that has a drawn entry less than 6, goals against less than 44, and a points 1 entry of 27?`:
```sql
|
SELECT "name" FROM "heavyweight_105_kg" WHERE "snatch"='157.0'; |
## Task
Generate a SQL query to answer the following question:
`Who has a Snatch of 157.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heavyweight_105_kg" (
"name" text,
"bodyweight" real,
"snatch" text,
"clean_jerk" text,
"total_kg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a Snatch of 157.0?`:
```sql
|
SELECT SUM("bodyweight") FROM "heavyweight_105_kg" WHERE "snatch"='153.0'; |
## Task
Generate a SQL query to answer the following question:
`What is the total bodyweight of everyone that has a Snatch of 153.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heavyweight_105_kg" (
"name" text,
"bodyweight" real,
"snatch" text,
"clean_jerk" text,
"total_kg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total bodyweight of everyone that has a Snatch of 153.0?`:
```sql
|
SELECT "rank" FROM "tallest_buildings_and_structures" WHERE "name"='battersea power station'; |
## Task
Generate a SQL query to answer the following question:
`What ranking is the Battersea Power Station?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tallest_buildings_and_structures" (
"rank" text,
"name" text,
"height_metres_ft" text,
"floors" text,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What ranking is the Battersea Power Station?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.