instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What was the 2nd leg score for the tie that had a 5-0 first leg score?
SELECT 2nd leg FROM table WHERE 1st leg = 5-0
Translate the following into a SQL query
What was the team 1 for the tie that had a first leg score of 2-3?
SELECT Team 1 FROM table WHERE 1st leg = 2-3
Translate the following into a SQL query
Who was the team 1 in the match that had a 1st leg score of 3-0 and a 2nd leg of 1-2?
SELECT Team 1 FROM table WHERE 2nd leg = 1-2 AND 1st leg = 3-0
Translate the following into a SQL query
What was the first leg score for the match that had a 0-2 2nd leg score?
SELECT 1st leg FROM table WHERE 2nd leg = 0-2
Translate the following into a SQL query
What was the result for the Outstanding director of a musical category?
SELECT Result FROM table WHERE Category = outstanding director of a musical
Translate the following into a SQL query
What was the result of the Award of Drama desk award nominee Tom Hewitt.
SELECT Result FROM table WHERE Award = drama desk award AND Nominee = tom hewitt
Translate the following into a SQL query
What year was best costume design the award category?
SELECT Year FROM table WHERE Category = best costume design
Translate the following into a SQL query
Which accolade has USA as the country, with a year less than 2009?
SELECT Accolade FROM table WHERE Country = usa AND Year < 2009
Translate the following into a SQL query
How many years have an accolade of 50 best albums of the year, with #3 as the rank?
SELECT SUM Year FROM table WHERE Accolade = 50 best albums of the year AND Rank = #3
Translate the following into a SQL query
Which rank has canada as the country?
SELECT Rank FROM table WHERE Country = canada
Translate the following into a SQL query
What is the name of the Guest Host for Episode Number of 5?
SELECT Guest Host FROM table WHERE Episode Number = 5
Translate the following into a SQL query
What is the Guest Host for the episode on 8 june 2008?
SELECT Guest Host FROM table WHERE Air Date = 8 june 2008
Translate the following into a SQL query
What is the Musical Guest (Song performed) for the episode aired on 13 july 2008?
SELECT Musical Guest (Song performed) FROM table WHERE Air Date = 13 july 2008
Translate the following into a SQL query
What was the score for the 2014 FIFA World Cup Qualification (UEFA)?
SELECT Score FROM table WHERE Competition = 2014 fifa world cup qualification (uefa)
Translate the following into a SQL query
What was the kickoff time for week 11's game?
SELECT Kickoff Time FROM table WHERE Week = 11
Translate the following into a SQL query
When Mark O'meara was the senior player champion in a year greater than 1998, who was the tradition?
SELECT The Tradition FROM table WHERE Year > 1998 AND Senior Players Championship = mark o'meara
Translate the following into a SQL query
Who was the tradition when Roberto Devicenzo won the U.S. Senior Open and the Senior British Open was founded in 1987?
SELECT The Tradition FROM table WHERE Senior British Open = founded in 1987 AND U.S. Senior Open = roberto devicenzo
Translate the following into a SQL query
Who won the Senior British Open when Hale Irwin (3/7) won the Senior PGA Championship?
SELECT Senior British Open FROM table WHERE Senior PGA Championship = hale irwin (3/7)
Translate the following into a SQL query
When Tom Watson (5/6) won the Senior British Open who won the Senior PGA Championship?
SELECT Senior PGA Championship FROM table WHERE Senior British Open = tom watson (5/6)
Translate the following into a SQL query
Which Week has Points For larger than 19, and an Opponent of philadelphia eagles, and Points Against larger than 7?
SELECT MAX Week FROM table WHERE Points For > 19 AND Opponent = philadelphia eagles AND Points Against > 7
Translate the following into a SQL query
Which Attendance has a First Downs smaller than 26, an Opponent of los angeles rams, and Points For larger than 28?
SELECT SUM Attendance FROM table WHERE First Downs < 26 AND Opponent = los angeles rams AND Points For > 28
Translate the following into a SQL query
Which League Cup has a FA Cup of 5, and a Club of boston united, and a League smaller than 16?
SELECT MAX League Cup FROM table WHERE FA Cup = 5 AND Club = boston united AND League < 16
Translate the following into a SQL query
How many Total that has a FA Trophy of 0 and a Player of charlie butler?
SELECT COUNT Total FROM table WHERE FA Trophy = 0 AND Player = charlie butler
Translate the following into a SQL query
How many FA Trophy has a Player of mario walsh and a League larger than 17?
SELECT AVG FA Trophy FROM table WHERE Player = mario walsh AND League > 17
Translate the following into a SQL query
What was the score of the winning match on Oct 28, 1962?
SELECT Winning score FROM table WHERE Date = oct 28, 1962
Translate the following into a SQL query
By how many strokes did Lema beat Jack Nicklaus?
SELECT Margin of victory FROM table WHERE Runner(s)-up = jack nicklaus
Translate the following into a SQL query
Who was the runner-up on Jan 19, 1964?
SELECT Runner(s)-up FROM table WHERE Date = jan 19, 1964
Translate the following into a SQL query
How many Rebounds did Maccabi Tel Aviv Team get after Game 6?
SELECT COUNT Rebounds FROM table WHERE Team = maccabi tel aviv AND Games > 6
Translate the following into a SQL query
How many Games for the player with Rebounds from Efes Pilsen?
SELECT Games FROM table WHERE Team = efes pilsen
Translate the following into a SQL query
How many Games for the Player from Lietuvos Rytas Vilnius with less the 43 Rebounds?
SELECT SUM Games FROM table WHERE Team = lietuvos rytas vilnius AND Rebounds < 43
Translate the following into a SQL query
Who is The Author of zhou clarke zhang?
SELECT Name FROM table WHERE Authors = zhou clarke zhang
Translate the following into a SQL query
What is the Status of primitive confuciusornithid .?
SELECT Status FROM table WHERE Notes = primitive confuciusornithid .
Translate the following into a SQL query
What is the name of gao chiappe meng o'connor wang cheng liu?
SELECT Name FROM table WHERE Authors = gao chiappe meng o'connor wang cheng liu
Translate the following into a SQL query
Where has a Name of zhongornis?
SELECT Location FROM table WHERE Name = zhongornis
Translate the following into a SQL query
Which Notes has Authors of zhou clarke zhang?
SELECT Notes FROM table WHERE Authors = zhou clarke zhang
Translate the following into a SQL query
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?
SELECT MIN First season of current spell FROM table WHERE First season > 2005 AND Number of seasons in Superettan < 8 AND Club = syrianska fc
Translate the following into a SQL query
Which Number of seasons in second tier has a First season of 2000, and a First season of current spell of 2014?
SELECT Number of seasons in second tier FROM table WHERE First season = 2000 AND First season of current spell = 2014
Translate the following into a SQL query
Which First season of current spell is the highest one that has a Position in 2013 of 9th, and a Number of seasons in second tier larger than 14?
SELECT MAX First season of current spell FROM table WHERE Position in 2013 = 9th AND Number of seasons in second tier > 14
Translate the following into a SQL query
What was the ranking of Beirasar Rosalía, the year they played 32 games?
SELECT MAX Rank FROM table WHERE Team = beirasar rosalía AND Games < 32
Translate the following into a SQL query
How many points did Antwain Barbour score in the year he played 39 games?
SELECT SUM Points FROM table WHERE Name = antwain barbour AND Games < 39
Translate the following into a SQL query
What team was Paolo Quinteros on?
SELECT Team FROM table WHERE Name = paolo quinteros
Translate the following into a SQL query
Was the record of 8-1 (1) a win or a loss?
SELECT Res. FROM table WHERE Record = 8-1 (1)
Translate the following into a SQL query
In what event was the technical decision (split) method used?
SELECT Event FROM table WHERE Method = technical decision (split)
Translate the following into a SQL query
What are the average play-offs that have an FA Cup greater than 3?
SELECT AVG Play-offs FROM table WHERE FA Cup > 3
Translate the following into a SQL query
How many totals have a play-off less than 0?
SELECT COUNT Total FROM table WHERE Play-offs < 0
Translate the following into a SQL query
Which league has an FA cup greater than 0, with a total greater than 21?
SELECT League FROM table WHERE FA Cup > 0 AND Total > 21
Translate the following into a SQL query
What is the highest play-offs that have stevenage borough as the club, and a total greater than 21?
SELECT MAX Play-offs FROM table WHERE Club = stevenage borough AND Total > 21
Translate the following into a SQL query
What is the tournament in 2012 results that has a 2003 results of 2r and played at Wimbledon?
SELECT 2012 FROM table WHERE 2003 = 2r AND Tournament = wimbledon
Translate the following into a SQL query
What results in 2012 also has 2013 results of 2r and the tournament was Wimbledon?
SELECT 2012 FROM table WHERE 2013 = 2r AND Tournament = wimbledon
Translate the following into a SQL query
What is the results from 2003 that has a 2012 result of 1r and a 2004 result of 2r and from the Australian Open?
SELECT 2003 FROM table WHERE 2012 = 1r AND 2004 = 2r AND Tournament = australian open
Translate the following into a SQL query
What is the name of the tournament that has the results of 2003 2r and 2004 1r?
SELECT Tournament FROM table WHERE 2003 = 2r AND 2004 = 1r
Translate the following into a SQL query
What is the results in 2004 that has a 2013 result of 2r?
SELECT 2004 FROM table WHERE 2013 = 2r
Translate the following into a SQL query
What is the result from 2003 from the US Open?
SELECT 2003 FROM table WHERE Tournament = us open
Translate the following into a SQL query
What is the height of the player born on June 24, 1964, with a weight over 84 kg?
SELECT AVG Height (cm) FROM table WHERE Weight (kg) > 84 AND Birthdate = june 24, 1964
Translate the following into a SQL query
On what date was the player from Melrose, Massachusetts born?
SELECT Birthdate FROM table WHERE Birthplace = melrose, massachusetts
Translate the following into a SQL query
What is the height of the player from the Washington Capitals, who was born in Detroit, Michigan and has a jersey number under #11?
SELECT MIN Height (cm) FROM table WHERE 1986–1987 Team = washington capitals AND Birthplace = detroit, michigan AND Jersey # < 11
Translate the following into a SQL query
What is Date, when Event is Billabong Pro?
SELECT Date FROM table WHERE Event = billabong pro
Translate the following into a SQL query
What is Location, when Date is December 8-December 20?
SELECT Location FROM table WHERE Date = december 8-december 20
Translate the following into a SQL query
What is Runner-up, when Event is Mancora Peru Classic?
SELECT Runner-up FROM table WHERE Event = mancora peru classic
Translate the following into a SQL query
What is Event, when Date is August 20-August 27?
SELECT Event FROM table WHERE Date = august 20-august 27
Translate the following into a SQL query
What is Date when Runner-up is Sofía Mulánovich ( per )?
SELECT Date FROM table WHERE Runner-up = sofía mulánovich ( per )
Translate the following into a SQL query
What is Country, when Event is Rip Curl Women's Pro?
SELECT Country FROM table WHERE Event = rip curl women's pro
Translate the following into a SQL query
What is the highest win percentage when there were 23 losses?
SELECT MAX Win% FROM table WHERE Losses = 23
Translate the following into a SQL query
Which finish had a win percentage that was more than 0.598 and also had less than 53 wins?
SELECT Finish FROM table WHERE Win% > 0.598 AND Wins < 53
Translate the following into a SQL query
What is the 2007 Team with player Deshaun Foster?
SELECT 2007 Team FROM table WHERE Player = deshaun foster
Translate the following into a SQL query
What is the Free Agent Type for player bryant johnson?
SELECT Free Agent Type FROM table WHERE Player = bryant johnson
Translate the following into a SQL query
What is the High assists with a Date that is march 31?
SELECT High assists FROM table WHERE Date = march 31
Translate the following into a SQL query
What is the Score with a Date that is march 12?
SELECT Score FROM table WHERE Date = march 12
Translate the following into a SQL query
What is the lowest silver that has a bronze greater than 1, a gold less than 2, and a total less than 2?
SELECT MIN Silver FROM table WHERE Bronze > 1 AND Gold < 2 AND Total < 2
Translate the following into a SQL query
What average rank that has a silver less than 0?
SELECT AVG Rank FROM table WHERE Silver < 0
Translate the following into a SQL query
How many silver have 4 as the total with a bronze less than 2?
SELECT COUNT Silver FROM table WHERE Total = 4 AND Bronze < 2
Translate the following into a SQL query
How many totals have a rank greater than 4, czech Republic as the nation, and a bronze greater than 0?
SELECT SUM Total FROM table WHERE Rank > 4 AND Nation = czech republic AND Bronze > 0
Translate the following into a SQL query
What average total has a gold greater than 0, and a silver greater than 0, with a bronze greater than 2?
SELECT AVG Total FROM table WHERE Gold > 0 AND Silver > 0 AND Bronze > 2
Translate the following into a SQL query
Which country has an Indigenous mining production 2006 of 0?
SELECT Country FROM table WHERE Indigenous mining production 2006 = 0
Translate the following into a SQL query
What is the total capacity of the airport ranked less than 7, has a capacity in use of 114.2%, and has less than 13,699,657 total passengers?
SELECT COUNT Capacity FROM table WHERE Rank < 7 AND Capacity in use = 114.2% AND Total Passengers < 13,699,657
Translate the following into a SQL query
What is the highest capacity of the airport in Rio de Janeiro, which was ranked greater than 6 and had more than 5,099,643 total passengers?
SELECT MAX Capacity FROM table WHERE Rank > 6 AND Location = rio de janeiro AND Total Passengers > 5,099,643
Translate the following into a SQL query
What is the capacity in use of the airport in Rio de Janeiro with an annual change of 40.53%?
SELECT Capacity in use FROM table WHERE Location = rio de janeiro AND Annual change = 40.53%
Translate the following into a SQL query
What is the sum of Silver when the total is less than 6, the rank is 6 and the Bulgaria is the nation?
SELECT SUM Silver FROM table WHERE Total < 6 AND Rank = 6 AND Nation = bulgaria
Translate the following into a SQL query
What nation has a bronze of 2 with a total less than 5 and rank of 6?
SELECT Nation FROM table WHERE Bronze = 2 AND Total < 5 AND Rank = 6
Translate the following into a SQL query
What is the lowest Total for rank 3 with more than 4 gold?
SELECT MIN Total FROM table WHERE Rank = 3 AND Gold > 4
Translate the following into a SQL query
What is the lowest Total for Italy with less than 0 silver?
SELECT MIN Total FROM table WHERE Nation = italy AND Silver < 0
Translate the following into a SQL query
What is the Nation with less than 1 silver, and the total is 1, and bronze is less than 0?
SELECT Nation FROM table WHERE Silver < 1 AND Total = 1 AND Bronze = 0
Translate the following into a SQL query
What number has 2002-2003 as the season?
SELECT Number FROM table WHERE Season = 2002-2003
Translate the following into a SQL query
What position has 2008 as the season?
SELECT Position FROM table WHERE Season = 2008
Translate the following into a SQL query
What name has 50 as the number?
SELECT Name FROM table WHERE Number = 50
Translate the following into a SQL query
What number has 2008 as the season?
SELECT Number FROM table WHERE Season = 2008
Translate the following into a SQL query
What name has 8 as the number?
SELECT Name FROM table WHERE Number = 8
Translate the following into a SQL query
What position has ronjay buenafe as the name?
SELECT Position FROM table WHERE Name = ronjay buenafe
Translate the following into a SQL query
What was the lowest long with 26 yards?
SELECT MIN Long FROM table WHERE Yards = 26
Translate the following into a SQL query
What was the highest average when Fuml was 0?
SELECT MAX Avg. FROM table WHERE FumL < 0
Translate the following into a SQL query
What is the highest run currently since the last title in 2010, and a season in Esiliiga larger than 10?
SELECT MAX Current run since FROM table WHERE Last title = 2010 AND Seasons in Esiliiga > 10
Translate the following into a SQL query
What is the 2012 season in Esiliiga more than 4, and more than 0 titles?
SELECT 2012 FROM table WHERE Seasons in Esiliiga > 4 AND Titles > 0
Translate the following into a SQL query
What is the population on average with a per capita of 1,158, and a 2011 GDP less than 6,199?
SELECT AVG Population FROM table WHERE per capita = 1,158 AND GDP 2011 (In Millions USD) < 6,199
Translate the following into a SQL query
What 20-29 was in season 2008?
SELECT 20-29 FROM table WHERE Season = 2008
Translate the following into a SQL query
What were the lowest amount of points for season 1994?
SELECT MIN Points FROM table WHERE Season = 1994
Translate the following into a SQL query
Which 20-29 had a season of 1997?
SELECT 20-29 FROM table WHERE Season = 1997
Translate the following into a SQL query
What is the Postion, when the Name is Rod Paavola?
SELECT Position FROM table WHERE Name = rod paavola
Translate the following into a SQL query
What is the total number of Jersey #, when the Position is W, and when the Birthdate is 17 October 1932?
SELECT COUNT Jersey # FROM table WHERE Position = w AND Birthdate = 17 october 1932
Translate the following into a SQL query
What is the Birthplace, when the Name is Bob Mcvey?
SELECT Birthplace FROM table WHERE Name = bob mcvey
Translate the following into a SQL query
What is the Name, when the Position is W, and when the Jersey # is 11?
SELECT Name FROM table WHERE Position = w AND Jersey # = 11