instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
what is the location when the year is before 1979 and the result is 19-17?
SELECT Location FROM table WHERE Year < 1979 AND Result = 19-17
Translate the following into a SQL query
what is the result for 1970 at yankee stadium?
SELECT Result FROM table WHERE Year = 1970 AND Location = yankee stadium
Translate the following into a SQL query
what is the year when the location is yankee stadium and the result is 23-23
SELECT AVG Year FROM table WHERE Location = yankee stadium AND Result = 23-23
Translate the following into a SQL query
Which Scottish Cup has a League Cup of 95, and a Europe larger than 23?
SELECT MIN Scottish Cup FROM table WHERE League Cup = 95 AND Europe > 23
Translate the following into a SQL query
Which Total has a Name of eoin jess category:articles with hcards, and a Scottish Cup larger than 23?
SELECT MIN Total FROM table WHERE Name = eoin jess category:articles with hcards AND Scottish Cup > 23
Translate the following into a SQL query
Which Total has a Name of alex mcleish category:articles with hcards, and a League smaller than 494?
SELECT AVG Total FROM table WHERE Name = alex mcleish category:articles with hcards AND League < 494
Translate the following into a SQL query
Which League Cup has a Scottish Cup larger than 69?
SELECT SUM League Cup FROM table WHERE Scottish Cup > 69
Translate the following into a SQL query
Which Scottish Cup has a League smaller than 561, Years of 1989–1995 1997–2001, and Europe smaller than 11?
SELECT COUNT Scottish Cup FROM table WHERE League < 561 AND Years = 1989–1995 1997–2001 AND Europe < 11
Translate the following into a SQL query
What is the highest pick of the houston oilers NFL club, which has a round greater than 10?
SELECT MAX Pick FROM table WHERE NFL Club = houston oilers AND Round > 10
Translate the following into a SQL query
What is the round of the new york jets NFL club?
SELECT Round FROM table WHERE NFL Club = new york jets
Translate the following into a SQL query
What is the sum of the round of the new york jets NFL club, which has a pick less than 166?
SELECT SUM Round FROM table WHERE NFL Club = new york jets AND Pick < 166
Translate the following into a SQL query
WHAT IS THE 2012 PERFORMANCE FOR THE MADRID MASTERS?
SELECT 2012 FROM table WHERE Tournament = madrid masters
Translate the following into a SQL query
WHAT IS THE 2011 PERFORMANCE FOR TOURNAMENTS PLAYED?
SELECT 2011 FROM table WHERE Tournament = tournaments played
Translate the following into a SQL query
WHAT IS THE 2010 PERFORMANCE THAT HAD 2009 0F 0, AND FINALS TOURNAMENT?
SELECT 2010 FROM table WHERE 2009 = 0 AND Tournament = finals
Translate the following into a SQL query
WHAT IS THE 2009 PERFORMANCE FOR TOURNAMENTS PLAYED?
SELECT 2009 FROM table WHERE Tournament = tournaments played
Translate the following into a SQL query
Who were the scorers in round 3?
SELECT Scorers FROM table WHERE Round = round 3
Translate the following into a SQL query
What is the H/A in the semi-final round where oldham athletic were the opponents?
SELECT H / A FROM table WHERE Opponents = oldham athletic AND Round = semi-final
Translate the following into a SQL query
Who were the scorers in the semi-final round where oldham athletic were the opponents?
SELECT Scorers FROM table WHERE Opponents = oldham athletic AND Round = semi-final
Translate the following into a SQL query
Where was the tournament where the score was 1–6, 6–3, 3–6?
SELECT Tournament FROM table WHERE Score = 1–6, 6–3, 3–6
Translate the following into a SQL query
Who did thomaz bellucci play against when the score was 4–6, 6–4, 6–2?
SELECT Opponent FROM table WHERE Score = 4–6, 6–4, 6–2
Translate the following into a SQL query
What was the outcome of the tournament with Akiko Yonemura as a partner on a hard surface?
SELECT Outcome FROM table WHERE Surface = hard AND Partner = akiko yonemura
Translate the following into a SQL query
Which tournament has 1r in 2011, 1r in 2012, A in 2005, and 1r in 2010?
SELECT Tournament FROM table WHERE 2011 = 1r AND 2012 = 1r AND 2005 = a AND 2010 = 1r
Translate the following into a SQL query
What is the 2010 value with a 1r in 2012 and an A in 2005?
SELECT 2010 FROM table WHERE 2012 = 1r AND 2005 = a
Translate the following into a SQL query
What is the tournament with a 2r in 2009 and a 2r in 2010?
SELECT Tournament FROM table WHERE 2009 = 2r AND 2010 = 2r
Translate the following into a SQL query
What is the 2011 value of the 2012 grand slam tournaments?
SELECT 2011 FROM table WHERE 2012 = grand slam tournaments
Translate the following into a SQL query
What was the record after game 45?
SELECT Record FROM table WHERE Game = 45
Translate the following into a SQL query
What was the date of the game at the delta center when the record was 35-14?
SELECT Date FROM table WHERE Location/Attendance = delta center AND Record = 35-14
Translate the following into a SQL query
Who was the opponent, during the game at the location of keyarena at seattle center?
SELECT Opponent FROM table WHERE Location/Attendance = keyarena at seattle center
Translate the following into a SQL query
What is the label of release we are the rage with a cd format?
SELECT Label FROM table WHERE Format = cd AND Release = we are the rage
Translate the following into a SQL query
Who was the winning team before 1956 on October 21?
SELECT Winner FROM table WHERE Year < 1956 AND Date = october 21
Translate the following into a SQL query
Who was the loser when the New York Giants were the winners on November 14?
SELECT Loser FROM table WHERE Winner = new york giants AND Date = november 14
Translate the following into a SQL query
Who was the winner when the Philadelphia eagles were the losers after 1958 at Yankee Stadium?
SELECT Winner FROM table WHERE Loser = philadelphia eagles AND Location = yankee stadium AND Year > 1958
Translate the following into a SQL query
What location was the game with the result of 29-14?
SELECT Location FROM table WHERE Result = 29-14
Translate the following into a SQL query
What is the score of the wigan athletic home team?
SELECT Score FROM table WHERE Home team = wigan athletic
Translate the following into a SQL query
What is the away team with a 2 tie no.?
SELECT Away team FROM table WHERE Tie no = 2
Translate the following into a SQL query
What is the away team for the home team wigan athletic?
SELECT Away team FROM table WHERE Home team = wigan athletic
Translate the following into a SQL query
What is the score on 23 November 1983 with exeter city as the away team?
SELECT Score FROM table WHERE Date = 23 november 1983 AND Away team = exeter city
Translate the following into a SQL query
Who had the high assists when the record was 33–15?
SELECT High assists FROM table WHERE Record = 33–15
Translate the following into a SQL query
What date was the location attendance at&t center 18,797, and a game earlier than 57?
SELECT Date FROM table WHERE Location Attendance = at&t center 18,797 AND Game < 57
Translate the following into a SQL query
What player had the high assists when the Score was l 107–112 (ot)?
SELECT High assists FROM table WHERE Score = l 107–112 (ot)
Translate the following into a SQL query
What was the result when they played the Miami Dolphins with a crowd of 21,881?
SELECT Result FROM table WHERE Attendance > 21,881 AND Opponent = miami dolphins
Translate the following into a SQL query
Which company had a market value less than $5.59 billion, assets greater than $27.46 billion, and a rank above 39?
SELECT Name FROM table WHERE Market value (Bn.$) < 5.59 AND Rank > 39 AND Assets (Bn.$) > 27.46
Translate the following into a SQL query
How many ranks have assets of $70.74 billion and market value greater than $11.29 billion?
SELECT COUNT Rank FROM table WHERE Assets (Bn.$) = 70.74 AND Market value (Bn.$) > 11.29
Translate the following into a SQL query
What is the sum of revenue in Hong Kong with a rank greater than 42, less than $3.46 billion in assets, and greater than $0.17 billion in profits?
SELECT SUM Revenue (Bn.$) FROM table WHERE Assets (Bn.$) < 3.46 AND Headquarters = hong kong AND Profit (Bn.$) > 0.17 AND Rank > 42
Translate the following into a SQL query
What is the sum of revenue for the banking industry with a Forbes 2000 rank under 53?
SELECT SUM Revenue (Bn.$) FROM table WHERE Industry = banking AND Rank Forbes 2000 < 53
Translate the following into a SQL query
What is the highest number of gold medals when the silver is less than 0?
SELECT MAX Gold FROM table WHERE Silver < 0
Translate the following into a SQL query
What was the most Nepalis admitted when the number of Sri Lankans was more than 5,520, Bangladeshis was more than 2,715, and Pakistanis more than 139,574?
SELECT MAX Nepalis admitted FROM table WHERE Sri Lankans admitted > 5,520 AND Bangladeshis admitted > 2,715 AND Pakistanis admitted > 139,574
Translate the following into a SQL query
What were the fewest number of Sri Lankans admitted when more than 4,270 Bangladeshis and more than 4,986 Pakistanis were admitted?
SELECT MIN Sri Lankans admitted FROM table WHERE Bangladeshis admitted > 4,270 AND Pakistanis admitted > 4,986
Translate the following into a SQL query
How many Sri Lankans were admitted in 2004 when more than 594 Nepalis were admitted?
SELECT SUM Sri Lankans admitted FROM table WHERE Year = 2004 AND Nepalis admitted > 594
Translate the following into a SQL query
How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted?
SELECT AVG Bangladeshis admitted FROM table WHERE Nepalis admitted = 714 AND Pakistanis admitted > 13,575
Translate the following into a SQL query
What was the most Nepalis admitted when fewer than 1,896 Bangladeshis were admitted?
SELECT MAX Nepalis admitted FROM table WHERE Bangladeshis admitted < 1,896
Translate the following into a SQL query
What is the frequency that the magazine issues that was first published on april 27, 2010?
SELECT Frequency FROM table WHERE First published = april 27, 2010
Translate the following into a SQL query
What was the type of the magazine that was named dengeki game appli?
SELECT Magazine type FROM table WHERE Title = dengeki game appli
Translate the following into a SQL query
What is the name of the video game magazine that was issued bimonthly?
SELECT Title FROM table WHERE Magazine type = video game AND Frequency = bimonthly
Translate the following into a SQL query
What was the parent magazine for the manga magazine, dengeki moeoh that was issued bimonthly?
SELECT Parent magazine FROM table WHERE Frequency = bimonthly AND Magazine type = manga AND Title = dengeki moeoh
Translate the following into a SQL query
What was the parent magazine of the magazine that was first published on december 16, 2004?
SELECT Parent magazine FROM table WHERE First published = december 16, 2004
Translate the following into a SQL query
WHAT IS THE OVERALL AVERAGE WITH A 22 PICK, FROM RICE COLLEGE, AND ROUND BIGGER THAN 10?
SELECT AVG Overall FROM table WHERE Pick = 22 AND College = rice AND Round > 10
Translate the following into a SQL query
WHAT POSITION HAS A 23 PICK?
SELECT Position FROM table WHERE Pick = 23
Translate the following into a SQL query
WHAT IS THE AVERAGE OVERALL WITH A ROUND LARGER THAN 9, AND RB POSITION?
SELECT AVG Overall FROM table WHERE Round > 9 AND Position = rb
Translate the following into a SQL query
WHAT IS THE TOTAL NUMBER WITH A ROUND BIGGER THAN 7 AND PICK OF 21?
SELECT COUNT Overall FROM table WHERE Round > 7 AND Pick = 21
Translate the following into a SQL query
WHAT POSITION IS 273?
SELECT Position FROM table WHERE Overall = 273
Translate the following into a SQL query
What is the lowest Stls, when Rebs is greater than 8.6?
SELECT MIN Stls FROM table WHERE Rebs > 8.6
Translate the following into a SQL query
What is the sum of Blks, when Stls is 1, and when Rebs is greater than 8.6?
SELECT SUM Blks FROM table WHERE Stls = 1 AND Rebs > 8.6
Translate the following into a SQL query
Which opponent played in game 3 before October 18?
SELECT Opponent FROM table WHERE October < 18 AND Game = 3
Translate the following into a SQL query
Which game was after October 24 and had a record of 6-2-1?
SELECT Game FROM table WHERE October > 24 AND Record = 6-2-1
Translate the following into a SQL query
What was the lowest pick for the kicker after round 12?
SELECT MIN Pick FROM table WHERE Round > 12 AND Position = kicker
Translate the following into a SQL query
How many picks had less than 11 rounds and a player of Charley Casey?
SELECT SUM Pick FROM table WHERE Round < 11 AND Player = charley casey
Translate the following into a SQL query
How many rounds had a position of kicker?
SELECT SUM Round FROM table WHERE Position = kicker
Translate the following into a SQL query
Which position had a pick larger than 80 and Walt Mainer as a player?
SELECT Position FROM table WHERE Pick > 80 AND Player = walt mainer
Translate the following into a SQL query
What is the score of the match with deportes savio as the away team?
SELECT Score FROM table WHERE Away = deportes savio
Translate the following into a SQL query
What is the total attendance of the match with a 1:2 score?
SELECT COUNT Attendance FROM table WHERE Score = 1:2
Translate the following into a SQL query
What is the home team of the match on 21 September 2008 with an attendance less than 2248 and a 2:0 score?
SELECT Home FROM table WHERE Attendance < 2248 AND Score = 2:0 AND Date = 21 september 2008
Translate the following into a SQL query
What is the highest attendance of the match with a 2:0 score and vida as the away team?
SELECT MAX Attendance FROM table WHERE Score = 2:0 AND Away = vida
Translate the following into a SQL query
What is the score of the home team olimpia?
SELECT Score FROM table WHERE Home = olimpia
Translate the following into a SQL query
What is the score of the match with an attendance of 2248?
SELECT Score FROM table WHERE Attendance = 2248
Translate the following into a SQL query
Which Seats up for election have an Election result larger than 8, and Staying councillors of 24?
SELECT MAX Seats up for election FROM table WHERE Election result > 8 AND Staying councillors = 24
Translate the following into a SQL query
Which New council has an Election result larger than 24?
SELECT AVG New council FROM table WHERE Election result > 24
Translate the following into a SQL query
Which Staying councillors have a New council of 7, and a Previous council larger than 8?
SELECT AVG Staying councillors FROM table WHERE New council = 7 AND Previous council > 8
Translate the following into a SQL query
What was the record when they played in the Miami Arena, before game 24?
SELECT Record FROM table WHERE Game < 24 AND Location = miami arena
Translate the following into a SQL query
Who was the opponent when they played after Game 26 and their record was 23-4?
SELECT Opponent FROM table WHERE Game > 26 AND Record = 23-4
Translate the following into a SQL query
On what date did they play in Boston Garden with a record of 22-4?
SELECT Date FROM table WHERE Location = boston garden AND Record = 22-4
Translate the following into a SQL query
What was their record on Wed. Dec. 5, when they played in Boston Garden?
SELECT Record FROM table WHERE Location = boston garden AND Date = wed. dec. 5
Translate the following into a SQL query
What place in Lon Hinkle in?
SELECT Place FROM table WHERE Player = lon hinkle
Translate the following into a SQL query
What country does Mark Hayes play for?
SELECT Country FROM table WHERE Player = mark hayes
Translate the following into a SQL query
What is the sum of To Par, when Country is "United States", and when Year(s) Won is "1973"?
SELECT SUM To par FROM table WHERE Country = united states AND Year(s) won = 1973
Translate the following into a SQL query
What is Player, when Total is greater than 288, and when Country is "South Africa"?
SELECT Player FROM table WHERE Total > 288 AND Country = south africa
Translate the following into a SQL query
What is Year(s) Won, when To Par is greater than 13?
SELECT Year(s) won FROM table WHERE To par > 13
Translate the following into a SQL query
What residence has representative Quincy Murphy?
SELECT Residence FROM table WHERE Representative = quincy murphy
Translate the following into a SQL query
Who is the home captain when the venue is adelaide oval?
SELECT Home captain FROM table WHERE Venue = adelaide oval
Translate the following into a SQL query
What was the score in the September 20 game?
SELECT Score FROM table WHERE Date = september 20
Translate the following into a SQL query
Where was the September 22 game played?
SELECT Location FROM table WHERE Date = september 22
Translate the following into a SQL query
What was the score in the September 26 game?
SELECT Score FROM table WHERE Date = september 26
Translate the following into a SQL query
Who was the opposing team in the game(s) that started at 7:30pm?
SELECT Opponent FROM table WHERE Time = 7:30pm
Translate the following into a SQL query
What was the score of the 7:00pm game at Scotiabank Place against the Philadelphia Flyers?
SELECT Score FROM table WHERE Time = 7:00pm AND Location = scotiabank place AND Opponent = philadelphia flyers
Translate the following into a SQL query
What is the attendance of the match on October 26?
SELECT Attendance FROM table WHERE Date = october 26
Translate the following into a SQL query
What is the opponent number of the match with a w27-16 result?
SELECT Opponent# FROM table WHERE Result = w27-16
Translate the following into a SQL query
What is the result of the match with an attendance of 73,855?
SELECT Result FROM table WHERE Attendance = 73,855
Translate the following into a SQL query
What is the rank of the match on October 19?
SELECT Rank # FROM table WHERE Date = october 19
Translate the following into a SQL query
Who was the scorer when the opponent was aberdeen?
SELECT Scorers FROM table WHERE Opponent = aberdeen
Translate the following into a SQL query
When was the scorer mccoist (3), johnston, butcher, steven?
SELECT Date FROM table WHERE Scorers = mccoist (3), johnston, butcher, steven