instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the year listed when tied is listed as 11? | SELECT Year FROM table WHERE Tied = 11 |
Translate the following into a SQL query | What is the goals against listed when the goals scored is 30? | SELECT Goals Against FROM table WHERE Goals Scored = 30 |
Translate the following into a SQL query | How many goals scored entries are listed when the year is verano 2001? | SELECT COUNT Goals Scored FROM table WHERE Year = Verano 2001 |
Translate the following into a SQL query | What are goals scored when postition is 17 and tied is 5? | SELECT Goals Scored FROM table WHERE Position = 17 AND Tied = 5 |
Translate the following into a SQL query | Who was the winner if the Mountains Classification award was given to Jaime Vergara and the Team Classification award is given to Col es Pasion Café De Colombia 472? | SELECT Winner FROM table WHERE Mountains classification = Jaime Vergara AND Team classification = Col es Pasion Café De Colombia 472 |
Translate the following into a SQL query | Who was the General Classification awardee if Sergio Luis Henao was the winner and the Points Classification award was given to Sergio Luis Henao? | SELECT General classification FROM table WHERE Winner = Sergio Luis Henao AND Points classification = Sergio Luis Henao |
Translate the following into a SQL query | Who were the winners if the Mountain Classification award was given to Oscar Solis and Team Classification was given to EPM-Une? | SELECT Winner FROM table WHERE Mountains classification = Oscar Solis AND Team classification = EPM-UNE |
Translate the following into a SQL query | In what stage did Jaime Vergara won, Team Classification was given to EPM-Une and Mountain Classification winner was Oscar Solis? | SELECT Stage FROM table WHERE Team classification = EPM-UNE AND Mountains classification = Oscar Solis AND Winner = Jaime Vergara |
Translate the following into a SQL query | What is the highest series number for "The Devil Made Me Do It"? | SELECT MAX Series # FROM table WHERE Title = "The Devil Made Me Do It" |
Translate the following into a SQL query | What is the episode series number for "The Devil Made Me Do It" ? | SELECT COUNT Series # FROM table WHERE Title = "The Devil Made Me Do It" |
Translate the following into a SQL query | What is the production code for "State of Grace"? | SELECT MAX Production code FROM table WHERE Title = "State of Grace" |
Translate the following into a SQL query | Who directed the episode that aired November 21, 2003? | SELECT Directed by FROM table WHERE Original air date = November 21, 2003 |
Translate the following into a SQL query | What is the episode series number of "St. Joan"? | SELECT Series # FROM table WHERE Title = "St. Joan" |
Translate the following into a SQL query | How many episode titles have series number 4? | SELECT COUNT Title FROM table WHERE Series # = 4 |
Translate the following into a SQL query | How may college/junior/club team has a the nhl team listed as Colorado Avalanche? | SELECT COUNT College/junior/club team FROM table WHERE NHL team = Colorado Avalanche |
Translate the following into a SQL query | What player was picked by the New York Rangers? | SELECT Player FROM table WHERE NHL team = New York Rangers |
Translate the following into a SQL query | What position did the draft pick for Toronto Maple Leafs play? | SELECT Position FROM table WHERE NHL team = Toronto Maple Leafs |
Translate the following into a SQL query | Who did Edmonton Oilers get for their draft pick? | SELECT Player FROM table WHERE NHL team = Edmonton Oilers |
Translate the following into a SQL query | What college team did Milan Kostolny play for? | SELECT College/junior/club team FROM table WHERE Player = Milan Kostolny |
Translate the following into a SQL query | What player was picked for Buffalo Sabres? | SELECT Player FROM table WHERE NHL team = Buffalo Sabres |
Translate the following into a SQL query | What NHL team picked Sergei Luchinkin? | SELECT NHL team FROM table WHERE Player = Sergei Luchinkin |
Translate the following into a SQL query | What is the minimum MotoGP/500cc ranking? | SELECT MIN MotoGP/500cc FROM table |
Translate the following into a SQL query | Who was the conference player of the year from an independent conference? | SELECT Conference Player of the Year FROM table WHERE Conference = Independent |
Translate the following into a SQL query | Who was the conference player of the year when Alabama State was the tournament winner? | SELECT Conference Player of the Year FROM table WHERE Tournament Winner = Alabama State |
Translate the following into a SQL query | Who was the tournament winner in the Southwestern Athletic Conference? | SELECT Tournament Winner FROM table WHERE Conference = Southwestern Athletic Conference |
Translate the following into a SQL query | what is the crashandride cymbalpads for the drumset name td-9k2 | SELECT CrashandRide CymbalPads FROM table WHERE DrumSet Name = TD-9K2 |
Translate the following into a SQL query | how many drumsets of drumstand (oftenoptional) with hd-1/3stand and tom-tom pads is 3xcloth-head are | SELECT COUNT DrumSet Name FROM table WHERE DrumStand (oftenoptional) = HD-1/3Stand AND Tom-Tom Pads = 3xCloth-Head |
Translate the following into a SQL query | in which year was available the rubber as kickdrum pad | SELECT Years Available FROM table WHERE KickDrum Pad = Rubber |
Translate the following into a SQL query | in the drum module td-5 what are the tom-tom pads | SELECT Tom-Tom Pads FROM table WHERE Drum Module = TD-5 |
Translate the following into a SQL query | for the drumset name td-15k how many snare pads are | SELECT COUNT Snare Pad FROM table WHERE DrumSet Name = TD-15K |
Translate the following into a SQL query | Who won the race on June 26? | SELECT Race Winner FROM table WHERE Date = June 26 |
Translate the following into a SQL query | Who won the race on June 26? | SELECT Race Winner FROM table WHERE Date = June 26 |
Translate the following into a SQL query | Who won the race on August 15? | SELECT Race Winner FROM table WHERE Date = August 15 |
Translate the following into a SQL query | What is the date of the Italian Grand Prix? | SELECT Date FROM table WHERE Grand Prix = Italian Grand Prix |
Translate the following into a SQL query | How many dates did Daniel Ruiz win the Spanish Grand Prix? | SELECT COUNT Date FROM table WHERE Grand Prix = Spanish Grand Prix AND Race Winner = Daniel Ruiz |
Translate the following into a SQL query | Who won the race on May 1? | SELECT Race Winner FROM table WHERE Date = May 1 |
Translate the following into a SQL query | When james rutherford is the incumbent how many dates are there? | SELECT COUNT Date FROM table WHERE Incumbent = James Rutherford |
Translate the following into a SQL query | When edward shaw is the winner what is the date? | SELECT Date FROM table WHERE Winner = Edward Shaw |
Translate the following into a SQL query | When peninsula is the electorate what is the reason? | SELECT Reason FROM table WHERE Electorate = Peninsula |
Translate the following into a SQL query | When james seaton is the incumbent what is the reason? | SELECT Reason FROM table WHERE Incumbent = James Seaton |
Translate the following into a SQL query | What was the handicap when the prize money was 120s? | SELECT Handicap FROM table WHERE Prize Money = 120s |
Translate the following into a SQL query | On what date was the handicap 8 st 12 lb? | SELECT Date FROM table WHERE Handicap = 8 st 12 lb |
Translate the following into a SQL query | On what date was the track Ballarat? | SELECT Date FROM table WHERE Track = Ballarat |
Translate the following into a SQL query | How many literate females(%) are there where the male(%) is 51.66 | SELECT Literate Female(%) FROM table WHERE Male(%) = 51.66 |
Translate the following into a SQL query | How many literate males are there in the taluka name nevasa? | SELECT MAX Literate Male FROM table WHERE taluka Name = Nevasa |
Translate the following into a SQL query | How many literate male (%) are there in the district that has a population of 3.28? | SELECT COUNT Literate Male(%) FROM table WHERE % of District Population = 3.28 |
Translate the following into a SQL query | how many literate males are there that has a district population of 6.65? | SELECT Literate Male FROM table WHERE % of District Population = 6.65 |
Translate the following into a SQL query | How many males are in the group that has an amount of 139361 | SELECT Male FROM table WHERE Female = 139361 |
Translate the following into a SQL query | List all the runners-up on 16 October 2012? | SELECT Runners-up FROM table WHERE Finale = 16 October 2012 |
Translate the following into a SQL query | What is the date when Miranda Gore Browne was runner-up? | SELECT Finale FROM table WHERE Runners-up = Miranda Gore Browne |
Translate the following into a SQL query | What is the date of the finale where Holly Bell was runner-up? | SELECT Finale FROM table WHERE Runners-up = Holly Bell |
Translate the following into a SQL query | What is the premiere of the season where Holly Bell was the runner-up? | SELECT Premiere FROM table WHERE Runners-up = Holly Bell |
Translate the following into a SQL query | How many runners-up were there when Joanne Wheatley won? | SELECT COUNT Runners-up FROM table WHERE Winner = Joanne Wheatley |
Translate the following into a SQL query | Who won the season for which Brendan Lynch is the runner-up? | SELECT Winner FROM table WHERE Runners-up = Brendan Lynch |
Translate the following into a SQL query | What is the pick # when the new jersey devils is the nhl team? | SELECT Pick # FROM table WHERE NHL team = New Jersey Devils |
Translate the following into a SQL query | Which college/junior/team has defence as the position with canada as the nationality and the pick # is less than 61.0? | SELECT College/junior/club team FROM table WHERE Position = Defence AND Nationality = Canada AND Pick # < 61.0 |
Translate the following into a SQL query | Which nhl team has kris draper as the player? | SELECT NHL team FROM table WHERE Player = Kris Draper |
Translate the following into a SQL query | Which position has new Jersey Devils as the nhl team? | SELECT Position FROM table WHERE NHL team = New Jersey Devils |
Translate the following into a SQL query | Which college/junior/club team has jim mathieson as the player? | SELECT College/junior/club team FROM table WHERE Player = Jim Mathieson |
Translate the following into a SQL query | What is the series number of "the fallen star"? | SELECT Series # FROM table WHERE Episode Title = "The Fallen Star" |
Translate the following into a SQL query | What is the production code of the episode with series #8? | SELECT Production Code FROM table WHERE Series # = 8 |
Translate the following into a SQL query | How many episodes are titled "the suspension"? | SELECT COUNT Episode # FROM table WHERE Episode Title = "The Suspension" |
Translate the following into a SQL query | What is the title of the episode with series number 14? | SELECT Episode Title FROM table WHERE Series # = 14 |
Translate the following into a SQL query | What is the original airdate of episode #31? | SELECT Original air date FROM table WHERE Episode # = 31 |
Translate the following into a SQL query | Who was drafted to the Vancouver Canucks? | SELECT Player FROM table WHERE NHL team = Vancouver Canucks |
Translate the following into a SQL query | How many figures are provided for the team when the position drafted is center? | SELECT COUNT NHL team FROM table WHERE Position = Center |
Translate the following into a SQL query | What was the pick number when Paul Krake was selected? | SELECT MIN Pick # FROM table WHERE Player = Paul Krake |
Translate the following into a SQL query | What pick number did the New York Rangers have? | SELECT Pick # FROM table WHERE NHL team = New York Rangers |
Translate the following into a SQL query | What pick number was the Boston Bruins selection for defence? | SELECT Pick # FROM table WHERE Position = Defence AND NHL team = Boston Bruins |
Translate the following into a SQL query | Which player is pick 64? | SELECT Player FROM table WHERE Pick # = 64 |
Translate the following into a SQL query | Which player is the centre for the Detroit Red Wings? | SELECT Player FROM table WHERE Position = Centre AND NHL team = Detroit Red Wings |
Translate the following into a SQL query | How many positions drafted for the Minnesota North Stars? | SELECT COUNT Position FROM table WHERE NHL team = Minnesota North Stars |
Translate the following into a SQL query | What position did Roseau High School (USHS-MN) play? | SELECT Position FROM table WHERE College/junior/club team = Roseau High School (USHS-MN) |
Translate the following into a SQL query | What are Scott Zygulski's pick numbers? | SELECT Pick # FROM table WHERE Player = Scott Zygulski |
Translate the following into a SQL query | Which country is pick# 136 from? | SELECT Nationality FROM table WHERE Pick # = 136 |
Translate the following into a SQL query | How many nationalities does Alex Nikolic come from? | SELECT COUNT Nationality FROM table WHERE Player = Alex Nikolic |
Translate the following into a SQL query | How many NHL teams have a pick number of 128? | SELECT COUNT NHL team FROM table WHERE Pick # = 128 |
Translate the following into a SQL query | Name the opponents for anabel medina garrigues | SELECT COUNT Opponents FROM table WHERE Partner = Anabel Medina Garrigues |
Translate the following into a SQL query | Name the parter for w/o | SELECT Partner FROM table WHERE Score = w/o |
Translate the following into a SQL query | Which of the networks originate in Xalapa? | SELECT Network FROM table WHERE Origin = Xalapa |
Translate the following into a SQL query | What are all the programs on the Soy Guerrero network? | SELECT Programming FROM table WHERE Network = Soy Guerrero |
Translate the following into a SQL query | Which owners originate in Mexico City? | SELECT Owner FROM table WHERE Origin = Mexico City |
Translate the following into a SQL query | Which network serves the Guerrero region | SELECT Network FROM table WHERE Region = Guerrero |
Translate the following into a SQL query | Which regions are owned by estado de tabasco? | SELECT Region FROM table WHERE Owner = Estado de Tabasco |
Translate the following into a SQL query | What subdivision names (RU) have a code of by-hr? | SELECT Subdivision name ( ru ) (BGN/PCGN) FROM table WHERE Code = BY-HR |
Translate the following into a SQL query | What cods have a subdivision name (RU) of Grodnenskaya Oblast'? | SELECT Code FROM table WHERE Subdivision name ( ru ) (BGN/PCGN) = Grodnenskaya oblast' |
Translate the following into a SQL query | What are the subdivision names (RU) where the subdivision name (BE) is Hrodzenskaya Voblasts'? | SELECT Subdivision name ( ru ) (GOST) FROM table WHERE Subdivision name ( be ) (BGN/PCGN) = Hrodzenskaya voblasts' |
Translate the following into a SQL query | What is the subdivision name (BE) where subdivision name (RU) (BGN) is Grodnenskaya Oblast'? | SELECT Subdivision name ( be ) (BGN/PCGN) FROM table WHERE Subdivision name ( ru ) (BGN/PCGN) = Grodnenskaya oblast' |
Translate the following into a SQL query | Which codes have subdivision names (BE) (BGN) of Homyel'skaya Voblasts'? | SELECT Code FROM table WHERE Subdivision name ( be ) (BGN/PCGN) = Homyel'skaya voblasts' |
Translate the following into a SQL query | Name the into service for dh1 | SELECT Into Service FROM table WHERE Number = DH1 |
Translate the following into a SQL query | Name the withdrawn for example and serial number 579 | SELECT Withdrawn FROM table WHERE Into Service = Example AND Serial Number = 579 |
Translate the following into a SQL query | Name the into service for dh2 | SELECT Into Service FROM table WHERE Number = DH2 |
Translate the following into a SQL query | Name the most serial number for feb 1994 | SELECT MAX Serial Number FROM table WHERE Scrapped = Feb 1994 |
Translate the following into a SQL query | Name the number for 2004 scapped | SELECT Number FROM table WHERE Scrapped = 2004 |
Translate the following into a SQL query | Name the into service for dh1 | SELECT Into Service FROM table WHERE Number = DH1 |
Translate the following into a SQL query | How many month names are there for the tenth numbered month? | SELECT COUNT Month Name FROM table WHERE Numbered Month = Tenth |
Translate the following into a SQL query | What is the defective year for the eighth numbered month? | SELECT Defective Year FROM table WHERE Numbered Month = Eighth |
Translate the following into a SQL query | What is the month sequence for the month name of av? | SELECT MIN Month Sequence FROM table WHERE Month Name = Av |
Translate the following into a SQL query | What is the defective year for the regular year of 29 days and month sequence of 2? | SELECT MAX Defective Year FROM table WHERE Regular Year = 29 days AND Month Sequence = 2 |
Translate the following into a SQL query | When 4.5 is the rating (18-49) what is the air date? | SELECT First Air Date FROM table WHERE Rating (18–49) = 4.5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.