instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the date of the week 4 game? | SELECT Date FROM table WHERE Week = 4 |
Translate the following into a SQL query | What is the result of the game on October 17, 1965? | SELECT Result FROM table WHERE Date = october 17, 1965 |
Translate the following into a SQL query | What is the Rank for Viktors Dobrecovs with less than 325 Matches? | SELECT AVG Rank FROM table WHERE Name = viktors dobrecovs AND Matches < 325 |
Translate the following into a SQL query | What is the number of Matches for Vits Rimkus with a Rank of less than 3? | SELECT AVG Matches FROM table WHERE Name = vits rimkus AND Rank < 3 |
Translate the following into a SQL query | What is the Date for the game at michie stadium • west point, ny? | SELECT Date FROM table WHERE Location = michie stadium • west point, ny |
Translate the following into a SQL query | What is the Opponent when the location was groves stadium • winston-salem, nc, with a result of t 17-17? | SELECT Opponent FROM table WHERE Location = groves stadium • winston-salem, nc AND Result = t 17-17 |
Translate the following into a SQL query | In 1879-81 with number built 4, what is the LMS nos? | SELECT LMS nos. FROM table WHERE Date = 1879-81 AND No. built = 4 |
Translate the following into a SQL query | On which date was the class 157? | SELECT Date FROM table WHERE Class = 157 |
Translate the following into a SQL query | Can you tell me the lowest Ends Lost that has the Locale of norway, and the Blank Ends larger than 17? | SELECT MIN Ends Lost FROM table WHERE Locale = norway AND Blank Ends > 17 |
Translate the following into a SQL query | What was the Margin of Victory of winning score 68-67-69-65=269? | SELECT Margin of victory FROM table WHERE Winning score = 68-67-69-65=269 |
Translate the following into a SQL query | What is the To Par of winning score 71-66-70-67=274? | SELECT To par FROM table WHERE Winning score = 71-66-70-67=274 |
Translate the following into a SQL query | Which tournament had a winning score of 67-61-68-67=263? | SELECT Tournament FROM table WHERE Winning score = 67-61-68-67=263 |
Translate the following into a SQL query | How many tries for are associated with 5 points and 2 tries against? | SELECT Tries For FROM table WHERE Points = 5 AND Tries Against = 2 |
Translate the following into a SQL query | What is the losing bonus associated with 0 tries for? | SELECT Losing Bonus FROM table WHERE Tries For = 0 |
Translate the following into a SQL query | What's the highest against score that drew more than 5, and had more than 18 points? | SELECT MAX Against FROM table WHERE Drawn > 5 AND Points > 18 |
Translate the following into a SQL query | What's the number of losses where played was less than 17? | SELECT COUNT Lost FROM table WHERE Played < 17 |
Translate the following into a SQL query | What is team ypiranga-sp's average position when they lost by less than 7? | SELECT AVG Position FROM table WHERE Team = ypiranga-sp AND Lost < 7 |
Translate the following into a SQL query | What was the attendance for the game at groves stadium • winston-salem, nc with a result of L 0-14? | SELECT COUNT Attendance FROM table WHERE Location = groves stadium • winston-salem, nc AND Result = l 0-14 |
Translate the following into a SQL query | Who was the opponent when the result was L 0-14? | SELECT Opponent FROM table WHERE Result = l 0-14 |
Translate the following into a SQL query | What is the name of the position of the person whose hometown is Queens, NY? | SELECT Position FROM table WHERE Hometown = queens, ny |
Translate the following into a SQL query | What is Tim Andree's greatest number? | SELECT MAX Number FROM table WHERE Name = tim andree |
Translate the following into a SQL query | What is the lowest number of the player with a hometown of Bellwood, IL? | SELECT MIN Number FROM table WHERE Hometown = bellwood, il |
Translate the following into a SQL query | What is Score, when Attendance is 2,444? | SELECT Score FROM table WHERE Attendance = 2,444 |
Translate the following into a SQL query | What is Home Team, when Tie No is Replay, and when Attendance is 2,048? | SELECT Home team FROM table WHERE Tie no = replay AND Attendance = 2,048 |
Translate the following into a SQL query | What is Score, when Tie No is 17? | SELECT Score FROM table WHERE Tie no = 17 |
Translate the following into a SQL query | What is Away Team, when Tie No is 4? | SELECT Away team FROM table WHERE Tie no = 4 |
Translate the following into a SQL query | What is Score, when Attendance is 3,416? | SELECT Score FROM table WHERE Attendance = 3,416 |
Translate the following into a SQL query | What is the highest No Result when there were less than 7 losses, and more than 3 away wins, with a success Rate of 50.00%? | SELECT MAX No Result FROM table WHERE Losses > 7 AND Away Wins > 3 AND Success Rate = 50.00% |
Translate the following into a SQL query | What is the sum of Away Losses with a No Result of more than 0, losses of more than 6, and matches of more than 91? | SELECT SUM Away Losses FROM table WHERE No Result > 0 AND Losses > 6 AND Matches > 91 |
Translate the following into a SQL query | What is the sum of Wins with a result of 0, and the away wins of 1, and the losses are less than 5? | SELECT SUM Wins FROM table WHERE No Result = 0 AND Away Wins = 1 AND Losses < 5 |
Translate the following into a SQL query | What stadium was the December 29, 2008 game played at? | SELECT Stadium FROM table WHERE Date = december 29, 2008 |
Translate the following into a SQL query | Which bowl game had a conference matchup of Ohio State vs. Texas? | SELECT Bowl Game FROM table WHERE Conference Matchups = ohio state vs. texas |
Translate the following into a SQL query | What stadium was the Fiesta Bowl played at? | SELECT Stadium FROM table WHERE Bowl Game = fiesta bowl |
Translate the following into a SQL query | What was the payout in US dollars at the Insight Bowl? | SELECT Payout ( US$ ) FROM table WHERE Bowl Game = insight bowl |
Translate the following into a SQL query | What was the conference matchup in the bowl game with a $3 million payout? | SELECT Conference Matchups FROM table WHERE Payout ( US$ ) = $3 million |
Translate the following into a SQL query | What was the conference matchup for the bowl game played in Glendale, Arizona? | SELECT Conference Matchups FROM table WHERE City = glendale, arizona |
Translate the following into a SQL query | Which Team has Tries for smaller than 10? | SELECT Team FROM table WHERE Tries for < 10 |
Translate the following into a SQL query | Which Tries against have Points against larger than 109? | SELECT MAX Tries against FROM table WHERE Points against > 109 |
Translate the following into a SQL query | What Tries against that have a Points against of 95 and Tries for larger than 20? | SELECT SUM Tries against FROM table WHERE Points against = 95 AND Tries for > 20 |
Translate the following into a SQL query | What Tries for has a Team of neath, and Points against larger than 109? | SELECT SUM Tries for FROM table WHERE Team = neath AND Points against > 109 |
Translate the following into a SQL query | How many Points against that have a Team of harlequins and Tries against smaller than 8? | SELECT SUM Points against FROM table WHERE Team = harlequins AND Tries against < 8 |
Translate the following into a SQL query | What is the power that belongs to Class A with an Identifier of CBOC-FM? | SELECT Power FROM table WHERE Class = a AND Identifier = cboc-fm |
Translate the following into a SQL query | Which class has a frequency of 91.9 fm? | SELECT Class FROM table WHERE Frequency = 91.9 fm |
Translate the following into a SQL query | What power belongs to the LP Class and has an Identifier of CBLI? | SELECT Power FROM table WHERE Class = lp AND Identifier = cbli |
Translate the following into a SQL query | Which city has a C1 class and Identifier of CBCD-FM? | SELECT City of license FROM table WHERE Class = c1 AND Identifier = cbcd-fm |
Translate the following into a SQL query | Which Power has a CBLI Identifier? | SELECT Power FROM table WHERE Identifier = cbli |
Translate the following into a SQL query | What is the RECNet belonging to Class A with a Power of 3,000 watts? | SELECT RECNet FROM table WHERE Class = a AND Power = 3,000 watts |
Translate the following into a SQL query | What is the report in the tournament that started at 12:30? | SELECT Report FROM table WHERE Time = 12:30 |
Translate the following into a SQL query | Which 2007 has a 2003 of 1r? | SELECT 2007 FROM table WHERE 2003 = 1r |
Translate the following into a SQL query | Which 2006 has a 2012 of a, and a 2011 of 3r? | SELECT 2006 FROM table WHERE 2012 = a AND 2011 = 3r |
Translate the following into a SQL query | Which 2008 has a 2002 of a, and a Tournament of australian open? | SELECT 2008 FROM table WHERE 2002 = a AND Tournament = australian open |
Translate the following into a SQL query | Which 2012 has a 2008 of grand slam tournaments? | SELECT 2012 FROM table WHERE 2008 = grand slam tournaments |
Translate the following into a SQL query | Which 2002 has a 2009 of 2r? | SELECT 2002 FROM table WHERE 2009 = 2r |
Translate the following into a SQL query | Which 2010 has a 2002 of 2r? | SELECT 2010 FROM table WHERE 2002 = 2r |
Translate the following into a SQL query | What is th US A.C. in 1985 with a US hot 100 of 57? | SELECT US A.C. FROM table WHERE Year = 1985 AND US Hot 100 = 57 |
Translate the following into a SQL query | What is the Canada singles in 1979 with a US A.C. of 24? | SELECT Canada Singles FROM table WHERE Year = 1979 AND US A.C. = 24 |
Translate the following into a SQL query | What is the US A.C. in 1974? | SELECT US A.C. FROM table WHERE Year = 1974 |
Translate the following into a SQL query | What is the average round of player Sammy Morris? | SELECT AVG Round FROM table WHERE Player = sammy morris |
Translate the following into a SQL query | What is the sum pick # of the player from round 4? | SELECT SUM Pick # FROM table WHERE Round = 4 |
Translate the following into a SQL query | Who is the player from Arizona State? | SELECT Player FROM table WHERE College = arizona state |
Translate the following into a SQL query | What is the sum of the round of the player who plays linebacker and has a pick # greater than 251? | SELECT SUM Round FROM table WHERE Position = linebacker AND Pick # > 251 |
Translate the following into a SQL query | Who is the player from Arizona state with a round less than 7? | SELECT Player FROM table WHERE Round < 7 AND College = arizona state |
Translate the following into a SQL query | What's the highest week for the day of October 21, 1956? | SELECT MAX Week FROM table WHERE Date = october 21, 1956 |
Translate the following into a SQL query | What is the least recent week number when the attendance is 16,562? | SELECT MIN Week FROM table WHERE Attendance = 16,562 |
Translate the following into a SQL query | What is Country , when Rider is Lindsay Porter? | SELECT Country FROM table WHERE Rider = lindsay porter |
Translate the following into a SQL query | What is Time, when Speed is 87.49mph? | SELECT Time FROM table WHERE Speed = 87.49mph |
Translate the following into a SQL query | What is Country, when Points are more than 12? | SELECT Country FROM table WHERE Points > 12 |
Translate the following into a SQL query | What is Speed, when Time is 1:24.23.0? | SELECT Speed FROM table WHERE Time = 1:24.23.0 |
Translate the following into a SQL query | What is Country, when Time is 1:29.43.60? | SELECT Country FROM table WHERE Time = 1:29.43.60 |
Translate the following into a SQL query | What is the lowest Place, when Points are greater than 2? | SELECT MIN Place FROM table WHERE Points > 2 |
Translate the following into a SQL query | What team was the opponent when the result was l 0-27? | SELECT Opponent FROM table WHERE Result = l 0-27 |
Translate the following into a SQL query | What team was the opponent on 09/20/1975? | SELECT Opponent FROM table WHERE Date = 09/20/1975 |
Translate the following into a SQL query | What is the Location of the game on 11/08/1975*? | SELECT Location FROM table WHERE Date = 11/08/1975* |
Translate the following into a SQL query | How many gold medals were awarded to the team with more than 2 bronze and exactly 29 silver medals? | SELECT Gold FROM table WHERE Bronze > 2 AND Silver = 29 |
Translate the following into a SQL query | What is the latest year that Cicely Tyson is the Golden Globe Award actor? | SELECT MAX Year FROM table WHERE Actor = cicely tyson |
Translate the following into a SQL query | What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress? | SELECT Motion Picture FROM table WHERE Year > 2003 AND Result = nominated AND Actor = viola davis AND Award = best supporting actress |
Translate the following into a SQL query | What Award has a date of 2002? | SELECT Award FROM table WHERE Year = 2002 |
Translate the following into a SQL query | What Award was received bby the Motion Picture What's Love Got To Do With It? | SELECT Award FROM table WHERE Motion Picture = what's love got to do with it |
Translate the following into a SQL query | What is the latest Year with Marianne Jean-Baptiste as the Golden Globe Actor? | SELECT MAX Year FROM table WHERE Actor = marianne jean-baptiste |
Translate the following into a SQL query | Which film was released in August 2004? | SELECT Title FROM table WHERE Date = august 2004 |
Translate the following into a SQL query | What was the production cost for the film directed by 2004? | SELECT Production Cost FROM table WHERE Director = 2004 |
Translate the following into a SQL query | What film did Pen-Ek Ratanaruang direct? | SELECT Title FROM table WHERE Director = pen-ek ratanaruang |
Translate the following into a SQL query | When was the film directed by Pen-Ek Ratanaruang released? | SELECT Date FROM table WHERE Director = pen-ek ratanaruang |
Translate the following into a SQL query | Who directed Tequila? | SELECT Director FROM table WHERE Title = tequila |
Translate the following into a SQL query | Who left office in June 2011? | SELECT Name FROM table WHERE Left Office = june 2011 |
Translate the following into a SQL query | What is the Born-Died date for the Representative of Italy? | SELECT Born-Died FROM table WHERE Country = italy |
Translate the following into a SQL query | What is the country of the Representative that left office as incumbent? | SELECT Country FROM table WHERE Left Office = incumbent |
Translate the following into a SQL query | What is Package/Option, when Language is Italian, and when Television Service is Sky Radio? | SELECT Package/Option FROM table WHERE Language = italian AND Television service = sky radio |
Translate the following into a SQL query | What is HDTV, when Television Service is MTV Rocks? | SELECT HDTV FROM table WHERE Television service = mtv rocks |
Translate the following into a SQL query | What is Television Service, when HDTV is No, and when Language is Italian? | SELECT Television service FROM table WHERE HDTV = no AND Language = italian |
Translate the following into a SQL query | What is Television Service, when Package/Option is Sky Famiglia, and when Language is Italian? | SELECT Television service FROM table WHERE Package/Option = sky famiglia AND Language = italian |
Translate the following into a SQL query | What is HDTV, when Language is English, and when Television Service is MTV Dance? | SELECT HDTV FROM table WHERE Language = english AND Television service = mtv dance |
Translate the following into a SQL query | What is the mean number of matches when the strike rate is 87.37 and the 100s is less than 0? | SELECT AVG Matches FROM table WHERE Strike Rate = 87.37 AND 100s < 0 |
Translate the following into a SQL query | How many average 100s were there for Tim Bresnan? | SELECT AVG 100s FROM table WHERE Player = tim bresnan |
Translate the following into a SQL query | How many Platforms have a Frequency of less than 2? | SELECT COUNT Platform FROM table WHERE Frequency (per hour) < 2 |
Translate the following into a SQL query | What is the 1999-2000 team, when the Height (cm) is less than 187, and when the Birthplace is Cloquet, Minnesota? | SELECT 1999-2000 team FROM table WHERE Height (cm) < 187 AND Birthplace = cloquet, minnesota |
Translate the following into a SQL query | What is the Name v t e, when the Height (cm) is greater than 179, and when the 1999-2000 team is Chicago Blackhawks? | SELECT Name v t e FROM table WHERE Height (cm) > 179 AND 1999-2000 team = chicago blackhawks |
Translate the following into a SQL query | What is the sum of Height (cm), when the Weight (kg) is 90? | SELECT SUM Height (cm) FROM table WHERE Weight (kg) = 90 |
Translate the following into a SQL query | Which Losses have a Pct of .451 and Finished 6th? | SELECT Losses FROM table WHERE Pct. = .451 AND Finish = 6th |
Translate the following into a SQL query | Which season has Losses of 30? | SELECT Season FROM table WHERE Losses = 30 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.