instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Who was the opponent at the away game with a score of 5-4?
SELECT Opponents FROM table WHERE Venue = away AND Score = 5-4
Translate the following into a SQL query
Who was the opponent at the League Cup competition with a score of 3-1?
SELECT Opponents FROM table WHERE Competition = league cup AND Score = 3-1
Translate the following into a SQL query
Name the team classification for stage of 20
SELECT Team classification FROM table WHERE Stage = 20
Translate the following into a SQL query
Name the winner with mountains classification of franco pellizotti and combativity award of martijn maaskant
SELECT Winner FROM table WHERE Mountains classification = franco pellizotti AND Combativity award = martijn maaskant
Translate the following into a SQL query
Name the general classification with roman kreuziger and points classification of fabian cancellara
SELECT General classification FROM table WHERE Young rider classification = roman kreuziger AND Points classification = fabian cancellara
Translate the following into a SQL query
Name the combativity award with winner of luis león sánchez
SELECT Combativity award FROM table WHERE Winner = luis león sánchez
Translate the following into a SQL query
What is the sum of numbers listed in 18-49 for the episode that aired on June 25, 2009 with an order larger than 29?
SELECT SUM 18-49 FROM table WHERE Air Date = june 25, 2009 AND Order > 29
Translate the following into a SQL query
What is the total 18-49 for the episode that aired on July 2, 2009 with more than 3.5 viewers?
SELECT COUNT 18-49 FROM table WHERE Air Date = july 2, 2009 AND Viewers > 3.5
Translate the following into a SQL query
What was the timeslot in the US for the episode, "the farm"?
SELECT U.S. Timeslot (EST) FROM table WHERE Episode = "the farm"
Translate the following into a SQL query
What is the average 18-49 for the episode that had an order number higher than 35 and less than 3.5 viewers?
SELECT AVG 18-49 FROM table WHERE Viewers < 3.5 AND Order > 35
Translate the following into a SQL query
What is the episode name that aired on July 23, 2009 with more than 3.31 viewers?
SELECT Episode FROM table WHERE Air Date = july 23, 2009 AND Viewers > 3.31
Translate the following into a SQL query
What year sold 1,695,900+ copies with an Oricon position larger than 1?
SELECT AVG Year FROM table WHERE Copies sold = 1,695,900+ AND Oricon position > 1
Translate the following into a SQL query
How many copies were sold where the position is lager than 1 in 1988?
SELECT Copies sold FROM table WHERE Oricon position > 1 AND Year = 1988
Translate the following into a SQL query
How many copies were sold when the 1st week sales were 4,590+?
SELECT Copies sold FROM table WHERE 1st week sales = 4,590+
Translate the following into a SQL query
What was the Winning Score on May 29, 1977?
SELECT Winning score FROM table WHERE Date = may 29, 1977
Translate the following into a SQL query
On what Date was Patty Sheehan Runner(s)-up?
SELECT Date FROM table WHERE Runner(s)-up = patty sheehan
Translate the following into a SQL query
On what Date was Judy Rankin Runner(s)-up?
SELECT Date FROM table WHERE Runner(s)-up = judy rankin
Translate the following into a SQL query
On what Date was the Winning score –8 (69-72-70-69=280)?
SELECT Date FROM table WHERE Winning score = –8 (69-72-70-69=280)
Translate the following into a SQL query
On what Date was Carole Charbonnier a Runner(s)-up with a 1 stroke Margin of victory?
SELECT Date FROM table WHERE Margin of victory = 1 stroke AND Runner(s)-up = carole charbonnier
Translate the following into a SQL query
What Tournament has a Winning score of +3 (71-72-70=213)?
SELECT Tournament FROM table WHERE Winning score = +3 (71-72-70=213)
Translate the following into a SQL query
What date did the team play home in Toronto?
SELECT Date FROM table WHERE Home = toronto
Translate the following into a SQL query
How many people attended the game when Larry Hughes(33) was the leading scorer and cleveland was visiting?
SELECT SUM Attendance FROM table WHERE Visitor = cleveland AND Leading scorer = larry hughes(33)
Translate the following into a SQL query
When did they play Utah at home?
SELECT Date FROM table WHERE Home = utah
Translate the following into a SQL query
What opponent has balboa stadium as the opponent?
SELECT Opponent FROM table WHERE Stadium = balboa stadium
Translate the following into a SQL query
What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9?
SELECT MAX Attendance FROM table WHERE Opponent = oakland raiders AND Week > 9
Translate the following into a SQL query
Where is the headquarter of the conglomerate industry?
SELECT Headquarters FROM table WHERE Primary industry = conglomerate
Translate the following into a SQL query
What date was the game played at the venue of Hrazdan Stadium, Yerevan, Armenia?
SELECT Date FROM table WHERE Venue = hrazdan stadium, yerevan, armenia
Translate the following into a SQL query
Who was the bronze medal when the Asian Games were held in Busan?
SELECT Bronze FROM table WHERE Location = busan
Translate the following into a SQL query
Who won the gold when Kim Hyang-Mi won the bronze?
SELECT Gold FROM table WHERE Bronze = kim hyang-mi
Translate the following into a SQL query
What was the earliest year that Park Jung-Ah won the gold?
SELECT MIN Year FROM table WHERE Gold = park jung-ah
Translate the following into a SQL query
Who won the bronze when the Asian Games were in Doha?
SELECT Bronze FROM table WHERE Location = doha
Translate the following into a SQL query
What was the Attendance on November 29, 1953?
SELECT SUM Attendance FROM table WHERE Date = november 29, 1953
Translate the following into a SQL query
After Week 5, what was the Result of the game with Attendance greater than 22,057?
SELECT Result FROM table WHERE Attendance > 22,057 AND Week > 5
Translate the following into a SQL query
Which NFL team picked Patrick Collins?
SELECT NFL Team FROM table WHERE Player = patrick collins
Translate the following into a SQL query
Which NFL team picked a player for the Wide Receiver position?
SELECT NFL Team FROM table WHERE Position = wide receiver
Translate the following into a SQL query
What result has a year after 2002?
SELECT Result FROM table WHERE Year > 2002
Translate the following into a SQL query
What tournament has a year prior to 2001?
SELECT Tournament FROM table WHERE Year < 2001
Translate the following into a SQL query
On what date does visiting team Minnesota score higher than 47 points?
SELECT Date FROM table WHERE Points > 47 AND Visitor = minnesota
Translate the following into a SQL query
What date does visitor team Toronto score less than 49 points and has record of 18-17-7?
SELECT Date FROM table WHERE Visitor = toronto AND Points < 49 AND Record = 18-17-7
Translate the following into a SQL query
What is the fleet number for the model of Gillig Phantom 3096TB?
SELECT Fleet Number FROM table WHERE Model = gillig phantom 3096tb
Translate the following into a SQL query
What is the width for the year of the 1970?
SELECT Width FROM table WHERE Year = 1970
Translate the following into a SQL query
Which year has a fleet number of 603?
SELECT Year FROM table WHERE Fleet Number = 603
Translate the following into a SQL query
What is the length of fleet number 501-506?
SELECT Length FROM table WHERE Fleet Number = 501-506
Translate the following into a SQL query
What is fleet number for the year of 19xx?
SELECT Fleet Number FROM table WHERE Year = 19xx
Translate the following into a SQL query
What is the fleet number of Model Orion 01.507?
SELECT Fleet Number FROM table WHERE Model = orion 01.507
Translate the following into a SQL query
What is the highest round of Ed Smith, who had a pick higher than 261 and played halfback?
SELECT MAX Round FROM table WHERE Pick < 261 AND Position = halfback AND Player = ed smith
Translate the following into a SQL query
What is the lowest round of Ed Smith, who had a pick lower than 19?
SELECT MIN Round FROM table WHERE Player = ed smith AND Pick > 19
Translate the following into a SQL query
Which player had a round of 27?
SELECT Player FROM table WHERE Round = 27
Translate the following into a SQL query
What is the position of the player with a round less than 20 from the school/club Washington?
SELECT Position FROM table WHERE Round < 20 AND School/Club Team = washington
Translate the following into a SQL query
Location of hemisfair arena had what record?
SELECT Record FROM table WHERE Location = hemisfair arena
Translate the following into a SQL query
Record of 20–4 involved what highest game?
SELECT MAX Game FROM table WHERE Record = 20–4
Translate the following into a SQL query
Opponent of @ phoenix suns had what sum of game?
SELECT SUM Game FROM table WHERE Opponent = @ phoenix suns
Translate the following into a SQL query
Score of 122–105 had what record?
SELECT Record FROM table WHERE Score = 122–105
Translate the following into a SQL query
In the final, who are the opponents of partner Simon Aspelin?
SELECT Opponents in the final FROM table WHERE Partner = simon aspelin
Translate the following into a SQL query
For the tournament played on 26 February 2006, what surface was used?
SELECT Surface FROM table WHERE Date = 26 february 2006
Translate the following into a SQL query
Which Date has a Record of 58–10?
SELECT Date FROM table WHERE Record = 58–10
Translate the following into a SQL query
Which Date has a Score of 106–112?
SELECT Date FROM table WHERE Score = 106–112
Translate the following into a SQL query
Who was second when Martynas Norkus was the skip?
SELECT Second FROM table WHERE Skip = martynas norkus
Translate the following into a SQL query
Who was the second when Ilian Kirilov was the lead?
SELECT Second FROM table WHERE Lead = ilian kirilov
Translate the following into a SQL query
Who was the lead when Jamie Meikle was the skip?
SELECT Lead FROM table WHERE Skip = jamie meikle
Translate the following into a SQL query
Who was the lead when Ritvars Gulbis was the skip?
SELECT Lead FROM table WHERE Skip = ritvars gulbis
Translate the following into a SQL query
Who came in third in England?
SELECT Third FROM table WHERE Nation = england
Translate the following into a SQL query
In what nation did Darko Sovran place third?
SELECT Nation FROM table WHERE Third = darko sovran
Translate the following into a SQL query
What is the tournament with a w/o score on November 5, 2007?
SELECT Tournament FROM table WHERE Score = w/o AND Date = november 5, 2007
Translate the following into a SQL query
What is the surface of eckental tournament with a w/o score?
SELECT Surface FROM table WHERE Tournament = eckental AND Score = w/o
Translate the following into a SQL query
What is the tournament with a hard surface and Ruben de Kleijn as the opponent?
SELECT Tournament FROM table WHERE Surface = hard AND Opponent = ruben de kleijn
Translate the following into a SQL query
What is the score of the tournament on November 5, 2007 with a carpet surface?
SELECT Score FROM table WHERE Surface = carpet AND Date = november 5, 2007
Translate the following into a SQL query
What is the surface of the tournament with Sascha Kloer as the opponent?
SELECT Surface FROM table WHERE Opponent = sascha kloer
Translate the following into a SQL query
what team scored in gomel
SELECT Team FROM table WHERE Location = gomel
Translate the following into a SQL query
What is the average conceded number of the team with a position lower than 8 and more than 2 wins?
SELECT AVG Conceded FROM table WHERE Position > 8 AND Wins > 2
Translate the following into a SQL query
What is the averaged scored number of team guaraní, which has less than 6 draws and less than 5 losses?
SELECT AVG Scored FROM table WHERE Draws < 6 AND Team = guaraní AND Losses < 5
Translate the following into a SQL query
What is the total number scored of the team positioned lower than 10?
SELECT COUNT Scored FROM table WHERE Position > 10
Translate the following into a SQL query
What is the lowest number of wins of the team with less than 24 scored, 27 conceded, and more than 18 played?
SELECT MIN Wins FROM table WHERE Scored < 24 AND Conceded = 27 AND Played > 18
Translate the following into a SQL query
What is the lowest number of points of the team with 2 losses and a lower than 1 position?
SELECT MIN Points FROM table WHERE Losses = 2 AND Position > 1
Translate the following into a SQL query
What is the Intercontinental Cup 1993 result for a Supercopa Sudamericana 1993 result of round of 16?
SELECT Intercontinental Cup 1993 FROM table WHERE Supercopa Sudamericana 1993 = round of 16
Translate the following into a SQL query
Who received the Loss during the game with an Attendance larger than 50,589 and a Record of 71–57?
SELECT Loss FROM table WHERE Attendance > 50,589 AND Record = 71–57
Translate the following into a SQL query
What is the earliest game in November with more than 22 Games and Toronto Maple Leafs as the Opponent?
SELECT MIN November FROM table WHERE Game > 22 AND Opponent = toronto maple leafs
Translate the following into a SQL query
What is the family friendly status of the punk genre song from the 1970s?
SELECT Family Friendly FROM table WHERE Decade = 1970s AND Genre = punk
Translate the following into a SQL query
Who is the artist of the rock song?
SELECT Artist FROM table WHERE Genre = rock
Translate the following into a SQL query
What is the highest number of bronze medals for nations with under 0 golds?
SELECT MAX Bronze FROM table WHERE Gold < 0
Translate the following into a SQL query
How many points did Stuart have when he had 0 extra points?
SELECT MIN Points FROM table WHERE Player = stuart AND Extra points < 0
Translate the following into a SQL query
Who had the lowest field goals but had 10 points and more than 2 touchdowns?
SELECT MIN Field goals FROM table WHERE Points = 10 AND Touchdowns > 2
Translate the following into a SQL query
How many points did Stuart have when he had less than 1 touchdown?
SELECT SUM Points FROM table WHERE Player = stuart AND Touchdowns < 1
Translate the following into a SQL query
Who had a points average with 0 extra points and 0 field goals?
SELECT AVG Points FROM table WHERE Extra points = 0 AND Field goals > 0
Translate the following into a SQL query
What was the result in the Golden Reel Awards?
SELECT Result FROM table WHERE Event = golden reel awards
Translate the following into a SQL query
Record of 16–29 is how many attendance?
SELECT Attendance FROM table WHERE Record = 16–29
Translate the following into a SQL query
Loss of peavy (4–3) is what score?
SELECT Score FROM table WHERE Loss = peavy (4–3)
Translate the following into a SQL query
Score of 3–2, and a Opponent of reds had what sum of attendance?
SELECT SUM Attendance FROM table WHERE Score = 3–2 AND Opponent = reds
Translate the following into a SQL query
Score of 6–4, and a Opponent of @ marlins had what record?
SELECT Record FROM table WHERE Score = 6–4 AND Opponent = @ marlins
Translate the following into a SQL query
Which Cuts made has a Tournament of totals, and Wins smaller than 11?
SELECT AVG Cuts made FROM table WHERE Tournament = totals AND Wins < 11
Translate the following into a SQL query
Which Top-25 has a Top-5 smaller than 0?
SELECT SUM Top-25 FROM table WHERE Top-5 < 0
Translate the following into a SQL query
Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?
SELECT SUM Top-25 FROM table WHERE Top-5 > 9 AND Wins < 11
Translate the following into a SQL query
Which Top-5 is the highest one that has Wins of 0, and Events larger than 6?
SELECT MAX Top-5 FROM table WHERE Wins = 0 AND Events > 6
Translate the following into a SQL query
Which Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10?
SELECT MIN Top-5 FROM table WHERE Cuts made = 10 AND Events > 10
Translate the following into a SQL query
Which Events is the highest one that has a Top-10 larger than 7, and Wins smaller than 2?
SELECT MAX Events FROM table WHERE Top-10 > 7 AND Wins < 2
Translate the following into a SQL query
When the surface is clay, and the tournament of barcelona what is the score?
SELECT Score FROM table WHERE Surface = clay AND Tournament = barcelona
Translate the following into a SQL query
What was the surface when the opponent was judith wiesner, and the outcome was winner?
SELECT Surface FROM table WHERE Outcome = winner AND Opponent = judith wiesner
Translate the following into a SQL query
What is the opponent for the tournament of rio de janeiro?
SELECT Opponent FROM table WHERE Tournament = rio de janeiro
Translate the following into a SQL query
What is the opponent with the outcome of runner-up with a date of 19 september 1994?
SELECT Opponent FROM table WHERE Outcome = runner-up AND Date = 19 september 1994
Translate the following into a SQL query
What was the opponent for the tournament of taranto?
SELECT Opponent FROM table WHERE Tournament = taranto