instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
When the opposing team was CSB UPHDS what was the total?
SELECT Total FROM table WHERE Opponent = csb uphds
Translate the following into a SQL query
Who had the statistic of most assists?
SELECT Name FROM table WHERE Statistic = most assists
Translate the following into a SQL query
What is Swimmer, when Year is less than 2011, and when Time is "53.06"?
SELECT Swimmer FROM table WHERE Year < 2011 AND Time = 53.06
Translate the following into a SQL query
What is School, when Event is "100 Backstroke"?
SELECT School FROM table WHERE Event = 100 backstroke
Translate the following into a SQL query
What is School, when Year is less than 2013, and when Event is "100 Breaststroke"?
SELECT School FROM table WHERE Year < 2013 AND Event = 100 breaststroke
Translate the following into a SQL query
What is Time, when Year is greater than 2011, and when Event is "800 Freestyle Relay"?
SELECT Time FROM table WHERE Year > 2011 AND Event = 800 freestyle relay
Translate the following into a SQL query
What is Year, when Time is "1:47.55"?
SELECT Year FROM table WHERE Time = 1:47.55
Translate the following into a SQL query
What is the Surface of the match against Yaroslava Shvedova?
SELECT Surface FROM table WHERE Opponent in the final = yaroslava shvedova
Translate the following into a SQL query
What is the Surface of the match with a Score in the final of 5–7, 6–7 (2–7)?
SELECT Surface FROM table WHERE Score in the final = 5–7, 6–7 (2–7)
Translate the following into a SQL query
Who is the Opponent in the final of the match played on Clay Surface with a Score in the final of 4–6, 3–6?
SELECT Opponent in the final FROM table WHERE Surface = clay AND Score in the final = 4–6, 3–6
Translate the following into a SQL query
On what Date is the match played on Clay Surface with a Score in the final of 6–2, 7–5?
SELECT Date FROM table WHERE Surface = clay AND Score in the final = 6–2, 7–5
Translate the following into a SQL query
WHAT IS THE NHL TEAM OF FINLAND?
SELECT NHL team FROM table WHERE Nationality = finland
Translate the following into a SQL query
What's the to Iran with fewer than 9 survivors, more than 3 damaged, and an ussr an-26 aircraft?
SELECT AVG to Iran FROM table WHERE survived < 9 AND Aircraft = ussr an-26 AND damaged > 3
Translate the following into a SQL query
What's the average destroyed with a 1990 over 12, more than 1 damaged, 6 survivors, and a to Iran less than 4?
SELECT AVG destroyed FROM table WHERE 1990 > 12 AND damaged > 1 AND to Iran < 4 AND survived = 6
Translate the following into a SQL query
What's the average survived with a to Iran less than 1, more than 1 destroyed, and a brazil tucano aircraft?
SELECT AVG survived FROM table WHERE to Iran < 1 AND Aircraft = brazil tucano AND destroyed > 1
Translate the following into a SQL query
What home team played when there was an attendance of 568?
SELECT Home team FROM table WHERE Attendance = 568
Translate the following into a SQL query
What away team did Horsham play?
SELECT Away team FROM table WHERE Home team = horsham
Translate the following into a SQL query
What home team played Hinckley United?
SELECT Home team FROM table WHERE Away team = hinckley united
Translate the following into a SQL query
How many points have an Engine of ferrari tipo 033 v6 tc, and a Year larger than 1987?
SELECT SUM Pts. FROM table WHERE Engine = ferrari tipo 033 v6 tc AND Year > 1987
Translate the following into a SQL query
Which Team/Chassis has a Year larger than 1987?
SELECT Team/Chassis FROM table WHERE Year > 1987
Translate the following into a SQL query
How many points have an Engine of ferrari tipo 033 v6 tc, and a Year smaller than 1987?
SELECT MAX Pts. FROM table WHERE Engine = ferrari tipo 033 v6 tc AND Year < 1987
Translate the following into a SQL query
Which Team/Chassis has less than 65 points?
SELECT Team/Chassis FROM table WHERE Pts. < 65
Translate the following into a SQL query
What is the score if the Tie no is 32?
SELECT Score FROM table WHERE Tie no = 32
Translate the following into a SQL query
What is the Tie no for Scunthorpe United?
SELECT Tie no FROM table WHERE Home team = scunthorpe united
Translate the following into a SQL query
Which home team played against Stoke City?
SELECT Home team FROM table WHERE Away team = stoke city
Translate the following into a SQL query
Which away team has a Tie no of 14?
SELECT Away team FROM table WHERE Tie no = 14
Translate the following into a SQL query
On what date does Watford have a Tie no of 2?
SELECT Date FROM table WHERE Home team = watford AND Tie no = 2
Translate the following into a SQL query
Which L1 Cache has an FSB speed of 800mhz and a clock speed of 1.2ghz?
SELECT L1 Cache FROM table WHERE FSB Speed = 800mhz AND Clock Speed = 1.2ghz
Translate the following into a SQL query
What is the score of Player Tom Kite?
SELECT Score FROM table WHERE Player = tom kite
Translate the following into a SQL query
What is the To Par that has a 69-69-73=211 score?
SELECT To par FROM table WHERE Score = 69-69-73=211
Translate the following into a SQL query
What is the Top that has a 66-71-66=203 score and a place of t1?
SELECT To par FROM table WHERE Place = t1 AND Score = 66-71-66=203
Translate the following into a SQL query
What player has a To Par of +1 with a score of 71-67-73=211?
SELECT Player FROM table WHERE To par = +1 AND Score = 71-67-73=211
Translate the following into a SQL query
Which Player has a Score of 72-68-78-71=289?
SELECT Player FROM table WHERE Score = 72-68-78-71=289
Translate the following into a SQL query
What is the Place for the 66 Score?
SELECT Place FROM table WHERE Score = 66
Translate the following into a SQL query
What Country has a 67 score by Phil Mickelson?
SELECT Country FROM table WHERE Score = 67 AND Player = phil mickelson
Translate the following into a SQL query
When Cathi O'Malley was featured in Week 3, who was the cyber girl for Week 5?
SELECT Week 5 FROM table WHERE Week 3 = cathi o'malley
Translate the following into a SQL query
When Star Zemba was featured in Week 3, who was the cyber girl for Week 2?
SELECT Week 2 FROM table WHERE Week 3 = star zemba
Translate the following into a SQL query
When Heather Christensen was featured in Week 2, who was the cyber girl for Week 3?
SELECT Week 3 FROM table WHERE Week 2 = heather christensen
Translate the following into a SQL query
When Audra Lynn was featured in Week 2, who was the cyber girl for Week 5?
SELECT Week 5 FROM table WHERE Week 2 = audra lynn
Translate the following into a SQL query
What is Agg., when Team 1 is "Tirana"?
SELECT Agg. FROM table WHERE Team 1 = tirana
Translate the following into a SQL query
What is 2nd Leg, when Team 2 is "Dunaferr"?
SELECT 2nd leg FROM table WHERE Team 2 = dunaferr
Translate the following into a SQL query
What is the elimination number for the time 13:43?
SELECT Elimination FROM table WHERE Time = 13:43
Translate the following into a SQL query
What Elimination number is listed againt Eliminated by Sonjay Dutt?
SELECT Elimination FROM table WHERE Eliminated by = sonjay dutt
Translate the following into a SQL query
What Elimination number is listed againt Eliminated by Sonjay Dutt?
SELECT Elimination FROM table WHERE Eliminated by = sonjay dutt
Translate the following into a SQL query
What time is listed against the Wrestler Jimmy Rave?
SELECT Time FROM table WHERE Wrestler = jimmy rave
Translate the following into a SQL query
Which Wrestler has an Elimination of 5?
SELECT Wrestler FROM table WHERE Elimination = 5
Translate the following into a SQL query
What time is listed against Elimination number 2?
SELECT Time FROM table WHERE Elimination = 2
Translate the following into a SQL query
What score has 2 as the place?
SELECT Score FROM table WHERE Place = 2
Translate the following into a SQL query
What is the average money (£) that has +8 as the to par, with 73-72-72-71=288 as the score?
SELECT AVG Money ( £ ) FROM table WHERE To par = +8 AND Score = 73-72-72-71=288
Translate the following into a SQL query
What place has money (£) greater than 17,333 with +8 as the to par, and seve ballesteros as the player?
SELECT Place FROM table WHERE Money ( £ ) > 17,333 AND To par = +8 AND Player = seve ballesteros
Translate the following into a SQL query
What country has t6 as the place, with seve ballesteros as the player?
SELECT Country FROM table WHERE Place = t6 AND Player = seve ballesteros
Translate the following into a SQL query
What year weas John McEnroe the champion?
SELECT AVG Year FROM table WHERE Champion = john mcenroe
Translate the following into a SQL query
Who was the runner-up, when the champion was Björn Borg after 1978?
SELECT Runner-up FROM table WHERE Champion = björn borg AND Year > 1978
Translate the following into a SQL query
Who was the champion earlier than 1978 when the runner-up was Jimmy Connors?
SELECT Champion FROM table WHERE Runner-up = jimmy connors AND Year < 1978
Translate the following into a SQL query
Which municipality has the code 2401?
SELECT Municipality FROM table WHERE Code = 2401
Translate the following into a SQL query
What is the population of Danderyd municipality in Stockholm County with a code lower than 162?
SELECT COUNT Population FROM table WHERE County = stockholm county AND Municipality = danderyd municipality AND Code < 162
Translate the following into a SQL query
What is the total area for a code less than 1862 and a density (per km 2 land) of 21.6?
SELECT Total area FROM table WHERE Code < 1862 AND Density (per km 2 land) = 21.6
Translate the following into a SQL query
what total was the lowest and had a to par of e?
SELECT MIN Total FROM table WHERE To par = e
Translate the following into a SQL query
Which player played in the united states and scored a total of 144 points?
SELECT Player FROM table WHERE Country = united states AND Total = 144
Translate the following into a SQL query
What is Trailing Party % Votes, when Party Won is "Bharatiya Janta Party", and when Trailing Party is "Indian National Congress"?
SELECT Trailing Party % votes FROM table WHERE Party Won = bharatiya janta party AND Trailing Party = indian national congress
Translate the following into a SQL query
What is the total number of Year(s), when Trailing Party is "Indian National Congress", and when Trailing Party % Votes is "27.42%"?
SELECT COUNT Year FROM table WHERE Trailing Party = indian national congress AND Trailing Party % votes = 27.42%
Translate the following into a SQL query
What is Members of Parliament, when Trailing Party is "Bharatiya Lok Dal"?
SELECT Members of Parliament FROM table WHERE Trailing Party = bharatiya lok dal
Translate the following into a SQL query
What is Trailing Party, when Party Won is "Janata Dal", and when Year is "1996"?
SELECT Trailing Party FROM table WHERE Party Won = janata dal AND Year = 1996
Translate the following into a SQL query
What is the lowest Year, when Lok Sabha is "4th Lok Sabha"?
SELECT MIN Year FROM table WHERE Lok Sabha = 4th lok sabha
Translate the following into a SQL query
What is Members of Parliament, when Winner's % Votes is "50.54%"?
SELECT Members of Parliament FROM table WHERE Winner's % votes = 50.54%
Translate the following into a SQL query
Who scored a 68?
SELECT Player FROM table WHERE Score = 68
Translate the following into a SQL query
How many Grid has a Rider of ryuichi kiyonari?
SELECT SUM Grid FROM table WHERE Rider = ryuichi kiyonari
Translate the following into a SQL query
Name the lowest Grid which has a Bike of ducati 1098 rs 08 and a Rider of max biaggi?
SELECT MIN Grid FROM table WHERE Bike = ducati 1098 rs 08 AND Rider = max biaggi
Translate the following into a SQL query
Name the Rider which has a Time of +59.304?
SELECT Rider FROM table WHERE Time = +59.304
Translate the following into a SQL query
Name the Rider which has Laps smaller than 11 and a Bike of kawasaki zx-10r, and a Grid of 8?
SELECT Rider FROM table WHERE Laps < 11 AND Bike = kawasaki zx-10r AND Grid = 8
Translate the following into a SQL query
What is the total for player karrie webb?
SELECT COUNT Total FROM table WHERE Player = karrie webb
Translate the following into a SQL query
What years did the player with a total larger than 157 have wins?
SELECT Year(s) won FROM table WHERE Total > 157
Translate the following into a SQL query
What is the sum of the to par of player meg mallon, who had a total greater than 157?
SELECT SUM To par FROM table WHERE Player = meg mallon AND Total > 157
Translate the following into a SQL query
What is the highest total of the player with a 7 to par?
SELECT MAX Total FROM table WHERE To par = 7
Translate the following into a SQL query
How many assists did Steve Walker have?
SELECT Assists FROM table WHERE Player = steve walker
Translate the following into a SQL query
How many goals did the player score who had 33 assists in 85 games?
SELECT Goals FROM table WHERE Assists = 33 AND Games = 85
Translate the following into a SQL query
How many points did Denis Pederson have?
SELECT Points FROM table WHERE Player = denis pederson
Translate the following into a SQL query
Which Xenon has a Helium of 5.1?
SELECT Xenon FROM table WHERE Helium = 5.1
Translate the following into a SQL query
Which Neon has a Argon of −189.6?
SELECT Neon FROM table WHERE Argon = −189.6
Translate the following into a SQL query
Which Physical property has a Helium of 0.0693?
SELECT Physical property FROM table WHERE Helium = 0.0693
Translate the following into a SQL query
Name the Argon which has a Neon of 0.484?
SELECT Argon FROM table WHERE Neon = 0.484
Translate the following into a SQL query
Which Krypton has a Physical property of critical pressure (atm)?
SELECT Krypton FROM table WHERE Physical property = critical pressure (atm)
Translate the following into a SQL query
which Helium has a Argon of −189.6?
SELECT Helium FROM table WHERE Argon = −189.6
Translate the following into a SQL query
What is Venue, when Opposing Teams is "South Africa", and when Date is "17/06/2000"?
SELECT Venue FROM table WHERE Opposing Teams = south africa AND Date = 17/06/2000
Translate the following into a SQL query
What is the sum of Against, when Opposing Teams is "South Africa", and when Status is "First Test"?
SELECT SUM Against FROM table WHERE Opposing Teams = south africa AND Status = first test
Translate the following into a SQL query
What is Opposing Teams, when Status is "Test Match", and when Date is "25/11/2000"?
SELECT Opposing Teams FROM table WHERE Status = test match AND Date = 25/11/2000
Translate the following into a SQL query
What is Against, when Venue is "Twickenham , London", and when Date is "04/03/2000"?
SELECT Against FROM table WHERE Venue = twickenham , london AND Date = 04/03/2000
Translate the following into a SQL query
What is the Statue, when Venue is "Stadio Flaminio , Rome"?
SELECT Status FROM table WHERE Venue = stadio flaminio , rome
Translate the following into a SQL query
What is the H/A of the game on 24 january 2009?
SELECT H / A FROM table WHERE Date = 24 january 2009
Translate the following into a SQL query
What year was the rank final of 6?
SELECT Year FROM table WHERE Rank-Final = 6
Translate the following into a SQL query
What was the rank final before 2007?
SELECT Rank-Final FROM table WHERE Year < 2007
Translate the following into a SQL query
What is District, when Incumbent is "Richard Neal"?
SELECT District FROM table WHERE Incumbent = richard neal
Translate the following into a SQL query
What is the lowest First Elected, when District is "Massachusetts 10"?
SELECT MIN First elected FROM table WHERE District = massachusetts 10
Translate the following into a SQL query
What is the average First Elected, when District is "Massachusetts 3"?
SELECT AVG First elected FROM table WHERE District = massachusetts 3
Translate the following into a SQL query
What team lost with 30 tries against?
SELECT Lost FROM table WHERE Tries against = 30
Translate the following into a SQL query
Who lost with 142 points for?
SELECT Lost FROM table WHERE Points for = 142
Translate the following into a SQL query
How many tries against for the team with 67 tries for?
SELECT Tries against FROM table WHERE Tries for = 67
Translate the following into a SQL query
Which club has 101 tries for?
SELECT Club FROM table WHERE Tries for = 101
Translate the following into a SQL query
What is the try bonus for the team with 67 tries for?
SELECT Try bonus FROM table WHERE Tries for = 67
Translate the following into a SQL query
What is the team that lost with 77 tries against?
SELECT Lost FROM table WHERE Tries against = 77