instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What type of state was Lu, when Yi was the ruler from the royal house of Ji?
SELECT Type FROM table WHERE Royal house = ji AND Name = yi AND State = lu
Translate the following into a SQL query
What is Score, when Competition is "Euro 2004 Qualifier"?
SELECT Score FROM table WHERE Competition = euro 2004 qualifier
Translate the following into a SQL query
What is Competition, when Date is "28 March 2001"?
SELECT Competition FROM table WHERE Date = 28 march 2001
Translate the following into a SQL query
who is the opponent on 2004-06-26 with the result of loss?
SELECT Opponent FROM table WHERE Date = 2004-06-26 AND Result = loss
Translate the following into a SQL query
what is the location when the opponent is aleksandr pitchkounov?
SELECT Location FROM table WHERE Opponent = aleksandr pitchkounov
Translate the following into a SQL query
what is the event when the location is saitama, japan?
SELECT Event FROM table WHERE Location = saitama, japan
Translate the following into a SQL query
what is the location when the event is k-1 world grand prix 2004 in saitama?
SELECT Location FROM table WHERE Event = k-1 world grand prix 2004 in saitama
Translate the following into a SQL query
what is the record when the result is win on 2004-06-26?
SELECT Record FROM table WHERE Result = win AND Date = 2004-06-26
Translate the following into a SQL query
what is the event when the result is loss and the record is 7-5?
SELECT Event FROM table WHERE Result = loss AND Record = 7-5
Translate the following into a SQL query
What is the date of the game with a result of W 13-10?
SELECT Date FROM table WHERE Result = w 13-10
Translate the following into a SQL query
What is the total number of Total(s), when Finish is "T21", and when To Par is greater than 23?
SELECT COUNT Total FROM table WHERE Finish = t21 AND To par > 23
Translate the following into a SQL query
What is Finish, when Total is "306"?
SELECT Finish FROM table WHERE Total = 306
Translate the following into a SQL query
What is the total number of To Par, when Player is "Julius Boros", and when Total is greater than 295?
SELECT COUNT To par FROM table WHERE Player = julius boros AND Total > 295
Translate the following into a SQL query
What is the total number of To Par, when Total is "295"?
SELECT COUNT To par FROM table WHERE Total = 295
Translate the following into a SQL query
What is the lowest Total, when Year(s) Won is "1948 , 1950 , 1951 , 1953"?
SELECT MIN Total FROM table WHERE Year(s) won = 1948 , 1950 , 1951 , 1953
Translate the following into a SQL query
What is the sum of Year, when Role is "himself", and when Notes is "celebrity guest alongside yg family"?
SELECT SUM Year FROM table WHERE Role = himself AND Notes = celebrity guest alongside yg family
Translate the following into a SQL query
What is the highest Year, when Notes is "Celebrity Guest Alongside YG Family"?
SELECT MAX Year FROM table WHERE Notes = celebrity guest alongside yg family
Translate the following into a SQL query
What is the Year, when Role is "himself", and when Title is "Epik High's Love And Delusion"?
SELECT Year FROM table WHERE Role = himself AND Title = epik high's love and delusion
Translate the following into a SQL query
What is the sum of Year, when Title is "Mnet Director's Cut"?
SELECT SUM Year FROM table WHERE Title = mnet director's cut
Translate the following into a SQL query
What is the Network, when Title is "Epik High's Love And Delusion"?
SELECT Network FROM table WHERE Title = epik high's love and delusion
Translate the following into a SQL query
How many were in attendance during week 12?
SELECT Attendance FROM table WHERE Week = 12
Translate the following into a SQL query
On what date was the Result l 38-14?
SELECT Date FROM table WHERE Result = l 38-14
Translate the following into a SQL query
On what date was the week less than 3 with a result of w 24-13?
SELECT Date FROM table WHERE Week < 3 AND Result = w 24-13
Translate the following into a SQL query
what is the water park with the rank 20?
SELECT Water park FROM table WHERE Rank = 20
Translate the following into a SQL query
what is 2011 when the rank is less than 8 and the water park is ocean world?
SELECT SUM 2011 FROM table WHERE Rank < 8 AND Water park = ocean world
Translate the following into a SQL query
what is the lowest 2011 for sunway lagoon water park and 2012 is less than 1,200,000?
SELECT MIN 2011 FROM table WHERE Water park = sunway lagoon AND 2012 < 1,200,000
Translate the following into a SQL query
What percentage of Azad Kashmir is Hindu?
SELECT % Hindu FROM table WHERE Area = azad kashmir
Translate the following into a SQL query
What area shows % Hindu of statistics from the bbc in depth report.?
SELECT Area FROM table WHERE % Hindu = statistics from the bbc in depth report.
Translate the following into a SQL query
What is the population when the % Muslim shows 30%?
SELECT Population FROM table WHERE % Muslim = 30%
Translate the following into a SQL query
What is the percentage of Buddhist when the Population is ~2.6 million (2.6million)?
SELECT % Buddhist FROM table WHERE Population = ~2.6 million (2.6million)
Translate the following into a SQL query
What area has a % Other of –, and a % Muslim of 95%?
SELECT Area FROM table WHERE % Other = – AND % Muslim = 95%
Translate the following into a SQL query
What area has a percentage of other of 3%?
SELECT Area FROM table WHERE % Other = 3%
Translate the following into a SQL query
What Game had a Result of 125-123 (OT)?
SELECT Game FROM table WHERE Result = 125-123 (ot)
Translate the following into a SQL query
What is the Date of Game 5 with Road Team St. Louis?
SELECT Date FROM table WHERE Road Team = st. louis AND Game = game 5
Translate the following into a SQL query
What is the Road Team of Game 3?
SELECT Road Team FROM table WHERE Game = game 3
Translate the following into a SQL query
What is the Game on April 13 with Road Team St. Louis?
SELECT Game FROM table WHERE Road Team = st. louis AND Date = april 13
Translate the following into a SQL query
What is the Home Team in the game with a Result of 124-109?
SELECT Home Team FROM table WHERE Result = 124-109
Translate the following into a SQL query
What is the Home Team on April 13 with a Road Team of St. Louis?
SELECT Home Team FROM table WHERE Road Team = st. louis AND Date = april 13
Translate the following into a SQL query
What is Score, when Date is greater than 7, and when Game is "82"?
SELECT Score FROM table WHERE Date > 7 AND Game = 82
Translate the following into a SQL query
What is Opponent, when Location/Attendance is "Mellon Arena - 17,132"?
SELECT Opponent FROM table WHERE Location/Attendance = mellon arena - 17,132
Translate the following into a SQL query
What is Score, when Game is greater than 78, and when Date is "4"?
SELECT Score FROM table WHERE Game > 78 AND Date = 4
Translate the following into a SQL query
What is Score, when Opponent is "Tampa Bay Lightning"?
SELECT Score FROM table WHERE Opponent = tampa bay lightning
Translate the following into a SQL query
What is Location/Attendance, when Score is "4-5 (OT)"?
SELECT Location/Attendance FROM table WHERE Score = 4-5 (ot)
Translate the following into a SQL query
What driving wheels are on the m1 original NER class?
SELECT Driving wheels FROM table WHERE Original NER class = m1
Translate the following into a SQL query
What is the LNER class with an m 1914 NER class?
SELECT LNER Class FROM table WHERE 1914 NER class = m
Translate the following into a SQL query
What is the 1914 NER class with a d17/2 LNER class?
SELECT 1914 NER class FROM table WHERE LNER Class = d17/2
Translate the following into a SQL query
What was Lew Worsham's score?
SELECT Score FROM table WHERE Player = lew worsham
Translate the following into a SQL query
Which Points have a Time/Retired of +49.222 secs?
SELECT MAX Points FROM table WHERE Time/Retired = +49.222 secs
Translate the following into a SQL query
What are grid 4's average points?
SELECT AVG Points FROM table WHERE Grid = 4
Translate the following into a SQL query
Who was the owner of Give a Toast after 1985?
SELECT Owner FROM table WHERE Year > 1985 AND Winner = give a toast
Translate the following into a SQL query
What is the earliest year Stuart Janney III was an owner?
SELECT MIN Year FROM table WHERE Owner = stuart janney iii
Translate the following into a SQL query
Who was the winner after 1989 when Stronach Stable was the owner?
SELECT Winner FROM table WHERE Year > 1989 AND Owner = stronach stable
Translate the following into a SQL query
Who was the trainer when Mckaymackenna won?
SELECT Trainer FROM table WHERE Winner = mckaymackenna
Translate the following into a SQL query
What Tunnel has an Imperial Length of 307 yd?
SELECT Tunnel FROM table WHERE Length (Imperial) = 307 yd
Translate the following into a SQL query
What Type of Tunnel is the Downhill Tunnel?
SELECT Type FROM table WHERE Tunnel = downhill
Translate the following into a SQL query
What did United States score in the place t6?
SELECT Score FROM table WHERE Country = united states AND Place = t6
Translate the following into a SQL query
Which country has the player Ted Schulz?
SELECT Country FROM table WHERE Player = ted schulz
Translate the following into a SQL query
Which country scored 69-67-69-70=275?
SELECT Country FROM table WHERE Score = 69-67-69-70=275
Translate the following into a SQL query
What is the Date, when Game is 17?
SELECT Date FROM table WHERE Game = 17
Translate the following into a SQL query
What day was the away team Cardiff City?
SELECT Date FROM table WHERE Away team = cardiff city
Translate the following into a SQL query
What home team had an away team of Aston Villa?
SELECT Home team FROM table WHERE Away team = aston villa
Translate the following into a SQL query
What was the score when York City was home?
SELECT Score FROM table WHERE Home team = york city
Translate the following into a SQL query
If the player is Corey Pavin when he had a To par of over 7, what was the sum of his totals?
SELECT SUM Total FROM table WHERE To par > 7 AND Player = corey pavin
Translate the following into a SQL query
What is the round for the ufc on fox: velasquez vs. dos santos event?
SELECT AVG Round FROM table WHERE Event = ufc on fox: velasquez vs. dos santos
Translate the following into a SQL query
Where was the game played when 71,060 people attended?
SELECT Game Site FROM table WHERE Attendance = 71,060
Translate the following into a SQL query
When the game was played at Mile High Stadium before week 9, what was the result?
SELECT Result FROM table WHERE Week < 9 AND Game Site = mile high stadium
Translate the following into a SQL query
Against the Houston Oilers after week 14, what was the result of the game?
SELECT Result FROM table WHERE Week > 14 AND Opponent = houston oilers
Translate the following into a SQL query
What player has +3 to par and score of 75-72=147?
SELECT Player FROM table WHERE To par = +3 AND Score = 75-72=147
Translate the following into a SQL query
What is the country that the player is from with +3 to par and score of 74-73=147?
SELECT Country FROM table WHERE To par = +3 AND Score = 74-73=147
Translate the following into a SQL query
What player has +2 to par?
SELECT Player FROM table WHERE To par = +2
Translate the following into a SQL query
Name the Team which has a Time/Retired of contact, and a Grid smaller than 17?
SELECT Team FROM table WHERE Time/Retired = contact AND Grid < 17
Translate the following into a SQL query
What is the average Bronze, when Nation is "North Korea", and when Total is greater than 5?
SELECT AVG Bronze FROM table WHERE Nation = north korea AND Total > 5
Translate the following into a SQL query
What is the lowest Bronze, when Total is greater than 10, when Silver is greater than 0, and when Rank is "Total"?
SELECT MIN Bronze FROM table WHERE Total > 10 AND Silver > 0 AND Rank = total
Translate the following into a SQL query
What is Rank, when Silver is less than 6, when Bronze is greater than 4, and when Total is 10?
SELECT Rank FROM table WHERE Silver < 6 AND Bronze > 4 AND Total = 10
Translate the following into a SQL query
What is Gold, when Rank is 7?
SELECT Gold FROM table WHERE Rank = 7
Translate the following into a SQL query
Which Men's 35 has a Women's Open of brisbane city cobras def hunter western hornets?
SELECT Men's 35 FROM table WHERE Women's Open = brisbane city cobras def hunter western hornets
Translate the following into a SQL query
Which Men's 50 has a Senior Mixed of n/A, and a Men's Open of gold coast sharks def sydney mets, and a Men's 30 of sydney mets def sydney scorpions, and a Women's u20 of southern suns def brisbane city cobras?
SELECT Men's 50 FROM table WHERE Senior Mixed = n/a AND Men's Open = gold coast sharks def sydney mets AND Men's 30 = sydney mets def sydney scorpions AND Women's u20 = southern suns def brisbane city cobras
Translate the following into a SQL query
Which Women's 35 has a Men's 50 of n/A, and a Men's 40 of southern suns def sunwest razorbacks?
SELECT Women's 35 FROM table WHERE Men's 50 = n/a AND Men's 40 = southern suns def sunwest razorbacks
Translate the following into a SQL query
Which Men's u20 has a Men's 45 of n/A?
SELECT Men's u20 FROM table WHERE Men's 45 = n/a
Translate the following into a SQL query
How many years have a Women's Open of brisbane city cobras def sydney mets, and a Men's 35 of n/A?
SELECT COUNT Year FROM table WHERE Women's Open = brisbane city cobras def sydney mets AND Men's 35 = n/a
Translate the following into a SQL query
what is the surface on july 26, 2010?
SELECT Surface FROM table WHERE Date = july 26, 2010
Translate the following into a SQL query
what is the tournament on august 17, 2008?
SELECT Tournament FROM table WHERE Date = august 17, 2008
Translate the following into a SQL query
who is the opponent when the score is 7–5, 7–6 (8–6)?
SELECT Opponent FROM table WHERE Score = 7–5, 7–6 (8–6)
Translate the following into a SQL query
what is the tournament on july 23, 2006?
SELECT Tournament FROM table WHERE Date = july 23, 2006
Translate the following into a SQL query
what is the score when the opponent is fernando vicente?
SELECT Score FROM table WHERE Opponent = fernando vicente
Translate the following into a SQL query
who is the opponent when the score is 3–6, 6–1, 7–5?
SELECT Opponent FROM table WHERE Score = 3–6, 6–1, 7–5
Translate the following into a SQL query
What is the lowest Year, when Notes is "Spanish adaptation of "Hope There's Someone.""?
SELECT MIN Year FROM table WHERE Notes = spanish adaptation of "hope there's someone."
Translate the following into a SQL query
What is Album Artist, when Song is ""Something New" (with Mint Royale and Class A)"?
SELECT Album artist FROM table WHERE Song = "something new" (with mint royale and class a)
Translate the following into a SQL query
What is Scott Hoch's to par?
SELECT To par FROM table WHERE Player = scott hoch
Translate the following into a SQL query
What place is Nolan Henke in?
SELECT Place FROM table WHERE Player = nolan henke
Translate the following into a SQL query
What is the vote total for elections after 2001 with 44.5% participation?
SELECT Total votes FROM table WHERE Election > 2001 AND Share of votes = 44.5%
Translate the following into a SQL query
What is the most league cup goals for David Beresford having less than 0 FA Cup Goals?
SELECT MAX League Cup Goals FROM table WHERE Name = david beresford AND FA Cup Goals < 0
Translate the following into a SQL query
What is the league goals when the league cup goals is less than 0 and 16 (1) league apps?
SELECT AVG League Goals FROM table WHERE League Apps = 16 (1) AND League Cup Goals < 0
Translate the following into a SQL query
What is the league cup apps when the league goals are greater than 3, there are 30 (2) total apps, and has a position of mf?
SELECT League Cup Apps FROM table WHERE Position = mf AND League Goals > 3 AND Total Apps = 30 (2)
Translate the following into a SQL query
What is the FA Cup App for Squad Number 3 having fewer than 4 league goals?
SELECT FA Cup Apps FROM table WHERE League Goals < 4 AND Squad No. = 3
Translate the following into a SQL query
What is the lowest FA cup with 1 league cup, less than 12 total and 1 premier league?
SELECT MIN FA Cup FROM table WHERE League Cup = 1 AND Total < 12 AND Premier League = 1
Translate the following into a SQL query
What is the highest league cup with more than 0 FA cups, a premier league less than 34 and a total of 11?
SELECT MAX League Cup FROM table WHERE FA Cup > 0 AND Premier League < 34 AND Total = 11
Translate the following into a SQL query
What is the average total of kenwyne jones, who has more than 10 premier leagues?
SELECT AVG Total FROM table WHERE Name = kenwyne jones AND Premier League > 10
Translate the following into a SQL query
What is the highest league cup of danny collins, who has more than 1 premier league?
SELECT MAX League Cup FROM table WHERE Name = danny collins AND Premier League > 1
Translate the following into a SQL query
Who had the high assists in the game less than 19?
SELECT High assists FROM table WHERE Game < 19