instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What is the career with the franchise of the f/c player with fewer than 9 years of NBA experience who previously played for the Phoenix Suns?
|
SELECT Career with the franchise FROM table WHERE Years of NBA experience [a ] < 9 AND Pos. = f/c AND Previous team = phoenix suns
|
Translate the following into a SQL query
|
What was the tie number when Bournemouth was the home team?
|
SELECT Tie no FROM table WHERE Home team = bournemouth
|
Translate the following into a SQL query
|
Who was the away team when the home team was Norwich City?
|
SELECT Away team FROM table WHERE Home team = norwich city
|
Translate the following into a SQL query
|
On what date was Wimbledon the home team?
|
SELECT Date FROM table WHERE Home team = wimbledon
|
Translate the following into a SQL query
|
On what date was the away team West Ham United?
|
SELECT Date FROM table WHERE Away team = west ham united
|
Translate the following into a SQL query
|
On what date was the away team Bournemouth?
|
SELECT Date FROM table WHERE Away team = bournemouth
|
Translate the following into a SQL query
|
What district has abhayapuri south as the name?
|
SELECT District FROM table WHERE Name = abhayapuri south
|
Translate the following into a SQL query
|
Which Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Rank smaller than 5?
|
SELECT Bronze FROM table WHERE Gold > 1 AND Silver < 3 AND Rank < 5
|
Translate the following into a SQL query
|
Which Rank has a Gold larger than 1, and a Bronze of 4, and a Silver smaller than 1?
|
SELECT MAX Rank FROM table WHERE Gold > 1 AND Bronze = 4 AND Silver < 1
|
Translate the following into a SQL query
|
Which Rank has a Gold of 3, and a Bronze of 4, and a Total larger than 8?
|
SELECT MIN Rank FROM table WHERE Gold = 3 AND Bronze = 4 AND Total > 8
|
Translate the following into a SQL query
|
How much Total has a Rank smaller than 10, and a Silver larger than 3, and a Gold larger than 3?
|
SELECT SUM Total FROM table WHERE Rank < 10 AND Silver > 3 AND Gold > 3
|
Translate the following into a SQL query
|
Which Total has a Rank of 9, and a Silver smaller than 2?
|
SELECT MAX Total FROM table WHERE Rank = 9 AND Silver < 2
|
Translate the following into a SQL query
|
What event had Xu Zhilin competing?
|
SELECT Event FROM table WHERE Name = xu zhilin
|
Translate the following into a SQL query
|
What sport has Ma Yuxi in it?
|
SELECT Sport FROM table WHERE Name = ma yuxi
|
Translate the following into a SQL query
|
How many years is Antonio Pompa-Baldi Italy first?
|
SELECT COUNT Year FROM table WHERE First = antonio pompa-baldi italy
|
Translate the following into a SQL query
|
Who is fourth when Anders Martinson USA is second?
|
SELECT Fourth FROM table WHERE Second = anders martinson usa
|
Translate the following into a SQL query
|
Can you tell me the sum of Wins that has the Club of abuls smiltene, and the Goals smaller than 18?
|
SELECT SUM Wins FROM table WHERE Club = abuls smiltene AND Goals for < 18
|
Translate the following into a SQL query
|
Can you tell me the average Wins that has the Goal Difference larger than -24, and the Draws larger than 7?
|
SELECT AVG Wins FROM table WHERE Goal Difference > -24 AND Draws > 7
|
Translate the following into a SQL query
|
Can you tell me the highest Draws that has the Goal Difference smaller than 64, and the Played larger than 30?
|
SELECT MAX Draws FROM table WHERE Goal Difference < 64 AND Played > 30
|
Translate the following into a SQL query
|
Can you tell me the highest Points that has the Played smaller than 30?
|
SELECT MAX Points FROM table WHERE Played < 30
|
Translate the following into a SQL query
|
What rank was the country with no bronze but at least 1 silver medals?
|
SELECT AVG Rank FROM table WHERE Bronze < 1 AND Silver > 1
|
Translate the following into a SQL query
|
What is the smallest number of gold medals a country with 1 bronze, and a total of 3 medals which is lower than rank 7?
|
SELECT MIN Gold FROM table WHERE Bronze = 1 AND Total = 3 AND Rank > 7
|
Translate the following into a SQL query
|
What is the smallest number of gold medals a country with 7 medals has?
|
SELECT MIN Gold FROM table WHERE Total = 7
|
Translate the following into a SQL query
|
Can you tell me the Host City that has the Games of vii?
|
SELECT Host City FROM table WHERE Games = vii
|
Translate the following into a SQL query
|
What was the nominated work after 2006, that was awarded the Drama Desk award and the Outstanding featured actor in a musical?
|
SELECT Nominated Work FROM table WHERE Year > 2006 AND Award = drama desk award AND Category = outstanding featured actor in a musical
|
Translate the following into a SQL query
|
What year was Evita nominated for outstanding featured actor in a musical?
|
SELECT COUNT Year FROM table WHERE Category = outstanding featured actor in a musical AND Nominated Work = evita
|
Translate the following into a SQL query
|
What was the nominated work, nominated for the drama league award before 2007?
|
SELECT Nominated Work FROM table WHERE Result = nominated AND Award = drama league award AND Year < 2007
|
Translate the following into a SQL query
|
Who had the pole position on 7 August?
|
SELECT Pole Position FROM table WHERE Date = 7 august
|
Translate the following into a SQL query
|
Who was the winning team at Zandvoort?
|
SELECT Winning Team FROM table WHERE Circuit = zandvoort
|
Translate the following into a SQL query
|
Which Losses have Wins smaller than 6, and a South West DFL of sandford?
|
SELECT MIN Losses FROM table WHERE Wins < 6 AND South West DFL = sandford
|
Translate the following into a SQL query
|
How much Against has Draws of 2, and Losses smaller than 4?
|
SELECT SUM Against FROM table WHERE Draws = 2 AND Losses < 4
|
Translate the following into a SQL query
|
How many Losses have South West DFL of coleraine, and an Against smaller than 891?
|
SELECT COUNT Losses FROM table WHERE South West DFL = coleraine AND Against < 891
|
Translate the following into a SQL query
|
What is the lowest played number when goals for is 47, and wins is smaller than 14?
|
SELECT MIN Played FROM table WHERE Goals for = 47 AND Wins < 14
|
Translate the following into a SQL query
|
What Club has 13 wins, goals against less than 48, and a position of 4?
|
SELECT Club FROM table WHERE Wins = 13 AND Goals against < 48 AND Position = 4
|
Translate the following into a SQL query
|
What is the lowest position number when goals against was 59, and a goals for is smaller than 24?
|
SELECT MIN Position FROM table WHERE Goals against = 59 AND Goals for < 24
|
Translate the following into a SQL query
|
What is the highest goals against when points are larger than 31, the goal difference is smaller than 9, wins are 13, and draws are larger than 6?
|
SELECT MAX Goals against FROM table WHERE Points > 31 AND Goal Difference < 9 AND Wins = 13 AND Draws > 6
|
Translate the following into a SQL query
|
What is the lowest played number when points are larger than 32, and a wins are larger than 18?
|
SELECT MIN Played FROM table WHERE Points > 32 AND Wins > 18
|
Translate the following into a SQL query
|
Can you tell me the highest Against that has the Status of six nations, and the Date of 02/03/2002?
|
SELECT MAX Against FROM table WHERE Status = six nations AND Date = 02/03/2002
|
Translate the following into a SQL query
|
Can you tell me the average Against thaylt has the Date of 23/03/2002?
|
SELECT AVG Against FROM table WHERE Date = 23/03/2002
|
Translate the following into a SQL query
|
What is the population of area of 11?
|
SELECT Population FROM table WHERE Area = 11
|
Translate the following into a SQL query
|
What shows for traditional when the population was 44,803?
|
SELECT Traditional FROM table WHERE Population = 44,803
|
Translate the following into a SQL query
|
What is the population when the area is 4,575?
|
SELECT Population FROM table WHERE Area = 4,575
|
Translate the following into a SQL query
|
What shows for simplified when the density is 52?
|
SELECT Simplified FROM table WHERE Density = 52
|
Translate the following into a SQL query
|
What is the density when simplified shows 南山区?
|
SELECT Density FROM table WHERE Simplified = 南山区
|
Translate the following into a SQL query
|
What is the pinyin when the simplified shows 南山区?
|
SELECT Pinyin FROM table WHERE Simplified = 南山区
|
Translate the following into a SQL query
|
What country does Greg Norman represent?
|
SELECT Country FROM table WHERE Player = greg norman
|
Translate the following into a SQL query
|
What years won have a total of 286?
|
SELECT Year(s) won FROM table WHERE Total = 286
|
Translate the following into a SQL query
|
Which player had a total of 295?
|
SELECT Player FROM table WHERE Total = 295
|
Translate the following into a SQL query
|
What is the To par when there was a total of 291?
|
SELECT To par FROM table WHERE Total = 291
|
Translate the following into a SQL query
|
What is the year of daylight service when the builder was Alco?
|
SELECT Years of Daylight Service FROM table WHERE Builder = alco
|
Translate the following into a SQL query
|
What is 2006-07 Season, when Team is "KF Fushë Kosova"?
|
SELECT 2006–07 Season FROM table WHERE Team = kf fushë kosova
|
Translate the following into a SQL query
|
What is 2006-07 Season, when Stadium Capacity is "0 2,500"?
|
SELECT 2006–07 Season FROM table WHERE Stadium capacity = 0 2,500
|
Translate the following into a SQL query
|
What is Stadium Capacity, when 2006-07 Season is "12th"?
|
SELECT Stadium capacity FROM table WHERE 2006–07 Season = 12th
|
Translate the following into a SQL query
|
What is Stadium, when Club Home City is "Peć", and when 2006-07 Season is "1st"?
|
SELECT Stadium FROM table WHERE Club home city = peć AND 2006–07 Season = 1st
|
Translate the following into a SQL query
|
What is Club Home City, when Stadium Capacity is "0 2,500"?
|
SELECT Club home city FROM table WHERE Stadium capacity = 0 2,500
|
Translate the following into a SQL query
|
What is Stadium, when Stadium Capacity is "10,000", and when Team is "KF Drita"?
|
SELECT Stadium FROM table WHERE Stadium capacity = 10,000 AND Team = kf drita
|
Translate the following into a SQL query
|
What is Year(s) Won, when Total is "145", and when Country is "United States"?
|
SELECT Year(s) won FROM table WHERE Total = 145 AND Country = united states
|
Translate the following into a SQL query
|
What is the lowest To par, when Total is greater than 148, and when Year(s) Won is "1959 , 1968 , 1974"?
|
SELECT MIN To par FROM table WHERE Total < 148 AND Year(s) won = 1959 , 1968 , 1974
|
Translate the following into a SQL query
|
What is Country, when To par is "1", and when Player is "Seve Ballesteros"?
|
SELECT Country FROM table WHERE To par = 1 AND Player = seve ballesteros
|
Translate the following into a SQL query
|
What is the sum of Total, when Year(s) Won is "1966 , 1970 , 1978", and when To par is less than 4?
|
SELECT SUM Total FROM table WHERE Year(s) won = 1966 , 1970 , 1978 AND To par < 4
|
Translate the following into a SQL query
|
What is Country, when Total is less than 148, and when Player is "Gary Player"?
|
SELECT Country FROM table WHERE Total < 148 AND Player = gary player
|
Translate the following into a SQL query
|
What is To par, when Total is less than 148, and when Country is "South Africa"?
|
SELECT To par FROM table WHERE Total < 148 AND Country = south africa
|
Translate the following into a SQL query
|
What is the average age at appointment of those attached to security?
|
SELECT AVG age at appointment FROM table WHERE Portfolio attachment = security
|
Translate the following into a SQL query
|
What was the distance of the race on saturday, august 23?
|
SELECT Distance FROM table WHERE Date = saturday, august 23
|
Translate the following into a SQL query
|
Who was the winner of the race that had a distance of 175.6km?
|
SELECT Winner FROM table WHERE Distance = 175.6km
|
Translate the following into a SQL query
|
Who won the race on wednesday, august 27?
|
SELECT Winner FROM table WHERE Date = wednesday, august 27
|
Translate the following into a SQL query
|
What is the distance of the maldegem > brussels route?
|
SELECT Distance FROM table WHERE Route = maldegem > brussels
|
Translate the following into a SQL query
|
Who was the winner of the mechelen > mechelen route?
|
SELECT Winner FROM table WHERE Route = mechelen > mechelen
|
Translate the following into a SQL query
|
What IMAP sharing options exist for software with a web UI?
|
SELECT IMAP shared FROM table WHERE Web UI = web ui
|
Translate the following into a SQL query
|
What's the total for the wc belgrade event with 10 rank points?
|
SELECT Total FROM table WHERE Event = wc belgrade AND Rank points = 10
|
Translate the following into a SQL query
|
That's the total for rank points of olympic gold medalist?
|
SELECT Total FROM table WHERE Rank points = olympic gold medalist
|
Translate the following into a SQL query
|
Who's the shooter with score points of defending champion?
|
SELECT Shooter FROM table WHERE Score points = defending champion
|
Translate the following into a SQL query
|
Who's the shooter with a total of 25?
|
SELECT Shooter FROM table WHERE Total = 25
|
Translate the following into a SQL query
|
Who's the shooter with 13 score points and 10 rank points?
|
SELECT Shooter FROM table WHERE Score points = 13 AND Rank points = 10
|
Translate the following into a SQL query
|
What is the highest points when the top goal scorer was Khaled Msakni (10), and the final standing is less than 12?
|
SELECT MAX Points FROM table WHERE Top Goal Scorer = khaled msakni (10) AND Final Standing < 12
|
Translate the following into a SQL query
|
What is the final standing in 1981–82?
|
SELECT Final Standing FROM table WHERE Years = 1981–82
|
Translate the following into a SQL query
|
Which event had 4th place and took place in the year 2007?
|
SELECT Event FROM table WHERE Position = 4th AND Year = 2007
|
Translate the following into a SQL query
|
What runner-up has 4 & 3 as the score, with michael bonallack as the winner?
|
SELECT Runner-up FROM table WHERE Score = 4 & 3 AND Winner = michael bonallack
|
Translate the following into a SQL query
|
What venue has 3 & 2 as the score, and 1965 as the year?
|
SELECT Venue FROM table WHERE Score = 3 & 2 AND Year = 1965
|
Translate the following into a SQL query
|
What runner-up has 2008 as the year?
|
SELECT Runner-up FROM table WHERE Year = 2008
|
Translate the following into a SQL query
|
What winner has royal st george's golf club as the venue, and 1969 as the year?
|
SELECT Winner FROM table WHERE Venue = royal st george's golf club AND Year = 1969
|
Translate the following into a SQL query
|
What runner-up has 1925 as the year?
|
SELECT Runner-up FROM table WHERE Year = 1925
|
Translate the following into a SQL query
|
What year has John Davies as the runner-up, with warren humphreys as the winner?
|
SELECT Year FROM table WHERE Runner-up = john davies AND Winner = warren humphreys
|
Translate the following into a SQL query
|
What country is the player who scored 27 goals from?
|
SELECT Nationality FROM table WHERE Goals = 27
|
Translate the following into a SQL query
|
For the player that scored 27 goals, what years did he score them?
|
SELECT Years FROM table WHERE Goals = 27
|
Translate the following into a SQL query
|
In what place(s) did the player(s) with a total less than 282 finish?
|
SELECT Finish FROM table WHERE Total < 282
|
Translate the following into a SQL query
|
In what place did Nick Faldo, who had more than 284 points and a to par score of +5, finish?
|
SELECT Finish FROM table WHERE Total > 284 AND To par = +5 AND Player = nick faldo
|
Translate the following into a SQL query
|
When did Prime Minister Agathe Uwilingiyimana's mandate end?
|
SELECT Mandate end FROM table WHERE Office = prime minister AND Name a = agathe uwilingiyimana
|
Translate the following into a SQL query
|
What is the power output for class 5?
|
SELECT Power output (kW) FROM table WHERE Number in class = 5
|
Translate the following into a SQL query
|
Which class has a power output larger than 700 and a class of 48?
|
SELECT Class FROM table WHERE Power output (kW) > 700 AND Number in class = 48
|
Translate the following into a SQL query
|
What is the Week 8 result of the team that lost to syarcuse (4-2) in Week 7?
|
SELECT Week 8 Oct 26 FROM table WHERE Week 7 Oct 19 = syarcuse (4-2)
|
Translate the following into a SQL query
|
What is the Week 1 result of Colorado State?
|
SELECT Week 1 Sept 7 FROM table WHERE Preseason = colorado state
|
Translate the following into a SQL query
|
Who is the incumbent for the Colorado 4 district?
|
SELECT Incumbent FROM table WHERE District = colorado 4
|
Translate the following into a SQL query
|
What district is the incumbent Republican and the incumbent retired to run for governor democratic gain?
|
SELECT District FROM table WHERE Party = republican AND Results = retired to run for governor democratic gain
|
Translate the following into a SQL query
|
In Colorado 6 district what is the party?
|
SELECT Party FROM table WHERE District = colorado 6
|
Translate the following into a SQL query
|
Which tournament had a clay surface and a score of 6–1, 3–6, 6–2?
|
SELECT Tournament FROM table WHERE Surface = clay AND Score in the final = 6–1, 3–6, 6–2
|
Translate the following into a SQL query
|
How many days had a score of 4–6, 4–6?
|
SELECT COUNT Date FROM table WHERE Score in the final = 4–6, 4–6
|
Translate the following into a SQL query
|
What was the To Par of Tiger Woods who won in 1988?
|
SELECT To par FROM table WHERE Year won = 1988
|
Translate the following into a SQL query
|
What is the team sites entry for Microsoft Sharepoint?
|
SELECT Team Sites FROM table WHERE Name = microsoft sharepoint
|
Translate the following into a SQL query
|
If the intranet entry is Yes, what is the extranet entry for Microsoft Exchange server?
|
SELECT Extranet FROM table WHERE Intranet = yes AND Name = microsoft exchange server
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.