instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
In what place did Des Smyth, who scored less than 71, finish?
|
SELECT Place FROM table WHERE Score < 71 AND Player = des smyth
|
Translate the following into a SQL query
|
What is the spaceport location that houses the LC34 complex and uses the Saturn IB launcher?
|
SELECT Spaceport FROM table WHERE Launcher = saturn ib AND Launch complex = lc34
|
Translate the following into a SQL query
|
Which spacecraft were launched by the Titan II?
|
SELECT Spacecraft FROM table WHERE Launcher = titan ii
|
Translate the following into a SQL query
|
What was the launcher vehicle for Apollo-Soyuz?
|
SELECT Launcher FROM table WHERE Spacecraft = apollo-soyuz
|
Translate the following into a SQL query
|
Which complex used the Soyuz (r) launcher to facilitate 14 orbital flights?
|
SELECT Launch complex FROM table WHERE Launcher = soyuz (r) AND Flights = 14 orbital
|
Translate the following into a SQL query
|
what is 2008 when the tournament is year end ranking?
|
SELECT 2008 FROM table WHERE Tournament = year end ranking
|
Translate the following into a SQL query
|
what is 2012 when the tournament is cincinnati masters?
|
SELECT 2012 FROM table WHERE Tournament = cincinnati masters
|
Translate the following into a SQL query
|
what is 2008 when 2012 is 3r and 2009 is 2r?
|
SELECT 2008 FROM table WHERE 2012 = 3r AND 2009 = 2r
|
Translate the following into a SQL query
|
What is the Winner's Prize at the 2009 Providence, RI Championship?
|
SELECT Winner's Prize FROM table WHERE Location = providence, ri AND Year = 2009
|
Translate the following into a SQL query
|
How tall is the structure built in 1907?
|
SELECT Height ft (m) FROM table WHERE Year = 1907
|
Translate the following into a SQL query
|
Which building has more than 34 floors?
|
SELECT Name FROM table WHERE Floors > 34
|
Translate the following into a SQL query
|
Which rank has 0 bronze and 2 silver?
|
SELECT MIN Gold FROM table WHERE Bronze = 0 AND Silver < 2
|
Translate the following into a SQL query
|
How much silver does the rank have that has gold smaller than 4, and a total of 1 and a rank larger than 6?
|
SELECT SUM Silver FROM table WHERE Gold < 4 AND Total = 1 AND Rank > 6
|
Translate the following into a SQL query
|
Which rank has a more than 0 silver, 4 bronze, and a total smaller than 10?
|
SELECT SUM Rank FROM table WHERE Silver > 0 AND Bronze = 4 AND Total < 10
|
Translate the following into a SQL query
|
How much gold does the tank have that has 3 silver and more than 3 bronze?
|
SELECT COUNT Gold FROM table WHERE Silver = 3 AND Bronze > 3
|
Translate the following into a SQL query
|
What is the total number that 0 silver?
|
SELECT COUNT Total FROM table WHERE Silver < 0
|
Translate the following into a SQL query
|
Which Score has a To par larger than 17, and a Player of mike brady?
|
SELECT Score FROM table WHERE To par > 17 AND Player = mike brady
|
Translate the following into a SQL query
|
Which Place that has Money of 150, and a Player of bobby cruickshank?
|
SELECT Place FROM table WHERE Money ( $ ) = 150 AND Player = bobby cruickshank
|
Translate the following into a SQL query
|
Which Place has a To par smaller than 15, and a Score of 74-74-74-75=297?
|
SELECT Place FROM table WHERE To par < 15 AND Score = 74-74-74-75=297
|
Translate the following into a SQL query
|
What is the score when the tie number is 8?
|
SELECT Score FROM table WHERE Tie no = 8
|
Translate the following into a SQL query
|
What is the score when the tie number is 6?
|
SELECT Score FROM table WHERE Tie no = 6
|
Translate the following into a SQL query
|
What is the tie number for Middlesbrough?
|
SELECT Tie no FROM table WHERE Home team = middlesbrough
|
Translate the following into a SQL query
|
What status has 15/04/1967 as the date?
|
SELECT Status FROM table WHERE Date = 15/04/1967
|
Translate the following into a SQL query
|
What venue has Scotland as the opposing teams?
|
SELECT Venue FROM table WHERE Opposing Teams = scotland
|
Translate the following into a SQL query
|
What status has France as the opposing teams?
|
SELECT Status FROM table WHERE Opposing Teams = france
|
Translate the following into a SQL query
|
What kind of Week 4 has a Week 9 of all housemates?
|
SELECT Week 4 FROM table WHERE Week 9 = all housemates
|
Translate the following into a SQL query
|
Which Week 3 has a Week 9 of ejected (day 3)?
|
SELECT Week 3 FROM table WHERE Week 9 = ejected (day 3)
|
Translate the following into a SQL query
|
What kind of Week 1 has a Week 8 of not eligible, and a Week 9 of no nominations, and a Week 3 of cyril? Question 3
|
SELECT Week 1 FROM table WHERE Week 8 = not eligible AND Week 9 = no nominations AND Week 3 = cyril
|
Translate the following into a SQL query
|
What kind of Week 9 has a Week 1 of no nominations, and a Week 6 of not eligible, and a Week 2 of not eligible, and a Week 10 FINAL of evicted (day 57)?
|
SELECT Week 9 FROM table WHERE Week 1 = no nominations AND Week 6 = not eligible AND Week 2 = not eligible AND Week 10 FINAL = evicted (day 57)
|
Translate the following into a SQL query
|
What kind of Week 7 has a Week 5 of evicted (day 15)?
|
SELECT Week 7 FROM table WHERE Week 5 = evicted (day 15)
|
Translate the following into a SQL query
|
What kind of Week 6 has a Week 2 of see notes 2 , 3 , 4?
|
SELECT Week 6 FROM table WHERE Week 2 = see notes 2 , 3 , 4
|
Translate the following into a SQL query
|
Which Against has more than 11 wins, and a Geelong FL of st josephs?
|
SELECT MIN Against FROM table WHERE Wins > 11 AND Geelong FL = st josephs
|
Translate the following into a SQL query
|
What is the Attendance of the game with a Loss of Hiller (3β2)?
|
SELECT MAX Attendance FROM table WHERE Loss = hiller (3β2)
|
Translate the following into a SQL query
|
Who is the away team that tottenham hotspur played?
|
SELECT Away team FROM table WHERE Home team = tottenham hotspur
|
Translate the following into a SQL query
|
What was the score of the game with away team chelsea on 29 january 1983?
|
SELECT Score FROM table WHERE Date = 29 january 1983 AND Away team = chelsea
|
Translate the following into a SQL query
|
What date was the game that home team torquay united played?
|
SELECT Date FROM table WHERE Home team = torquay united
|
Translate the following into a SQL query
|
Who is the team that played away team watford?
|
SELECT Home team FROM table WHERE Away team = watford
|
Translate the following into a SQL query
|
What date was the game when home team crystal palace played?
|
SELECT Date FROM table WHERE Home team = crystal palace
|
Translate the following into a SQL query
|
What country is Retief Goosen from?
|
SELECT Country FROM table WHERE Player = retief goosen
|
Translate the following into a SQL query
|
What is the number of high checkout with fewer than 13 legs won, a 180s lower than 2 and an LWAT of more than 1?
|
SELECT COUNT High Checkout FROM table WHERE Legs Won < 13 AND 180s < 2 AND LWAT > 1
|
Translate the following into a SQL query
|
What is the total 140+ with a high checkout of 74 and a 100+ higher than 17?
|
SELECT SUM 140+ FROM table WHERE High Checkout = 74 AND 100+ > 17
|
Translate the following into a SQL query
|
How many played are there with a 3-dart average of more than 90.8, an LWAT higher than 5 and fewer than 17 legs lost?
|
SELECT AVG Played FROM table WHERE 3-dart Average > 90.8 AND LWAT > 5 AND Legs Lost < 17
|
Translate the following into a SQL query
|
What Player is in Place 1?
|
SELECT Player FROM table WHERE Place = 1
|
Translate the following into a SQL query
|
What is the Country of the Player in Place 1?
|
SELECT Country FROM table WHERE Place = 1
|
Translate the following into a SQL query
|
What is the Place of the Player with a To par of β10 and a Score of 67-67-66=200?
|
SELECT Place FROM table WHERE To par = β10 AND Score = 67-67-66=200
|
Translate the following into a SQL query
|
Can you tell me the total number of Rank that has the Points larger than 99, and the Club of barcelona?
|
SELECT COUNT Rank FROM table WHERE Points > 99 AND Club = barcelona
|
Translate the following into a SQL query
|
How many people on average attended when Eastwood Town was the away team, and the tie number was less than 8?
|
SELECT AVG Attendance FROM table WHERE Tie no < 8 AND Away team = eastwood town
|
Translate the following into a SQL query
|
The game with home team Crowborough Athletic, with an attendance less than 848 had what as the score?
|
SELECT Score FROM table WHERE Attendance < 848 AND Home team = crowborough athletic
|
Translate the following into a SQL query
|
The game with Bashley as the home team had what maximum attendance?
|
SELECT MAX Attendance FROM table WHERE Home team = bashley
|
Translate the following into a SQL query
|
What is the tie number total when Harlow Town is the away team?
|
SELECT COUNT Tie no FROM table WHERE Away team = harlow town
|
Translate the following into a SQL query
|
Which artist has a draw greater than 15?
|
SELECT Artist FROM table WHERE Draw > 15
|
Translate the following into a SQL query
|
What was the highest place a song by Jacques Raymond reached, with a draw over 14?
|
SELECT MAX Place FROM table WHERE Artist = jacques raymond AND Draw > 14
|
Translate the following into a SQL query
|
What is the Craft used at Coniston Water?
|
SELECT Craft FROM table WHERE Location = coniston water
|
Translate the following into a SQL query
|
What is the Speed at Lake Mead?
|
SELECT Speed FROM table WHERE Location = lake mead
|
Translate the following into a SQL query
|
Which Goals have a Ratio of 0.29?
|
SELECT Goals FROM table WHERE Ratio = 0.29
|
Translate the following into a SQL query
|
Which Goals have a Current Club of real madrid, and a Ratio smaller than 1.08, and a Rank smaller than 5?
|
SELECT MAX Goals FROM table WHERE Current Club = real madrid AND Ratio < 1.08 AND Rank < 5
|
Translate the following into a SQL query
|
Which Current Club has a Rank of 4?
|
SELECT Current Club FROM table WHERE Rank = 4
|
Translate the following into a SQL query
|
What is the second party that has a conservative first party in the 1834 election?
|
SELECT Second party FROM table WHERE First party = conservative AND Election = 1834
|
Translate the following into a SQL query
|
Who is the second member with first member Sir Rowland Hill, BT, and a conservative second party?
|
SELECT Second member FROM table WHERE First member = sir rowland hill, bt AND Second party = conservative
|
Translate the following into a SQL query
|
What is the first party with second member Hon. Rowland Hill, in the 1857 election?
|
SELECT First party FROM table WHERE Second member = hon. rowland hill AND Election = 1857
|
Translate the following into a SQL query
|
Who is the second member that is a second party Whig in the 1834 election?
|
SELECT Second member FROM table WHERE Second party = whig AND Election = 1834
|
Translate the following into a SQL query
|
What is the second party that has a conservative first party and second member John Cotes?
|
SELECT Second party FROM table WHERE First party = conservative AND Second member = john cotes
|
Translate the following into a SQL query
|
What place is the player with a score of 69-68=137?
|
SELECT Place FROM table WHERE Score = 69-68=137
|
Translate the following into a SQL query
|
What's the score for the t10 player from zimbabwe?
|
SELECT Score FROM table WHERE Place = t10 AND Country = zimbabwe
|
Translate the following into a SQL query
|
What's the score of the t10 player from australia?
|
SELECT Score FROM table WHERE Place = t10 AND Country = australia
|
Translate the following into a SQL query
|
What's bob tway's score?
|
SELECT Score FROM table WHERE Player = bob tway
|
Translate the following into a SQL query
|
What Player has a Place of t10, a Country of united states, and a Score of 67-73=140?
|
SELECT Player FROM table WHERE Place = t10 AND Country = united states AND Score = 67-73=140
|
Translate the following into a SQL query
|
What Place has a Player of seve ballesteros?
|
SELECT Place FROM table WHERE Player = seve ballesteros
|
Translate the following into a SQL query
|
What Country has a Player of nick faldo?
|
SELECT Country FROM table WHERE Player = nick faldo
|
Translate the following into a SQL query
|
What To par has a Place of t10, and a Score of 67-73=140?
|
SELECT To par FROM table WHERE Place = t10 AND Score = 67-73=140
|
Translate the following into a SQL query
|
What Score has a Place of t6, a Country of united states, and a Player of fred couples?
|
SELECT Score FROM table WHERE Place = t6 AND Country = united states AND Player = fred couples
|
Translate the following into a SQL query
|
What To par has a Score of 68-66=134?
|
SELECT To par FROM table WHERE Score = 68-66=134
|
Translate the following into a SQL query
|
Name the Provider that has a pay in 2006β, and a Transmission of iptv and digital terrestrial?
|
SELECT Provider FROM table WHERE Free or pay = pay AND Years = 2006β AND Transmission = iptv and digital terrestrial
|
Translate the following into a SQL query
|
Name the Years which have Transmission of digital satellite, an On demand of no, and a Free or pay of free + ppv?
|
SELECT Years FROM table WHERE Transmission = digital satellite AND On demand = no AND Free or pay = free + ppv
|
Translate the following into a SQL query
|
What kind of Free or pay has Years of 2006β and a Provider of bt tv (formerly bt vision)?
|
SELECT Free or pay FROM table WHERE Years = 2006β AND Provider = bt tv (formerly bt vision)
|
Translate the following into a SQL query
|
Name the Years that have a free + pay?
|
SELECT Years FROM table WHERE Free or pay = free + pay
|
Translate the following into a SQL query
|
Which On demandhas a Free or pay of free and a Provider of freesat?
|
SELECT On demand FROM table WHERE Free or pay = free AND Provider = freesat
|
Translate the following into a SQL query
|
Which On demand has a pay and a Provider of virgin media (formerly ntl:telewest)?
|
SELECT On demand FROM table WHERE Free or pay = pay AND Provider = virgin media (formerly ntl:telewest)
|
Translate the following into a SQL query
|
What is the region for tv uskana?
|
SELECT Region FROM table WHERE Name = tv uskana
|
Translate the following into a SQL query
|
What is the region for tv vtv?
|
SELECT Region FROM table WHERE Name = tv vtv
|
Translate the following into a SQL query
|
What is the highest Week with the Opponent Buffalo Bills?
|
SELECT MAX Week FROM table WHERE Opponent = buffalo bills
|
Translate the following into a SQL query
|
Which Opponent has an Attendance greater than 14,431 during Week 3 at Bears Stadium Game site?
|
SELECT Opponent FROM table WHERE Attendance > 14,431 AND Game site = bears stadium AND Week = 3
|
Translate the following into a SQL query
|
Which Attendance is larger than 1,000, with a Competition of world cup, and a Venue of dublin?
|
SELECT Date FROM table WHERE Attendance > 1,000 AND Competition = world cup AND Venue = dublin
|
Translate the following into a SQL query
|
Which Venue that has an Attendance larger than 1,000, and a Result of scotland 12-20 samoa?
|
SELECT Venue FROM table WHERE Attendance > 1,000 AND Result = scotland 12-20 samoa
|
Translate the following into a SQL query
|
Which Competition has a Result of france 46-16 scotland?
|
SELECT Competition FROM table WHERE Result = france 46-16 scotland
|
Translate the following into a SQL query
|
Which Percentage has a District larger than 2, and a Party of independent?
|
SELECT Percentage FROM table WHERE District > 2 AND Party = independent
|
Translate the following into a SQL query
|
How many votes have a Seat of house A, and a Percentage of 75.44%, and a District smaller than 11?
|
SELECT COUNT Vote FROM table WHERE Seat = house a AND Percentage = 75.44% AND District < 11
|
Translate the following into a SQL query
|
What nation has more than 1 bronze and less than 3 silver?
|
SELECT Nation FROM table WHERE Bronze > 1 AND Silver < 3
|
Translate the following into a SQL query
|
What's the highest number of silver for 9 bronze and less than 27 total?
|
SELECT MAX Silver FROM table WHERE Bronze = 9 AND Total < 27
|
Translate the following into a SQL query
|
What is the Market Share that has Assets of 25 Million and a rank of 23?
|
SELECT Market Share FROM table WHERE Assets (USD) Millions = 25 AND Rank = 23
|
Translate the following into a SQL query
|
What is the highest Assets (USD) Millions from Equity Bank and less than 44 branches?
|
SELECT MAX Assets (USD) Millions FROM table WHERE Bank = equity bank AND Number of Branches < 44
|
Translate the following into a SQL query
|
What is Score, when Attendance is "349"?
|
SELECT Score FROM table WHERE Attendance = 349
|
Translate the following into a SQL query
|
What is Score, when Away Team is "Newcastle Benfield"?
|
SELECT Score FROM table WHERE Away team = newcastle benfield
|
Translate the following into a SQL query
|
What is Score, when Tie No is "30"?
|
SELECT Score FROM table WHERE Tie no = 30
|
Translate the following into a SQL query
|
What is Score, when Tie No is "109"?
|
SELECT Score FROM table WHERE Tie no = 109
|
Translate the following into a SQL query
|
What is Away Team, when Tie No is "37"?
|
SELECT Away team FROM table WHERE Tie no = 37
|
Translate the following into a SQL query
|
What is the Australian for the American Ι?
|
SELECT Australian FROM table WHERE American = Ι
|
Translate the following into a SQL query
|
What is the Australian equivalent to i /Ιͺ/?
|
SELECT Australian FROM table WHERE Letter = i /Ιͺ/
|
Translate the following into a SQL query
|
What is the British for the Australian Ι?
|
SELECT British FROM table WHERE Australian = Ι
|
Translate the following into a SQL query
|
What is the American version of the British Ι?
|
SELECT American FROM table WHERE British = Ι
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.