instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What player has a rating greater than 2746, with a prev less than 4, and +4 as the chng?
SELECT Player FROM table WHERE Rating > 2746 AND Prev < 4 AND Chng = +4
Translate the following into a SQL query
What chng has a rank greater than 6, with 12 as a prev?
SELECT Chng FROM table WHERE Rank > 6 AND Prev = 12
Translate the following into a SQL query
What is the highest prev that has 9 as the rank, with a rating less than 2746?
SELECT MAX Prev FROM table WHERE Rank = 9 AND Rating < 2746
Translate the following into a SQL query
How many blocks have a weight greater than 82, and a height less than 199?
SELECT SUM Block FROM table WHERE Weight > 82 AND Height < 199
Translate the following into a SQL query
What is the lowest block that has 328 as the spike, and a height less than 186?
SELECT MIN Block FROM table WHERE Spike = 328 AND Height < 186
Translate the following into a SQL query
What is the lowest block that has a height less than 202, 19.06.1980 as the date of birth, and a weight greater than 76?
SELECT MIN Block FROM table WHERE Height < 202 AND Date of Birth = 19.06.1980 AND Weight > 76
Translate the following into a SQL query
What is the highest block that has 15.09.1981 as the date, and a height greater than 202?
SELECT MAX Block FROM table WHERE Date of Birth = 15.09.1981 AND Height > 202
Translate the following into a SQL query
Which City has a Stadium of estadio san cristóbal?
SELECT City FROM table WHERE Stadium = estadio san cristóbal
Translate the following into a SQL query
When in 2009 season has a Group of group b, and cancha del mystic with a Club of el tecal?
SELECT 2009 season FROM table WHERE Group = group b AND Stadium = cancha del mystic AND Club = el tecal
Translate the following into a SQL query
WHich Club has a City of colón?
SELECT Club FROM table WHERE City = colón
Translate the following into a SQL query
WHat kind of 2009 season has a City of panama city, and a Group of group b?
SELECT 2009 season FROM table WHERE City = panama city AND Group = group b
Translate the following into a SQL query
Which City has a Club of suntracs f.c.?
SELECT City FROM table WHERE Club = suntracs f.c.
Translate the following into a SQL query
Which Stadium has a City of panama city, and a Group of group a, and a 2009 season of 1st in lna (champion)?
SELECT Stadium FROM table WHERE City = panama city AND Group = group a AND 2009 season = 1st in lna (champion)
Translate the following into a SQL query
What is the highest Matches, when Prize Money is £5,000?
SELECT MAX Matches FROM table WHERE Prize money = £5,000
Translate the following into a SQL query
What is Date, when Matches is less than 32, and when Round is Fifth Round Proper?
SELECT Date FROM table WHERE Matches < 32 AND Round = fifth round proper
Translate the following into a SQL query
What is the average Matches, when Round is Third Qualifying Round?
SELECT AVG Matches FROM table WHERE Round = third qualifying round
Translate the following into a SQL query
What is the total number of Matches, when Clubs is 588 → 406?
SELECT COUNT Matches FROM table WHERE Clubs = 588 → 406
Translate the following into a SQL query
What is Prize Money, when Matches is less than 73, and when Round is Third Round Proper?
SELECT Prize money FROM table WHERE Matches < 73 AND Round = third round proper
Translate the following into a SQL query
For the tournament played on a hard surface and ending with a score of Walkover, who was the Finals opponent?
SELECT Opponent in the final FROM table WHERE Surface = hard AND Score = walkover
Translate the following into a SQL query
For the tournament played on September 25, 1995, who was the Finals opponent?
SELECT Opponent in the final FROM table WHERE Date = september 25, 1995
Translate the following into a SQL query
Which tournament was played on September 25, 1995?
SELECT Tournament FROM table WHERE Date = september 25, 1995
Translate the following into a SQL query
What was the time for the bout against Amanda Lavoy, which went under 3 rounds?
SELECT Time FROM table WHERE Round < 3 AND Opponent = amanda lavoy
Translate the following into a SQL query
What is Notes, when App(L/C/E) is 13 (7/2/4)?
SELECT Notes FROM table WHERE App(L/C/E) = 13 (7/2/4)
Translate the following into a SQL query
What is Nat., when Ends is greater than 2010, when Since is 2006, and when Name is Paligeorgos?
SELECT Nat. FROM table WHERE Ends > 2010 AND Since = 2006 AND Name = paligeorgos
Translate the following into a SQL query
What is the lowest Since, when Notes is To Anagennisi Karditsa, and when App(L/C/E) is 0 (0/0/0)?
SELECT MIN Since FROM table WHERE Notes = to anagennisi karditsa AND App(L/C/E) = 0 (0/0/0)
Translate the following into a SQL query
What is the Time/Retired of the Newman-Haas Racing team in under 51 laps?
SELECT Time/Retired FROM table WHERE Laps < 51 AND Team = newman-haas racing
Translate the following into a SQL query
What are the lowest laps Alex Tagliani did for the Forsythe Racing team?
SELECT MIN Laps FROM table WHERE Team = forsythe racing AND Driver = alex tagliani
Translate the following into a SQL query
What is the Event when DNP shows for 2007–08?
SELECT Event FROM table WHERE 2007–08 = dnp
Translate the following into a SQL query
What is the 2008–09 when the 2009–10 shows q?
SELECT 2008–09 FROM table WHERE 2009–10 = q
Translate the following into a SQL query
What is the 2009–10 when the 2007–08 shows n/a, and an Event of colonial square ladies classic?
SELECT 2009–10 FROM table WHERE 2007–08 = n/a AND Event = colonial square ladies classic
Translate the following into a SQL query
What is the Event when the 2008–09 is sf?
SELECT Event FROM table WHERE 2008–09 = sf
Translate the following into a SQL query
What is the 2010–11 when the Event is colonial square ladies classic?
SELECT 2010–11 FROM table WHERE Event = colonial square ladies classic
Translate the following into a SQL query
What is the 2007–08 when the event was autumn gold?
SELECT 2007–08 FROM table WHERE Event = autumn gold
Translate the following into a SQL query
Which Cultural and Educational Panel has a Labour Panel larger than 5, and an Industrial and Commercial Panel larger than 9?
SELECT COUNT Cultural and Educational Panel FROM table WHERE Labour Panel > 5 AND Industrial and Commercial Panel > 9
Translate the following into a SQL query
Which Administrative Panel has a Nominated by the Taoiseach smaller than 0?
SELECT MIN Administrative Panel FROM table WHERE Nominated by the Taoiseach < 0
Translate the following into a SQL query
Which Labour Panel has an Industrial and Commercial Panel of 9, and a University of Dublin smaller than 3?
SELECT AVG Labour Panel FROM table WHERE Industrial and Commercial Panel = 9 AND University of Dublin < 3
Translate the following into a SQL query
Which Total has a Labour Panel smaller than 5, an Administrative Panel smaller than 1, and a National University of Ireland smaller than 2?
SELECT COUNT Total FROM table WHERE Labour Panel < 5 AND Administrative Panel < 1 AND National University of Ireland < 2
Translate the following into a SQL query
Which Agricultural Panel has a Nominated by the Taoiseach larger than 6, and a Total larger than 60?
SELECT SUM Agricultural Panel FROM table WHERE Nominated by the Taoiseach > 6 AND Total > 60
Translate the following into a SQL query
What is Team 1 when Team 2 is Jac Port-Gentil?
SELECT Team 1 FROM table WHERE Team 2 = jac port-gentil
Translate the following into a SQL query
What was Team 2 with a 2nd leg of 0-0?
SELECT Team 2 FROM table WHERE 2nd leg = 0-0
Translate the following into a SQL query
What is the 1st leg of the Round that has a 2nd leg of 1-3 and Team 1 Es Tunis?
SELECT 1st leg FROM table WHERE 2nd leg = 1-3 AND Team 1 = es tunis
Translate the following into a SQL query
What is Winning Score, when Tournament is Joburg Open 1, and when Date is 17 Jan 2010?
SELECT Winning score FROM table WHERE Tournament = joburg open 1 AND Date = 17 jan 2010
Translate the following into a SQL query
What is Date, when Tournament is Alfred Dunhill Championship 1?
SELECT Date FROM table WHERE Tournament = alfred dunhill championship 1
Translate the following into a SQL query
What is Tournament, when Margin is Victory of 6 Strokes?
SELECT Tournament FROM table WHERE Margin of victory = 6 strokes
Translate the following into a SQL query
What is Winning Score, when Date is 17 Jan 2010?
SELECT Winning score FROM table WHERE Date = 17 jan 2010
Translate the following into a SQL query
What is Tournament, when Runner(s)-Up is Garth Mulroy?
SELECT Tournament FROM table WHERE Runner(s)-up = garth mulroy
Translate the following into a SQL query
What is Runner(s)-Up, when Margin of Victory is 1 Stroke, and when Tournament is Joburg Open 1?
SELECT Runner(s)-up FROM table WHERE Margin of victory = 1 stroke AND Tournament = joburg open 1
Translate the following into a SQL query
What is the points sum of the series with less than 0 poles?
SELECT SUM Points FROM table WHERE Poles < 0
Translate the following into a SQL query
What is the sum of the races in the 2007 season, which has more than 4 podiums?
SELECT SUM Races FROM table WHERE Podiums > 4 AND Season = 2007
Translate the following into a SQL query
What is the sum of the poles of Team la filière, which has less than 162 points?
SELECT SUM Poles FROM table WHERE Team = la filière AND Points < 162
Translate the following into a SQL query
What is the average number of points in the 2012 season, which has less than 1 wins and less than 0 podiums?
SELECT AVG Points FROM table WHERE Wins < 1 AND Season = 2012 AND Podiums < 0
Translate the following into a SQL query
How many poles had a moto2 class?
SELECT Pole FROM table WHERE Class = moto2
Translate the following into a SQL query
What is the sum of the Cultural and Educational Panels that have an Administrative Panel greater than 1, an Agricultural Panel of 11 and a University of Dublin smaller than 3?
SELECT SUM Cultural and Educational Panel FROM table WHERE Administrative Panel > 1 AND Agricultural Panel = 11 AND University of Dublin < 3
Translate the following into a SQL query
What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0?
SELECT SUM Agricultural Panel FROM table WHERE Industrial and Commercial Panel < 0
Translate the following into a SQL query
What is the lowest number of National University of Ireland that has a Cultural and Educational Panel of 0, and a Labour Panel smaller than 1?
SELECT MIN National University of Ireland FROM table WHERE Cultural and Educational Panel = 0 AND Labour Panel < 1
Translate the following into a SQL query
What is the total of Industrial and Commercial Panels that have a Labour Panel greater than 1, a Nominated by the Taoiseach lesss than 11 and a Cultural and Educational Panel smaller than 0
SELECT COUNT Industrial and Commercial Panel FROM table WHERE Labour Panel > 1 AND Nominated by the Taoiseach < 11 AND Cultural and Educational Panel < 0
Translate the following into a SQL query
What was the highest number of goals when 2428 minutes were played?
SELECT MAX Goals FROM table WHERE Minutes = 2428
Translate the following into a SQL query
What is the number of minutes when there are more than 4 goals and 3 assists?
SELECT Minutes FROM table WHERE Goals > 4 AND Assists = 3
Translate the following into a SQL query
What is the total number of assists when Edmundo Rodriguez is playing the position of striker, less than 4 goals were scored, and the minutes were less than 473?
SELECT COUNT Assists FROM table WHERE Position = striker AND Goals < 4 AND Player = edmundo rodriguez AND Minutes < 473
Translate the following into a SQL query
What is the least ERP W when the freguency MHz is 89.3 fm?
SELECT MIN ERP W FROM table WHERE Frequency MHz = 89.3 fm
Translate the following into a SQL query
Call sign k216fo has what average ERP W?
SELECT AVG ERP W FROM table WHERE Call sign = k216fo
Translate the following into a SQL query
What city does call sign K248am have its license in?
SELECT City of license FROM table WHERE Call sign = k248am
Translate the following into a SQL query
What call sign has ERP W greater than 197?
SELECT Call sign FROM table WHERE ERP W > 197
Translate the following into a SQL query
How many points did Costa score in the Macau Grand Prix since 2011?
SELECT Points FROM table WHERE Season > 2011 AND Series = macau grand prix
Translate the following into a SQL query
Which teams had the 1st position and entered 1 race?
SELECT Team FROM table WHERE Races = 1 AND Position = 1st
Translate the following into a SQL query
How many points did Carlin have when they had 3 wins?
SELECT Points FROM table WHERE Wins = 3 AND Team = carlin
Translate the following into a SQL query
How many Points have an Against smaller than 43, and a Position smaller than 1?
SELECT SUM Points FROM table WHERE Against < 43 AND Position < 1
Translate the following into a SQL query
How many Drawn have a Position of 7, and Points larger than 18?
SELECT COUNT Drawn FROM table WHERE Position = 7 AND Points > 18
Translate the following into a SQL query
How many Against have a Team of hespanha, and Points smaller than 30?
SELECT COUNT Against FROM table WHERE Team = hespanha AND Points < 30
Translate the following into a SQL query
Which Points is the average one that has Drawn of 3, and a Played smaller than 22?
SELECT AVG Points FROM table WHERE Drawn = 3 AND Played < 22
Translate the following into a SQL query
How much Played has an Against larger than 37, and a Lost of 15, and Points smaller than 11?
SELECT SUM Played FROM table WHERE Against > 37 AND Lost = 15 AND Points < 11
Translate the following into a SQL query
Which artist has the Spoofed title Miscue 911?
SELECT Artist FROM table WHERE Spoofed Title = miscue 911
Translate the following into a SQL query
Which Spoofed title is from February 1998?
SELECT Spoofed Title FROM table WHERE Date = february 1998
Translate the following into a SQL query
Which artist has a Spoofed title in June 1992?
SELECT Artist FROM table WHERE Date = june 1992
Translate the following into a SQL query
What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11?
SELECT AVG Laps FROM table WHERE Manufacturer = ktm AND Time/Retired = +56.440 AND Grid < 11
Translate the following into a SQL query
What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660?
SELECT MAX Grid FROM table WHERE Manufacturer = aprilia AND Time/Retired = +1.660
Translate the following into a SQL query
What Round against Aleksander Emelianenko had a time of 5:00?
SELECT Round FROM table WHERE Time = 5:00 AND Opponent = aleksander emelianenko
Translate the following into a SQL query
In 1958, what has the IRFU All-Stars Home Venue?
SELECT Venue FROM table WHERE Home = irfu all-stars AND Season = 1958
Translate the following into a SQL query
On what Date was the Venue at Exhibition Stadium?
SELECT Date FROM table WHERE Venue = exhibition stadium
Translate the following into a SQL query
Before 1957, what was the largest in Attendance at Varsity Stadium?
SELECT MAX Attendance FROM table WHERE Season < 1957 AND Venue = varsity stadium
Translate the following into a SQL query
What is the Time with a Score that is 65-19?
SELECT Time FROM table WHERE Score = 65-19
Translate the following into a SQL query
What is the Time with an Away that is broadview hawks?
SELECT Time FROM table WHERE Away = broadview hawks
Translate the following into a SQL query
Which Position has an Against of 32, and a Difference of 18, and a Drawn larger than 4?
SELECT SUM Position FROM table WHERE Against = 32 AND Difference = 18 AND Drawn > 4
Translate the following into a SQL query
Which Position has an Against smaller than 49, and a Drawn of 4?
SELECT MAX Position FROM table WHERE Against < 49 AND Drawn = 4
Translate the following into a SQL query
Which Played has a Drawn of 5, and a Team of palmeiras, and a Position smaller than 6?
SELECT MAX Played FROM table WHERE Drawn = 5 AND Team = palmeiras AND Position < 6
Translate the following into a SQL query
What team played on November 17?
SELECT Team FROM table WHERE Date = november 17
Translate the following into a SQL query
What is the comp when the ryds is 2?
SELECT Comp FROM table WHERE RYds = 2
Translate the following into a SQL query
What is the RAtt when the comp is 48?
SELECT RAtt FROM table WHERE Comp = 48
Translate the following into a SQL query
What is the RAtt when the long is 73?
SELECT RAtt FROM table WHERE Long = 73
Translate the following into a SQL query
What is the RYds when the RAtt was 2, and the comp is 41?
SELECT RYds FROM table WHERE RAtt = 2 AND Comp = 41
Translate the following into a SQL query
What is the Long when the ryds is 18?
SELECT Long FROM table WHERE RYds = 18
Translate the following into a SQL query
What is the RAvg when the ratt is 3?
SELECT RAvg FROM table WHERE RAtt = 3
Translate the following into a SQL query
Who was the Runner-up for the merrill lynch/golf digest commemorative pro-am tournament?
SELECT Runner(s)-up FROM table WHERE Tournament = merrill lynch/golf digest commemorative pro-am
Translate the following into a SQL query
What was the margin of victory when the winning score was –14 (70-68-67=205)?
SELECT Margin of victory FROM table WHERE Winning score = –14 (70-68-67=205)
Translate the following into a SQL query
Who were the runner(s)-up when the winning score was –10 (69-68-74-67=278)?
SELECT Margin of victory FROM table WHERE Winning score = –10 (69-68-74-67=278)
Translate the following into a SQL query
Who was the runner-up for the mazda senior tournament players championship tournament when the margin of victory was 2 strokes?
SELECT Runner(s)-up FROM table WHERE Margin of victory = 2 strokes AND Tournament = mazda senior tournament players championship
Translate the following into a SQL query
When was the last title of the team with a home ground of Sydney cricket ground?
SELECT Last title FROM table WHERE Home ground [a ] = sydney cricket ground
Translate the following into a SQL query
How many people were in attendance for the game week 15?
SELECT COUNT Attendance FROM table WHERE Week = 15
Translate the following into a SQL query
What is the highest number of people in attendance in the game against the Buffalo Bills in a week later than 14?
SELECT MAX Attendance FROM table WHERE Opponent = buffalo bills AND Week > 14
Translate the following into a SQL query
What is the average Week when there were more than 63,866 people in attendance on September 7, 1981?
SELECT AVG Week FROM table WHERE Attendance > 63,866 AND Date = september 7, 1981