instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What is Event, when Round is "10"?
|
SELECT Event FROM table WHERE Round = 10
|
Translate the following into a SQL query
|
What is Date, when Round is less than 10, and when Circuit is "Norisring"?
|
SELECT Date FROM table WHERE Round < 10 AND Circuit = norisring
|
Translate the following into a SQL query
|
What is the highest goal difference of the club with more than 34 played?
|
SELECT MAX Goal Difference FROM table WHERE Played > 34
|
Translate the following into a SQL query
|
What is the total number of points of the club with a goal difference greater than 17 and more than 34 played?
|
SELECT COUNT Points FROM table WHERE Goal Difference > 17 AND Played > 34
|
Translate the following into a SQL query
|
What is the lowest goal difference of club real betis, who has less than 18 wins?
|
SELECT MIN Goal Difference FROM table WHERE Club = real betis AND Wins < 18
|
Translate the following into a SQL query
|
What is the sum of the points of the club with more than 34 played?
|
SELECT SUM Points FROM table WHERE Played > 34
|
Translate the following into a SQL query
|
What is the lowest number played of the club with more than 15 wins and less than 42 goals against?
|
SELECT MIN Played FROM table WHERE Wins > 15 AND Goals against < 42
|
Translate the following into a SQL query
|
What is the total number of wins of the club with a goal difference less than 21, 4 draws, and less than 21 losses?
|
SELECT COUNT Wins FROM table WHERE Goal Difference < 21 AND Draws = 4 AND Losses < 21
|
Translate the following into a SQL query
|
What is the round for the qualifying phase with a draw date on 16 July 2010?
|
SELECT Round FROM table WHERE Phase = qualifying AND Draw date = 16 july 2010
|
Translate the following into a SQL query
|
Jack Nicklaus finished in what place?
|
SELECT Finish FROM table WHERE Player = jack nicklaus
|
Translate the following into a SQL query
|
What year (s) won was +2 the To par, and t22 the finish?
|
SELECT Year(s) won FROM table WHERE To par = +2 AND Finish = t22
|
Translate the following into a SQL query
|
Lee Trevino of the United States with a total greater than 294 had what To par?
|
SELECT To par FROM table WHERE Total > 294 AND Country = united states AND Player = lee trevino
|
Translate the following into a SQL query
|
The golfer from Spain with a total less than 294 won in what year (s)?
|
SELECT Year(s) won FROM table WHERE Total < 294 AND Country = spain
|
Translate the following into a SQL query
|
Which Nationality has a Pick # smaller than 130 and a Player of tyler bunz? Question 1
|
SELECT Nationality FROM table WHERE Pick # < 130 AND Player = tyler bunz
|
Translate the following into a SQL query
|
Which League from has a Player of louis domingue?
|
SELECT League from FROM table WHERE Player = louis domingue
|
Translate the following into a SQL query
|
Which League from has a NHL team of san jose sharks (from carolina) 3?
|
SELECT League from FROM table WHERE NHL team = san jose sharks (from carolina) 3
|
Translate the following into a SQL query
|
Name the Nationality of södertälje sk?
|
SELECT Nationality FROM table WHERE Team from = södertälje sk
|
Translate the following into a SQL query
|
Which Team has a Pick # of 148?
|
SELECT Team from FROM table WHERE Pick # = 148
|
Translate the following into a SQL query
|
Which team has a League from of ontario hockey league, and a Player of tony dehart?
|
SELECT NHL team FROM table WHERE League from = ontario hockey league AND Player = tony dehart
|
Translate the following into a SQL query
|
What is T4 Place Player Nick Price's Money?
|
SELECT Money ( $ ) FROM table WHERE Place = t4 AND Player = nick price
|
Translate the following into a SQL query
|
What is the To par of the Place 1 Player?
|
SELECT To par FROM table WHERE Place = 1
|
Translate the following into a SQL query
|
What Player's Score is 69-68-66-70=273?
|
SELECT Player FROM table WHERE Score = 69-68-66-70=273
|
Translate the following into a SQL query
|
What Player's To par is −6?
|
SELECT Player FROM table WHERE To par = −6
|
Translate the following into a SQL query
|
What is the height of the the building ranked 13= with fewer than 28 floors?
|
SELECT Height ft ( m ) FROM table WHERE Rank = 13= AND Floors < 28
|
Translate the following into a SQL query
|
Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1
|
SELECT Country FROM table WHERE To par > 3 AND Year(s) won = 1979
|
Translate the following into a SQL query
|
Which To par has a Country of australia, and a Year(s) won of 1990?
|
SELECT MIN To par FROM table WHERE Country = australia AND Year(s) won = 1990
|
Translate the following into a SQL query
|
Which city is in Cantabria?
|
SELECT City FROM table WHERE Province = cantabria
|
Translate the following into a SQL query
|
What is the name of the city with the Socialist Party of the Extremadurian People?
|
SELECT City FROM table WHERE Name in English = socialist party of the extremadurian people
|
Translate the following into a SQL query
|
Which province has the partido Socialista del Pueblo Extremeño party?
|
SELECT Province FROM table WHERE Party = partido socialista del pueblo extremeño
|
Translate the following into a SQL query
|
When was the Partido radical party in Madrid registered?
|
SELECT Date of registration FROM table WHERE Province = madrid AND Party = partido radical
|
Translate the following into a SQL query
|
Which province is Pamplona located in?
|
SELECT Province FROM table WHERE City = pamplona
|
Translate the following into a SQL query
|
On what date was the Canarian Workers Socialist Union registered?
|
SELECT Date of registration FROM table WHERE Name in English = canarian workers socialist union
|
Translate the following into a SQL query
|
What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?
|
SELECT MIN Rank FROM table WHERE Total = 8 AND Nation = hungary AND Silver > 2
|
Translate the following into a SQL query
|
What is the highest rank of Great Britain who has less than 16 bronze?
|
SELECT MAX Rank FROM table WHERE Nation = great britain AND Bronze < 16
|
Translate the following into a SQL query
|
What was the injured entry for the row with a killed entry of 29?
|
SELECT Injured FROM table WHERE Killed = 29
|
Translate the following into a SQL query
|
What location has a killed of 100.9, and a year later than 1993?
|
SELECT Location FROM table WHERE Year > 1993 AND Killed = 100.9
|
Translate the following into a SQL query
|
What was the injured entry for Venezuela?
|
SELECT Injured FROM table WHERE Country = venezuela
|
Translate the following into a SQL query
|
Which season had a season finale of May 13, 2012?
|
SELECT SUM Season FROM table WHERE Season finale = may 13, 2012
|
Translate the following into a SQL query
|
How many viewers (in millions) were there for the season premiere on September 26, 2010?
|
SELECT Viewers (in millions) FROM table WHERE Season premiere = september 26, 2010
|
Translate the following into a SQL query
|
How old were Mitchell & Jessica when they danced the Cha-Cha-Cha?
|
SELECT Ages FROM table WHERE Dance = cha-cha-cha AND Pair = mitchell & jessica
|
Translate the following into a SQL query
|
Who danced the Cha-Cha-Cha on November 18, 2008?
|
SELECT Pair FROM table WHERE Dance = cha-cha-cha AND Date = november 18, 2008
|
Translate the following into a SQL query
|
Who danced the Samba on October 14, 2008?
|
SELECT Pair FROM table WHERE Date = october 14, 2008 AND Dance = samba
|
Translate the following into a SQL query
|
What was the pic for Canada for player Yvon Bouillon earlier than 1974?
|
SELECT AVG Pick FROM table WHERE Nationality = canada AND Year < 1974 AND Player = yvon bouillon
|
Translate the following into a SQL query
|
What was the competition when the score was 3-0?
|
SELECT Competition FROM table WHERE Score = 3-0
|
Translate the following into a SQL query
|
Akin Ayodele drafted before round 7 plays what position?
|
SELECT Position FROM table WHERE Round < 7 AND Name = akin ayodele
|
Translate the following into a SQL query
|
What is the total overall for the pick that went before round 4, who went to Tennessee for college, and was picked at a number bigger than 9?
|
SELECT SUM Overall FROM table WHERE Round < 4 AND College = tennessee AND Pick # > 9
|
Translate the following into a SQL query
|
What is the pick number average for the player who was drafted before round 7, and went to college at Tennessee?
|
SELECT AVG Pick # FROM table WHERE Round < 7 AND College = tennessee
|
Translate the following into a SQL query
|
What visiting team played at the home of the Chicago Black Hawks with a record of 1-1?
|
SELECT Visitor FROM table WHERE Home = chicago black hawks AND Record = 1-1
|
Translate the following into a SQL query
|
What home team has a record of 4-3?
|
SELECT Home FROM table WHERE Record = 4-3
|
Translate the following into a SQL query
|
What visiting team has a record of 4-3?
|
SELECT Visitor FROM table WHERE Record = 4-3
|
Translate the following into a SQL query
|
What is the highest league up with less than 3 championships, a total less than 2, and a FA cup larger than 0?
|
SELECT MAX League Cup FROM table WHERE Championship < 3 AND Total < 2 AND FA Cup > 0
|
Translate the following into a SQL query
|
What is the average total for less than 1 championship?
|
SELECT AVG Total FROM table WHERE Championship < 1
|
Translate the following into a SQL query
|
What i the total number of championships less than 2, and a league cup larger than 1?
|
SELECT COUNT Total FROM table WHERE Championship < 2 AND League Cup > 1
|
Translate the following into a SQL query
|
What home team has a score of 2–1, when the away team was Telford United?
|
SELECT Home team FROM table WHERE Score = 2–1 AND Away team = telford united
|
Translate the following into a SQL query
|
What was the score when the way team was Wrexham?
|
SELECT Score FROM table WHERE Away team = wrexham
|
Translate the following into a SQL query
|
What is the home team when the Tie no is 1?
|
SELECT Home team FROM table WHERE Tie no = 1
|
Translate the following into a SQL query
|
What was Eduardo Romero's score?
|
SELECT Score FROM table WHERE Player = eduardo romero
|
Translate the following into a SQL query
|
Where was the score 67-71-70=208?
|
SELECT Place FROM table WHERE Score = 67-71-70=208
|
Translate the following into a SQL query
|
What was the score when Fred Couples played in the United States and placed t9?
|
SELECT Score FROM table WHERE Country = united states AND Place = t9 AND Player = fred couples
|
Translate the following into a SQL query
|
What country does Gary Koch play for?
|
SELECT Country FROM table WHERE Player = gary koch
|
Translate the following into a SQL query
|
Who plays for Zimbabwe?
|
SELECT Player FROM table WHERE Country = zimbabwe
|
Translate the following into a SQL query
|
What was the To par when the place was 4?
|
SELECT To par FROM table WHERE Place = 4
|
Translate the following into a SQL query
|
What is the current club with a position of sg/sf and a height less than 1.96?
|
SELECT Current Club FROM table WHERE Position = sg/sf AND Height < 1.96
|
Translate the following into a SQL query
|
What year was Rowan Barrett born?
|
SELECT Year born (Age) FROM table WHERE Player = rowan barrett
|
Translate the following into a SQL query
|
What is the lowest height for Rans Brempong?
|
SELECT MIN Height FROM table WHERE Player = rans brempong
|
Translate the following into a SQL query
|
When was the result 0–3?
|
SELECT Date FROM table WHERE Result = 0–3
|
Translate the following into a SQL query
|
What is the result of the match on 9 September 2009?
|
SELECT Result FROM table WHERE Date = 9 september 2009
|
Translate the following into a SQL query
|
What is the name of the player that was loaned out on 13 August 2008 ?
|
SELECT Name FROM table WHERE Date From = 13 august 2008
|
Translate the following into a SQL query
|
When was febian brandy loaned out until, when was loaned out on 2 february 2009.?
|
SELECT Date To FROM table WHERE Name = febian brandy AND Date From = 2 february 2009
|
Translate the following into a SQL query
|
When was james chester loaned out until ?
|
SELECT Date To FROM table WHERE Name = james chester
|
Translate the following into a SQL query
|
Where did the player loaned out on 27 november 2008 move to ?
|
SELECT Moving To FROM table WHERE Date From = 27 november 2008
|
Translate the following into a SQL query
|
When was ron-robert zieler loaned out until ?
|
SELECT Date To FROM table WHERE Name = ron-robert zieler
|
Translate the following into a SQL query
|
Where did the player in Pos mf, move to until 30 june 2009 ?
|
SELECT Moving To FROM table WHERE Date To = 30 june 2009 AND Pos. = mf
|
Translate the following into a SQL query
|
What is the name of the manager who was replaced by michael skibbe?
|
SELECT Name FROM table WHERE Replacement = michael skibbe
|
Translate the following into a SQL query
|
What is the club the used aykut kocaman as the replacement?
|
SELECT Club FROM table WHERE Replacement = aykut kocaman
|
Translate the following into a SQL query
|
What is the date of appointment of nejat biyedić?
|
SELECT Date of appointment FROM table WHERE Name = nejat biyedić
|
Translate the following into a SQL query
|
When did they play at the wachovia center?
|
SELECT Date FROM table WHERE Location/Attendance = wachovia center
|
Translate the following into a SQL query
|
What game number was played at amway arena?
|
SELECT Game FROM table WHERE Location/Attendance = amway arena
|
Translate the following into a SQL query
|
How many medals were won total for the country that won 1 silver and was ranked 2 or lower?
|
SELECT COUNT Total FROM table WHERE Silver = 1 AND Rank < 2
|
Translate the following into a SQL query
|
How many silvers did the country with more than 0 gold and a rank above 1 win that had a total less than 4?
|
SELECT COUNT Silver FROM table WHERE Gold > 0 AND Rank > 1 AND Total < 4
|
Translate the following into a SQL query
|
How many bronzes were won by the country with a total higher than 5?
|
SELECT SUM Bronze FROM table WHERE Total > 5
|
Translate the following into a SQL query
|
How many bronzes were won for the country that had a larger than 3 rank and a silver win count above 0?
|
SELECT SUM Bronze FROM table WHERE Rank > 3 AND Silver > 0
|
Translate the following into a SQL query
|
What is the highest value for Other that has CONCACAF value of 0 a U.S. Open Cup larger than 0?
|
SELECT MAX Other FROM table WHERE U.S. Open Cup > 0 AND CONCACAF = 0
|
Translate the following into a SQL query
|
Which Subregion has a No P. of 4, and a Pop/Area (1/km²) of 534?
|
SELECT Subregion FROM table WHERE No P. = 4 AND Pop/Area (1/km²) = 534
|
Translate the following into a SQL query
|
Which Pop/Area (1/km²) has a No P. larger than 1, and a Name of albergaria-a-velha?
|
SELECT AVG Pop/Area (1/km²) FROM table WHERE No P. > 1 AND Name = albergaria-a-velha
|
Translate the following into a SQL query
|
Which Area (km²) is the lowest one that has a Population of 17,089?
|
SELECT MIN Area (km²) FROM table WHERE Pop. = 17,089
|
Translate the following into a SQL query
|
Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay?
|
SELECT Home team FROM table WHERE Tie no = replay AND Date = 4 february 1987 AND Away team = luton town
|
Translate the following into a SQL query
|
What was the score on 31 January 1987 with tie number 1?
|
SELECT Score FROM table WHERE Date = 31 january 1987 AND Tie no = 1
|
Translate the following into a SQL query
|
Who was the away team on 31 January 1987 when the home team was Wimbledon?
|
SELECT Away team FROM table WHERE Date = 31 january 1987 AND Home team = wimbledon
|
Translate the following into a SQL query
|
How high is Macedonia's highest point?
|
SELECT Height (ft) FROM table WHERE Country = macedonia
|
Translate the following into a SQL query
|
What is the theme with dani as the winner?
|
SELECT Theme FROM table WHERE Winner = dani
|
Translate the following into a SQL query
|
What are the notes of the patience theme?
|
SELECT Notes FROM table WHERE Theme = patience
|
Translate the following into a SQL query
|
what is the round when the position is (c)?
|
SELECT MAX Round FROM table WHERE Position = (c)
|
Translate the following into a SQL query
|
what is the round for jake gardiner?
|
SELECT AVG Round FROM table WHERE Player = jake gardiner
|
Translate the following into a SQL query
|
what is the college/junior/club team (league) when the round is higher than 1, the nationality is canada and the position is (d)?
|
SELECT College/Junior/Club Team (League) FROM table WHERE Round > 1 AND Nationality = canada AND Position = (d)
|
Translate the following into a SQL query
|
what is the position when the round is higher than 3, the nationality is united states and the player is nick pryor?
|
SELECT Position FROM table WHERE Round > 3 AND Nationality = united states AND Player = nick pryor
|
Translate the following into a SQL query
|
what is the college/junior/club team (league) when the position is (c) and the round is higher than 2?
|
SELECT College/Junior/Club Team (League) FROM table WHERE Position = (c) AND Round > 2
|
Translate the following into a SQL query
|
When the team Heathmere of the South West DFL won more than 11 games, what is the maximum byes?
|
SELECT MAX Byes FROM table WHERE South West DFL = heathmere AND Wins > 11
|
Translate the following into a SQL query
|
What is the most games lost when the against is greater than 1401, and the draws greater than 0?
|
SELECT MAX Losses FROM table WHERE Draws > 0 AND Against > 1401
|
Translate the following into a SQL query
|
What is the maximum draws when less than 2514 is the against, and less than 0 byes?
|
SELECT MAX Draws FROM table WHERE Against < 2514 AND Byes < 0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.