instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
How many Gold medals did the Nation with less than 8 Total medals including 1 Bronze and 0 Silver receive?
SELECT MIN Gold FROM table WHERE Total < 8 AND Bronze < 1 AND Silver < 1
Translate the following into a SQL query
How many Total medals did the Nation the got 0 Bronze medals receive?
SELECT AVG Total FROM table WHERE Bronze < 0
Translate the following into a SQL query
What Nation had a more than 1 Total medal including less than 3 Silver, less than 4 Gold and a Rank of 4?
SELECT Nation FROM table WHERE Silver < 3 AND Total > 1 AND Gold < 4 AND Rank = 4
Translate the following into a SQL query
How many Silver medals did the Nation ranking 8 with more than 1 Total medal but less than 1 Gold receive?
SELECT SUM Silver FROM table WHERE Gold < 1 AND Rank = 8 AND Total > 1
Translate the following into a SQL query
What is the start date with Luke Jacobz hosting and Dannii Minogue as a winning mentor?
SELECT Start FROM table WHERE Main host = luke jacobz AND Winning mentor = dannii minogue
Translate the following into a SQL query
Who was in third place when Guy Sebastian was the winning mentor and Andrew Wishart was the runner-up?
SELECT Third place FROM table WHERE Winning mentor = guy sebastian AND Runner-up = andrew wishart
Translate the following into a SQL query
In what Election year was Adalberto Mosaner the Mayor with less than 16,170 Inhabitants?
SELECT SUM Election FROM table WHERE Mayor = adalberto mosaner AND Inhabitants < 16,170
Translate the following into a SQL query
In what Election year were there less than 16,170 Inhabitants?
SELECT COUNT Election FROM table WHERE Inhabitants < 16,170
Translate the following into a SQL query
What is the Mayor of Riva del Garda in 2010?
SELECT Mayor FROM table WHERE Election = 2010 AND Municipality = riva del garda
Translate the following into a SQL query
How many Inhabitants were there after 2009 in the Municipality with a Party of union for trentino?
SELECT AVG Inhabitants FROM table WHERE Party = union for trentino AND Election > 2009
Translate the following into a SQL query
What is the lowest enrolled school that was founded in 1992 and joined a conference before 1998?
SELECT MIN Enrollment FROM table WHERE Founded = 1992 AND Joined Conference < 1998
Translate the following into a SQL query
Which foot ball team played soccer at wooster, and Gold in Ashland?
SELECT Football FROM table WHERE Soccer = wooster AND Golf = ashland
Translate the following into a SQL query
What is the total for the team with fewer than 2 bronze, ranked less than 4 and fewer than 1 silver?
SELECT COUNT Total FROM table WHERE Bronze < 2 AND Rank < 4 AND Silver < 1
Translate the following into a SQL query
How many silver for the team with more than 2 bronze and more than 7 gold?
SELECT COUNT Silver FROM table WHERE Bronze > 2 AND Gold > 7
Translate the following into a SQL query
What is the total for the team with 0 bronze and 3 silver?
SELECT SUM Total FROM table WHERE Bronze = 0 AND Silver = 3
Translate the following into a SQL query
What is the total number of Rounds held in Nevada, United States in which the time was 1:55?
SELECT COUNT Round FROM table WHERE Location = nevada, united states AND Time = 1:55
Translate the following into a SQL query
What was the time when his opponent was Rudy Martin?
SELECT Time FROM table WHERE Opponent = rudy martin
Translate the following into a SQL query
What was the method when the fight's time was 1:52?
SELECT Method FROM table WHERE Time = 1:52
Translate the following into a SQL query
What is the lowest overs of the Chennai Super Kings when the Economy Rate is less than 5.92 with a Best Bowling number of 2/17?
SELECT MIN Overs FROM table WHERE Team = chennai super kings AND Best Bowling = 2/17 AND Economy Rate < 5.92
Translate the following into a SQL query
What is the lowest number of Overs for the Royal Challengers Bangalore?
SELECT MIN Overs FROM table WHERE Team = royal challengers bangalore
Translate the following into a SQL query
What is the highest Strike Rate when the average is less than 50.25 with less than 13 matches played?
SELECT MAX Strike Rate FROM table WHERE Matches < 13 AND Average < 50.25
Translate the following into a SQL query
What is the venue of the race where Lineth Chepkurui placed 4th?
SELECT Venue FROM table WHERE Position = 4th
Translate the following into a SQL query
What is the venue of the team race that was before 2010?
SELECT Venue FROM table WHERE Notes = team AND Year < 2010
Translate the following into a SQL query
What is the venue of the team race that was after 2008?
SELECT Venue FROM table WHERE Year > 2008 AND Notes = team
Translate the following into a SQL query
What competition did Lineth Chepkurui place 5th?
SELECT Competition FROM table WHERE Position = 5th
Translate the following into a SQL query
How many votes did Lee Teng-Hui receive when he was elected?
SELECT MAX Total votes FROM table WHERE Outcome = elected AND Candidate = lee teng-hui
Translate the following into a SQL query
What was the score for a match before 13, and a home game on April 21, 2008?
SELECT Score FROM table WHERE Match < 13 AND Home/Away = home AND Date = april 21, 2008
Translate the following into a SQL query
What home/away game is on February 29, 2008?
SELECT Home/Away FROM table WHERE Date = february 29, 2008
Translate the following into a SQL query
What team was the home team when Manchester City was the away team?
SELECT Home team FROM table WHERE Away team = manchester city
Translate the following into a SQL query
What is the sum of Points, when Equipment was "Zabel-BSU", and when Position was 42?
SELECT SUM Points FROM table WHERE Equipment = zabel-bsu AND Position = 42
Translate the following into a SQL query
What is Equipment, when Points is less than 6, and when Position is 53?
SELECT Equipment FROM table WHERE Points < 6 AND Position = 53
Translate the following into a SQL query
What is Second, when Position is greater than 33, when Points is greater than 12, and when Equipment is Zabel-VMC?
SELECT Second FROM table WHERE Position > 33 AND Points > 12 AND Equipment = zabel-vmc
Translate the following into a SQL query
What is Equipment, when Position is greater than 28, and when Points is greater than 10?
SELECT Equipment FROM table WHERE Position > 28 AND Points > 10
Translate the following into a SQL query
When Hawthorn is the away team, what is their score?
SELECT Away team score FROM table WHERE Away team = hawthorn
Translate the following into a SQL query
Which ground has a crowd over 41,185?
SELECT Ground FROM table WHERE Crowd > 41,185
Translate the following into a SQL query
When the crowd is larger than 12,314 and the home team score is 17.7 (109), what is the away team score?
SELECT Away team score FROM table WHERE Crowd > 12,314 AND Home team score = 17.7 (109)
Translate the following into a SQL query
What place has a 67-68-78-77=290 score?
SELECT Place FROM table WHERE Score = 67-68-78-77=290
Translate the following into a SQL query
What is the highest to par of the player from the United States with a t3 place and a 74-73-72-69=288 place?
SELECT MAX To par FROM table WHERE Country = united states AND Place = t3 AND Score = 74-73-72-69=288
Translate the following into a SQL query
What is the place of player peter oosterhuis, who has $7,500?
SELECT Place FROM table WHERE Money ( $ ) = 7,500 AND Player = peter oosterhuis
Translate the following into a SQL query
What country has a 72-70-75-72=289 score?
SELECT Country FROM table WHERE Score = 72-70-75-72=289
Translate the following into a SQL query
Who is the player from the United States with a 4 to par and a 74-73-72-69=288 score?
SELECT Player FROM table WHERE Country = united states AND To par = 4 AND Score = 74-73-72-69=288
Translate the following into a SQL query
How much money does the player with a to par less than 4 and a score of 74-72-68-73=287 have?
SELECT Money ( $ ) FROM table WHERE To par < 4 AND Score = 74-72-68-73=287
Translate the following into a SQL query
What is High Assists, when High Points is "Tayshaun Prince (23)"?
SELECT High assists FROM table WHERE High points = tayshaun prince (23)
Translate the following into a SQL query
What is Date, when Team is "Orlando"?
SELECT Date FROM table WHERE Team = orlando
Translate the following into a SQL query
What is the total number of laps that Benoît Tréyluyer completed when his position was 7th and the year was before 2008?
SELECT COUNT Laps FROM table WHERE Class Pos. = 7th AND Year < 2008
Translate the following into a SQL query
Which team has finished in 1st place in 2011?
SELECT Team FROM table WHERE Pos. = 1st AND Year = 2011
Translate the following into a SQL query
What is the Episode number of Ernest Dickerson in 2009 when the show was dexter?
SELECT Episode FROM table WHERE Year = 2009 AND Show = dexter
Translate the following into a SQL query
What is the result on 29 September 2007?
SELECT Result FROM table WHERE Date = 29 september 2007
Translate the following into a SQL query
Which competition was on 29 September 2007?
SELECT Competition FROM table WHERE Date = 29 september 2007
Translate the following into a SQL query
Where was the game where the senators scored 80 points?
SELECT Location FROM table WHERE Points = 80
Translate the following into a SQL query
What is the highest number of points against the boston bruins on game 77?
SELECT MAX Points FROM table WHERE Opponent = boston bruins AND Game = 77
Translate the following into a SQL query
WHAT IS THE LOWEST GRID FOR RETIREMENT, AND LAPS LARGER THAN 17?
SELECT MIN Grid FROM table WHERE Time/Retired = retirement AND Laps > 17
Translate the following into a SQL query
WHAT IS THE GRID WITH AN ACCIDENT AND HONDA MANUFACTURER?
SELECT MAX Grid FROM table WHERE Time/Retired = accident AND Manufacturer = honda
Translate the following into a SQL query
What was the date of death for a rank below 14 and age of 103 years, 148 days?
SELECT Death date FROM table WHERE Rank < 14 AND Age (as of 1 February 2014) = 103 years, 148 days
Translate the following into a SQL query
What is the age of Fred Gibson?
SELECT Age (as of 1 February 2014) FROM table WHERE Name = fred gibson
Translate the following into a SQL query
Who is at rank 9?
SELECT Name FROM table WHERE Rank = 9
Translate the following into a SQL query
What is the finish of player Hale Irwin?
SELECT Finish FROM table WHERE Player = hale irwin
Translate the following into a SQL query
What is the finish of South Africa?
SELECT Finish FROM table WHERE Country = south africa
Translate the following into a SQL query
With a nominative of chven-i what is the ergative?
SELECT Ergative FROM table WHERE Nominative = chven-i
Translate the following into a SQL query
What instrumental has tkven-i as the genitive?
SELECT Instrumental FROM table WHERE Genitive = tkven-i
Translate the following into a SQL query
What nominative has mis as the dative?
SELECT Nominative FROM table WHERE Dative = mis
Translate the following into a SQL query
With chem-s as the dative, what is the ergative?
SELECT Ergative FROM table WHERE Dative = chem-s
Translate the following into a SQL query
What instrumental has chven-s as the adverbial?
SELECT Instrumental FROM table WHERE Adverbial = chven-s
Translate the following into a SQL query
Mis-i is the nominative of what ergative?
SELECT Ergative FROM table WHERE Nominative = mis-i
Translate the following into a SQL query
what was the week for the match on a hard surface at Indian Wells tournament?
SELECT Week FROM table WHERE Surface = hard AND Tournament = indian wells
Translate the following into a SQL query
What week was the tournament at Cincinnati?
SELECT Week FROM table WHERE Tournament = cincinnati
Translate the following into a SQL query
Where was the tournament where the match was on a hard surface and jan-michael gambill (19) was the finalist?
SELECT Tournament FROM table WHERE Surface = hard AND Finalist = jan-michael gambill (19)
Translate the following into a SQL query
Who was the semifinalist at the tournament in miami?
SELECT Semifinalists FROM table WHERE Tournament = miami
Translate the following into a SQL query
Who was the winner at the tournament in Hamburg?
SELECT Winner FROM table WHERE Tournament = hamburg
Translate the following into a SQL query
what is the venue on 21 june 1987?
SELECT Venue FROM table WHERE Year = 21 june 1987
Translate the following into a SQL query
When is the winner panathinaikos, the runner-up olympiacos and the venue nikos goumas stadium?
SELECT Year FROM table WHERE Winner = panathinaikos AND Runner-up = olympiacos AND Venue = nikos goumas stadium
Translate the following into a SQL query
When is the winner olympiacos, the venue is georgios karaiskakis stadium and the runner-up is iraklis?
SELECT Year FROM table WHERE Winner = olympiacos AND Venue = georgios karaiskakis stadium AND Runner-up = iraklis
Translate the following into a SQL query
when is the venue nikos goumas stadium and the score is 2–2 4–4 a.e.t. 6–5 pso?
SELECT Year FROM table WHERE Venue = nikos goumas stadium AND Score = 2–2 4–4 a.e.t. 6–5 pso
Translate the following into a SQL query
what is the score when the venue is athens olympic stadium on 30 april 2011?
SELECT Score FROM table WHERE Venue = athens olympic stadium AND Year = 30 april 2011
Translate the following into a SQL query
Which Season has a Skip of Eve Muirhead with a thirs of Jackie Lockhart (e/o) Kelly Wood (w)?
SELECT Season FROM table WHERE Skip = eve muirhead AND Third = jackie lockhart (e/o) kelly wood (w)
Translate the following into a SQL query
What is the season with a Skip of Eve Muirhead and a third of Kerry Barr?
SELECT Season FROM table WHERE Skip = eve muirhead AND Third = kerry barr
Translate the following into a SQL query
Who is the second with a lead of Sarah Macintyre (jr) Anne Laird (w)?
SELECT Second FROM table WHERE Lead = sarah macintyre (jr) anne laird (w)
Translate the following into a SQL query
What is the skip that has a third of Anna Sloan in season 2012-13?
SELECT Skip FROM table WHERE Third = anna sloan AND Season = 2012-13
Translate the following into a SQL query
What is the lead with a second of Vicki Adams and a third of Anna Sloan?
SELECT Lead FROM table WHERE Second = vicki adams AND Third = anna sloan
Translate the following into a SQL query
Who is the second where the third of Kelly Wood (e) Anna Sloan (Jr)?
SELECT Second FROM table WHERE Third = kelly wood (e) anna sloan (jr)
Translate the following into a SQL query
What is Date, when Game is "65"?
SELECT Date FROM table WHERE Game = 65
Translate the following into a SQL query
What is High Rebounds, when Date is "March 12"?
SELECT High rebounds FROM table WHERE Date = march 12
Translate the following into a SQL query
What is High Rebounds, when Date is "March 13"?
SELECT High rebounds FROM table WHERE Date = march 13
Translate the following into a SQL query
What is Record, when Location Attendance is "TD Banknorth Garden 18,624"?
SELECT Record FROM table WHERE Location Attendance = td banknorth garden 18,624
Translate the following into a SQL query
What is Team, when Game is "59"?
SELECT Team FROM table WHERE Game = 59
Translate the following into a SQL query
What is the Score when the Away Team is Torquay United?
SELECT Score FROM table WHERE Away team = torquay united
Translate the following into a SQL query
Which Away Team has a Tie no of replay and a Home Team of Chesterfield?
SELECT Away team FROM table WHERE Tie no = replay AND Home team = chesterfield
Translate the following into a SQL query
What is the Away Team when the Home Team is Torquay United and the Attendence is 6 December 1997?
SELECT Away team FROM table WHERE Attendance = 6 december 1997 AND Home team = torquay united
Translate the following into a SQL query
What is the Chassis of the Honda Engine with a Motorola sponsor?
SELECT Chassis FROM table WHERE Engine = honda AND Sponsor = motorola
Translate the following into a SQL query
What is the engine of the goodyear tire and Herdez as a sponsor?
SELECT Engine FROM table WHERE Tire = goodyear AND Sponsor = herdez
Translate the following into a SQL query
What engine does the Tasman Motorsports team have?
SELECT Engine FROM table WHERE Team = tasman motorsports
Translate the following into a SQL query
Which Tire has a Sponsor of Duracell?
SELECT Tire FROM table WHERE Sponsor = duracell
Translate the following into a SQL query
Which team has Firestone Tires a Reynard 95i Chassis and is sponsored by Motorola?
SELECT Team FROM table WHERE Tire = firestone AND Chassis = reynard 95i AND Sponsor = motorola
Translate the following into a SQL query
What is the highest # Of Constituency Votes, when Election is 2005?
SELECT MAX # of Constituency votes FROM table WHERE Election = 2005
Translate the following into a SQL query
What is the sum of # Of Candidates, when # of Constituency Votes is less than 25,643,309, when Leader is Masayoshi Ōhira, and when Election is before 1979?
SELECT SUM # of candidates FROM table WHERE # of Constituency votes < 25,643,309 AND Leader = masayoshi ōhira AND Election < 1979
Translate the following into a SQL query
What is the % Of Constituency Vote, when # Of Constituency Votes is greater than 25,643,309, and when # Of Candidates is 310?
SELECT % of Constituency vote FROM table WHERE # of Constituency votes > 25,643,309 AND # of candidates = 310
Translate the following into a SQL query
What is the highest # Of Constituency Votes, when Election is before 1976, when Leader is Eisaku Satō, and when # Of Candidates is less than 328?
SELECT MAX # of Constituency votes FROM table WHERE Election < 1976 AND Leader = eisaku satō AND # of candidates < 328
Translate the following into a SQL query
What was the overall draft pick of the player who was a db and attended college in iowa?
SELECT Overall FROM table WHERE College = iowa AND Position = db
Translate the following into a SQL query
What number pick was the player drafted in round 3 at #28 overall?
SELECT AVG Pick FROM table WHERE Overall < 28 AND Round = 3
Translate the following into a SQL query
What is the lowest total data processing and exploitation of 00 0,228, and a management and support larger than 1,7?
SELECT MIN Total FROM table WHERE Data processing and exploitation = 00 0,228 AND Management and support > 1,7