instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What is the wins average when 17 games were lost?
|
SELECT AVG Wins FROM table WHERE Losses = 17
|
Translate the following into a SQL query
|
What stadium is in the city of Debrecen?
|
SELECT Stadium FROM table WHERE City = debrecen
|
Translate the following into a SQL query
|
What is the number of silver when rank was 5, and a bronze was smaller than 14?
|
SELECT SUM Silver FROM table WHERE Rank = 5 AND Bronze < 14
|
Translate the following into a SQL query
|
What is the highest bronze number when silver is 0, and the total is smaller than 1?
|
SELECT MAX Bronze FROM table WHERE Silver = 0 AND Total < 1
|
Translate the following into a SQL query
|
What is the total when the nation was Argentina, and a Goldwas smaller than 0?
|
SELECT COUNT Total FROM table WHERE Nation = argentina AND Gold < 0
|
Translate the following into a SQL query
|
What is the nation when bronze is less than 7, gold is larger than 0, total is larger than 7, and silver is smaller than 3?
|
SELECT Nation FROM table WHERE Bronze < 7 AND Gold > 0 AND Total > 7 AND Silver < 3
|
Translate the following into a SQL query
|
What date was the game against manchester city when they had a league position of 2nd?
|
SELECT Date FROM table WHERE H / A = a AND League position = 2nd AND Opponents = manchester city
|
Translate the following into a SQL query
|
What is the result F-A of the game on 6 march 1993?
|
SELECT Result F – A FROM table WHERE Date = 6 march 1993
|
Translate the following into a SQL query
|
What is the result F-A of the game on 3 may 1993?
|
SELECT Result F – A FROM table WHERE Date = 3 may 1993
|
Translate the following into a SQL query
|
What is Tie no, when Date is "18 Nov 1989", and when Home Team is "Doncaster Rovers"?
|
SELECT Tie no FROM table WHERE Date = 18 nov 1989 AND Home team = doncaster rovers
|
Translate the following into a SQL query
|
What is Score, when Away Team is "Yeovil Town"?
|
SELECT Score FROM table WHERE Away team = yeovil town
|
Translate the following into a SQL query
|
What is Home Team, when Tie no is "27"?
|
SELECT Home team FROM table WHERE Tie no = 27
|
Translate the following into a SQL query
|
What is Date, when Tie no is "37"?
|
SELECT Date FROM table WHERE Tie no = 37
|
Translate the following into a SQL query
|
What is Home Team, when Date is "22 Nov 1989", and when Away Team is "Bath City"?
|
SELECT Home team FROM table WHERE Date = 22 nov 1989 AND Away team = bath city
|
Translate the following into a SQL query
|
What year was the play-by-play for Don Earle?
|
SELECT Year FROM table WHERE Play-by-play = don earle
|
Translate the following into a SQL query
|
What is Tom Kite with a Score of 68's To Par?
|
SELECT To par FROM table WHERE Score = 68 AND Player = tom kite
|
Translate the following into a SQL query
|
What is Tom Kite's Place?
|
SELECT Place FROM table WHERE Player = tom kite
|
Translate the following into a SQL query
|
What is the televote points for 0 jury points and 23 draws?
|
SELECT Televote Points FROM table WHERE Jury Points = 0 AND Draw = 23
|
Translate the following into a SQL query
|
What district was a republican first elected in 2000?
|
SELECT District FROM table WHERE First elected = 2000 AND Party = republican
|
Translate the following into a SQL query
|
In what district was incumbent Russ Carnahan elected after 2000?
|
SELECT District FROM table WHERE First elected > 2000 AND Incumbent = russ carnahan
|
Translate the following into a SQL query
|
For which venue did Leicester City lose?
|
SELECT Venue FROM table WHERE Loser = leicester city
|
Translate the following into a SQL query
|
What season did Stoke City win?
|
SELECT Season FROM table WHERE Winner = stoke city
|
Translate the following into a SQL query
|
What was the attendance for St Andrew's?
|
SELECT Attendance FROM table WHERE Venue = st andrew's
|
Translate the following into a SQL query
|
What season did Wolverhampton Wanderers win?
|
SELECT Season FROM table WHERE Winner = wolverhampton wanderers
|
Translate the following into a SQL query
|
Which Call sign has an ERP W of 75?
|
SELECT Call sign FROM table WHERE ERP W = 75
|
Translate the following into a SQL query
|
Which Class has a Facility ID greater than 85076 and a Call Sign of K289au?
|
SELECT Class FROM table WHERE Facility ID > 85076 AND Call sign = k289au
|
Translate the following into a SQL query
|
What year was jack cole nominated?
|
SELECT Year FROM table WHERE Nominee = jack cole
|
Translate the following into a SQL query
|
What award ceremony was howard bay and patton campbell nominated?
|
SELECT Award Ceremony FROM table WHERE Nominee = howard bay and patton campbell
|
Translate the following into a SQL query
|
What is Visitor, when Date is "May 9"?
|
SELECT Visitor FROM table WHERE Date = may 9
|
Translate the following into a SQL query
|
What is Score, when Home is "Montreal Canadiens", and when Date is "May 16"?
|
SELECT Score FROM table WHERE Home = montreal canadiens AND Date = may 16
|
Translate the following into a SQL query
|
What is Score, when Date is "May 11"?
|
SELECT Score FROM table WHERE Date = may 11
|
Translate the following into a SQL query
|
What is Visitor, when Home is "Chicago Black Hawks", and when Date is "May 4"?
|
SELECT Visitor FROM table WHERE Home = chicago black hawks AND Date = may 4
|
Translate the following into a SQL query
|
What is Score, when Record is "2-0"?
|
SELECT Score FROM table WHERE Record = 2-0
|
Translate the following into a SQL query
|
Which tournament included the round played on 14 May?
|
SELECT Tournament FROM table WHERE Date = 14 may
|
Translate the following into a SQL query
|
Which round was played on 10 May?
|
SELECT Round FROM table WHERE Date = 10 may
|
Translate the following into a SQL query
|
what is the language when the points is more than 119 and the place is higher than 5?
|
SELECT Language FROM table WHERE Points > 119 AND Place > 5
|
Translate the following into a SQL query
|
what is the highest place when the national final is 4th and the points is less than 139?
|
SELECT MAX Place FROM table WHERE National final = 4th AND Points < 139
|
Translate the following into a SQL query
|
what is the lowest place when the language is croatian?
|
SELECT MIN Place FROM table WHERE Language = croatian
|
Translate the following into a SQL query
|
what is the language when the english translation is come to me?
|
SELECT Language FROM table WHERE English translation = come to me
|
Translate the following into a SQL query
|
what is the song when the points is more than 64, the national final is 4th and draw is more than 3?
|
SELECT Song FROM table WHERE Points > 64 AND National final = 4th AND Draw > 3
|
Translate the following into a SQL query
|
What is Category, when Result is "Nominated", when Award is "Drama Desk Award", and when Nominee is "Nathan Lane"?
|
SELECT Category FROM table WHERE Result = nominated AND Award = drama desk award AND Nominee = nathan lane
|
Translate the following into a SQL query
|
What is Category, when Result is "Won", and when Nominee is "Bebe Neuwirth"?
|
SELECT Category FROM table WHERE Result = won AND Nominee = bebe neuwirth
|
Translate the following into a SQL query
|
What is the total number of Year, when Result is "Nominated", when Category is "Outstanding Actor in a Musical", and when Award is "Drama Desk Award"?
|
SELECT COUNT Year FROM table WHERE Result = nominated AND Category = outstanding actor in a musical AND Award = drama desk award
|
Translate the following into a SQL query
|
What is the sum of Year, when Award is "Outer Critics Circle Award", and when Nominee is "Nathan Lane"?
|
SELECT SUM Year FROM table WHERE Award = outer critics circle award AND Nominee = nathan lane
|
Translate the following into a SQL query
|
What is Name, when Builder is "Kerr Stuart"?
|
SELECT Name FROM table WHERE Builder = kerr stuart
|
Translate the following into a SQL query
|
What is Built, when Works Number is "717"?
|
SELECT Built FROM table WHERE Works Number = 717
|
Translate the following into a SQL query
|
What is Type, when Works Number is "unknown"?
|
SELECT Type FROM table WHERE Works Number = unknown
|
Translate the following into a SQL query
|
What is the circuit for the ADAC großer preis der tourenwagen race?
|
SELECT Circuit FROM table WHERE Race = adac großer preis der tourenwagen
|
Translate the following into a SQL query
|
What is the date that Fabrizio Giovanardi Christian Abt won?
|
SELECT Date FROM table WHERE Winning driver = fabrizio giovanardi christian abt
|
Translate the following into a SQL query
|
What home team has 16 as the tie no.?
|
SELECT Home team FROM table WHERE Tie no = 16
|
Translate the following into a SQL query
|
What score has hull city as the away team?
|
SELECT Score FROM table WHERE Away team = hull city
|
Translate the following into a SQL query
|
What away team has 12 as the tie no.?
|
SELECT Away team FROM table WHERE Tie no = 12
|
Translate the following into a SQL query
|
What date has 11 as the tie no.?
|
SELECT Date FROM table WHERE Tie no = 11
|
Translate the following into a SQL query
|
What home team has blackpool as the away team?
|
SELECT Home team FROM table WHERE Away team = blackpool
|
Translate the following into a SQL query
|
What was the surface when the opponent was sergiy stakhovsky mikhail youzhny?
|
SELECT Surface FROM table WHERE Opponents = sergiy stakhovsky mikhail youzhny
|
Translate the following into a SQL query
|
What was the score for the opponent lukáš dlouhý leander paes?
|
SELECT Score FROM table WHERE Opponents = lukáš dlouhý leander paes
|
Translate the following into a SQL query
|
What day was there a hard surface when the partner was Marc Gicquel?
|
SELECT Date FROM table WHERE Surface = hard AND Partner = marc gicquel
|
Translate the following into a SQL query
|
What is the total (kg) when the snatch was 84, and bodyweight was less than 57.35?
|
SELECT AVG Total (kg) FROM table WHERE Snatch = 84 AND Bodyweight < 57.35
|
Translate the following into a SQL query
|
What is the clean & jerk when the total (kg) is more than 204, and snatch is more than 98?
|
SELECT AVG Clean & Jerk FROM table WHERE Total (kg) > 204 AND Snatch > 98
|
Translate the following into a SQL query
|
What is the total (kg when the bodyweight is more than 57.8, and the clean & jerk is less than 103?
|
SELECT SUM Total (kg) FROM table WHERE Bodyweight > 57.8 AND Clean & Jerk < 103
|
Translate the following into a SQL query
|
What is the Overall of the pick less than 20?
|
SELECT Overall FROM table WHERE Pick # < 20
|
Translate the following into a SQL query
|
What is the name of the cornerback from Wisconsin college?
|
SELECT Name FROM table WHERE Position = cornerback AND College = wisconsin
|
Translate the following into a SQL query
|
What college is Pat Thomas from?
|
SELECT College FROM table WHERE Name = pat thomas
|
Translate the following into a SQL query
|
What is the best top-10 result when events are fewer than 39, top-5 is 1 and more than 5 cuts are made?
|
SELECT MAX Top-10 FROM table WHERE Events < 39 AND Top-5 = 1 AND Cuts made > 5
|
Translate the following into a SQL query
|
How many cuts made when the top-5 is greater than 1?
|
SELECT AVG Cuts made FROM table WHERE Top-5 > 1
|
Translate the following into a SQL query
|
What is the best top-5 when top-10 is 1 and there are more than 0 wins?
|
SELECT MAX Top-5 FROM table WHERE Top-10 = 1 AND Wins > 0
|
Translate the following into a SQL query
|
What is the number of cuts made when the top-5 is 0, top-10 is 1 and events are fewer than 12?
|
SELECT AVG Cuts made FROM table WHERE Top-5 = 0 AND Top-10 = 1 AND Events < 12
|
Translate the following into a SQL query
|
What was the 1st leg for Team 2, Leeds United?
|
SELECT 1st leg FROM table WHERE Team 2 = leeds united
|
Translate the following into a SQL query
|
What was the 1st leg for Team 2, Slovan Liberec?
|
SELECT 1st leg FROM table WHERE Team 2 = slovan liberec
|
Translate the following into a SQL query
|
Which Team 1, has Team 2, Slovan Liberec?
|
SELECT Team 1 FROM table WHERE Team 2 = slovan liberec
|
Translate the following into a SQL query
|
What is the date of the match with west bromwich albion as the home team?
|
SELECT Date FROM table WHERE Home team = west bromwich albion
|
Translate the following into a SQL query
|
What is the highest Apps of kairat after 2008 and a Level smaller than 1?
|
SELECT MAX Apps FROM table WHERE Season > 2008 AND Team = kairat AND Level < 1
|
Translate the following into a SQL query
|
What is the total Level with 27 Apps after 2006?
|
SELECT SUM Level FROM table WHERE Apps = 27 AND Season > 2006
|
Translate the following into a SQL query
|
What is the lowest Apps with more than 1 level?
|
SELECT MIN Apps FROM table WHERE Level > 1
|
Translate the following into a SQL query
|
what is the total levels in 2007?
|
SELECT SUM Level FROM table WHERE Season = 2007
|
Translate the following into a SQL query
|
How many times is the award ceremony laurence olivier award, result is won and the nominee is imelda staunton?
|
SELECT COUNT Year FROM table WHERE Award Ceremony = laurence olivier award AND Result = won AND Nominee = imelda staunton
|
Translate the following into a SQL query
|
what is the result when the category is best sound design?
|
SELECT Result FROM table WHERE Category = best sound design
|
Translate the following into a SQL query
|
What's the total byes for more than 1 draw?
|
SELECT COUNT Byes FROM table WHERE Draws > 1
|
Translate the following into a SQL query
|
What Hometown/School had a pick above 30, position of OF and team of Cleveland Indians?
|
SELECT Hometown/School FROM table WHERE Pick > 30 AND Position = of AND Team = cleveland indians
|
Translate the following into a SQL query
|
What's the highest pick for SS position?
|
SELECT MAX Pick FROM table WHERE Position = ss
|
Translate the following into a SQL query
|
What pick did the Minnesota Twins have?
|
SELECT AVG Pick FROM table WHERE Team = minnesota twins
|
Translate the following into a SQL query
|
What is the average Draws, when Losses is less than 2?
|
SELECT AVG Draws FROM table WHERE Losses < 2
|
Translate the following into a SQL query
|
What is the average Wins, when Against is less than 1786, when Losses is less than 4, and when Byes is less than 2?
|
SELECT AVG Wins FROM table WHERE Against < 1786 AND Losses < 4 AND Byes < 2
|
Translate the following into a SQL query
|
What is Country, when Class / Type is "Three masted full rigged ship"?
|
SELECT Country FROM table WHERE Class / type = three masted full rigged ship
|
Translate the following into a SQL query
|
What is Builder, when Country is "United Kingdom", and when Location is "Chatham, Kent"?
|
SELECT Builder FROM table WHERE Country = united kingdom AND Location = chatham, kent
|
Translate the following into a SQL query
|
What is Builder, when Ship is "Arizona"?
|
SELECT Builder FROM table WHERE Ship = arizona
|
Translate the following into a SQL query
|
What is Location, when Class / Type is "Sloop"?
|
SELECT Location FROM table WHERE Class / type = sloop
|
Translate the following into a SQL query
|
What is Country, when Builder is "Sheerness Dockyard"?
|
SELECT Country FROM table WHERE Builder = sheerness dockyard
|
Translate the following into a SQL query
|
What is Builder, when Location is "Govan , Scotland"?
|
SELECT Builder FROM table WHERE Location = govan , scotland
|
Translate the following into a SQL query
|
How many ranks have 40 as the apps, with goals per match greater than 1?
|
SELECT SUM Rank FROM table WHERE Apps = 40 AND Goals per Match > 1
|
Translate the following into a SQL query
|
What is the lowest rank that has goals per match less than 1.237, real madrid as the club, goals less than 53, with apps greater than 40?
|
SELECT MIN Rank FROM table WHERE Goals per Match < 1.237 AND Club = real madrid AND Goals < 53 AND Apps > 40
|
Translate the following into a SQL query
|
What was Britain's (2013) birthstone when the U.S (2013) birthstone was ruby?
|
SELECT Britain (2013) FROM table WHERE U.S. (2013) = ruby
|
Translate the following into a SQL query
|
What was the U.S birthstone in 1912 when in 2013 the birthstone was amethyst?
|
SELECT U.S. (1912) FROM table WHERE U.S. (2013) = amethyst
|
Translate the following into a SQL query
|
What was the U.S birthstone in the 15th-20th century when in 2013 it was amethyst?
|
SELECT 15th- 20th century FROM table WHERE U.S. (2013) = amethyst
|
Translate the following into a SQL query
|
Which month in 2013 did the U.S. use the ruby birthstone?
|
SELECT Month FROM table WHERE U.S. (2013) = ruby
|
Translate the following into a SQL query
|
In 1912 when the U.S used sapphire, what was the Hindu birthstone?
|
SELECT Hindu FROM table WHERE U.S. (1912) = sapphire
|
Translate the following into a SQL query
|
What's the hometown of rachel muyot soriano?
|
SELECT Hometown FROM table WHERE Delegate = rachel muyot soriano
|
Translate the following into a SQL query
|
What's the latest year the miss internet www pageant had a result of second runner-up?
|
SELECT MAX Year FROM table WHERE Pageant = miss internet www AND Result = second runner-up
|
Translate the following into a SQL query
|
On what Date is Tie no 19?
|
SELECT Date FROM table WHERE Tie no = 19
|
Translate the following into a SQL query
|
What is the Ti no of the Walsall Home game?
|
SELECT Tie no FROM table WHERE Home team = walsall
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.