output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "vacator" FROM "senate" WHERE "date_of_successor_s_formal_installation"='february 1, 1971'; |
## Task
Generate a SQL query to answer the following question:
`Who is the vacator for the February 1, 1971 date of successor's formal installation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successor_s_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the vacator for the February 1, 1971 date of successor's formal installation?`:
```sql
|
SELECT "state_class" FROM "senate" WHERE "date_of_successor_s_formal_installation"='november 14, 1972'; |
## Task
Generate a SQL query to answer the following question:
`What is the state of the senator with a November 14, 1972 date of successor's formal installation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senate" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successor_s_formal_installation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the state of the senator with a November 14, 1972 date of successor's formal installation?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "date"='june 3'; |
## Task
Generate a SQL query to answer the following question:
`What team did the Red Sox play against on June 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team did the Red Sox play against on June 3?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "attendance"='21,191'; |
## Task
Generate a SQL query to answer the following question:
`What was the Record at the game that had an attendance of 21,191?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Record at the game that had an attendance of 21,191?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='june 17'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score of the game on June 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score of the game on June 17?`:
```sql
|
SELECT "1st_ship_delivery_date" FROM "yards_on_the_west_coast" WHERE "total_number_of_ways"='6 ways'; |
## Task
Generate a SQL query to answer the following question:
`What is the 1st ship delivery date of 6 ways?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "yards_on_the_west_coast" (
"yard_name" text,
"location_city_state" text,
"1st_ship_delivery_date" text,
"total_number_of_ways" text,
"total_vessels_built" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1st ship delivery date of 6 ways?`:
```sql
|
SELECT "total_vessels_built" FROM "yards_on_the_west_coast" WHERE "location_city_state"='wilmington, california'; |
## Task
Generate a SQL query to answer the following question:
`What is the total vessels built in Wilmington, California?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "yards_on_the_west_coast" (
"yard_name" text,
"location_city_state" text,
"1st_ship_delivery_date" text,
"total_number_of_ways" text,
"total_vessels_built" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total vessels built in Wilmington, California?`:
```sql
|
SELECT "final" FROM "boxing" WHERE "athlete"='mohammad reza samadi'; |
## Task
Generate a SQL query to answer the following question:
`What was the final round result of Mohammad Reza Samadi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "boxing" (
"athlete" text,
"event" text,
"quarterfinal" text,
"semifinal" text,
"final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final round result of Mohammad Reza Samadi?`:
```sql
|
SELECT "away_team_score" FROM "round_16" WHERE "home_team_score"='19.15 (129)'; |
## Task
Generate a SQL query to answer the following question:
`If the Home team score was 19.15 (129), what was the Away team's score that game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Home team score was 19.15 (129), what was the Away team's score that game?`:
```sql
|
SELECT "home_team_score" FROM "round_16" WHERE "home_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`When the Home team of footscray is playing, what's the Home team score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Home team of footscray is playing, what's the Home team score?`:
```sql
|
SELECT "home_team_score" FROM "round_16" WHERE "away_team_score"='18.8 (116)'; |
## Task
Generate a SQL query to answer the following question:
`If the Away team scored 18.8 (116), what was the Home team's score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Away team scored 18.8 (116), what was the Home team's score?`:
```sql
|
SELECT "song_title" FROM "disc_four" WHERE "chart_peak"='#1' AND "track"=20; |
## Task
Generate a SQL query to answer the following question:
`What was the title of the song that peaked the charts at #1 with track 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disc_four" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"chart_peak" text,
"song_title" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of the song that peaked the charts at #1 with track 20?`:
```sql
|
SELECT "time" FROM "disc_four" WHERE "song_title"='treat me nice'; |
## Task
Generate a SQL query to answer the following question:
`What is the time from the song called Treat Me Nice?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disc_four" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"chart_peak" text,
"song_title" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time from the song called Treat Me Nice?`:
```sql
|
SELECT "copyright_information" FROM "official_callanetics_books" WHERE "publisher"='random house'; |
## Task
Generate a SQL query to answer the following question:
`What was Random House's copyright information?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "official_callanetics_books" (
"year" real,
"title" text,
"publisher" text,
"release_date" text,
"copyright_information" text,
"isbn" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Random House's copyright information?`:
```sql
|
SELECT "release_date" FROM "official_callanetics_books" WHERE "isbn"=0 AND "year"=1992; |
## Task
Generate a SQL query to answer the following question:
`What was release date in 1992 with the ISBN #0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "official_callanetics_books" (
"year" real,
"title" text,
"publisher" text,
"release_date" text,
"copyright_information" text,
"isbn" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was release date in 1992 with the ISBN #0?`:
```sql
|
SELECT "club_team" FROM "1996_draft_picks" WHERE "overall"=216; |
## Task
Generate a SQL query to answer the following question:
`What club team has 216 overall?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1996_draft_picks" (
"round" real,
"overall" real,
"player" text,
"nationality" text,
"club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club team has 216 overall?`:
```sql
|
SELECT MAX("round") FROM "1996_draft_picks" WHERE "player"='chris phillips'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest round played by Chris Phillips?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1996_draft_picks" (
"round" real,
"overall" real,
"player" text,
"nationality" text,
"club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest round played by Chris Phillips?`:
```sql
|
SELECT "player" FROM "round_four" WHERE "college"='graceland'; |
## Task
Generate a SQL query to answer the following question:
`What player attended Graceland College?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player attended Graceland College?`:
```sql
|
SELECT MAX("pick_num") FROM "round_four" WHERE "cfl_team"='toronto argonauts'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest pick number of the CFL's Toronto Argonauts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pick number of the CFL's Toronto Argonauts?`:
```sql
|
SELECT "pick_num" FROM "round_four" WHERE "college"='mcmaster'; |
## Task
Generate a SQL query to answer the following question:
`Which pick number attended McMaster College?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which pick number attended McMaster College?`:
```sql
|
SELECT "visitor" FROM "october" WHERE "decision"='osgood' AND "home"='edmonton'; |
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team at the game where Edmonton was the home team and the decision was Osgood?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team at the game where Edmonton was the home team and the decision was Osgood?`:
```sql
|
SELECT "recorded" FROM "disc_three" WHERE "time"='2:12' AND "song_title"='i want to be free'; |
## Task
Generate a SQL query to answer the following question:
`What is the date recorded for I Want to Be Free with a length of 2:12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disc_three" (
"track" real,
"recorded" text,
"release_date" text,
"song_title" text,
"writer_s" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date recorded for I Want to Be Free with a length of 2:12?`:
```sql
|
SELECT MAX("track") FROM "disc_three" WHERE "time"='1:54' AND "writer_s"='gene autry and oakley haldeman'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest track with a length of 1:54 written by Gene Autry and Oakley Haldeman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disc_three" (
"track" real,
"recorded" text,
"release_date" text,
"song_title" text,
"writer_s" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest track with a length of 1:54 written by Gene Autry and Oakley Haldeman?`:
```sql
|
SELECT "song_title" FROM "disc_three" WHERE "track"<8 AND "release_date"='3/22/57'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the song with a track less than 8 released on 3/22/57?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disc_three" (
"track" real,
"recorded" text,
"release_date" text,
"song_title" text,
"writer_s" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the song with a track less than 8 released on 3/22/57?`:
```sql
|
SELECT "song_title" FROM "disc_three" WHERE "writer_s"='kal mann and bernie lowe'; |
## Task
Generate a SQL query to answer the following question:
`What song title was written by Kal Mann and Bernie Lowe?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "disc_three" (
"track" real,
"recorded" text,
"release_date" text,
"song_title" text,
"writer_s" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What song title was written by Kal Mann and Bernie Lowe?`:
```sql
|
SELECT "home_team_score" FROM "round_9" WHERE "away_team_score"='18.13 (121)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Home team score for Geelong, whereby the Away team has a score of 18.13 (121)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team score for Geelong, whereby the Away team has a score of 18.13 (121)?`:
```sql
|
SELECT "date" FROM "round_9" WHERE "away_team"='north melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What date did the Away team, North Melbourne, play Geelong?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the Away team, North Melbourne, play Geelong?`:
```sql
|
SELECT "venue" FROM "round_9" WHERE "away_team_score"='7.15 (57)'; |
## Task
Generate a SQL query to answer the following question:
`What Venue had an Away team score of 7.15 (57) on June 4, 1973?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Venue had an Away team score of 7.15 (57) on June 4, 1973?`:
```sql
|
SELECT "time_retired" FROM "classification" WHERE "driver"='jacky ickx'; |
## Task
Generate a SQL query to answer the following question:
`The driver Jacky Ickx had what time/retired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `The driver Jacky Ickx had what time/retired?`:
```sql
|
SELECT MIN("laps") FROM "classification" WHERE "driver"='jo siffert'; |
## Task
Generate a SQL query to answer the following question:
`What is the least number of laps for the driver Jo Siffert?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least number of laps for the driver Jo Siffert?`:
```sql
|
SELECT MIN("laps") FROM "classification" WHERE "constructor"='ferrari' AND "grid"<4; |
## Task
Generate a SQL query to answer the following question:
`What is the least number of laps for the constructor Ferrari and where the grid number was less than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least number of laps for the constructor Ferrari and where the grid number was less than 4?`:
```sql
|
SELECT SUM("grid") FROM "classification" WHERE "laps"<68 AND "time_retired"='injection'; |
## Task
Generate a SQL query to answer the following question:
`What is the total amount of grid when the laps amount was smaller than 68 and the time/retired was injection?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total amount of grid when the laps amount was smaller than 68 and the time/retired was injection?`:
```sql
|
SELECT "baby_gender" FROM "pregnancies" WHERE "congresswoman"='jaime herrera beutler'; |
## Task
Generate a SQL query to answer the following question:
`What is the gender of Congresswoman Jaime Herrera Beutler's baby?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pregnancies" (
"congresswoman" text,
"state" text,
"date_of_delivery" text,
"mother_s_age" real,
"baby_gender" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gender of Congresswoman Jaime Herrera Beutler's baby?`:
```sql
|
SELECT "mother_s_age" FROM "pregnancies" WHERE "date_of_delivery"='december 15, 2008'; |
## Task
Generate a SQL query to answer the following question:
`How old was the mother who delivered on December 15, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pregnancies" (
"congresswoman" text,
"state" text,
"date_of_delivery" text,
"mother_s_age" real,
"baby_gender" text
);
### SQL
Given the database schema, here is the SQL query that answers `How old was the mother who delivered on December 15, 2008?`:
```sql
|
SELECT "date_of_delivery" FROM "pregnancies" WHERE "baby_gender"='boy' AND "congresswoman"='kirsten gillibrand'; |
## Task
Generate a SQL query to answer the following question:
`What was the delivery date of Congresswoman Kirsten Gillibrand's baby boy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pregnancies" (
"congresswoman" text,
"state" text,
"date_of_delivery" text,
"mother_s_age" real,
"baby_gender" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the delivery date of Congresswoman Kirsten Gillibrand's baby boy?`:
```sql
|
SELECT "player" FROM "2007_rugby_world_cup_squads" WHERE "club_province"='bulls' AND "date_of_birth_age"='6 may 1978'; |
## Task
Generate a SQL query to answer the following question:
`Which player on the Bulls has a 6 May 1978 birthday?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player on the Bulls has a 6 May 1978 birthday?`:
```sql
|
SELECT "player" FROM "2007_rugby_world_cup_squads" WHERE "caps">16 AND "date_of_birth_age"='1 february 1982'; |
## Task
Generate a SQL query to answer the following question:
`Which player has a 1 February 1982 birthday and more than 16 caps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a 1 February 1982 birthday and more than 16 caps?`:
```sql
|
SELECT "tournament" FROM "women_s_doubles_performance_timeline" WHERE "2011"='1r'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament has a 2011 of 1r?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament has a 2011 of 1r?`:
```sql
|
SELECT "2009" FROM "women_s_doubles_performance_timeline" WHERE "tournament"='french open'; |
## Task
Generate a SQL query to answer the following question:
`Which 2009 tournament was french open?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women_s_doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2009 tournament was french open?`:
```sql
|
SELECT "date" FROM "round_3" WHERE "home_team_score"='8.12 (60)'; |
## Task
Generate a SQL query to answer the following question:
`When the home team score was 8.12 (60), what was the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home team score was 8.12 (60), what was the date?`:
```sql
|
SELECT "away_team_score" FROM "round_3" WHERE "away_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`When the away team was collingwood, what was the away team score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the away team was collingwood, what was the away team score?`:
```sql
|
SELECT "home_team" FROM "round_2" WHERE "away_team"='richmond'; |
## Task
Generate a SQL query to answer the following question:
`Who was Richmond's home team opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Richmond's home team opponent?`:
```sql
|
SELECT "venue" FROM "round_2" WHERE "away_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`Where did Essendon play as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Essendon play as the away team?`:
```sql
|
SELECT "first_appearance" FROM "main_characters" WHERE "character"='aiden burn csi detective'; |
## Task
Generate a SQL query to answer the following question:
`Where did the character of Aiden Burn csi detective first appear?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_characters" (
"character" text,
"portrayed_by" text,
"first_appearance" text,
"last_appearance" text,
"duration" text,
"episodes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the character of Aiden Burn csi detective first appear?`:
```sql
|
SELECT "ipsos_5_25_09" FROM "polling" WHERE "tns_sofres_5_28_09"='20%'; |
## Task
Generate a SQL query to answer the following question:
`Which Ipsos 5/25/09 has a TNS-Sofres 5/28/09 of 20%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"csa_5_14_09" text,
"viavoice_5_15_09" text,
"ifop_la_croix_5_15_09" text,
"ipsos_5_16_09" text,
"opinion_way_5_18_09" text,
"csa_5_20_09" text,
"ipsos_5_25_09" text,
"tns_sofres_5_26_09" text,
"opinion_way_5_28_09" text,
"tns_sofres_5_28_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ipsos 5/25/09 has a TNS-Sofres 5/28/09 of 20%?`:
```sql
|
SELECT "tns_sofres_5_26_09" FROM "polling" WHERE "ipsos_5_25_09"='1%'; |
## Task
Generate a SQL query to answer the following question:
`Which TNS-Sofres 5/26/09 has an Ipsos 5/25/09 of 1%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"csa_5_14_09" text,
"viavoice_5_15_09" text,
"ifop_la_croix_5_15_09" text,
"ipsos_5_16_09" text,
"opinion_way_5_18_09" text,
"csa_5_20_09" text,
"ipsos_5_25_09" text,
"tns_sofres_5_26_09" text,
"opinion_way_5_28_09" text,
"tns_sofres_5_28_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which TNS-Sofres 5/26/09 has an Ipsos 5/25/09 of 1%?`:
```sql
|
SELECT "opinion_way_5_18_09" FROM "polling" WHERE "ipsos_5_16_09"='11%'; |
## Task
Generate a SQL query to answer the following question:
`Which OpinionWay 5/18/09 has an Ipsos 5/16/09 of 11%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"csa_5_14_09" text,
"viavoice_5_15_09" text,
"ifop_la_croix_5_15_09" text,
"ipsos_5_16_09" text,
"opinion_way_5_18_09" text,
"csa_5_20_09" text,
"ipsos_5_25_09" text,
"tns_sofres_5_26_09" text,
"opinion_way_5_28_09" text,
"tns_sofres_5_28_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which OpinionWay 5/18/09 has an Ipsos 5/16/09 of 11%?`:
```sql
|
SELECT "ipsos_5_16_09" FROM "polling" WHERE "tns_sofres_5_28_09"='2.5%'; |
## Task
Generate a SQL query to answer the following question:
`Which Ipsos 5/16/09 has a TNS-Sofres 5/28/09 of 2.5%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"csa_5_14_09" text,
"viavoice_5_15_09" text,
"ifop_la_croix_5_15_09" text,
"ipsos_5_16_09" text,
"opinion_way_5_18_09" text,
"csa_5_20_09" text,
"ipsos_5_25_09" text,
"tns_sofres_5_26_09" text,
"opinion_way_5_28_09" text,
"tns_sofres_5_28_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ipsos 5/16/09 has a TNS-Sofres 5/28/09 of 2.5%?`:
```sql
|
SELECT "csa_5_20_09" FROM "polling" WHERE "ifop_la_croix_5_15_09"='26%'; |
## Task
Generate a SQL query to answer the following question:
`Which Ipsos 5/16/09 has an Ifop- La Croix 5/15/09 of 26%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"csa_5_14_09" text,
"viavoice_5_15_09" text,
"ifop_la_croix_5_15_09" text,
"ipsos_5_16_09" text,
"opinion_way_5_18_09" text,
"csa_5_20_09" text,
"ipsos_5_25_09" text,
"tns_sofres_5_26_09" text,
"opinion_way_5_28_09" text,
"tns_sofres_5_28_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Ipsos 5/16/09 has an Ifop- La Croix 5/15/09 of 26%?`:
```sql
|
SELECT "viavoice_5_15_09" FROM "polling" WHERE "csa_5_14_09"='5%' AND "tns_sofres_5_28_09"='4.5%'; |
## Task
Generate a SQL query to answer the following question:
`Which Viavoice 5/15/09 has a CSA 5/14/09 of 5%, and a TNS-Sofres 5/28/09 of 4.5%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "polling" (
"party" text,
"results_2004" text,
"csa_5_14_09" text,
"viavoice_5_15_09" text,
"ifop_la_croix_5_15_09" text,
"ipsos_5_16_09" text,
"opinion_way_5_18_09" text,
"csa_5_20_09" text,
"ipsos_5_25_09" text,
"tns_sofres_5_26_09" text,
"opinion_way_5_28_09" text,
"tns_sofres_5_28_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Viavoice 5/15/09 has a CSA 5/14/09 of 5%, and a TNS-Sofres 5/28/09 of 4.5%?`:
```sql
|
SELECT "driver" FROM "classification" WHERE "laps"=44; |
## Task
Generate a SQL query to answer the following question:
`What driver has 44 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What driver has 44 laps?`:
```sql
|
SELECT AVG("laps") FROM "classification" WHERE "grid">2 AND "time_retired"='accident' AND "constructor"='ferrari'; |
## Task
Generate a SQL query to answer the following question:
`What is the average laps for a grid larger than 2, for a ferrari that got in an accident?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average laps for a grid larger than 2, for a ferrari that got in an accident?`:
```sql
|
SELECT AVG("goal_difference") FROM "final_league_position" WHERE "draw"=7 AND "played">18; |
## Task
Generate a SQL query to answer the following question:
`Name the average goal difference for draw of 7 and played more than 18`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_league_position" (
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average goal difference for draw of 7 and played more than 18`:
```sql
|
SELECT COUNT("goal_difference") FROM "final_league_position" WHERE "goals_against"=30 AND "played"<18; |
## Task
Generate a SQL query to answer the following question:
`Tell me the totla number of goal difference for goals against of 30 and played less than 18`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_league_position" (
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the totla number of goal difference for goals against of 30 and played less than 18`:
```sql
|
SELECT COUNT("draw") FROM "final_league_position" WHERE "played">18; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of draw for played more than 18`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_league_position" (
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of draw for played more than 18`:
```sql
|
SELECT "country_of_origin" FROM "round_2" WHERE "pick"<12 AND "college"='uv'; |
## Task
Generate a SQL query to answer the following question:
`Where is the player with a pick smaller than 12 and a college of UV from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the player with a pick smaller than 12 and a college of UV from?`:
```sql
|
SELECT "pba_team" FROM "round_2" WHERE "college"='ateneo' AND "pick"=17; |
## Task
Generate a SQL query to answer the following question:
`What PBA team is the player from Ateneo college and a pick of 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What PBA team is the player from Ateneo college and a pick of 17?`:
```sql
|
SELECT AVG("pick") FROM "round_2" WHERE "player"='mark joseph kong'; |
## Task
Generate a SQL query to answer the following question:
`What is Mark Joseph Kong's pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Mark Joseph Kong's pick?`:
```sql
|
SELECT "pba_team" FROM "round_2" WHERE "pick"<15 AND "college"='ateneo'; |
## Task
Generate a SQL query to answer the following question:
`What PBA team is the player from Ateneo college with a pick number smaller than 15 from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What PBA team is the player from Ateneo college with a pick number smaller than 15 from?`:
```sql
|
SELECT "pick" FROM "round_2" WHERE "player"='larry fonacier'; |
## Task
Generate a SQL query to answer the following question:
`What pick number is Larry Fonacier?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pick number is Larry Fonacier?`:
```sql
|
SELECT SUM("rating") FROM "u_s_nielsen_ratings" WHERE "rank_timeslot"<3 AND "rank_night"<8; |
## Task
Generate a SQL query to answer the following question:
`what is the rating when the rank (timeslot) is less than 3 and the rank (night) is less than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_nielsen_ratings" (
"episode" text,
"rating" real,
"share" real,
"rating_share_18_49" text,
"viewers_millions" real,
"rank_timeslot" real,
"rank_night" real,
"rank_week" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the rating when the rank (timeslot) is less than 3 and the rank (night) is less than 8?`:
```sql
|
SELECT AVG("rank_night") FROM "u_s_nielsen_ratings" WHERE "rating">4.3 AND "viewers_millions">10.72; |
## Task
Generate a SQL query to answer the following question:
`what is the rank (night) when the rating is more than 4.3 and the viewers (millions) is more than 10.72?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_nielsen_ratings" (
"episode" text,
"rating" real,
"share" real,
"rating_share_18_49" text,
"viewers_millions" real,
"rank_timeslot" real,
"rank_night" real,
"rank_week" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the rank (night) when the rating is more than 4.3 and the viewers (millions) is more than 10.72?`:
```sql
|
SELECT "date" FROM "round_21" WHERE "venue"='windy hill'; |
## Task
Generate a SQL query to answer the following question:
`When was Windy Hill used as a venue?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Windy Hill used as a venue?`:
```sql
|
SELECT "home_team" FROM "round_21" WHERE "venue"='vfl park'; |
## Task
Generate a SQL query to answer the following question:
`Which home team plays at VFL Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team plays at VFL Park?`:
```sql
|
SELECT "home_team" FROM "round_21" WHERE "away_team"='footscray'; |
## Task
Generate a SQL query to answer the following question:
`Which team plays against Footscray as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team plays against Footscray as the home team?`:
```sql
|
SELECT SUM("attendance") FROM "vs_2" WHERE "date"='may 28'; |
## Task
Generate a SQL query to answer the following question:
`What is the total audience on may 28?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vs_2" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total audience on may 28?`:
```sql
|
SELECT MAX("attendance") FROM "vs_2" WHERE "score"='0 – 4'; |
## Task
Generate a SQL query to answer the following question:
`What was the the total top attendance with a score of 0 – 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vs_2" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the the total top attendance with a score of 0 – 4?`:
```sql
|
SELECT SUM("allsvenskan_titles") FROM "honoured_clubs" WHERE "stars_symbolizes"='number of swedish championship titles' AND "club"='aik' AND "introduced">2000; |
## Task
Generate a SQL query to answer the following question:
`How many allsvenskan titles did club aik have after its introduction after 2000, with stars symbolizing the number of swedish championship titles ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "honoured_clubs" (
"club" text,
"swedish_championship_titles" real,
"allsvenskan_titles" real,
"introduced" real,
"stars_symbolizes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many allsvenskan titles did club aik have after its introduction after 2000, with stars symbolizing the number of swedish championship titles ?`:
```sql
|
SELECT MAX("swedish_championship_titles") FROM "honoured_clubs" WHERE "introduced"<2006; |
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of swedish championship titles for the team that was introduced before 2006?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "honoured_clubs" (
"club" text,
"swedish_championship_titles" real,
"allsvenskan_titles" real,
"introduced" real,
"stars_symbolizes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of swedish championship titles for the team that was introduced before 2006?`:
```sql
|
SELECT AVG("rec") FROM "wide_receivers" WHERE "td_s"=4 AND "yards"<171; |
## Task
Generate a SQL query to answer the following question:
`What is the average reception of the player with 4 touchdowns and less than 171 yards?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average reception of the player with 4 touchdowns and less than 171 yards?`:
```sql
|
SELECT "avg" FROM "wide_receivers" WHERE "td_s">0 AND "yards">135; |
## Task
Generate a SQL query to answer the following question:
`What is the average that has more than 0 touchdowns and more than 135 yards?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average that has more than 0 touchdowns and more than 135 yards?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "loss"='r. springer'; |
## Task
Generate a SQL query to answer the following question:
`What is the record loss of R. Springer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record loss of R. Springer?`:
```sql
|
SELECT "streak" FROM "game_log" WHERE "date"='april 12'; |
## Task
Generate a SQL query to answer the following question:
`What was the streak on April 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the streak on April 12?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "loss"='a. benes' AND "opponent"='rockies'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of A. Benes loss to the Rockies?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of A. Benes loss to the Rockies?`:
```sql
|
SELECT "streak" FROM "game_log" WHERE "attendance"='33,013'; |
## Task
Generate a SQL query to answer the following question:
`Which streak had an attendance of 33,013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text,
"streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which streak had an attendance of 33,013?`:
```sql
|
SELECT "wicket_partnership" FROM "partnership_records" WHERE "season"='1928'; |
## Task
Generate a SQL query to answer the following question:
`What was the partnership in the season of 1928`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "partnership_records" (
"wicket_partnership" text,
"runs" text,
"batsmen" text,
"opponents" text,
"venue" text,
"season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the partnership in the season of 1928`:
```sql
|
SELECT COUNT("earnings") FROM "leaders" WHERE "player"='jim colbert' AND "wins"<4; |
## Task
Generate a SQL query to answer the following question:
`What are the earnings for jim colbert with under 4 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the earnings for jim colbert with under 4 wins?`:
```sql
|
SELECT MAX("rank") FROM "leaders" WHERE "earnings"='1,444,386' AND "events"<34; |
## Task
Generate a SQL query to answer the following question:
`What is the ranking for the player with under 34 events and earnings of $1,444,386`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ranking for the player with under 34 events and earnings of $1,444,386`:
```sql
|
SELECT MAX("events") FROM "leaders" WHERE "player"='bob murphy'; |
## Task
Generate a SQL query to answer the following question:
`How many events for bob murphy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many events for bob murphy?`:
```sql
|
SELECT COUNT("rank") FROM "leaders" WHERE "player"='bob murphy' AND "wins"<4; |
## Task
Generate a SQL query to answer the following question:
`What is the rank for bob murphy with under 4 wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for bob murphy with under 4 wins?`:
```sql
|
SELECT SUM("apps") FROM "international_career" WHERE "club"='flamengo' AND "season"='2009' AND "goals">0; |
## Task
Generate a SQL query to answer the following question:
`When the club is flamengo in the 2009 season, and they scored more than 0 goals, what's the sum of the Apps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_career" (
"national_team" text,
"club" text,
"season" text,
"apps" real,
"goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the club is flamengo in the 2009 season, and they scored more than 0 goals, what's the sum of the Apps?`:
```sql
|
SELECT "club" FROM "international_career" WHERE "goals"=0 AND "apps">0 AND "season"='2010'; |
## Task
Generate a SQL query to answer the following question:
`In the 2010 season what club has 0 goals and more than 0 Apps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_career" (
"national_team" text,
"club" text,
"season" text,
"apps" real,
"goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `In the 2010 season what club has 0 goals and more than 0 Apps?`:
```sql
|
SELECT "round" FROM "mixed_martial_arts_record" WHERE "event"='cage rage 17'; |
## Task
Generate a SQL query to answer the following question:
`What Round is the Event cage rage 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Round is the Event cage rage 17?`:
```sql
|
SELECT "event" FROM "mixed_martial_arts_record" WHERE "time"='1:16'; |
## Task
Generate a SQL query to answer the following question:
`What Event is at the Time 1:16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Event is at the Time 1:16?`:
```sql
|
SELECT "title" FROM "track_listing" WHERE "track">11; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the track after 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"track" real,
"title" text,
"performer" text,
"length" text,
"original_album" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the track after 11?`:
```sql
|
SELECT "original_album" FROM "track_listing" WHERE "performer"='brad mehldau'; |
## Task
Generate a SQL query to answer the following question:
`On the title feature brad mehldau as the performer, what is the original album?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"track" real,
"title" text,
"performer" text,
"length" text,
"original_album" text
);
### SQL
Given the database schema, here is the SQL query that answers `On the title feature brad mehldau as the performer, what is the original album?`:
```sql
|
SELECT AVG("track") FROM "track_listing" WHERE "original_album"='turbulent indigo'; |
## Task
Generate a SQL query to answer the following question:
`Which track has the original album turbulent indigo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_listing" (
"track" real,
"title" text,
"performer" text,
"length" text,
"original_album" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which track has the original album turbulent indigo?`:
```sql
|
SELECT "player" FROM "t" WHERE "position"='center'; |
## Task
Generate a SQL query to answer the following question:
`What Utah Jazz player played Center?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "t" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Utah Jazz player played Center?`:
```sql
|
SELECT "nationality" FROM "t" WHERE "years_for_jazz"='1987-88'; |
## Task
Generate a SQL query to answer the following question:
`What is the nationality of all Utah Jazz Players, that played 1987-88?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "t" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of all Utah Jazz Players, that played 1987-88?`:
```sql
|
SELECT "nationality" FROM "t" WHERE "years_for_jazz"='2011-present'; |
## Task
Generate a SQL query to answer the following question:
`What is the nationality of all Utah Jazz Players, that played 2011-present?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "t" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of all Utah Jazz Players, that played 2011-present?`:
```sql
|
SELECT "player" FROM "t" WHERE "position"='forward' AND "school_club_team"='southern methodist'; |
## Task
Generate a SQL query to answer the following question:
`What Utah Jazz Forward played for Southern Methodist?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "t" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Utah Jazz Forward played for Southern Methodist?`:
```sql
|
SELECT "years_for_jazz" FROM "t" WHERE "school_club_team"='southern methodist'; |
## Task
Generate a SQL query to answer the following question:
`What years did the Utah Jazz Player from Southern Methodist, Play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "t" (
"player" text,
"nationality" text,
"position" text,
"years_for_jazz" text,
"school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years did the Utah Jazz Player from Southern Methodist, Play?`:
```sql
|
SELECT "home_team" FROM "round_2" WHERE "venue"='mcg'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team at MCG?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team at MCG?`:
```sql
|
SELECT "away_team" FROM "round_2" WHERE "home_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`Who was Carlton's away team opponents?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Carlton's away team opponents?`:
```sql
|
SELECT "away_team_score" FROM "round_2" WHERE "home_team"='south melbourne'; |
## Task
Generate a SQL query to answer the following question:
`What was home team South Melbourne's opponents score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was home team South Melbourne's opponents score?`:
```sql
|
SELECT "player" FROM "f" WHERE "asts"<357 AND "from"='2001'; |
## Task
Generate a SQL query to answer the following question:
`What player has under 357 assists and is from 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "f" (
"player" text,
"pos" text,
"from" text,
"school_country" text,
"rebs" real,
"asts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What player has under 357 assists and is from 2001?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "attendance"='4,516'; |
## Task
Generate a SQL query to answer the following question:
`When the Attendance was 4,516, what was the Record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Attendance was 4,516, what was the Record?`:
```sql
|
SELECT "attendance" FROM "game_log" WHERE "score"='4-10'; |
## Task
Generate a SQL query to answer the following question:
`When the Score was 4-10, what was the Attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Score was 4-10, what was the Attendance?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "record"='9-24'; |
## Task
Generate a SQL query to answer the following question:
`With a Record of 9-24, what was the Score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a Record of 9-24, what was the Score?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "score"='6-2'; |
## Task
Generate a SQL query to answer the following question:
`When the Score was 6-2, which Opponent was played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Score was 6-2, which Opponent was played?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.