output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("week") FROM "schedule" WHERE "result"='l 31–28'; |
## Task
Generate a SQL query to answer the following question:
`What is the Week number with a result of l 31–28?`
### 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,
"attendanc... |
SELECT "score" FROM "fifth_round_proper" WHERE "tie_no"='1'; |
## Task
Generate a SQL query to answer the following question:
`What was the score at the Tie no. 1 game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"... |
SELECT "attendance" FROM "fifth_round_proper" WHERE "home_team"='west ham united'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the West Ham United home game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away... |
SELECT "sport" FROM "medalists" WHERE "name"='gustav larsson'; |
## Task
Generate a SQL query to answer the following question:
`What is the Sport with a Name that is gustav larsson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medalists" (
"medal" text,
"name" text,
"sport" text,
"event" text,
"date" t... |
SELECT "name" FROM "medalists" WHERE "event"='men''s time trial'; |
## Task
Generate a SQL query to answer the following question:
`What is the Name with an Event that is men's time trial?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medalists" (
"medal" text,
"name" text,
"sport" text,
"event" text,
"date... |
SELECT "venue" FROM "under_23_international_career" WHERE "date"='15 november 2010'; |
## Task
Generate a SQL query to answer the following question:
`At which venue did the event held on 15 November 2010 occur?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "under_23_international_career" (
"date" text,
"venue" text,
"result" text... |
SELECT AVG("points") FROM "references" WHERE "performer"='rob burke band' AND "draw">1; |
## Task
Generate a SQL query to answer the following question:
`Which Points has a Performer of rob burke band and a Draw larger than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"draw" real,
"song" text,
"performer" text,
"... |
SELECT COUNT("points") FROM "references" WHERE "song"='\"this time\"' AND "draw"<5; |
## Task
Generate a SQL query to answer the following question:
`What Points have a Song of "this time" and a Draw smaller than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"draw" real,
"song" text,
"performer" text,
"points"... |
SELECT MIN("points") FROM "references" WHERE "performer"='seán monaghan' AND "draw"<7; |
## Task
Generate a SQL query to answer the following question:
`Which Points have a Performer of seán monaghan and a Draw smaller than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"draw" real,
"song" text,
"performer" text,
... |
SELECT COUNT("points") FROM "references" WHERE "performer"='rob burke band'; |
## Task
Generate a SQL query to answer the following question:
`Which Points has a Performer of rob burke band?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"draw" real,
"song" text,
"performer" text,
"points" real,
"rank" te... |
SELECT "finish" FROM "season_by_season" WHERE "wins"='28'; |
## Task
Generate a SQL query to answer the following question:
`What is the Finish of 28 Wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season" (
"season" text,
"division" text,
"finish" text,
"wins" text,
"losses" text,
"p... |
SELECT "finish" FROM "season_by_season" WHERE "wins"='reno bighorns'; |
## Task
Generate a SQL query to answer the following question:
`What is the Finish of the Reno Bighorns Wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season" (
"season" text,
"division" text,
"finish" text,
"wins" text,
"los... |
SELECT "finish" FROM "season_by_season" WHERE "wins"='28'; |
## Task
Generate a SQL query to answer the following question:
`What is the Finish of 28 Wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season" (
"season" text,
"division" text,
"finish" text,
"wins" text,
"losses" text,
"p... |
SELECT "wins" FROM "season_by_season" WHERE "division"='western' AND "finish"='4th'; |
## Task
Generate a SQL query to answer the following question:
`What is the Western Division of Wins with a 4th Finish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season" (
"season" text,
"division" text,
"finish" text,
"wins" te... |
SELECT "losses" FROM "season_by_season" WHERE "season"='playoffs'; |
## Task
Generate a SQL query to answer the following question:
`What are the losses of the playoffs season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_by_season" (
"season" text,
"division" text,
"finish" text,
"wins" text,
"losse... |
SELECT "team_1" FROM "preliminary_round" WHERE "team_2"='saint louis'; |
## Task
Generate a SQL query to answer the following question:
`What is Team 1, when Team 2 is Saint Louis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preliminary_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_le... |
SELECT "agg" FROM "preliminary_round" WHERE "team_2"='mukungwa'; |
## Task
Generate a SQL query to answer the following question:
`What is Agg., when Team 2 is Mukungwa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "preliminary_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" te... |
SELECT "round" FROM "1980s_hat_tricks" WHERE "opponent"='torpedo moscow'; |
## Task
Generate a SQL query to answer the following question:
`What is the Round with an Opponent that is torpedo moscow?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1980s_hat_tricks" (
"season" text,
"competition" text,
"round" text,
"opp... |
SELECT SUM("matches") FROM "list_of_top_association_football_goal_sc" WHERE "goals"=103 AND "rank">9; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the sum of Matches that has the Goals of 103, and the Rank larger than 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"ran... |
SELECT "name" FROM "list_of_top_association_football_goal_sc" WHERE "goals">98 AND "rank"=7; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Name that has the Goals larger than 98, and the Rank of 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
... |
SELECT SUM("laps") FROM "superbike_race_1_classification" WHERE "time"='accident' AND "rider"='carmelo morales' AND "grid">25; |
## Task
Generate a SQL query to answer the following question:
`How many laps had a time stat of accident for the rider carmelo morales when the grid was more than 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_1_classification" (
... |
SELECT COUNT("laps") FROM "superbike_race_1_classification" WHERE "time"='+2.987'; |
## Task
Generate a SQL query to answer the following question:
`How many laps had a time of +2.987?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid"... |
SELECT "bike" FROM "superbike_race_1_classification" WHERE "laps"<23 AND "grid"=4; |
## Task
Generate a SQL query to answer the following question:
`Which bike had fewer than 23 laps and a grid number of 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "superbike_race_1_classification" (
"rider" text,
"bike" text,
"laps" real,
... |
SELECT "record" FROM "regular_season" WHERE "week"=14; |
## Task
Generate a SQL query to answer the following question:
`What is the Record for week 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time" text,
"opponent" text,
"result" text,
"game_s... |
SELECT "result" FROM "regular_season" WHERE "nfl_recap"='recap' AND "game_site"='bank of america stadium'; |
## Task
Generate a SQL query to answer the following question:
`What is the Result with an NFL Recap, played at bank of america stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time" text,
"o... |
SELECT "record" FROM "regular_season" WHERE "week"=12; |
## Task
Generate a SQL query to answer the following question:
`What is the Record for week 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time" text,
"opponent" text,
"result" text,
"game_s... |
SELECT "opponent" FROM "regular_season" WHERE "time"='2:05 p.m.' AND "result"='w 26–20'; |
## Task
Generate a SQL query to answer the following question:
`What is the Opponent with a time of 2:05 p.m., and the results were w 26–20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time" text,
... |
SELECT MAX("week") FROM "regular_season" WHERE "date"='october 12, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Week for october 12, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"time" text,
"opponent" text,
"result" ... |
SELECT "team" FROM "campeonato_paulista" WHERE "drawn"=1 AND "lost"=2; |
## Task
Generate a SQL query to answer the following question:
`Which team has 1 as the drawn, with 2 as the lost?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real... |
SELECT SUM("drawn") FROM "campeonato_paulista" WHERE "lost"=7; |
## Task
Generate a SQL query to answer the following question:
`How many drawns have 7 for the lost?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" re... |
SELECT AVG("played") FROM "campeonato_paulista" WHERE "drawn">1 AND "against">16; |
## Task
Generate a SQL query to answer the following question:
`What is the average played that has a drawn greater than 1, with an against greater than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "campeonato_paulista" (
"position" real,
"te... |
SELECT SUM("maidens") FROM "first_class_bowling_statistics" WHERE "matches"=2; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Maidens with a number of Matches that is 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_class_bowling_statistics" (
"player" text,
"matches" real,
"overs... |
SELECT "team" FROM "men" WHERE "rank">2 AND "name"='paolo maldini'; |
## Task
Generate a SQL query to answer the following question:
`Ranking higher than 2, what Team has Player Paolo Maldini?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"rank" real,
"name" text,
"team" text,
"country" text,
"points" ... |
SELECT "country" FROM "men" WHERE "rank"=2; |
## Task
Generate a SQL query to answer the following question:
`What Country is in Rank 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men" (
"rank" real,
"name" text,
"team" text,
"country" text,
"points" real
);
### SQL
Given the databa... |
SELECT "date" FROM "march" WHERE "leading_scorer"='leo mainoldi (24)'; |
## Task
Generate a SQL query to answer the following question:
`What date was Leo Mainoldi (24) the leading scorer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scor... |
SELECT "visitor" FROM "march" WHERE "record"='14-10'; |
## Task
Generate a SQL query to answer the following question:
`Who is the visitor with the 14-10 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
... |
SELECT "record" FROM "march" WHERE "score"='73-82'; |
## Task
Generate a SQL query to answer the following question:
`What is the record of the 73-82 score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"... |
SELECT "leading_scorer" FROM "march" WHERE "visitor"='villa de los barrios'; |
## Task
Generate a SQL query to answer the following question:
`Who is the leading scorer of the Villa De Los Barrios visitor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"l... |
SELECT "visitor" FROM "march" WHERE "record"='14-10'; |
## Task
Generate a SQL query to answer the following question:
`Who is the visitor with a 14-10 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
... |
SELECT "score" FROM "march" WHERE "record"='14-9'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the team with the 14-9 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scor... |
SELECT "date" FROM "international_goals" WHERE "goal"=6; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the game with 6 goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"result" text,
"competi... |
SELECT MAX("goal") FROM "international_goals" WHERE "venue"='hannover'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest number of goals for a game held at Hannover?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"re... |
SELECT "result" FROM "international_goals" WHERE "goal">12 AND "venue"='pasadena'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game with more than 12 goals at Pasadena?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
... |
SELECT COUNT("round") FROM "2008_draft" WHERE "position"='defensive tackle' AND "player"='andre fluellen'; |
## Task
Generate a SQL query to answer the following question:
`What round was Andre Fluellen drafted as a Defensive Tackle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_draft" (
"round" real,
"pick" text,
"player" text,
"position" text... |
SELECT "player" FROM "2008_draft" WHERE "round">5 AND "position"='defensive tackle'; |
## Task
Generate a SQL query to answer the following question:
`After Round 5, which player was drafted for Defensive Tackle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_draft" (
"round" real,
"pick" text,
"player" text,
"position" tex... |
SELECT MIN("round") FROM "2008_draft" WHERE "team"='central florida'; |
## Task
Generate a SQL query to answer the following question:
`What was the earliest Round for Central Florida?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2008_draft" (
"round" real,
"pick" text,
"player" text,
"position" text,
"team" t... |
SELECT "date" FROM "release_history" WHERE "label"='dos or die recordings'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the label Dos or Die Recordings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"... |
SELECT "label" FROM "release_history" WHERE "date"='2002' AND "region"='germany' AND "catalog"='dos 195'; |
## Task
Generate a SQL query to answer the following question:
`What is the label for 2002, in Germany, Catalog Dos 195?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,... |
SELECT "region" FROM "release_history" WHERE "date"='2002' AND "catalog"='dos 195'; |
## Task
Generate a SQL query to answer the following question:
`What region has a 2002 date, and a Catalog dos 195?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"c... |
SELECT "winners" FROM "results" WHERE "runners_up"='united states' AND "venue"='st. germain golf club'; |
## Task
Generate a SQL query to answer the following question:
`What is the Winners when the United States is the runner-up at st. germain golf club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"venue" text,
"location"... |
SELECT AVG("year") FROM "results" WHERE "runners_up"='australia' AND "venue"='victoria golf club'; |
## Task
Generate a SQL query to answer the following question:
`What is the average Year when Australia was the runner-up at victoria golf club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"venue" text,
"location" text... |
SELECT "location" FROM "results" WHERE "runners_up"='france' AND "venue"='club de campo'; |
## Task
Generate a SQL query to answer the following question:
`What is the Location when France was the runner-up at club de campo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"venue" text,
"location" text,
"winners... |
SELECT "location" FROM "results" WHERE "runners_up"='canada' AND "winners"='australia'; |
## Task
Generate a SQL query to answer the following question:
`What is the Location when Canada was the runner-up and Australia was the winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"year" real,
"venue" text,
"location" text... |
SELECT "name" FROM "visible" WHERE "terminated"='march 1993'; |
## Task
Generate a SQL query to answer the following question:
`What is the Name of the Space Telescope Terminated on March 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "visible" (
"name" text,
"space_agency" text,
"launch_date" text,
"... |
SELECT "party" FROM "opinion_poll_summary" WHERE "opinion_research_centre_opc"='1.5%'; |
## Task
Generate a SQL query to answer the following question:
`What is Party, when Opinion Research Centre (OPC) is 1.5%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_poll_summary" (
"party" text,
"marplan" text,
"gallup" text,
"nat... |
SELECT "marplan" FROM "opinion_poll_summary" WHERE "gallup"='1.5%'; |
## Task
Generate a SQL query to answer the following question:
`What is Marplan, when Gallup is 1.5%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_poll_summary" (
"party" text,
"marplan" text,
"gallup" text,
"national_opinion_polls_no... |
SELECT "opinion_research_centre_opc" FROM "opinion_poll_summary" WHERE "party"='conservative'; |
## Task
Generate a SQL query to answer the following question:
`What is Opinion Research Centre (OPC), when Party is Conservative?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_poll_summary" (
"party" text,
"marplan" text,
"gallup" text... |
SELECT "harris" FROM "opinion_poll_summary" WHERE "marplan"='1.3%'; |
## Task
Generate a SQL query to answer the following question:
`What is Harris, when Marplan is 1.3%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "opinion_poll_summary" (
"party" text,
"marplan" text,
"gallup" text,
"national_opinion_polls_no... |
SELECT MIN("points") FROM "1972_isle_of_man_sidecar_500cc_tt_final_" WHERE "rider"='roger dutton/tony wright'; |
## Task
Generate a SQL query to answer the following question:
`What are the fewest points that Roger Dutton/Tony Wright have received?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1972_isle_of_man_sidecar_500cc_tt_final_" (
"place" real,
"rider... |
SELECT "speed" FROM "1972_isle_of_man_sidecar_500cc_tt_final_" WHERE "machine"='bmw' AND "points"=6; |
## Task
Generate a SQL query to answer the following question:
`How fast does the BMW with 6 points go?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1972_isle_of_man_sidecar_500cc_tt_final_" (
"place" real,
"rider" text,
"country" text,
"mac... |
SELECT AVG("draw") FROM "final_wildcards" WHERE "artist"='desi dobreva' AND "place"<6; |
## Task
Generate a SQL query to answer the following question:
`What is the average draw for Desi Dobreva, was it less than 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_wildcards" (
"draw" real,
"artist" text,
"song" text,
"televote... |
SELECT "1st_leg" FROM "second_round" WHERE "team_2"='as police'; |
## Task
Generate a SQL query to answer the following question:
`What was the first leg score for the match that had AS Police as team 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"... |
SELECT "team_2" FROM "second_round" WHERE "1st_leg"='2-0' AND "team_1"='iwuanyanwu nationale'; |
## Task
Generate a SQL query to answer the following question:
`Who were the team 2 when team 1 was Iwuanyanwu Nationale and the 1st leg score was 2-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"te... |
SELECT "2nd_leg" FROM "second_round" WHERE "1st_leg"='5-0'; |
## Task
Generate a SQL query to answer the following question:
`What was the 2nd leg score for the tie that had a 5-0 first leg score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1s... |
SELECT "team_1" FROM "second_round" WHERE "1st_leg"='2-3'; |
## Task
Generate a SQL query to answer the following question:
`What was the team 1 for the tie that had a first leg score of 2-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_le... |
SELECT "team_1" FROM "second_round" WHERE "2nd_leg"='1-2' AND "1st_leg"='3-0'; |
## Task
Generate a SQL query to answer the following question:
`Who was the team 1 in the match that had a 1st leg score of 3-0 and a 2nd leg of 1-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team... |
SELECT "1st_leg" FROM "second_round" WHERE "2nd_leg"='0-2'; |
## Task
Generate a SQL query to answer the following question:
`What was the first leg score for the match that had a 0-2 2nd leg score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "second_round" (
"team_1" text,
"agg" text,
"team_2" text,
"... |
SELECT "result" FROM "2000_broadway_revival" WHERE "category"='outstanding director of a musical'; |
## Task
Generate a SQL query to answer the following question:
`What was the result for the Outstanding director of a musical category?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_broadway_revival" (
"year" real,
"award" text,
"category"... |
SELECT "result" FROM "2000_broadway_revival" WHERE "award"='drama desk award' AND "nominee"='tom hewitt'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the Award of Drama desk award nominee Tom Hewitt.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_broadway_revival" (
"year" real,
"award" text,
"category... |
SELECT "year" FROM "2000_broadway_revival" WHERE "category"='best costume design'; |
## Task
Generate a SQL query to answer the following question:
`What year was best costume design the award category?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000_broadway_revival" (
"year" real,
"award" text,
"category" text,
"nominee"... |
SELECT "accolade" FROM "accolades" WHERE "country"='usa' AND "year"<2009; |
## Task
Generate a SQL query to answer the following question:
`Which accolade has USA as the country, with a year less than 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "accolades" (
"publication" text,
"country" text,
"accolade" text,
... |
SELECT SUM("year") FROM "accolades" WHERE "accolade"='50 best albums of the year' AND "rank"='#3'; |
## Task
Generate a SQL query to answer the following question:
`How many years have an accolade of 50 best albums of the year, with #3 as the rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "accolades" (
"publication" text,
"country" text,
"... |
SELECT "rank" FROM "accolades" WHERE "country"='canada'; |
## Task
Generate a SQL query to answer the following question:
`Which rank has canada as the country?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "accolades" (
"publication" text,
"country" text,
"accolade" text,
"year" real,
"rank" text
)... |
SELECT "guest_host" FROM "series_7" WHERE "episode_number"=5; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the Guest Host for Episode Number of 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_7" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"... |
SELECT "guest_host" FROM "series_7" WHERE "air_date"='8 june 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the Guest Host for the episode on 8 june 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_7" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"music... |
SELECT "musical_guest_song_performed" FROM "series_7" WHERE "air_date"='13 july 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is the Musical Guest (Song performed) for the episode aired on 13 july 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_7" (
"episode_number" real,
"air_date" text,
... |
SELECT "score" FROM "international_goals" WHERE "competition"='2014 fifa world cup qualification (uefa)'; |
## Task
Generate a SQL query to answer the following question:
`What was the score for the 2014 FIFA World Cup Qualification (UEFA)?`
### 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,
... |
SELECT "kickoff_time" FROM "schedule" WHERE "week"=11; |
## Task
Generate a SQL query to answer the following question:
`What was the kickoff time for week 11's game?`
### 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,
"kickoff_time"... |
SELECT "the_tradition" FROM "senior_major_winners" WHERE "year">1998 AND "senior_players_championship"='mark o''meara'; |
## Task
Generate a SQL query to answer the following question:
`When Mark O'meara was the senior player champion in a year greater than 1998, who was the tradition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior_major_winners" (
"year" real,
... |
SELECT "the_tradition" FROM "senior_major_winners" WHERE "senior_british_open"='founded in 1987' AND "u_s_senior_open"='roberto devicenzo'; |
## Task
Generate a SQL query to answer the following question:
`Who was the tradition when Roberto Devicenzo won the U.S. Senior Open and the Senior British Open was founded in 1987?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior_major_winners"... |
SELECT "senior_british_open" FROM "senior_major_winners" WHERE "senior_pga_championship"='hale irwin (3/7)'; |
## Task
Generate a SQL query to answer the following question:
`Who won the Senior British Open when Hale Irwin (3/7) won the Senior PGA Championship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior_major_winners" (
"year" real,
"senior_pga_... |
SELECT "senior_pga_championship" FROM "senior_major_winners" WHERE "senior_british_open"='tom watson (5/6)'; |
## Task
Generate a SQL query to answer the following question:
`When Tom Watson (5/6) won the Senior British Open who won the Senior PGA Championship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "senior_major_winners" (
"year" real,
"senior_pga_... |
SELECT MAX("week") FROM "schedule" WHERE "points_for">19 AND "opponent"='philadelphia eagles' AND "points_against">7; |
## Task
Generate a SQL query to answer the following question:
`Which Week has Points For larger than 19, and an Opponent of philadelphia eagles, and Points Against larger than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" rea... |
SELECT SUM("attendance") FROM "schedule" WHERE "first_downs"<26 AND "opponent"='los angeles rams' AND "points_for">28; |
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a First Downs smaller than 26, an Opponent of los angeles rams, and Points For larger than 28?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" rea... |
SELECT MAX("league_cup") FROM "top_scorers_in_order_of_league_goals" WHERE "fa_cup"=5 AND "club"='boston united' AND "league"<16; |
## Task
Generate a SQL query to answer the following question:
`Which League Cup has a FA Cup of 5, and a Club of boston united, and a League smaller than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_scorers_in_order_of_league_goals" (
"pl... |
SELECT COUNT("total") FROM "top_scorers_in_order_of_league_goals" WHERE "fa_trophy"=0 AND "player"='charlie butler'; |
## Task
Generate a SQL query to answer the following question:
`How many Total that has a FA Trophy of 0 and a Player of charlie butler?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_scorers_in_order_of_league_goals" (
"player" text,
"club" t... |
SELECT AVG("fa_trophy") FROM "top_scorers_in_order_of_league_goals" WHERE "player"='mario walsh' AND "league">17; |
## Task
Generate a SQL query to answer the following question:
`How many FA Trophy has a Player of mario walsh and a League larger than 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_scorers_in_order_of_league_goals" (
"player" text,
"clu... |
SELECT "winning_score" FROM "pga_tour_wins_12" WHERE "date"='oct 28, 1962'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the winning match on Oct 28, 1962?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_12" (
"date" text,
"tournament" text,
"winning_score" text,
"... |
SELECT "margin_of_victory" FROM "pga_tour_wins_12" WHERE "runner_s_up"='jack nicklaus'; |
## Task
Generate a SQL query to answer the following question:
`By how many strokes did Lema beat Jack Nicklaus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_12" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_o... |
SELECT "runner_s_up" FROM "pga_tour_wins_12" WHERE "date"='jan 19, 1964'; |
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up on Jan 19, 1964?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pga_tour_wins_12" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory"... |
SELECT COUNT("rebounds") FROM "rebounds" WHERE "team"='maccabi tel aviv' AND "games">6; |
## Task
Generate a SQL query to answer the following question:
`How many Rebounds did Maccabi Tel Aviv Team get after Game 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"re... |
SELECT "games" FROM "rebounds" WHERE "team"='efes pilsen'; |
## Task
Generate a SQL query to answer the following question:
`How many Games for the player with Rebounds from Efes Pilsen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"re... |
SELECT SUM("games") FROM "rebounds" WHERE "team"='lietuvos rytas vilnius' AND "rebounds"<43; |
## Task
Generate a SQL query to answer the following question:
`How many Games for the Player from Lietuvos Rytas Vilnius with less the 43 Rebounds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text... |
SELECT "name" FROM "newly_named_birds" WHERE "authors"='zhou clarke zhang'; |
## Task
Generate a SQL query to answer the following question:
`Who is The Author of zhou clarke zhang?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_birds" (
"name" text,
"status" text,
"authors" text,
"location" text,
"notes" ... |
SELECT "status" FROM "newly_named_birds" WHERE "notes"='primitive confuciusornithid .'; |
## Task
Generate a SQL query to answer the following question:
`What is the Status of primitive confuciusornithid .?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_birds" (
"name" text,
"status" text,
"authors" text,
"location" tex... |
SELECT "name" FROM "newly_named_birds" WHERE "authors"='gao chiappe meng o''connor wang cheng liu'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of gao chiappe meng o'connor wang cheng liu?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_birds" (
"name" text,
"status" text,
"authors" text,
"loca... |
SELECT "location" FROM "newly_named_birds" WHERE "name"='zhongornis'; |
## Task
Generate a SQL query to answer the following question:
`Where has a Name of zhongornis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_birds" (
"name" text,
"status" text,
"authors" text,
"location" text,
"notes" text
);
... |
SELECT "notes" FROM "newly_named_birds" WHERE "authors"='zhou clarke zhang'; |
## Task
Generate a SQL query to answer the following question:
`Which Notes has Authors of zhou clarke zhang?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "newly_named_birds" (
"name" text,
"status" text,
"authors" text,
"location" text,
"n... |
SELECT MIN("first_season_of_current_spell") FROM "current_clubs_2014_season" WHERE "first_season">2005 AND "number_of_seasons_in_superettan"<8 AND "club"='syrianska fc'; |
## Task
Generate a SQL query to answer the following question:
`Which First season of current spell is the lowest one that has a First season larger than 2005, and a Number of seasons in Superettan smaller than 8, and a Club of syrianska fc?`
### Database Schema
This query will run on a database whose schema is repre... |
SELECT "number_of_seasons_in_second_tier" FROM "current_clubs_2014_season" WHERE "first_season"=2000 AND "first_season_of_current_spell"=2014; |
## Task
Generate a SQL query to answer the following question:
`Which Number of seasons in second tier has a First season of 2000, and a First season of current spell of 2014?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_clubs_2014_season" (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.