output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "track" FROM "schedule_and_results" WHERE "event_name"='daytona arca 200'; |
## Task
Generate a SQL query to answer the following question:
`At which track did the event Daytona Arca 200 take place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"date" text,
"track" text,
"event_name" text,
"pole_winner" text,
"race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `At which track did the event Daytona Arca 200 take place?`:
```sql
|
SELECT "event_name" FROM "schedule_and_results" WHERE "race_winner"='ken schrader' AND "track"='toledo speedway'; |
## Task
Generate a SQL query to answer the following question:
`At which event was Ken Schrader the Race Winner at the Toledo Speedway?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"date" text,
"track" text,
"event_name" text,
"pole_winner" text,
"race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `At which event was Ken Schrader the Race Winner at the Toledo Speedway?`:
```sql
|
SELECT "track" FROM "schedule_and_results" WHERE "pole_winner"='frank kimmel' AND "event_name"='pennsylvania 200'; |
## Task
Generate a SQL query to answer the following question:
`At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"date" text,
"track" text,
"event_name" text,
"pole_winner" text,
"race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200?`:
```sql
|
SELECT "date" FROM "schedule_and_results" WHERE "race_winner"='steve wallace' AND "track"='kentucky speedway'; |
## Task
Generate a SQL query to answer the following question:
`Steve Wallace was a Race Winner at the Kentucky Speedway on what date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"date" text,
"track" text,
"event_name" text,
"pole_winner" text,
"race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Steve Wallace was a Race Winner at the Kentucky Speedway on what date?`:
```sql
|
SELECT MIN("silver") FROM "medal_table" WHERE "rank"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of silver owned by a nation that is not ranked number 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of silver owned by a nation that is not ranked number 1?`:
```sql
|
SELECT "grid" FROM "qualifying" WHERE "driver"='kimi räikkönen'; |
## Task
Generate a SQL query to answer the following question:
`What is Driver Kimi Räikkönen's number on the grid?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualifying" (
"pos" text,
"driver" text,
"constructor" text,
"part_1" text,
"grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Driver Kimi Räikkönen's number on the grid?`:
```sql
|
SELECT "driver" FROM "qualifying" WHERE "part_1"='1:13.306'; |
## Task
Generate a SQL query to answer the following question:
`Which driver had a Part 1 time of 1:13.306?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualifying" (
"pos" text,
"driver" text,
"constructor" text,
"part_1" text,
"grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver had a Part 1 time of 1:13.306?`:
```sql
|
SELECT "current_name" FROM "current_roller_coasters" WHERE "year_first_opened">2011; |
## Task
Generate a SQL query to answer the following question:
`What ride opened after 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_roller_coasters" (
"current_name" text,
"year_first_opened" real,
"manufacturer" text,
"location_in_park" text,
"thrill_intensity_rating" text,
"minimum_height_requirements" text
);
### SQL
Given the database schema, here is the SQL query that answers `What ride opened after 2011?`:
```sql
|
SELECT "actor_s_name" FROM "stozhary_2003_prize_winners" WHERE "film_name"='anastasiya slutskaya' AND "country"='russia'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the actor from russia for anastasiya slutskaya`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_2003_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the actor from russia for anastasiya slutskaya`:
```sql
|
SELECT "actor_s_name" FROM "stozhary_2003_prize_winners" WHERE "nomination"='best actress in a leading role' AND "country"='ukraine'; |
## Task
Generate a SQL query to answer the following question:
`Rell mem the actor from ukraine for best actress in a leading role`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_2003_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Rell mem the actor from ukraine for best actress in a leading role`:
```sql
|
SELECT "director" FROM "stozhary_2003_prize_winners" WHERE "actor_s_name"='svetlana zelenkovskaya'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the director for the movie with svetlana zelenkovskaya`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_2003_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the director for the movie with svetlana zelenkovskaya`:
```sql
|
SELECT "actor_s_name" FROM "stozhary_2003_prize_winners" WHERE "film_name"='anastasiya slutskaya' AND "country"='belarus'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the actor's name for anastasiya slutskaya belarus`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_2003_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the actor's name for anastasiya slutskaya belarus`:
```sql
|
SELECT "nomination" FROM "stozhary_2003_prize_winners" WHERE "actor_s_name"='piotr adamczyk'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the nominator for piotr adamczyk`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_2003_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the nominator for piotr adamczyk`:
```sql
|
SELECT "result" FROM "schedule" WHERE "attendance"='63,443'; |
## Task
Generate a SQL query to answer the following question:
`Which stadium can hold 63,443 people?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stadium can hold 63,443 people?`:
```sql
|
SELECT COUNT("week") FROM "schedule" WHERE "date"='bye'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the number of weeks for bye`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"start_time" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the number of weeks for bye`:
```sql
|
SELECT COUNT("week") FROM "schedule" WHERE "date"='december 5, 2005'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the number of weeks for december 5, 2005`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"start_time" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the number of weeks for december 5, 2005`:
```sql
|
SELECT "start_time" FROM "schedule" WHERE "date"='december 24, 2005'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the start time for december 24, 2005`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"start_time" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the start time for december 24, 2005`:
```sql
|
SELECT "result" FROM "schedule" WHERE "venue"='lincoln financial field' AND "date"='december 11, 2005'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the result for lincoln financial field december 11, 2005`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"start_time" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the result for lincoln financial field december 11, 2005`:
```sql
|
SELECT COUNT("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<2 AND "class"='50cc' AND "points"=15; |
## Task
Generate a SQL query to answer the following question:
`Tell me the total number of years for wins less than 2 and class of 50cc with points of 15`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the total number of years for wins less than 2 and class of 50cc with points of 15`:
```sql
|
SELECT "year" FROM "motorcycle_grand_prix_results" WHERE "class"='125cc'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the year for class of 125cc`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the year for class of 125cc`:
```sql
|
SELECT AVG("wins") FROM "motorcycle_grand_prix_results" WHERE "class"='50cc' AND "rank"='8th'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the average wins for class of 50cc and rank of 8th`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the average wins for class of 50cc and rank of 8th`:
```sql
|
SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "class"='50cc' AND "team"='tomos' AND "year"<1969; |
## Task
Generate a SQL query to answer the following question:
`Tell me the lowest wins for class of 50cc and team of tomos for year less than 1969`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the lowest wins for class of 50cc and team of tomos for year less than 1969`:
```sql
|
SELECT MAX("bronze") FROM "medal_table" WHERE "silver">41; |
## Task
Generate a SQL query to answer the following question:
`Which country has the highest bronze amount and a silver amount bigger than 41?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has the highest bronze amount and a silver amount bigger than 41?`:
```sql
|
SELECT MIN("total") FROM "medal_table" WHERE "silver">2 AND "nation"='russia' AND "gold"<4; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of medals Russia has if they have more than 2 silver medals and less than 4 gold medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest amount of medals Russia has if they have more than 2 silver medals and less than 4 gold medals?`:
```sql
|
SELECT "points" FROM "cart_champ_car" WHERE "year"=2005; |
## Task
Generate a SQL query to answer the following question:
`How many points did the 2005 1st place team receive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cart_champ_car" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the 2005 1st place team receive?`:
```sql
|
SELECT "engine" FROM "cart_champ_car" WHERE "chassis"='lola b02/00' AND "rank"='1st'; |
## Task
Generate a SQL query to answer the following question:
`What engine was used by the teams that used a Lola b02/00 chassis and ranked 1st?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cart_champ_car" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What engine was used by the teams that used a Lola b02/00 chassis and ranked 1st?`:
```sql
|
SELECT COUNT("year") FROM "cart_champ_car" WHERE "team"='newman/haas racing' AND "rank"='1st'; |
## Task
Generate a SQL query to answer the following question:
`How many years did Team Newman/Haas Racing receive a 1st place ranking?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cart_champ_car" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"rank" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years did Team Newman/Haas Racing receive a 1st place ranking?`:
```sql
|
SELECT SUM("place") FROM "national_final" WHERE "points"=35; |
## Task
Generate a SQL query to answer the following question:
`What is the aggregate of place for points being 35?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"place" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the aggregate of place for points being 35?`:
```sql
|
SELECT MIN("points") FROM "national_final" WHERE "place"=5; |
## Task
Generate a SQL query to answer the following question:
`Name the fewest points of 5 place`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"place" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fewest points of 5 place`:
```sql
|
SELECT COUNT("place") FROM "national_final" WHERE "artist"='vicky gordon' AND "points">23; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of places for vicky gordon and points more than 23`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"place" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of places for vicky gordon and points more than 23`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "attendance"='68,264'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the opponent for attendance of 68,264`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the opponent for attendance of 68,264`:
```sql
|
SELECT SUM("week") FROM "schedule" WHERE "result"='l 24–21'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the sum of week for result of l 24–21`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the sum of week for result of l 24–21`:
```sql
|
SELECT "result" FROM "schedule" WHERE "attendance"='54,462'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the result for attendance of 54,462`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the result for attendance of 54,462`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "attendance"='53,899'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the opponent for attendance of 53,899`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the opponent for attendance of 53,899`:
```sql
|
SELECT "pts_b" FROM "players" WHERE "reb_b">636 AND "no_a"='50'; |
## Task
Generate a SQL query to answer the following question:
`What is the points that is more than 636 and has a value of 50?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"nationality" text,
"no_a" text,
"pos_a" text,
"from" text,
"school_club" text,
"pts_b" real,
"reb_b" real,
"ast_b" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the points that is more than 636 and has a value of 50?`:
```sql
|
SELECT AVG("reb_b") FROM "players" WHERE "no_a"='8' AND "ast_b"<57; |
## Task
Generate a SQL query to answer the following question:
`Which rebound was 8 and has and ast that was less than 57?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"nationality" text,
"no_a" text,
"pos_a" text,
"from" text,
"school_club" text,
"pts_b" real,
"reb_b" real,
"ast_b" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which rebound was 8 and has and ast that was less than 57?`:
```sql
|
SELECT "country" FROM "destinations" WHERE "icao"='tjig'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the country for ICAO of tjig`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the country for ICAO of tjig`:
```sql
|
SELECT "country" FROM "destinations" WHERE "city"='san juan'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the country for san juan`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the country for san juan`:
```sql
|
SELECT "country" FROM "destinations" WHERE "icao"='tjvq'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the country for ICAO tjvq`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the country for ICAO tjvq`:
```sql
|
SELECT "iata" FROM "destinations" WHERE "icao"='tjrv'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the iata for icao of tjrv`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the iata for icao of tjrv`:
```sql
|
SELECT "icao" FROM "destinations" WHERE "city"='isla grande'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the icao of isla grande`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the icao of isla grande`:
```sql
|
SELECT "position" FROM "round_two" WHERE "mls_team"='colorado rapids' AND "pick_num">15; |
## Task
Generate a SQL query to answer the following question:
`What position does the Colorado Rapids pick after 15 play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick_num" real,
"mls_team" text,
"player" text,
"position" text,
"affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does the Colorado Rapids pick after 15 play?`:
```sql
|
SELECT "event" FROM "2000_s" WHERE "acts"='106 bands'; |
## Task
Generate a SQL query to answer the following question:
`I want to know the events for 106 bands`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_s" (
"year" real,
"date" text,
"event" text,
"days" text,
"stages" text,
"acts" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want to know the events for 106 bands`:
```sql
|
SELECT "actor_s_name" FROM "stozhary_99_prize_winners" WHERE "film_name"='sara'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the Actor's name for film name of sara`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_99_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the Actor's name for film name of sara`:
```sql
|
SELECT "nomination" FROM "stozhary_99_prize_winners" WHERE "country"='ukraine'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the nomination for ukraine`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_99_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the nomination for ukraine`:
```sql
|
SELECT "actor_s_name" FROM "stozhary_99_prize_winners" WHERE "film_name"='barhanov and his bodyguard'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the actors name for barhanov and his bodyguard`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_99_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the actors name for barhanov and his bodyguard`:
```sql
|
SELECT "actor_s_name" FROM "stozhary_99_prize_winners" WHERE "director"='goran paskaljevic'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the actors name for goran paskaljevic`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_99_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the actors name for goran paskaljevic`:
```sql
|
SELECT "nomination" FROM "stozhary_99_prize_winners" WHERE "director"='goran paskaljevic'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the nomination for goran paskaljevic`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_99_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the nomination for goran paskaljevic`:
```sql
|
SELECT "year" FROM "individual" WHERE "men_s_singles"='stephan wojcikiewicz' AND "women_s_singles"='anna rice'; |
## Task
Generate a SQL query to answer the following question:
`In what year did Stephan Wojcikiewicz play men's single and Anna Rice play women's single?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year did Stephan Wojcikiewicz play men's single and Anna Rice play women's single?`:
```sql
|
SELECT "men_s_doubles" FROM "individual" WHERE "year"='2012'; |
## Task
Generate a SQL query to answer the following question:
`Who played men's doubles in 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played men's doubles in 2012?`:
```sql
|
SELECT AVG("fa_cup_apps") FROM "barnsley" WHERE "league_goals"=1 AND "total_goals"<1; |
## Task
Generate a SQL query to answer the following question:
`Which FA Cup apps has league goals of 1 with total goals less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "barnsley" (
"division" text,
"league_apps" real,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"total_apps" real,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which FA Cup apps has league goals of 1 with total goals less than 1?`:
```sql
|
SELECT MAX("total_apps") FROM "barnsley" WHERE "fa_cup_apps"=26 AND "total_goals">9; |
## Task
Generate a SQL query to answer the following question:
`What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "barnsley" (
"division" text,
"league_apps" real,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"total_apps" real,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest apps total with FA cup apps of 26 with total number of goals larger than 9?`:
```sql
|
SELECT "league_goals" FROM "barnsley" WHERE "fa_cup_apps"=2; |
## Task
Generate a SQL query to answer the following question:
`Which league goals has FA cup apps of 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "barnsley" (
"division" text,
"league_apps" real,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"total_apps" real,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which league goals has FA cup apps of 2?`:
```sql
|
SELECT COUNT("fa_cup_apps") FROM "barnsley" WHERE "total_apps">12 AND "league_apps">38 AND "fa_cup_goals">1; |
## Task
Generate a SQL query to answer the following question:
`What FA cup apps has a total larger than 12 and league apps larger than 38, and FA Cup goals larger than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "barnsley" (
"division" text,
"league_apps" real,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"total_apps" real,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What FA cup apps has a total larger than 12 and league apps larger than 38, and FA Cup goals larger than 1?`:
```sql
|
SELECT COUNT("attendance") FROM "schedule" WHERE "date"='december 14, 1975' AND "week">13; |
## Task
Generate a SQL query to answer the following question:
`What was the total attendance on December 14, 1975 after week 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total attendance on December 14, 1975 after week 13?`:
```sql
|
SELECT SUM("total") FROM "medal_table" WHERE "rank">6 AND "gold">0 AND "silver"=2; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of all totals with a rank greater than 6, gold greater than 0, and silver greater than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of all totals with a rank greater than 6, gold greater than 0, and silver greater than 2?`:
```sql
|
SELECT COUNT("silver") FROM "medal_table" WHERE "gold"<1 AND "rank"=13 AND "bronze">2; |
## Task
Generate a SQL query to answer the following question:
`How many values for silver occur when gold is less than 1, the rank is 13, and bronze is greater than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many values for silver occur when gold is less than 1, the rank is 13, and bronze is greater than 2?`:
```sql
|
SELECT AVG("bronze") FROM "medal_table" WHERE "silver"=0 AND "total"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the average value of Bronze when silver is 0 and the total is less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average value of Bronze when silver is 0 and the total is less than 1?`:
```sql
|
SELECT MIN("bronze") FROM "medal_table" WHERE "total"=3 AND "silver">1 AND "gold"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest value for bronze with a total of 3 and a value for silver greater than 1 while the value of gold is smaller than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest value for bronze with a total of 3 and a value for silver greater than 1 while the value of gold is smaller than 1?`:
```sql
|
SELECT COUNT("bronze") FROM "medal_table" WHERE "gold"<1 AND "rank">15 AND "total">1; |
## Task
Generate a SQL query to answer the following question:
`How man values for bronze occur when gold is less than 1, rank is greater than 15, and total is greater than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How man values for bronze occur when gold is less than 1, rank is greater than 15, and total is greater than 1?`:
```sql
|
SELECT "position" FROM "round_nine" WHERE "pick"='234'; |
## Task
Generate a SQL query to answer the following question:
`Name the position of pick 234`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_nine" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position of pick 234`:
```sql
|
SELECT "nhl_team" FROM "round_nine" WHERE "player"='vitali yeremeyev'; |
## Task
Generate a SQL query to answer the following question:
`Name the team of vitali yeremeyev`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_nine" (
"pick" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team of vitali yeremeyev`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "date"='2007-09-29'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the result for 2007-09-29`
### 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 `Tell me the result for 2007-09-29`:
```sql
|
SELECT COUNT("week") FROM "schedule" WHERE "attendance"='64,116'; |
## Task
Generate a SQL query to answer the following question:
`How many weeks have an attendance of 64,116?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks have an attendance of 64,116?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week">14; |
## Task
Generate a SQL query to answer the following question:
`Which date has a week larger than 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has a week larger than 14?`:
```sql
|
SELECT "venue" FROM "schedule" WHERE "week"<2; |
## Task
Generate a SQL query to answer the following question:
`Which venue has a week smaller than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has a week smaller than 2?`:
```sql
|
SELECT "date" FROM "1990s" WHERE "event"='metallica: escape from the studio'; |
## Task
Generate a SQL query to answer the following question:
`When was the Metallica: Escape from the Studio show?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1990s" (
"year" real,
"date" text,
"event" text,
"days" text,
"stages" text,
"acts" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the Metallica: Escape from the Studio show?`:
```sql
|
SELECT "date" FROM "1990s" WHERE "event"='monsters of rock' AND "acts"='12 bands'; |
## Task
Generate a SQL query to answer the following question:
`When is the Monsters of Rock show with 12 bands?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1990s" (
"year" real,
"date" text,
"event" text,
"days" text,
"stages" text,
"acts" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the Monsters of Rock show with 12 bands?`:
```sql
|
SELECT "result" FROM "2000_2009" WHERE "date"='15 july'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the result for 15 july`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_2009" (
"year" real,
"competition" text,
"date" text,
"surface" text,
"location" text,
"score" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the result for 15 july`:
```sql
|
SELECT "no_range" FROM "fleet_details" WHERE "year_built_converted"='1965-66'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the number range for 1965-66`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fleet_details" (
"class" text,
"type" text,
"no_built_converted" text,
"year_built_converted" text,
"no_range" text,
"withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the number range for 1965-66`:
```sql
|
SELECT "year_built_converted" FROM "fleet_details" WHERE "withdrawn"=1983; |
## Task
Generate a SQL query to answer the following question:
`Tell me the year built for withdrawn of 1983`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fleet_details" (
"class" text,
"type" text,
"no_built_converted" text,
"year_built_converted" text,
"no_range" text,
"withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the year built for withdrawn of 1983`:
```sql
|
SELECT "year_built_converted" FROM "fleet_details" WHERE "no_built_converted"='10'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the year built for number built of 10`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fleet_details" (
"class" text,
"type" text,
"no_built_converted" text,
"year_built_converted" text,
"no_range" text,
"withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the year built for number built of 10`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "date"='2008-12-23'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the result for 2008-12-23`
### 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 `Tell me the result for 2008-12-23`:
```sql
|
SELECT "director" FROM "stozhary_2005_prize_winners" WHERE "nomination"='best actor in a leading role'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the director nominated for best actor in a leading role`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_2005_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the director nominated for best actor in a leading role`:
```sql
|
SELECT "nomination" FROM "stozhary_2005_prize_winners" WHERE "film_name"='peresohla zemlia'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the nomination for peresohla zemlia`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_2005_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the nomination for peresohla zemlia`:
```sql
|
SELECT "nomination" FROM "stozhary_2005_prize_winners" WHERE "country"='russia' AND "actor_s_name"='svetlana hodchenkova'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the nomination for russia and svetlana hodchenkova`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_2005_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the nomination for russia and svetlana hodchenkova`:
```sql
|
SELECT "actor_s_name" FROM "stozhary_2005_prize_winners" WHERE "film_name"='nienasycenie (insatiability)'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the actor's name for nienasycenie (insatiability)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_2005_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the actor's name for nienasycenie (insatiability)`:
```sql
|
SELECT "actor_s_name" FROM "stozhary_2005_prize_winners" WHERE "film_name"='escho raz o voyne'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the actor's name for escho raz o voyne`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "stozhary_2005_prize_winners" (
"nomination" text,
"actor_s_name" text,
"film_name" text,
"director" text,
"country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the actor's name for escho raz o voyne`:
```sql
|
SELECT AVG("laps") FROM "24_hours_of_le_mans_results" WHERE "class"='gt'; |
## Task
Generate a SQL query to answer the following question:
`What are the average laps driven in the GT class?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average laps driven in the GT class?`:
```sql
|
SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "laps">133 AND "pos"='18th' AND "class_pos"='1st'; |
## Task
Generate a SQL query to answer the following question:
`What classes have driven greater than 133 laps, placed above 18th position and have a class position of 1st?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What classes have driven greater than 133 laps, placed above 18th position and have a class position of 1st?`:
```sql
|
SELECT "tsongas_d" FROM "democratic_primary" WHERE "date"='may 22, 2007'; |
## Task
Generate a SQL query to answer the following question:
`I want the tsongas of may 22, 2007`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "democratic_primary" (
"source" text,
"date" text,
"donoghue_d" text,
"eldridge_d" text,
"finegold_d" text,
"miceli_d" text,
"tsongas_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `I want the tsongas of may 22, 2007`:
```sql
|
SELECT "venue" FROM "wac_men_s_basketball_tournament_results" WHERE "winner"='nevada' AND "year">2004; |
## Task
Generate a SQL query to answer the following question:
`Tell me the venue for winner of nevada and year more than 2004`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wac_men_s_basketball_tournament_results" (
"year" real,
"winner" text,
"score" text,
"opponent" text,
"venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the venue for winner of nevada and year more than 2004`:
```sql
|
SELECT "date" FROM "regular_season_schedule" WHERE "time_et"='1:00 pm' AND "game_site"='arrowhead stadium'; |
## Task
Generate a SQL query to answer the following question:
`What date is the 1:00 pm game at arrowhead stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season_schedule" (
"week" real,
"date" text,
"opponent" text,
"time_et" text,
"game_site" text,
"final_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date is the 1:00 pm game at arrowhead stadium?`:
```sql
|
SELECT "game_site" FROM "regular_season_schedule" WHERE "time_et"='7:00 pm'; |
## Task
Generate a SQL query to answer the following question:
`Where will the game at (ET) of 7:00 pm be at?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season_schedule" (
"week" real,
"date" text,
"opponent" text,
"time_et" text,
"game_site" text,
"final_score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where will the game at (ET) of 7:00 pm be at?`:
```sql
|
SELECT "driver" FROM "race_results" WHERE "laps"<498 AND "points"<58 AND "car_num">22 AND "winnings"='$93,514'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Driver that has a Laps smaller than 498, less than 58 points, a car number bigger than 22 and who has won $93,514?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"driver" text,
"car_num" real,
"make" text,
"points" real,
"laps" real,
"winnings" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Driver that has a Laps smaller than 498, less than 58 points, a car number bigger than 22 and who has won $93,514?`:
```sql
|
SELECT "location" FROM "2000s" WHERE "result"='loss' AND "date"='20 jan'; |
## Task
Generate a SQL query to answer the following question:
`At what location was there a loss on 20 jan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what location was there a loss on 20 jan?`:
```sql
|
SELECT "venue" FROM "schedule" WHERE "record"='2-7'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the venue for record of 2-7`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the venue for record of 2-7`:
```sql
|
SELECT "result" FROM "schedule" WHERE "opponent"='green bay packers'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the result for green bay packers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the result for green bay packers`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "result"='w 31-21'; |
## Task
Generate a SQL query to answer the following question:
`Tell mem the opponent for result of w 31-21`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell mem the opponent for result of w 31-21`:
```sql
|
SELECT "speed" FROM "1970_isle_of_man_production_750_cc_tt_fi" WHERE "rider"='peter williams'; |
## Task
Generate a SQL query to answer the following question:
`What is the average speed of rider Peter Williams?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970_isle_of_man_production_750_cc_tt_fi" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average speed of rider Peter Williams?`:
```sql
|
SELECT "time" FROM "1970_isle_of_man_production_750_cc_tt_fi" WHERE "team"='triumph' AND "rank"<4; |
## Task
Generate a SQL query to answer the following question:
`What is the time/s of team Triumph in those races in which Triumph ranked higher than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970_isle_of_man_production_750_cc_tt_fi" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time/s of team Triumph in those races in which Triumph ranked higher than 4?`:
```sql
|
SELECT "score" FROM "history" WHERE "year"='1969'; |
## Task
Generate a SQL query to answer the following question:
`What was the score in 1969?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history" (
"year" text,
"zone" text,
"final_round" text,
"score" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in 1969?`:
```sql
|
SELECT "final_round" FROM "history" WHERE "year"='1975'; |
## Task
Generate a SQL query to answer the following question:
`In 1975, what was the final round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "history" (
"year" text,
"zone" text,
"final_round" text,
"score" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 1975, what was the final round?`:
```sql
|
SELECT "event_place" FROM "men" WHERE "time"='61:32'; |
## Task
Generate a SQL query to answer the following question:
`Where did someone run a 61:32`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"time" text,
"name" text,
"nationality" text,
"date" text,
"event_place" text,
"source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did someone run a 61:32`:
```sql
|
SELECT "time" FROM "men" WHERE "name"='derek graham'; |
## Task
Generate a SQL query to answer the following question:
`What was Derek Graham's time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"time" text,
"name" text,
"nationality" text,
"date" text,
"event_place" text,
"source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Derek Graham's time?`:
```sql
|
SELECT "event_place" FROM "men" WHERE "time"='58:33'; |
## Task
Generate a SQL query to answer the following question:
`Where did someone run a 58:33?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"time" text,
"name" text,
"nationality" text,
"date" text,
"event_place" text,
"source" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did someone run a 58:33?`:
```sql
|
SELECT "player" FROM "round_three" WHERE "pick_num"<29 AND "mls_team"='chicago fire'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the player for pick number less than 29 and mls team of chicago fire`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"mls_team" text,
"player" text,
"position" text,
"affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the player for pick number less than 29 and mls team of chicago fire`:
```sql
|
SELECT "opponents" FROM "doubles_2_4" WHERE "partner"='yvonne meusburger'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the opponents for partner of yvonne meusburger`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_2_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the opponents for partner of yvonne meusburger`:
```sql
|
SELECT "date" FROM "doubles_2_4" WHERE "opponents"='raffaella bindi biljana pawlowa-dimitrova'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the date for opponents of raffaella bindi biljana pawlowa-dimitrova`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_2_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the date for opponents of raffaella bindi biljana pawlowa-dimitrova`:
```sql
|
SELECT MAX("time") FROM "heats" WHERE "heat_rank"=8 AND "lane">2; |
## Task
Generate a SQL query to answer the following question:
`Tell me the highest time for heat rank of 8 and lane more than 2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the highest time for heat rank of 8 and lane more than 2`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.