instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Which rider has a time of +2:11.524?
SELECT Rider FROM table WHERE Time = +2:11.524
Translate the following into a SQL query
What is the average grid for vehicles manufactured by Aprilia and having run more than 16 laps?
SELECT AVG Grid FROM table WHERE Manufacturer = aprilia AND Laps > 16
Translate the following into a SQL query
What record has January 27 for the date?
SELECT Record FROM table WHERE Date = january 27
Translate the following into a SQL query
What team has brad miller (8) as the high assists?
SELECT Team FROM table WHERE High assists = brad miller (8)
Translate the following into a SQL query
What is the high assists that has @ detroit as the team?
SELECT High assists FROM table WHERE Team = @ detroit
Translate the following into a SQL query
Which date had a game with the New York Giants as the winner, year over 1985, and a result of 17-14?
SELECT Date FROM table WHERE Winner = new york giants AND Year > 1985 AND Result = 17-14
Translate the following into a SQL query
Which date had a year under 1988, loser of Philadelphia Eagles, location of Giants Stadium, and a result of 21-0?
SELECT Date FROM table WHERE Year < 1988 AND Loser = philadelphia eagles AND Location = giants stadium AND Result = 21-0
Translate the following into a SQL query
Which date had a loser of New York Giants and a result of 23-17?
SELECT Date FROM table WHERE Loser = new york giants AND Result = 23-17
Translate the following into a SQL query
HOW MANY SILVER METALS DOES SOUTH KOREA HAVE WITH 2 GOLD METALS?
SELECT MAX Silver FROM table WHERE Nation = south korea AND Gold > 2
Translate the following into a SQL query
WHAT COUNTRY HAS THE HIGHEST BRONZE COUNT, MORE THAN 1 SILVER METAL, AND LESS THAN 1ST PLACE?
SELECT MAX Bronze FROM table WHERE Silver > 1 AND Rank > 1
Translate the following into a SQL query
What is the average 4th-Place, when Runners-Up is less than 1, when Club is "Tanjong Pagar United FC", and when 3rd-Place is greater than 0?
SELECT AVG 4th-Place FROM table WHERE Runners-up < 1 AND Club = tanjong pagar united fc AND 3rd-Place > 0
Translate the following into a SQL query
What is the highest Runners-Up, when Champions is less than 0?
SELECT MAX Runners-up FROM table WHERE Champions < 0
Translate the following into a SQL query
What is the average Runners-Up, when 4th-Place is greater than 1, and when Champions is "2"?
SELECT AVG Runners-up FROM table WHERE 4th-Place > 1 AND Champions = 2
Translate the following into a SQL query
What is the sum of Runners-Up, when Champions is greater than 5?
SELECT SUM Runners-up FROM table WHERE Champions > 5
Translate the following into a SQL query
What is the highest 3rd-Place, when Club is "Home United FC", and when 4th-Place is less than 1?
SELECT MAX 3rd-Place FROM table WHERE Club = home united fc AND 4th-Place < 1
Translate the following into a SQL query
What is the total medals for nation with more than 0 silvers and more than 0 golds?
SELECT AVG Total FROM table WHERE Silver > 0 AND Gold > 0
Translate the following into a SQL query
What is the fewest gold medals for a team with fewer than 1 silver, more than 1 bronze and a total less than 4?
SELECT MIN Gold FROM table WHERE Silver < 1 AND Total < 4 AND Bronze > 1
Translate the following into a SQL query
What is the smallest rank when there are fewer than 1 silver, 4 golds and less than 0 bronze?
SELECT MIN Rank FROM table WHERE Silver < 1 AND Gold = 4 AND Bronze < 0
Translate the following into a SQL query
How many gold medals for a nation with rank less than 5, more than 0 silvers and a total of 2 medals?
SELECT AVG Gold FROM table WHERE Rank < 5 AND Silver > 0 AND Total = 2
Translate the following into a SQL query
What is the total for the team with more than 2 golds and more than 0 bronze?
SELECT SUM Total FROM table WHERE Gold > 2 AND Bronze > 0
Translate the following into a SQL query
Which rider has time of +19.751?
SELECT Rider FROM table WHERE Time = +19.751
Translate the following into a SQL query
Which manufacturer of aprilia wth time of +1:36.557 has the highest lap?
SELECT MAX Laps FROM table WHERE Manufacturer = aprilia AND Time = +1:36.557
Translate the following into a SQL query
What is time of manufacturer with grid 21?
SELECT Time FROM table WHERE Grid = 21
Translate the following into a SQL query
What is the total of laps with grid of 2
SELECT SUM Laps FROM table WHERE Grid = 2
Translate the following into a SQL query
What is the lowest grid with time of +0.499,when laps are larger than 21?
SELECT MIN Grid FROM table WHERE Time = +0.499 AND Laps > 21
Translate the following into a SQL query
What is the total laps when manufacturer of gilera has time of 40:19.910 and grid is larger than 3?
SELECT SUM Laps FROM table WHERE Manufacturer = gilera AND Time = 40:19.910 AND Grid > 3
Translate the following into a SQL query
What is the average 1st Throw, when Result is less than 728, when 3rd Throw is "1", when Equation is "0 × 9² + 0 × 9 + 0", and when 2nd Throw is greater than 1?
SELECT AVG 1st throw FROM table WHERE Result < 728 AND 3rd throw = 1 AND Equation = 0 × 9² + 0 × 9 + 0 AND 2nd throw > 1
Translate the following into a SQL query
What is the sum of 3rd Throw, when Result is greater than 546, and when 1st Throw is less than 9?
SELECT SUM 3rd throw FROM table WHERE Result > 546 AND 1st throw < 9
Translate the following into a SQL query
What is the total number of Result, when 2nd Throw is "2", and when 1st Throw is less than "4"?
SELECT COUNT Result FROM table WHERE 2nd throw = 2 AND 1st throw < 4
Translate the following into a SQL query
What is the time when the rank is 14?
SELECT Time FROM table WHERE Rank = 14
Translate the following into a SQL query
what is the rank when the time is 3:12.40?
SELECT SUM Rank FROM table WHERE Time = 3:12.40
Translate the following into a SQL query
what is the rank when the heat is more than 4?
SELECT SUM Rank FROM table WHERE Heat > 4
Translate the following into a SQL query
what is the nationality when the heat is less than 3 and the time is 2:35.31?
SELECT Nationality FROM table WHERE Heat < 3 AND Time = 2:35.31
Translate the following into a SQL query
what is the name when the heat is less than 3, the rank is less than 18, the nationality is east germany and the time is 2:35.31?
SELECT Name FROM table WHERE Heat < 3 AND Rank < 18 AND Nationality = east germany AND Time = 2:35.31
Translate the following into a SQL query
Which tie number had an away team of the Tranmere Rovers?
SELECT Tie no FROM table WHERE Away team = tranmere rovers
Translate the following into a SQL query
Which tie number had an away team of the Tranmere Rovers?
SELECT Tie no FROM table WHERE Away team = tranmere rovers
Translate the following into a SQL query
What date did the Boston Celtics play at Richfield Coliseum?
SELECT Date FROM table WHERE Location = richfield coliseum
Translate the following into a SQL query
What game ended with a final score of 126-108?
SELECT MAX Game FROM table WHERE Score = 126-108
Translate the following into a SQL query
What was the highest number of rebounds on February 6?
SELECT High rebounds FROM table WHERE Date = february 6
Translate the following into a SQL query
How many people tuned in to the finale on May 16, 2007?
SELECT COUNT Viewers (in millions) FROM table WHERE Finale = may 16, 2007
Translate the following into a SQL query
What time did the season finale air on May 20, 2003?
SELECT Timeslot FROM table WHERE Finale = may 20, 2003
Translate the following into a SQL query
What was the total score where Toronto was played?
SELECT SUM Game FROM table WHERE Team = toronto
Translate the following into a SQL query
Which Weight & Height has a Player of james donaldson?
SELECT Weight & Height FROM table WHERE Player = james donaldson
Translate the following into a SQL query
Which Weight & Height has a Player of michael worrincy?
SELECT Weight & Height FROM table WHERE Player = michael worrincy
Translate the following into a SQL query
What was the deployed from date for the a-4b aircraft from westpac with a tail code of ah-3xx?
SELECT from FROM table WHERE tail code = ah-3xx AND area = westpac AND aircraft = a-4b
Translate the following into a SQL query
Which carrier was deployed on 18 July 1968?
SELECT carrier FROM table WHERE from = 18 july 1968
Translate the following into a SQL query
What is the type of aircraft that has a tail code of ah-3xx, deployed from 16 June 1967?
SELECT aircraft FROM table WHERE tail code = ah-3xx AND from = 16 june 1967
Translate the following into a SQL query
What was the tail code for the cva-34 carrier with an air wing of cvw-16, deployed from 16 June 1967 in the Vietnam War?
SELECT tail code FROM table WHERE carrier = cva-34 AND air wing = cvw-16 AND area = vietnam war AND from = 16 june 1967
Translate the following into a SQL query
What is the air wing for the craft with a tail code of ah-3xx, deployed from 16 June 1967 in the Vietnam War?
SELECT air wing FROM table WHERE area = vietnam war AND tail code = ah-3xx AND from = 16 june 1967
Translate the following into a SQL query
What is the air wing for the craft that was deployed from 16 June 1967?
SELECT air wing FROM table WHERE from = 16 june 1967
Translate the following into a SQL query
What is the result of the match that went to round 1 and only for 2:48?
SELECT Res. FROM table WHERE Round = 1 AND Time = 2:48
Translate the following into a SQL query
The K-1 MMA Romanex event went how many rounds?
SELECT COUNT Round FROM table WHERE Event = k-1 mma romanex
Translate the following into a SQL query
What is the result for the match that was only 2:48 long?
SELECT Res. FROM table WHERE Time = 2:48
Translate the following into a SQL query
What is Points For, when Points Against is 571?
SELECT Points for FROM table WHERE Points against = 571
Translate the following into a SQL query
What is Drawn, when Lost is 14, and when Bonus Points is 12?
SELECT Drawn FROM table WHERE Lost = 14 AND Bonus Points = 12
Translate the following into a SQL query
What is Points, when Club is Maesteg RFC?
SELECT Points FROM table WHERE Club = maesteg rfc
Translate the following into a SQL query
What is Points, when Points is 60, and when Club is Bedwas RFC?
SELECT Points for FROM table WHERE Points = 60 AND Club = bedwas rfc
Translate the following into a SQL query
What is Drawn, when Club is Newport RFC?
SELECT Drawn FROM table WHERE Club = newport rfc
Translate the following into a SQL query
What is Points Difference, when Points Against is 451?
SELECT Points difference FROM table WHERE Points against = 451
Translate the following into a SQL query
Which is the highest silver that has a gold less than 0?
SELECT MAX Silver FROM table WHERE Gold < 0
Translate the following into a SQL query
What is the lowest silver that has 1 as the rank, with a bronze greater than 5?
SELECT MIN Silver FROM table WHERE Rank = 1 AND Bronze > 5
Translate the following into a SQL query
What is the highest silver that has 9 as the rank, germany as the nation, with a gold less than 0?
SELECT MAX Silver FROM table WHERE Rank = 9 AND Nation = germany AND Gold < 0
Translate the following into a SQL query
What shows for the location and attendance when the record is 41–36?
SELECT Location Attendance FROM table WHERE Record = 41–36
Translate the following into a SQL query
What is the score when the record was 40–36?
SELECT Score FROM table WHERE Record = 40–36
Translate the following into a SQL query
WHo is the Player got a Pick # smaller than 61, and a College of texas?
SELECT Player FROM table WHERE Pick # < 61 AND College = texas
Translate the following into a SQL query
Name the College which has a Round smaller than 3, and a Pick # larger than 4, and a Position of wide receiver?
SELECT College FROM table WHERE Round < 3 AND Pick # > 4 AND Position = wide receiver
Translate the following into a SQL query
Which the highest Round has a Player of mike williams, and a Pick # larger than 4?
SELECT MAX Round FROM table WHERE Player = mike williams AND Pick # > 4
Translate the following into a SQL query
Name the average Pick # of mike williams?
SELECT AVG Pick # FROM table WHERE Player = mike williams
Translate the following into a SQL query
What date did the red wings play against the visitors, buffalo?
SELECT Date FROM table WHERE Visitor = buffalo
Translate the following into a SQL query
Who made the decision when atlanta was the home team?
SELECT Decision FROM table WHERE Home = atlanta
Translate the following into a SQL query
Who made the decision when detroit was the home team and boston was the visitor?
SELECT Decision FROM table WHERE Home = detroit AND Visitor = boston
Translate the following into a SQL query
Who made the decision when toronto was the home team?
SELECT Decision FROM table WHERE Home = toronto
Translate the following into a SQL query
The player Cecil Martin with an overall less than 268 has what total pick?
SELECT SUM Pick FROM table WHERE Name = cecil martin AND Overall < 268
Translate the following into a SQL query
With the pick of 1 Cecil Martin has what number as the overall?
SELECT COUNT Overall FROM table WHERE Pick = 1 AND Name = cecil martin
Translate the following into a SQL query
What position does the player play with an overall of 304?
SELECT Position FROM table WHERE Overall = 304
Translate the following into a SQL query
What is the US modern rock rank of code bad 0003?
SELECT US Modern Rock FROM table WHERE Code = bad 0003
Translate the following into a SQL query
What is the format of code 9 40231-2 (us only)?
SELECT Format FROM table WHERE Code = 9 40231-2 (us only)
Translate the following into a SQL query
What is the UK singles chart rank of the single released on 26 February 1990?
SELECT UK Singles Chart FROM table WHERE Release date = 26 february 1990
Translate the following into a SQL query
What is the format of code pro-cd-4662?
SELECT Format FROM table WHERE Code = pro-cd-4662
Translate the following into a SQL query
Which city has the mongolian script of ᠡᠷᠳᠡᠨᠢᠲᠦ?
SELECT City FROM table WHERE Mongolian script = ᠡᠷᠳᠡᠨᠢᠲᠦ
Translate the following into a SQL query
Which mongolian has the province of municipality?
SELECT Mongolian FROM table WHERE Province = municipality
Translate the following into a SQL query
What is the sum of the years with bus conner as the BSU head coach?
SELECT SUM Year FROM table WHERE BSU Head Coach = bus conner
Translate the following into a SQL query
Who is the BSU head coach of the tournament after 1994 with louisville as the opponent?
SELECT BSU Head Coach FROM table WHERE Opponent = louisville AND Year > 1994
Translate the following into a SQL query
What is the result in 1994?
SELECT Result FROM table WHERE Year = 1994
Translate the following into a SQL query
What is the result after 1993 of the first four rounds?
SELECT Result FROM table WHERE Year > 1993 AND Round = first four
Translate the following into a SQL query
Who was the opponent before 1994 with bobby dye as the BSU head coach?
SELECT Opponent FROM table WHERE BSU Head Coach = bobby dye AND Year < 1994
Translate the following into a SQL query
Who is the opponent in 1976?
SELECT Opponent FROM table WHERE Year = 1976
Translate the following into a SQL query
What is Date, when Score is "0-2", and when Opponents is "Bayer Leverkusen"?
SELECT Date FROM table WHERE Score = 0-2 AND Opponents = bayer leverkusen
Translate the following into a SQL query
What is Competition, when Score is "2-1", and when Date is "October 22, 2008"?
SELECT Competition FROM table WHERE Score = 2-1 AND Date = october 22, 2008
Translate the following into a SQL query
What is Match Report, when Venue is "Westfalenstadion , Dortmund"?
SELECT Match Report FROM table WHERE Venue = westfalenstadion , dortmund
Translate the following into a SQL query
What is Date, when Venue is "Weserstadion , Bremen"?
SELECT Date FROM table WHERE Venue = weserstadion , bremen
Translate the following into a SQL query
What is Date, when Competition is "F", and when Opponents is "FC Astoria Walldorf"?
SELECT Date FROM table WHERE Competition = f AND Opponents = fc astoria walldorf
Translate the following into a SQL query
What is the pick of Charley Taylor, who has an overall greater than 3?
SELECT SUM Pick FROM table WHERE Name = charley taylor AND Overall > 3
Translate the following into a SQL query
What is the position of the player with a 143 overall?
SELECT Position FROM table WHERE Overall = 143
Translate the following into a SQL query
What is the average round of the s position player from the college of Mississippi and has an overall less than 214?
SELECT AVG Round FROM table WHERE Position = s AND College = mississippi AND Overall < 214
Translate the following into a SQL query
What is the total round of the rb player from Purdue with a pick less than 3?
SELECT COUNT Round FROM table WHERE Position = rb AND College = purdue AND Pick < 3
Translate the following into a SQL query
Which category has 24 nominated work?
SELECT Category FROM table WHERE Nominated work = 24
Translate the following into a SQL query
How many Silver medals did the Nation of Croatia receive with a Total medal of more than 1?
SELECT MIN Silver FROM table WHERE Bronze = 1 AND Total > 1 AND Nation = croatia
Translate the following into a SQL query
How many Gold medals did Australia receive?
SELECT AVG Gold FROM table WHERE Nation = australia
Translate the following into a SQL query
How many Total medals did the country with 16 Silver and less than 32 Bronze receive?
SELECT MIN Total FROM table WHERE Silver = 16 AND Bronze < 32