instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What team was the away team when the home team was Hereford United?
SELECT Away team FROM table WHERE Home team = hereford united
Translate the following into a SQL query
What team was the away team when the tie no is 40?
SELECT Away team FROM table WHERE Tie no = 40
Translate the following into a SQL query
What was the 1st leg score for the team with an Agg score of 151-134?
SELECT 1st leg FROM table WHERE Agg. = 151-134
Translate the following into a SQL query
What was the team Unics Kazan's 1st leg score?
SELECT 1st leg FROM table WHERE Team #1 = unics kazan
Translate the following into a SQL query
Who was the first team when the second team was Kalise Gran Canaria?
SELECT Team #1 FROM table WHERE Team #2 = kalise gran canaria
Translate the following into a SQL query
Which second team had a first leg score of 83-69?
SELECT Team #2 FROM table WHERE 1st leg = 83-69
Translate the following into a SQL query
Which Team #1 had a 2nd leg score of 88-83?
SELECT Team #1 FROM table WHERE 2nd leg = 88-83
Translate the following into a SQL query
What was the score of game 30?
SELECT Score FROM table WHERE Game = 30
Translate the following into a SQL query
Who was the high scorer in the Toronto game?
SELECT High points FROM table WHERE Team = toronto
Translate the following into a SQL query
What is the highest date in october for a game number larger than 8 with a record of 4-4-0?
SELECT MAX October FROM table WHERE Record = 4-4-0 AND Game > 8
Translate the following into a SQL query
When the tom watson is playing for the United States and the To par is under 14, what's the total?
SELECT Total FROM table WHERE Country = united states AND To par < 14 AND Player = tom watson
Translate the following into a SQL query
What player has a total of 158/
SELECT Player FROM table WHERE Total = 158
Translate the following into a SQL query
If 1967 is the winning year and a player has a total recorded as wd with a To par under 16, what's the players name?
SELECT Player FROM table WHERE Total = wd AND To par < 16 AND Year(s) won = 1967
Translate the following into a SQL query
How many kicks did he get in the year when he played 7 games?
SELECT Kicks FROM table WHERE Games = 7
Translate the following into a SQL query
How many marks did he get in 2005?
SELECT Marks FROM table WHERE Season = 2005
Translate the following into a SQL query
How many wins did West Ham get when Millwall had more than 23 goal and 5 wins, and they tied 8 times?
SELECT West Ham wins FROM table WHERE Millwall wins > 5 AND Millwall goals > 23 AND Drawn = 8
Translate the following into a SQL query
What is the least number of wins West Ham got when they tied 27 times?
SELECT MIN West Ham wins FROM table WHERE Drawn > 27
Translate the following into a SQL query
what is the attendance when the date is october 22, 2000?
SELECT Attendance FROM table WHERE Date = october 22, 2000
Translate the following into a SQL query
What is the highest value for 2000, when the value for 1950 is 3.5, and when the value for 1970 is greater than 3.4?
SELECT MAX 2000 FROM table WHERE 1950 = 3.5 AND 1970 > 3.4
Translate the following into a SQL query
What is the lowest value for 1990, when the Region is East Asia (10 Economies), and when 1960 has a value less than 12.6?
SELECT MIN 1990 FROM table WHERE Region = east asia (10 economies) AND 1960 < 12.6
Translate the following into a SQL query
What is the average value for 1970, when the Region is East Europe (7 Economies), and when 2000 has a value greater than 2?
SELECT AVG 1970 FROM table WHERE Region = east europe (7 economies) AND 2000 > 2
Translate the following into a SQL query
What is the highest value for 1970, when the value for 1960 is less than 61.9, when the value for 1980 is less than 3.8, when the value for 1990 is 3.3, and when the value for 2000 is greater than 3.2?
SELECT MAX 1970 FROM table WHERE 1960 < 61.9 AND 1980 < 3.8 AND 1990 = 3.3 AND 2000 > 3.2
Translate the following into a SQL query
What is the lowest value for 1960, when the value for 2000 is less than 8.4, when the value for 1950 is greater than 3.5, and when the value for 1990 is less than 3.3?
SELECT MIN 1960 FROM table WHERE 2000 < 8.4 AND 1950 > 3.5 AND 1990 < 3.3
Translate the following into a SQL query
What average drawn has a played greater than 42?
SELECT AVG Drawn FROM table WHERE Played > 42
Translate the following into a SQL query
What is the highest played that has a position less than 17, and 63 as the goals for?
SELECT MAX Played FROM table WHERE Position < 17 AND Goals For = 63
Translate the following into a SQL query
What is the lowest played that has a position greater than 6, 61 as the goals against, with a loss less than 16?
SELECT MIN Played FROM table WHERE Position > 6 AND Goals Against = 61 AND Lost < 16
Translate the following into a SQL query
What is the highest goals for that has a drawn less than 11, with a played less than 42?
SELECT MAX Goals For FROM table WHERE Drawn < 11 AND Played < 42
Translate the following into a SQL query
What is the average goals for that has +40 as the goals difference, with points 1 greater than 55?
SELECT AVG Goals For FROM table WHERE Goal Difference = +40 AND Points 1 > 55
Translate the following into a SQL query
Can you tell me the average Total that has the To par of 15?
SELECT AVG Total FROM table WHERE To par = 15
Translate the following into a SQL query
Can you tell me the Country that has the To par larger than 9, and the Year(s) won of 1984?
SELECT Country FROM table WHERE To par > 9 AND Year(s) won = 1984
Translate the following into a SQL query
Who produced the track that is 4:16 long?
SELECT Producer(s) FROM table WHERE Length = 4:16
Translate the following into a SQL query
Who produced track 7?
SELECT Producer(s) FROM table WHERE Track = 7
Translate the following into a SQL query
What is the contract length when rejected is the status?
SELECT Contract length FROM table WHERE Status = rejected
Translate the following into a SQL query
what is the average drawn when the points is more than 15, lost is 1 and played is less than 14?
SELECT AVG Drawn FROM table WHERE Points > 15 AND Lost = 1 AND Played < 14
Translate the following into a SQL query
what is the lowest position when points is more than 11, name is ea schongau and lost is less than 3?
SELECT MIN Position FROM table WHERE Points > 11 AND Name = ea schongau AND Lost < 3
Translate the following into a SQL query
what is the average lost when played is more than 14?
SELECT AVG Lost FROM table WHERE Played > 14
Translate the following into a SQL query
what is the sum of drawn when points is less than 15, lost is 8 and position is more than 6?
SELECT SUM Drawn FROM table WHERE Points < 15 AND Lost = 8 AND Position > 6
Translate the following into a SQL query
what is the lowest points when name is ehc münchen ii and position is less than 7?
SELECT MIN Points FROM table WHERE Name = ehc münchen ii AND Position < 7
Translate the following into a SQL query
what is the result when the week is earlier than 9 and attendance is 25,188?
SELECT Result FROM table WHERE Week < 9 AND Attendance = 25,188
Translate the following into a SQL query
What is Team, when High Points is "Rashard Lewis (18)"?
SELECT Team FROM table WHERE High points = rashard lewis (18)
Translate the following into a SQL query
What is High Rebounds, when High Assists is "Rafer Alston , Rashard Lewis , Hedo Türkoğlu (3)"?
SELECT High rebounds FROM table WHERE High assists = rafer alston , rashard lewis , hedo türkoğlu (3)
Translate the following into a SQL query
What is Team, when High Points is "Rashard Lewis , Mickaël Piétrus (17)"?
SELECT Team FROM table WHERE High points = rashard lewis , mickaël piétrus (17)
Translate the following into a SQL query
What is the highest Game, when Team is "Celtics", and when High Assists is "Hedo Türkoğlu (4)"?
SELECT MAX Game FROM table WHERE Team = celtics AND High assists = hedo türkoğlu (4)
Translate the following into a SQL query
What is Run 1, when Run 4 is 1:56.59?
SELECT Run 1 FROM table WHERE Run 4 = 1:56.59
Translate the following into a SQL query
What is Rank, when Run 2 is 2:06.62?
SELECT Rank FROM table WHERE Run 2 = 2:06.62
Translate the following into a SQL query
What is Run 2, when Run 1 is 2:09.09?
SELECT Run 2 FROM table WHERE Run 1 = 2:09.09
Translate the following into a SQL query
What is Final, when Team is United States (USA) USA I?
SELECT Final FROM table WHERE Team = united states (usa) usa i
Translate the following into a SQL query
What is Final, when Run 3 is 1:57.41?
SELECT Final FROM table WHERE Run 3 = 1:57.41
Translate the following into a SQL query
What is Run 3, when Team is United States (USA) USA I?
SELECT Run 3 FROM table WHERE Team = united states (usa) usa i
Translate the following into a SQL query
Which position has 30 points and Reiner Stuyvenberg as a passenger?
SELECT Position FROM table WHERE Points = 30 AND Passenger = reiner stuyvenberg
Translate the following into a SQL query
Which passenger has a position of 21 and less than 49 points?
SELECT Passenger FROM table WHERE Position = 21 AND Points < 49
Translate the following into a SQL query
What were the wins with more than 145 points, less than 17 races, and Sven Verbrugge as a passenger?
SELECT Wins FROM table WHERE Points > 145 AND Passenger = sven verbrugge AND Races < 17
Translate the following into a SQL query
Who is the passenger in 2009 season with 17 races?
SELECT Passenger FROM table WHERE Season = 2009 AND Races = 17
Translate the following into a SQL query
WHAT IS THE POSITION FOR BRAZIL, WITH 27 GOALS, AND FOR NECA?
SELECT Position FROM table WHERE Nationality = brazil AND Goals = 27 AND Name = neca
Translate the following into a SQL query
WHAT SAN PAULO CAREER HAD SMALLER THAN 201 APPEARANCES, SMALLER THAN 2 GOALS, AND FOR RICARDO ROCHA?
SELECT São Paulo career FROM table WHERE Appearances < 201 AND Goals < 2 AND Name = ricardo rocha
Translate the following into a SQL query
Which display has an ISO range of 80-800, and 0.8 Seconds/Frame?
SELECT Display FROM table WHERE ISO range = 80-800 AND Seconds/Frame = 0.8
Translate the following into a SQL query
WHAT IS THE VALE ROYAL WITH THE JEWISH RELIGION?
SELECT Vale Royal FROM table WHERE Religion = jewish
Translate the following into a SQL query
On 1959-01-27 when outcome was failure, what is the serial?
SELECT Serial FROM table WHERE Outcome = failure AND Date = 1959-01-27
Translate the following into a SQL query
Which date has serial of 11c?
SELECT Date FROM table WHERE Serial = 11c
Translate the following into a SQL query
Which Apogee was on 1959-02-20?
SELECT Apogee FROM table WHERE Date = 1959-02-20
Translate the following into a SQL query
Which date has time (GMT) of 23:34?
SELECT Date FROM table WHERE Time ( GMT ) = 23:34
Translate the following into a SQL query
What is Cross Country, when Soccer is Ashland, when Volleyball is Wooster, and when School Year is 2006-07?
SELECT Cross Country FROM table WHERE Soccer = ashland AND Volleyball = wooster AND School Year = 2006-07
Translate the following into a SQL query
What is School Year, when Cross Country is Wooster?
SELECT School Year FROM table WHERE Cross Country = wooster
Translate the following into a SQL query
What is Tennis, when School Year is 2004-05?
SELECT Tennis FROM table WHERE School Year = 2004-05
Translate the following into a SQL query
What is Cross Country, when School Year is 2012-13?
SELECT Cross Country FROM table WHERE School Year = 2012-13
Translate the following into a SQL query
What is School Year, when Cross Country is Lexington, when Soccer is Ashland, and when Volleyball is Wooster?
SELECT School Year FROM table WHERE Cross Country = lexington AND Soccer = ashland AND Volleyball = wooster
Translate the following into a SQL query
What is Soccer, when Cross Country is Lexington, and when School Year is 2011-12?
SELECT Soccer FROM table WHERE Cross Country = lexington AND School Year = 2011-12
Translate the following into a SQL query
What is the highest Attendance, when Result is l 26-16, and when Week is less than 12?
SELECT MAX Attendance FROM table WHERE Result = l 26-16 AND Week < 12
Translate the following into a SQL query
What is the highest Week, when Result is W 34-21?
SELECT MAX Week FROM table WHERE Result = w 34-21
Translate the following into a SQL query
What is the most recent year with a finish in 2nd position?
SELECT MAX Season FROM table WHERE Position = 2nd
Translate the following into a SQL query
What is the position in the 2004 season?
SELECT Position FROM table WHERE Season > 2004
Translate the following into a SQL query
What is the division for the season earlier than 2004?
SELECT Division FROM table WHERE Season < 2004
Translate the following into a SQL query
What is Team, when Qual 1 is 1:16.417?
SELECT Team FROM table WHERE Qual 1 = 1:16.417
Translate the following into a SQL query
What is Team, when Qual 1 is 1:16.417?
SELECT Team FROM table WHERE Qual 1 = 1:16.417
Translate the following into a SQL query
What is Team when Qual 1 is 1:20.139?
SELECT Team FROM table WHERE Qual 1 = 1:20.139
Translate the following into a SQL query
What is Name when Qual 2 is 1:15.582?
SELECT Name FROM table WHERE Qual 2 = 1:15.582
Translate the following into a SQL query
What is Name, when Best is 1:15.673?
SELECT Name FROM table WHERE Best = 1:15.673
Translate the following into a SQL query
Where was the tournament that happened in 1987 on a clay surface?
SELECT Tournament FROM table WHERE Date = 1987 AND Surface = clay
Translate the following into a SQL query
Who was the opponent before 1990 that had a score of 4–6, 6–3, 6–4 and Partnering of Yannick Noah?
SELECT Opponent in the final FROM table WHERE Date < 1990 AND Partnering = yannick noah AND Score = 4–6, 6–3, 6–4
Translate the following into a SQL query
WHAT IS THE SEATS IN Hamburgische Bürgerschaft THAT HAS GREEN POLITICS?
SELECT Seats in Hamburgische Bürgerschaft FROM table WHERE Ideology = green politics
Translate the following into a SQL query
WHAT IS THE ABBR WITH VOTES OF 11.2% IN 2011?
SELECT Abbr. FROM table WHERE Votes (2011) = 11.2%
Translate the following into a SQL query
WHAT IS THE TOTAL NUMBER OF SEATS IN Hamburgische Bürgerschaft WITH AN ABBR OF bündnis 90 / die grünen (gal)?
SELECT COUNT Seats in Hamburgische Bürgerschaft FROM table WHERE Abbr. = bündnis 90 / die grünen (gal)
Translate the following into a SQL query
WHAT IS THE GERMAN NAME OF LIBERALISM?
SELECT Name (German) FROM table WHERE Ideology = liberalism
Translate the following into a SQL query
WHAT ARE THE SEATS IN Hamburgische Bürgerschaft WITH THE NAME alliance '90/the greens?
SELECT Seats in Hamburgische Bürgerschaft FROM table WHERE Name (English) = alliance '90/the greens
Translate the following into a SQL query
What is the earliest game played at the TD Waterhouse Centre?
SELECT MIN Game FROM table WHERE Location = td waterhouse centre
Translate the following into a SQL query
Who was the opponent on April 2?
SELECT Opponent FROM table WHERE Date = april 2
Translate the following into a SQL query
What was the highest game number when the opponent was the Miami Heat?
SELECT MAX Game FROM table WHERE Opponent = miami heat
Translate the following into a SQL query
What is Website, when License is Apache License 2.0?
SELECT Website FROM table WHERE License = apache license 2.0
Translate the following into a SQL query
What is Source Version, when Target Version is Java 7, 6, 5?
SELECT Source Version FROM table WHERE Target Version = java 7, 6, 5
Translate the following into a SQL query
What is Source Version, when License is LGPL or MPL?
SELECT Source Version FROM table WHERE License = lgpl or mpl
Translate the following into a SQL query
What is Target Version, when Last Release is 2009-08-09, 1.2.9?
SELECT Target Version FROM table WHERE Last Release = 2009-08-09, 1.2.9
Translate the following into a SQL query
What is Website, when Last Release is 2009-08-09, 1.2.9?
SELECT Website FROM table WHERE Last Release = 2009-08-09, 1.2.9
Translate the following into a SQL query
What is Target Version, when License is LGPL or MPL?
SELECT Target Version FROM table WHERE License = lgpl or mpl
Translate the following into a SQL query
What is the class for the ERP W of 500?
SELECT Class FROM table WHERE ERP W = 500
Translate the following into a SQL query
What is the ERP W for the station whose call sign is K248BJ and whose frequency MHz is higher than 97.5?
SELECT AVG ERP W FROM table WHERE Call sign = k248bj AND Frequency MHz > 97.5
Translate the following into a SQL query
In which city is the station licensed whose frequency MHz is higher than 102.3 and the ERP W is lower than 1,000?
SELECT City of license FROM table WHERE Frequency MHz = 102.3 AND ERP W < 1,000
Translate the following into a SQL query
In which city is the station licensed whose frequency MHz is higher than 102.3 and whose call sign is K292EU?
SELECT City of license FROM table WHERE Frequency MHz > 102.3 AND Call sign = k292eu
Translate the following into a SQL query
What was sweden's purse in USD?
SELECT SUM Purse ( US $ ) FROM table WHERE Country = sweden
Translate the following into a SQL query
What was 2003's To Par?
SELECT To par FROM table WHERE Year = 2003
Translate the following into a SQL query
What is the highest laps for the grid of 7?
SELECT MAX Laps FROM table WHERE Grid = 7