instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is the Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdate is March 3, 1980?
SELECT Birthplace FROM table WHERE Jersey # < 18 AND Height (cm) > 185 AND Birthdate = march 3, 1980
Translate the following into a SQL query
What was the final score for the game with 65,309 people in attendance?
SELECT Final Score FROM table WHERE Attendance = 65,309
Translate the following into a SQL query
What average week number had the Chicago bears as the opponent?
SELECT AVG Week FROM table WHERE Opponent = chicago bears
Translate the following into a SQL query
What is the record for the game against New England Patriots at the Rich Stadium?
SELECT Record FROM table WHERE Game Site = rich stadium AND Opponent = new england patriots
Translate the following into a SQL query
What did the Dallara chassis with a 5 start in 2006 finish?
SELECT Finish FROM table WHERE Chassis = dallara AND Start = 5 AND Year = 2006
Translate the following into a SQL query
What is the chassis of the Honda Engine from 2008?
SELECT Chassis FROM table WHERE Engine = honda AND Year = 2008
Translate the following into a SQL query
What is the earliest year of the Honda Engine with a finish of 4?
SELECT MIN Year FROM table WHERE Engine = honda AND Finish = 4
Translate the following into a SQL query
What was 2002, when 2008 was, "career statistics"?
SELECT 2002 FROM table WHERE 2008 = career statistics
Translate the following into a SQL query
What was 2009, when 2001 was, "not masters series"?
SELECT 2009 FROM table WHERE 2001 = not masters series
Translate the following into a SQL query
What was 2011, when 2005 was 2R, and when 2003 was 2R?
SELECT 2011 FROM table WHERE 2005 = 2r AND 2003 = 2r
Translate the following into a SQL query
What was 2009, when 2012 was A, when 2003 was A, and then the Tournament was the Madrid Masters?
SELECT 2009 FROM table WHERE 2012 = a AND 2003 = a AND Tournament = madrid masters
Translate the following into a SQL query
What was 2002, when 2011 was, "atp masters series"?
SELECT 2002 FROM table WHERE 2011 = atp masters series
Translate the following into a SQL query
What was the lowest wins of Larry Nelson, who ranked less than 5?
SELECT MIN Wins FROM table WHERE Player = larry nelson AND Rank < 5
Translate the following into a SQL query
What is the sum of the earnings for rank 3?
SELECT SUM Earnings( $ ) FROM table WHERE Rank = 3
Translate the following into a SQL query
What was the lowest rank which earned 24,920,665?
SELECT MIN Rank FROM table WHERE Earnings( $ ) = 24,920,665
Translate the following into a SQL query
What is the sum of wins for a rank less than 3, and earnings more than 24,920,665?
SELECT SUM Wins FROM table WHERE Rank < 3 AND Earnings( $ ) > 24,920,665
Translate the following into a SQL query
What is the country is ranked more than 4?
SELECT Country FROM table WHERE Rank > 4
Translate the following into a SQL query
What the total of Week with attendance of 53,147
SELECT SUM Week FROM table WHERE Attendance = 53,147
Translate the following into a SQL query
What is the lowest week for December 26, 1999
SELECT MIN Week FROM table WHERE Date = december 26, 1999
Translate the following into a SQL query
What season has 6 races and the team is Australia?
SELECT Season FROM table WHERE Races = 6 AND Team = australia
Translate the following into a SQL query
What is the total number of Races when there were more than 8 wins?
SELECT COUNT Races FROM table WHERE Wins > 8
Translate the following into a SQL query
Who's the Socialist ticket with a Republican ticket of john a. may?
SELECT Socialist ticket FROM table WHERE Republican ticket = john a. may
Translate the following into a SQL query
Who's the Republican ticket with a Democratic ticket of m. william bray?
SELECT Republican ticket FROM table WHERE Democratic ticket = m. william bray
Translate the following into a SQL query
Who's the Socialist ticket with a Democratic ticket of herbert h. lehman?
SELECT Socialist ticket FROM table WHERE Democratic ticket = herbert h. lehman
Translate the following into a SQL query
Who's the Republican ticket with a Socialist ticket of frank r. crosswaith?
SELECT Republican ticket FROM table WHERE Socialist ticket = frank r. crosswaith
Translate the following into a SQL query
Who's the Republican ticket with a Socialist ticket of edna mitchell blue?
SELECT Republican ticket FROM table WHERE Socialist ticket = edna mitchell blue
Translate the following into a SQL query
what's the earliest year that serena williams had more than 2 sets?
SELECT MIN Year FROM table WHERE Player = serena williams AND Sets > 2
Translate the following into a SQL query
what's the earliest year that the wimbledon opponent was zheng jie?
SELECT MIN Year FROM table WHERE Event = wimbledon AND Opponent = zheng jie
Translate the following into a SQL query
what year was the opponent caroline garcia?
SELECT SUM Year FROM table WHERE Opponent = caroline garcia
Translate the following into a SQL query
what's the most recent year that samantha stosur was the opponent with 20 aces and having played more than 2 sets?
SELECT MAX Year FROM table WHERE Aces = 20 AND Opponent = samantha stosur AND Sets > 2
Translate the following into a SQL query
what year was the memphis event?
SELECT SUM Year FROM table WHERE Event = memphis
Translate the following into a SQL query
What season did the player who had the number 26 play on who came from far eastern?
SELECT Season FROM table WHERE School/Club Team = far eastern AND Number = 26
Translate the following into a SQL query
What season did the player who came from Cebu play in?
SELECT Season FROM table WHERE School/Club Team = cebu
Translate the following into a SQL query
How much did Champion jessica shepley share when she won?
SELECT Winner's share ($) FROM table WHERE Champion = jessica shepley
Translate the following into a SQL query
What was the country in the year 2012?
SELECT Country FROM table WHERE Year = 2012
Translate the following into a SQL query
How many purses were there after 2012 that had a winner's share of less than 15,000?
SELECT COUNT Purse ($) FROM table WHERE Year > 2012 AND Winner's share ($) < 15,000
Translate the following into a SQL query
In what year was Letecke Zavody N.P., Jinonice the manufacturer?
SELECT Year FROM table WHERE Manufacturer = letecke zavody n.p., jinonice
Translate the following into a SQL query
What country had the car with the Jawa 350cc engine?
SELECT Country FROM table WHERE Engine Make/Capacity = jawa 350cc
Translate the following into a SQL query
In what country was the car with the čz 171cc engine?
SELECT Country FROM table WHERE Engine Make/Capacity = čz 171cc
Translate the following into a SQL query
What is the name of the car that was made in the years 1956-1958?
SELECT Automobile Name FROM table WHERE Year = 1956-1958
Translate the following into a SQL query
What is the name of the car manufactured by Letecke Zavody N.P., Jinonice?
SELECT Automobile Name FROM table WHERE Manufacturer = letecke zavody n.p., jinonice
Translate the following into a SQL query
Who manufactured the car with the jawa 249cc engine that was made in the years 1956-1963?
SELECT Manufacturer FROM table WHERE Engine Make/Capacity = jawa 249cc AND Year = 1956-1963
Translate the following into a SQL query
What is the Set 2 with a Date that is jun 29?
SELECT Set 2 FROM table WHERE Date = jun 29
Translate the following into a SQL query
What is the Set 1 with a Set 2 that is 25-19?
SELECT Set 1 FROM table WHERE Set 2 = 25-19
Translate the following into a SQL query
What is the Set 5 with a Date that is jun 29?
SELECT Set 5 FROM table WHERE Date = jun 29
Translate the following into a SQL query
When was construction completed that was listed on 09/21/1984 and a Deleted of 11/04/1999?
SELECT Construction completed FROM table WHERE Listed = 09/21/1984 AND Deleted = 11/04/1999
Translate the following into a SQL query
What is the partially deleted result for a completed construction of m– in St. Maries Creosote?
SELECT Partially deleted FROM table WHERE Construction completed = – AND Name = st. maries creosote
Translate the following into a SQL query
What is the partially deleted result for Bunker Hill Mining & Metallurgical?
SELECT Partially deleted FROM table WHERE Name = bunker hill mining & metallurgical
Translate the following into a SQL query
What is the partially deleted result for a deleted of m– in Valley?
SELECT Partially deleted FROM table WHERE Deleted = – AND County = valley
Translate the following into a SQL query
How many matches ended with more than 22 points?
SELECT SUM Match FROM table WHERE Points > 22
Translate the following into a SQL query
What is the value in 1965 when 7 is the value for 1967?
SELECT 1965 FROM table WHERE 1967 = 7
Translate the following into a SQL query
What is the value in 1971 when 30 is the value for 1969?
SELECT 1971 FROM table WHERE 1969 = 30
Translate the following into a SQL query
What was the value in 1966 with a 0 value in 1969?
SELECT 1966 FROM table WHERE 1969 = 0
Translate the following into a SQL query
Who was the player moving to Arminia Bielefeld?
SELECT Name FROM table WHERE Moving to = arminia bielefeld
Translate the following into a SQL query
What tournament had a Winning score of –9 (69-72-68-70=279)?
SELECT Tournament FROM table WHERE Winning score = –9 (69-72-68-70=279)
Translate the following into a SQL query
What was the winning score of the Greater Vancouver Open tournament?
SELECT Winning score FROM table WHERE Tournament = greater vancouver open
Translate the following into a SQL query
Which runner(s)-up had a Winning score of –13 (68-70-66-71=275) and a Margin of victory of 3 strokes?
SELECT Runner(s)-up FROM table WHERE Margin of victory = 3 strokes AND Winning score = –13 (68-70-66-71=275)
Translate the following into a SQL query
What was the Margin of victory in the southwest golf classic Tournament?
SELECT Margin of victory FROM table WHERE Tournament = southwest golf classic
Translate the following into a SQL query
When the Winning score was –9 (69-72-68-70=279), what was the Margin of victory?
SELECT Margin of victory FROM table WHERE Winning score = –9 (69-72-68-70=279)
Translate the following into a SQL query
What height has a floor count less than 25?
SELECT Height FROM table WHERE Floor count < 25
Translate the following into a SQL query
What state/territory has 121 m as the height?
SELECT State / Territory FROM table WHERE Height = 121 m
Translate the following into a SQL query
What state/territory has lovett tower as the building?
SELECT State / Territory FROM table WHERE Building = lovett tower
Translate the following into a SQL query
What was the date of the game against Oakland Raiders?
SELECT Date FROM table WHERE Opponent = oakland raiders
Translate the following into a SQL query
What year has 2 wins?
SELECT Year FROM table WHERE Wins = 2
Translate the following into a SQL query
What is the success rate for the year 2012?
SELECT Success Rate FROM table WHERE Year = 2012
Translate the following into a SQL query
What was the win for 4 matches with a success rate of 25%?
SELECT Wins FROM table WHERE Matches = 4 AND Success Rate = 25%
Translate the following into a SQL query
what was the win for the 6 matches?
SELECT Wins FROM table WHERE Matches = 6
Translate the following into a SQL query
What is the losses for the 5 matches?
SELECT Losses FROM table WHERE Matches = 5
Translate the following into a SQL query
What is the losses for the year 2012?
SELECT Losses FROM table WHERE Year = 2012
Translate the following into a SQL query
What is the average Total with a Gold that is larger than 4?
SELECT AVG Total FROM table WHERE Gold > 4
Translate the following into a SQL query
What is the average Total with a Bronze that is larger than 1?
SELECT AVG Total FROM table WHERE Bronze > 1
Translate the following into a SQL query
Who were the Brazil scorers for the World Cup Competition with a 1-2 score?
SELECT Brazil scorers FROM table WHERE Competition = world cup AND Score = 1-2
Translate the following into a SQL query
Which competition had a 4-3 score?
SELECT Competition FROM table WHERE Score = 4-3
Translate the following into a SQL query
What is the highest Top-5 that has 18 or more events with a Top-25 of 23?
SELECT MAX Top-5 FROM table WHERE Events > 18 AND Top-25 = 23
Translate the following into a SQL query
What is the lowest cuts made that had a Top-25 less than 6 and wins greater than 0?
SELECT MIN Cuts made FROM table WHERE Top-25 < 6 AND Wins < 0
Translate the following into a SQL query
What race did Glenn Seton win on the Sandown International Raceway circuit?
SELECT Race Title FROM table WHERE Winner = glenn seton AND Circuit = sandown international raceway
Translate the following into a SQL query
What date was the race at Oran Park ran?
SELECT Date FROM table WHERE Race Title = oran park
Translate the following into a SQL query
What is the largest number of assists for the second rank when there were less than 2 games?
SELECT MAX Assists FROM table WHERE Rank = 2 AND Games < 2
Translate the following into a SQL query
What is the smallest rank when there are more than 2 games?
SELECT MIN Rank FROM table WHERE Games > 2
Translate the following into a SQL query
What is the mean number of games for pablo prigioni when there are more than 14 assists?
SELECT AVG Games FROM table WHERE Name = pablo prigioni AND Assists > 14
Translate the following into a SQL query
What region has 57 vehicles?
SELECT Region FROM table WHERE Vehicles (12.09) = 57
Translate the following into a SQL query
What was the Score after 1991 in Category IVA?
SELECT Score FROM table WHERE Year > 1991 AND Category = iva
Translate the following into a SQL query
What was the Score in 2002?
SELECT Score FROM table WHERE Year = 2002
Translate the following into a SQL query
What was the Category before 1995?
SELECT Category FROM table WHERE Year < 1995
Translate the following into a SQL query
What was the Category after 1991 with a Score of 7-5, 6-7, 6-2?
SELECT Category FROM table WHERE Year > 1991 AND Score = 7-5, 6-7, 6-2
Translate the following into a SQL query
What was the issue date for the song by Paul Mccartney and Michael Jackson?
SELECT Issue Date(s) FROM table WHERE Artist = paul mccartney and michael jackson
Translate the following into a SQL query
What is the smallest number of seats with INC as an election winner and BJP incumbent?
SELECT MIN Seats (ACs) FROM table WHERE Election Winner = inc AND Incumbent = bjp
Translate the following into a SQL query
Who was the election winner with a BJP incumbent in Chhattisgarh?
SELECT Election Winner FROM table WHERE Incumbent = bjp AND State = chhattisgarh
Translate the following into a SQL query
When was the date of counting with less than 87 seats, INC as incumbent and INC as election winner?
SELECT Date of Counting FROM table WHERE Seats (ACs) < 87 AND Incumbent = inc AND Election Winner = inc
Translate the following into a SQL query
Which country has an IATA of EVN?
SELECT Country FROM table WHERE IATA = evn
Translate the following into a SQL query
What is the name of the airport located in Russia with an IATA of AER?
SELECT Airport FROM table WHERE Country = russia AND IATA = aer
Translate the following into a SQL query
What is the name of the airport located in Russia with an IATA of KRR?
SELECT Airport FROM table WHERE Country = russia AND IATA = krr
Translate the following into a SQL query
What is the name of the airport with an ICAO of ULLI?
SELECT Airport FROM table WHERE ICAO = ulli
Translate the following into a SQL query
What is the ICAO for the destination in Armenia?
SELECT ICAO FROM table WHERE Country = armenia
Translate the following into a SQL query
What is the name of the airport with an IATA of KUF?
SELECT Airport FROM table WHERE IATA = kuf
Translate the following into a SQL query
What is the status of Author Del Corro?
SELECT Status FROM table WHERE Authors = del corro
Translate the following into a SQL query
What is the location of the authors of Molnar?
SELECT Location FROM table WHERE Authors = molnar
Translate the following into a SQL query
What is the status of Prenocephale?
SELECT Status FROM table WHERE Name = prenocephale
Translate the following into a SQL query
What is the novel that has a valid status, located in Mongolia, and named Prenocephale?
SELECT Novelty FROM table WHERE Status = valid AND Location = mongolia AND Name = prenocephale
Translate the following into a SQL query
What is the novelty of Tylocephale?
SELECT Novelty FROM table WHERE Name = tylocephale