instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is the height of player James Stanton?
SELECT Height FROM table WHERE Name = james stanton
Translate the following into a SQL query
What is the highest draft after round 2, is from the United States and has picked less than 113?
SELECT MAX Draft FROM table WHERE Round > 2 AND Nationality = united states AND Pick < 113
Translate the following into a SQL query
What is the average draft with a pick larger than 42, and player Grant Eakin after round 8?
SELECT AVG Draft FROM table WHERE Pick > 42 AND Player = grant eakin AND Round > 8
Translate the following into a SQL query
What venue was the 2000 AFC Asian Cup qualification held at?
SELECT Venue FROM table WHERE Competition = 2000 afc asian cup qualification
Translate the following into a SQL query
What were the lowest goals when the matches were smaller than 29?
SELECT MIN Goals FROM table WHERE Matches < 29
Translate the following into a SQL query
What is the lowest match for goals larger than 36?
SELECT MIN Matches FROM table WHERE Goals > 36
Translate the following into a SQL query
For the 2013 completion schedule, what is the total S.no.?
SELECT SUM S.no. FROM table WHERE Completion Schedule = 2013
Translate the following into a SQL query
What is the completion schedule for himachal pradesh state with a total capacity (MW) of 800?
SELECT Completion Schedule FROM table WHERE State = himachal pradesh AND Total Capacity (MW) = 800
Translate the following into a SQL query
When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?
SELECT MIN S.no. FROM table WHERE State = jammu & kashmir AND Completion Schedule = 2016
Translate the following into a SQL query
What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?
SELECT 2009 FROM table WHERE 2012 = a AND 2011 = 1r AND Tournament = shanghai masters
Translate the following into a SQL query
What is the 2011 value of the paris masters, which had A in 2008, A in 2012, A in 2009?
SELECT 2011 FROM table WHERE 2008 = a AND 2012 = a AND 2009 = a AND Tournament = paris masters
Translate the following into a SQL query
What is the 2012 of the hamburg masters?
SELECT 2012 FROM table WHERE Tournament = hamburg masters
Translate the following into a SQL query
What is the 2008 value of the hamburg masters?
SELECT 2008 FROM table WHERE Tournament = hamburg masters
Translate the following into a SQL query
What is the 2009 value with lq in 2012, 2r in 2011, and lq in 2008?
SELECT 2009 FROM table WHERE 2012 = lq AND 2011 = 2r AND 2008 = lq
Translate the following into a SQL query
What is the 2010 value of the monte carlo masters, which had A in 2012?
SELECT 2010 FROM table WHERE 2012 = a AND Tournament = monte carlo masters
Translate the following into a SQL query
What is the quantity when the DRG was E 62 01–E 62 05?
SELECT COUNT Quantity FROM table WHERE DRG Number(s) = e 62 01–e 62 05
Translate the following into a SQL query
Which Opponent in the final has a Partnering of graydon oliver?
SELECT Opponent in the final FROM table WHERE Partnering = graydon oliver
Translate the following into a SQL query
which Score has a Partnering of dmitry tursunov?
SELECT Score FROM table WHERE Partnering = dmitry tursunov
Translate the following into a SQL query
Which Score has an Opponent in the final of chris haggard robbie koenig?
SELECT Score FROM table WHERE Opponent in the final = chris haggard robbie koenig
Translate the following into a SQL query
Which Partnering has a Score of 7–6 7 , 6–1?
SELECT Partnering FROM table WHERE Score = 7–6 7 , 6–1
Translate the following into a SQL query
Name the Surface that of Tournament of valencia , spain?
SELECT Surface FROM table WHERE Tournament = valencia , spain
Translate the following into a SQL query
Name the Opponent in the final on july 4, 2005?
SELECT Opponent in the final FROM table WHERE Date = july 4, 2005
Translate the following into a SQL query
What was the Result F–A on 21 February 2009, when the league position was 1st?
SELECT Result F–A FROM table WHERE League position = 1st AND Date = 21 february 2009
Translate the following into a SQL query
What club does John Westin play for?
SELECT College/junior/club team (league) FROM table WHERE Player = john westin
Translate the following into a SQL query
In what round was a left wing drafted?
SELECT Round FROM table WHERE Position = left wing
Translate the following into a SQL query
What player was drafted in Round 5?
SELECT Player FROM table WHERE Round = 5
Translate the following into a SQL query
Where did the player who won in 1991 finish?
SELECT Finish FROM table WHERE Year(s) won = 1991
Translate the following into a SQL query
Which player is from scotland?
SELECT Player FROM table WHERE Country = scotland
Translate the following into a SQL query
What are the Lyrics (l) / Music (m) when the draw was 5?
SELECT Lyrics (l) / Music (m) FROM table WHERE Draw = 5
Translate the following into a SQL query
What is the Lyrics (l) / Music (m) when the draw was more than 3, and the results were Siste Sjansen, and song shows"shuffled"?
SELECT Lyrics (l) / Music (m) FROM table WHERE Draw > 3 AND Results = siste sjansen AND Song = "shuffled"
Translate the following into a SQL query
What is the Lyrics (l) / Music (m) when the results show out, and the song shows "left/right"?
SELECT Lyrics (l) / Music (m) FROM table WHERE Results = out AND Song = "left/right"
Translate the following into a SQL query
What score has friendly as the competition?
SELECT Score FROM table WHERE Competition = friendly
Translate the following into a SQL query
Playing against Chelmsford City on 15 November 1986, who was the home team?
SELECT Home team FROM table WHERE Date = 15 november 1986 AND Away team = chelmsford city
Translate the following into a SQL query
When Lincoln City was the away team what is the tie number?
SELECT Tie no FROM table WHERE Away team = lincoln city
Translate the following into a SQL query
When was the game played that had Rochdale as the away team?
SELECT Date FROM table WHERE Away team = rochdale
Translate the following into a SQL query
Scunthorpe United as the home team has what tie number?
SELECT Tie no FROM table WHERE Home team = scunthorpe united
Translate the following into a SQL query
The game played on 6 December 1986 had what score?
SELECT Score FROM table WHERE Date = 6 december 1986
Translate the following into a SQL query
WHAT IS THE TYPE WITH 124?
SELECT Type FROM table WHERE Quantity = 124
Translate the following into a SQL query
What is Score, when Total is "28:42"?
SELECT Score FROM table WHERE Total = 28:42
Translate the following into a SQL query
What is Date, when Set 1 is "20:22"?
SELECT Date FROM table WHERE Set 1 = 20:22
Translate the following into a SQL query
What is Set 1, when Set 2 is "21:18"?
SELECT Set 1 FROM table WHERE Set 2 = 21:18
Translate the following into a SQL query
What is Set 2, when Total is "52:44"?
SELECT Set 2 FROM table WHERE Total = 52:44
Translate the following into a SQL query
What is the away team with a 4 tie no.?
SELECT Away team FROM table WHERE Tie no = 4
Translate the following into a SQL query
What is the date southampton was the away team?
SELECT Date FROM table WHERE Away team = southampton
Translate the following into a SQL query
What is the score of the home team tottenham hotspur?
SELECT Score FROM table WHERE Home team = tottenham hotspur
Translate the following into a SQL query
What was the score of the game on 16 december 1987?
SELECT Score FROM table WHERE Date = 16 december 1987
Translate the following into a SQL query
Who played against the away team hereford united?
SELECT Home team FROM table WHERE Away team = hereford united
Translate the following into a SQL query
Who played against away team hereford united?
SELECT Home team FROM table WHERE Away team = hereford united
Translate the following into a SQL query
Which club was in Position 1 in 1959-1960?
SELECT Clubs FROM table WHERE Position in 1959–1960 = 1
Translate the following into a SQL query
In which season did the évora settlements join the league?
SELECT Season joined league FROM table WHERE Settlements = évora
Translate the following into a SQL query
What was the position in 1959-1960 for the club that had 14 seasons at this level?
SELECT Position in 1959–1960 FROM table WHERE Seasons at this level = 14 seasons
Translate the following into a SQL query
What was the position in 1959-1960 for the Sporting De Braga club?
SELECT Position in 1959–1960 FROM table WHERE Clubs = sporting de braga
Translate the following into a SQL query
What is the "season joined league" for the club that had 15 seasons at this level?
SELECT Season joined league FROM table WHERE Seasons at this level = 15 seasons
Translate the following into a SQL query
What country has a score of 71-66-72-72=281?
SELECT Country FROM table WHERE Score = 71-66-72-72=281
Translate the following into a SQL query
What is the total amount of money that Payne Stewart has?
SELECT SUM Money ( £ ) FROM table WHERE Player = payne stewart
Translate the following into a SQL query
What country has player Nick Faldo?
SELECT Country FROM table WHERE Player = nick faldo
Translate the following into a SQL query
What is the to par for the score 64-73-74-69=280?
SELECT To par FROM table WHERE Score = 64-73-74-69=280
Translate the following into a SQL query
What is the lowest rank for China Eastern Airlines, Korean Air with more passengers than 97,055?
SELECT MIN Rank FROM table WHERE Carriers = china eastern airlines, korean air AND Passengers > 97,055
Translate the following into a SQL query
What is the smallest rank for passengers more than 73,754?
SELECT MIN Rank FROM table WHERE Passengers > 73,754
Translate the following into a SQL query
Which carrier is ranked 20?
SELECT Carriers FROM table WHERE Rank = 20
Translate the following into a SQL query
What is the highest rank when there are fewer than 124,296 passengers?
SELECT MAX Rank FROM table WHERE Passengers < 124,296
Translate the following into a SQL query
What's the 2013 result for the grand slam tournaments?
SELECT 2013 FROM table WHERE Tournament = grand slam tournaments
Translate the following into a SQL query
What's the 2010 result when 2006 is a?
SELECT 2010 FROM table WHERE 2006 = a
Translate the following into a SQL query
What tournament has a 2003 of a?
SELECT Tournament FROM table WHERE 2003 = a
Translate the following into a SQL query
What's the 2007 result when 2003 is a?
SELECT 2007 FROM table WHERE 2003 = a
Translate the following into a SQL query
What's the 2011 result when 2010 is 2r and 2013 is w?
SELECT 2011 FROM table WHERE 2010 = 2r AND 2013 = w
Translate the following into a SQL query
What's the 2005 result when 2001 is sf?
SELECT 2005 FROM table WHERE 2001 = sf
Translate the following into a SQL query
When the wolverhampton wanderers were the opponent, with a crowd larger than 41,415, what was the result?
SELECT Result FROM table WHERE Attendance > 41,415 AND Opponent = wolverhampton wanderers
Translate the following into a SQL query
Which Binibining Pilipinas-World has a Second runner-up of sonia santiago?
SELECT Binibining Pilipinas-World FROM table WHERE Second runner-up = sonia santiago
Translate the following into a SQL query
Which Year has a Binibining Pilipinas International of alma concepcion?
SELECT Year FROM table WHERE Binibining Pilipinas International = alma concepcion
Translate the following into a SQL query
Which Binibining Pilipinas International has a Binibining Pilipinas-World of sharmaine gutierrez?
SELECT Binibining Pilipinas International FROM table WHERE Binibining Pilipinas-World = sharmaine gutierrez
Translate the following into a SQL query
Which Result has a Site of rice stadium • houston, tx?
SELECT Result FROM table WHERE Site = rice stadium • houston, tx
Translate the following into a SQL query
What Opponent has a Site of razorback stadium • fayetteville, ar, and a Date of october 7, 1967?
SELECT Opponent FROM table WHERE Site = razorback stadium • fayetteville, ar AND Date = october 7, 1967
Translate the following into a SQL query
What Opponent has a Site of war memorial stadium • little rock, ar, and a Result of l6–7?
SELECT Opponent FROM table WHERE Site = war memorial stadium • little rock, ar AND Result = l6–7
Translate the following into a SQL query
What Result has a Date of october 14, 1967?
SELECT Result FROM table WHERE Date = october 14, 1967
Translate the following into a SQL query
What Attendance has a Result of l12–21?
SELECT Attendance FROM table WHERE Result = l12–21
Translate the following into a SQL query
What Site has Attendance of 53,000, and a Date of october 21, 1967?
SELECT Site FROM table WHERE Attendance = 53,000 AND Date = october 21, 1967
Translate the following into a SQL query
What region is the toshiba emi label with a cd format?
SELECT Region FROM table WHERE Format(s) = cd AND Label = toshiba emi
Translate the following into a SQL query
What is the dage of catalog asw 28033?
SELECT Date FROM table WHERE Catalog = asw 28033
Translate the following into a SQL query
What is the date with a Japan region?
SELECT Date FROM table WHERE Region = japan
Translate the following into a SQL query
What region has a lp format on 4 August 2008?
SELECT Region FROM table WHERE Format(s) = lp AND Date = 4 august 2008
Translate the following into a SQL query
What region is on 11 August 2008?
SELECT Region FROM table WHERE Date = 11 august 2008
Translate the following into a SQL query
What is the position with a neutral H/A/N and more than 2 innings?
SELECT AVG Pos. FROM table WHERE H/A/N = neutral AND Inn. > 2
Translate the following into a SQL query
Which venue has a neutral H/A/N, lower than position 3 and a score of 141?
SELECT Venue FROM table WHERE H/A/N = neutral AND Pos. < 3 AND Score = 141
Translate the following into a SQL query
Which H/A/N has a score of 105*♠?
SELECT H/A/N FROM table WHERE Score = 105*♠
Translate the following into a SQL query
What is the average goals scored when less than 34 were played and there were more than 2 draws?
SELECT AVG Goals Scored FROM table WHERE Played < 34 AND Draw > 2
Translate the following into a SQL query
What is the average goals scored of the team who scored 44 points and placed higher than 5?
SELECT AVG Goals Scored FROM table WHERE Points = 44 AND Place > 5
Translate the following into a SQL query
What is the lowest place of the team who conceded 36 goals and lost more than 6 times?
SELECT MIN Place FROM table WHERE Goals Conceded = 36 AND Lost > 6
Translate the following into a SQL query
what is games when the losses is more than 1, percent is 0.5 and wins is 2?
SELECT Games FROM table WHERE Losses > 1 AND Percent = 0.5 AND Wins = 2
Translate the following into a SQL query
what is the average wins when percent is more than 0.4 and teams is chargers~?
SELECT AVG Wins FROM table WHERE Percent > 0.4 AND Teams = chargers~
Translate the following into a SQL query
What is the average wins when teams is lions and the percent is more than 0?
SELECT AVG Wins FROM table WHERE Teams = lions AND Percent > 0
Translate the following into a SQL query
what is the highest wins when the losses is less than 1, team is rams and the games is more than 8?
SELECT MAX Wins FROM table WHERE Losses < 1 AND Teams = rams AND Games > 8
Translate the following into a SQL query
What category is Matthew Barton?
SELECT Category FROM table WHERE Opponent = matthew barton
Translate the following into a SQL query
When did the ship commissioned in November 1975 with a bow number of ps-18 launch?
SELECT Launched FROM table WHERE Commissioned = november 1975 AND Bow number = ps-18
Translate the following into a SQL query
When did the ship that was commissioned July 1948 with a bow number of ps-31 launch?
SELECT Launched FROM table WHERE Commissioned = july 1948 AND Bow number = ps-31
Translate the following into a SQL query
When was the ship BRP Miguel Malvar commissioned?
SELECT Commissioned FROM table WHERE Ship name = brp miguel malvar
Translate the following into a SQL query
What parish has the lowest area and a population of more than 1,776 and a 579 of 5,008 census ranking?
SELECT MIN Area km 2 FROM table WHERE Population > 1,776 AND Census Ranking = 579 of 5,008
Translate the following into a SQL query
What is the population of northfield parish that has an area less than 342.4?
SELECT SUM Population FROM table WHERE Area km 2 < 342.4 AND Official Name = northfield
Translate the following into a SQL query
What is the population of the parish with a census ranking of 579 of 5,008?
SELECT SUM Population FROM table WHERE Census Ranking = 579 of 5,008
Translate the following into a SQL query
What is the population of the parish that has an area of 304.06?
SELECT SUM Population FROM table WHERE Area km 2 = 304.06