instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What are the average Laps for the time/retired of +16.874 secs, and a grid less than 5? | SELECT AVG Laps FROM table WHERE Time/Retired = +16.874 secs AND Grid < 5 |
Translate the following into a SQL query | What are the greatest points for a time/retired of +32.256 secs, and a a grid larger than 12? | SELECT MAX Points FROM table WHERE Time/Retired = +32.256 secs AND Grid > 12 |
Translate the following into a SQL query | What is biggest grid when the laps are 65? | SELECT MAX Grid FROM table WHERE Laps = 65 |
Translate the following into a SQL query | What team has a grid of 15? | SELECT Team FROM table WHERE Grid = 15 |
Translate the following into a SQL query | What is the average new council number when the election result is smaller than 0? | SELECT AVG New council FROM table WHERE Election result < 0 |
Translate the following into a SQL query | How many seats were up for election during the vote where the election result was 9 and the new council 27? | SELECT SUM Seats up for election FROM table WHERE Election result = 9 AND New council > 27 |
Translate the following into a SQL query | How many staying councillors were there when the election result was larger than 0, the new council less than 27 and the party conservatives? | SELECT AVG Staying councillors FROM table WHERE Election result > 0 AND Party = conservatives AND New council < 27 |
Translate the following into a SQL query | What opponent did the Broncos play on November 16? | SELECT Opponent FROM table WHERE Date = november 16 |
Translate the following into a SQL query | What was the Bronco's record when they played the Detroit Lions at Mile High Stadium? | SELECT Record FROM table WHERE Game site = mile high stadium AND Opponent = detroit lions |
Translate the following into a SQL query | What was the score of the game on November 22? | SELECT Result FROM table WHERE Date = november 22 |
Translate the following into a SQL query | What is the lowest number of points scored when there were 1,500 in attendance? | SELECT MIN Points FROM table WHERE Attendance = 1,500 |
Translate the following into a SQL query | what is the average 2011 when 2012 is 65,000 and 2010 is more than 75,680? | SELECT AVG 2011 FROM table WHERE 2012 = 65,000 AND 2010 > 75,680 |
Translate the following into a SQL query | what is 2001 when the year is ebitda and 2009 is less than 3,600? | SELECT SUM 2001 FROM table WHERE Year = ebitda AND 2009 < 3,600 |
Translate the following into a SQL query | what is the lowest 2003 when 2009 is less than 15,884, 2006 is less than 9,845 and 2004 is less than 868? | SELECT MIN 2003 FROM table WHERE 2009 < 15,884 AND 2006 < 9,845 AND 2004 < 868 |
Translate the following into a SQL query | who is the author for harry potter and the deathly hallows? | SELECT Author FROM table WHERE Title = harry potter and the deathly hallows |
Translate the following into a SQL query | what is the title when the citation is honor and the narrator is lincoln hoppe? | SELECT Title FROM table WHERE Citation = honor AND Narrator = lincoln hoppe |
Translate the following into a SQL query | who is the producer when the narrator is katherine kellgren, the year is before 2013 and the author is karen cushman? | SELECT Producer FROM table WHERE Narrator = katherine kellgren AND Year < 2013 AND Author = karen cushman |
Translate the following into a SQL query | what is the year when the citation is honor and the author is kadir nelson? | SELECT SUM Year FROM table WHERE Citation = honor AND Author = kadir nelson |
Translate the following into a SQL query | What is Opponent In The Final, when Year is "1942"? | SELECT Opponent in the final FROM table WHERE Year = 1942 |
Translate the following into a SQL query | What is the average Year, when Outcome is "Winner"? | SELECT AVG Year FROM table WHERE Outcome = winner |
Translate the following into a SQL query | What tournament did Pemra Özgen play against julia kimmelmann in the finals? | SELECT Tournament FROM table WHERE Opponent in the Final = julia kimmelmann |
Translate the following into a SQL query | Which Home has a Visitor of nashville? | SELECT Home FROM table WHERE Visitor = nashville |
Translate the following into a SQL query | Which Visitor has a Decision of osgood, and a Date of february 15? | SELECT Visitor FROM table WHERE Decision = osgood AND Date = february 15 |
Translate the following into a SQL query | Which Date has a Record of 36–11–7? | SELECT Date FROM table WHERE Record = 36–11–7 |
Translate the following into a SQL query | Which Date has a Visitor of edmonton? | SELECT Date FROM table WHERE Visitor = edmonton |
Translate the following into a SQL query | What is the sum of Bronze, when Gold is less than 1, when Total is greater than 1, and when Rank is 10? | SELECT SUM Bronze FROM table WHERE Gold < 1 AND Total > 1 AND Rank = 10 |
Translate the following into a SQL query | What is the average Bronze, when Rank is greater than 6, when Nation is Italy (ITA), and when Total is less than 1? | SELECT AVG Bronze FROM table WHERE Rank > 6 AND Nation = italy (ita) AND Total < 1 |
Translate the following into a SQL query | What is the sum of Total, when Silver is greater than 1, when Rank is 9, and when Bronze is greater than 0? | SELECT SUM Total FROM table WHERE Silver > 1 AND Rank = 9 AND Bronze > 0 |
Translate the following into a SQL query | What is the average Gold, when Total is 2, when Silver is less than 1, and when Rank is greater than 5? | SELECT AVG Gold FROM table WHERE Total = 2 AND Silver < 1 AND Rank > 5 |
Translate the following into a SQL query | What is the sum of Rank, when Bronze is less than 1, when Nation is Switzerland (SUI), and when Total is less than 2? | SELECT SUM Rank FROM table WHERE Bronze < 1 AND Nation = switzerland (sui) AND Total < 2 |
Translate the following into a SQL query | What is the sum of Total, when Silver is greater than 1, when Nation is Germany (GER), and when Gold is less than 1? | SELECT SUM Total FROM table WHERE Silver > 1 AND Nation = germany (ger) AND Gold < 1 |
Translate the following into a SQL query | What is Player, when To Par is "7", and when Score is "73-72-67-75=287"? | SELECT Player FROM table WHERE To Par = 7 AND Score = 73-72-67-75=287 |
Translate the following into a SQL query | What is the average To Par, when Player is "Billy Casper"? | SELECT AVG To Par FROM table WHERE Player = billy casper |
Translate the following into a SQL query | What is the highest Money ( $ ), when To Par is less than 2? | SELECT MAX Money ( $ ) FROM table WHERE To Par < 2 |
Translate the following into a SQL query | What event in guam did Tetsuji Kato win against patrick madayag? | SELECT Event FROM table WHERE Res. = win AND Location = guam AND Opponent = patrick madayag |
Translate the following into a SQL query | What was the result of the fight when Tetsuji Kato's record was 19-9? | SELECT Res. FROM table WHERE Record = 19-9 |
Translate the following into a SQL query | How many receptions were smaller than 7? | SELECT COUNT Reception FROM table WHERE Long < 7 |
Translate the following into a SQL query | What is the average yards for Jimmie Giles in a game larger than 15 and reception larger than 2? | SELECT AVG Yards FROM table WHERE Games > 15 AND Reception > 2 AND Player = jimmie giles |
Translate the following into a SQL query | What year had a league position of 8/12? | SELECT Year FROM table WHERE League Position = 8/12 |
Translate the following into a SQL query | What league has a position of 8/13? | SELECT League FROM table WHERE League Position = 8/13 |
Translate the following into a SQL query | What year did the malaysia premier league get a position of 8/12? | SELECT Year FROM table WHERE League = malaysia premier league AND League Position = 8/12 |
Translate the following into a SQL query | What year had a cup position of round 1 and a league position of 5/12? | SELECT Year FROM table WHERE Cup Position = round 1 AND League Position = 5/12 |
Translate the following into a SQL query | What year had a domestic cup of singapore cup? | SELECT Year FROM table WHERE Domestic Cup = singapore cup |
Translate the following into a SQL query | How many Laps have Rider of olivier jacque, and a Grid larger than 7? | SELECT SUM Laps FROM table WHERE Rider = olivier jacque AND Grid > 7 |
Translate the following into a SQL query | Which Laps have a Manufacturer of suzuki, and a Grid smaller than 16? | SELECT MAX Laps FROM table WHERE Manufacturer = suzuki AND Grid < 16 |
Translate the following into a SQL query | How many Laps have a Grid larger than 9, and a Time/Retired of +32.354? | SELECT COUNT Laps FROM table WHERE Grid > 9 AND Time/Retired = +32.354 |
Translate the following into a SQL query | What is Record, when Date is Oct 19? | SELECT Record FROM table WHERE Date = oct 19 |
Translate the following into a SQL query | What is Attendance, when Opponent is Montreal Alouettes, and when Date is Oct 4? | SELECT Attendance FROM table WHERE Opponent = montreal alouettes AND Date = oct 4 |
Translate the following into a SQL query | What is Opponent, when Result is Win, and when Date is Aug 7? | SELECT Opponent FROM table WHERE Result = win AND Date = aug 7 |
Translate the following into a SQL query | what is the date when the score is 115-93? | SELECT Date FROM table WHERE Score = 115-93 |
Translate the following into a SQL query | what is the average crowd when the away team is new zealand breakers and the venue is cairns convention centre? | SELECT AVG Crowd FROM table WHERE Away team = new zealand breakers AND Venue = cairns convention centre |
Translate the following into a SQL query | how many times is the home team wollongong hawks? | SELECT COUNT Crowd FROM table WHERE Home team = wollongong hawks |
Translate the following into a SQL query | what is the date when the venue is gold coast convention centre? | SELECT Date FROM table WHERE Venue = gold coast convention centre |
Translate the following into a SQL query | Which Score has Points smaller than 67, and a Home of calgary flames? | SELECT Score FROM table WHERE Points < 67 AND Home = calgary flames |
Translate the following into a SQL query | Whic Date has a Score of 4–2? | SELECT Date FROM table WHERE Score = 4–2 |
Translate the following into a SQL query | Which Decision has a Record of 29–18–6? | SELECT Decision FROM table WHERE Record = 29–18–6 |
Translate the following into a SQL query | Which Date has a Score of 4–2? | SELECT Date FROM table WHERE Score = 4–2 |
Translate the following into a SQL query | How many losses did the coach who served under 1 season and in 1975 have? | SELECT COUNT Lost FROM table WHERE Years = 1975 AND Seasons < 1 |
Translate the following into a SQL query | What is the number of seasons coached by Kathy Graham? | SELECT MIN Seasons FROM table WHERE Name = kathy graham |
Translate the following into a SQL query | What is the result on September 25, 1966? | SELECT Result FROM table WHERE Date = september 25, 1966 |
Translate the following into a SQL query | What is the attendance of the game on November 20, 1966 after week 10? | SELECT Attendance FROM table WHERE Week > 10 AND Date = november 20, 1966 |
Translate the following into a SQL query | Who is the opponent on week 2? | SELECT Opponent FROM table WHERE Week = 2 |
Translate the following into a SQL query | Who is the opponent on November 20, 1966? | SELECT Opponent FROM table WHERE Date = november 20, 1966 |
Translate the following into a SQL query | What is the attendance of the game with the NY Islanders as home team? | SELECT COUNT Attendance FROM table WHERE Home = ny islanders |
Translate the following into a SQL query | What was the date of the game against seattle? | SELECT Date FROM table WHERE Opponent = seattle |
Translate the following into a SQL query | Who were the opponents during game 30? | SELECT Opponent FROM table WHERE Game = 30 |
Translate the following into a SQL query | What was the record during the game with a score of 78-59? | SELECT Record FROM table WHERE Score = 78-59 |
Translate the following into a SQL query | Which mlb team is located in maryland? | SELECT Team FROM table WHERE State/Province = maryland AND League = mlb |
Translate the following into a SQL query | What team is located in brooklyn? | SELECT Team FROM table WHERE City = brooklyn |
Translate the following into a SQL query | In what year was the cfl team in edmonton, alberta established? | SELECT Est. FROM table WHERE State/Province = alberta AND League = cfl AND City = edmonton |
Translate the following into a SQL query | In what year was the NFL team in chicago illinois established? | SELECT Est. FROM table WHERE State/Province = illinois AND City = chicago AND League = nfl |
Translate the following into a SQL query | Which team is located in missouri and was established in 1963? | SELECT Team FROM table WHERE State/Province = missouri AND Est. = 1963 |
Translate the following into a SQL query | Which event was Ye Shiwen in? | SELECT Event FROM table WHERE Name = ye shiwen |
Translate the following into a SQL query | Who had a time of 26.11? | SELECT Name FROM table WHERE Time = 26.11 |
Translate the following into a SQL query | What was the date in which the time was 2:16.08? | SELECT Date FROM table WHERE Time = 2:16.08 |
Translate the following into a SQL query | Who was in the women's 200m medley? | SELECT Name FROM table WHERE Event = women's 200m medley |
Translate the following into a SQL query | What was the nationality of the swimmer in the semifinal with a time of 29.51? | SELECT Nationality FROM table WHERE Round = semifinal AND Time = 29.51 |
Translate the following into a SQL query | What country scored 67? | SELECT Country FROM table WHERE Score = 67 |
Translate the following into a SQL query | What was the to par for Tino Schuster? | SELECT To par FROM table WHERE Player = tino schuster |
Translate the following into a SQL query | What country has player Scott Verplank? | SELECT Country FROM table WHERE Player = scott verplank |
Translate the following into a SQL query | What is the type of glycosylase that has an E. coli of Muty? | SELECT Type FROM table WHERE E. coli = muty |
Translate the following into a SQL query | Which E. coli has a human value of HNEIL1? | SELECT E. coli FROM table WHERE Human = hneil1 |
Translate the following into a SQL query | Which E. coli has a substrate of uracil? | SELECT E. coli FROM table WHERE Substrates = uracil |
Translate the following into a SQL query | The tko (doctor stoppage) method was used in a loss against which opponent? | SELECT Opponent FROM table WHERE Method = tko (doctor stoppage) AND Res. = loss |
Translate the following into a SQL query | How many total rounds used the submission (choke) method? | SELECT SUM Round FROM table WHERE Method = submission (choke) |
Translate the following into a SQL query | What was the time of the match with a record of 9-0 and used the tko (doctor stoppage) method? | SELECT Time FROM table WHERE Method = tko (doctor stoppage) AND Record = 9-0 |
Translate the following into a SQL query | What was the lowest round number at the UFC 16 event with a record of 19-1-1? | SELECT MIN Round FROM table WHERE Event = ufc 16 AND Record = 19-1-1 |
Translate the following into a SQL query | What was the highest number of oppenents points recorded for game 9 when the attendance was less than 60,091? | SELECT MAX Opponents FROM table WHERE Game = 9 AND Attendance < 60,091 |
Translate the following into a SQL query | What event did tedd williams fight bill parker? | SELECT Event FROM table WHERE Opponent = bill parker |
Translate the following into a SQL query | What round did the fight against travis fulton last? | SELECT Round FROM table WHERE Opponent = travis fulton |
Translate the following into a SQL query | How many times is the player scott deibert? | SELECT COUNT Pick # FROM table WHERE Player = scott deibert |
Translate the following into a SQL query | what is the pick # for william loftus? | SELECT Pick # FROM table WHERE Player = william loftus |
Translate the following into a SQL query | what is the cfl team for position d? | SELECT CFL Team FROM table WHERE Position = d |
Translate the following into a SQL query | what was the total for the Wolverhampton Wanderers? | SELECT League goals FROM table WHERE Club = wolverhampton wanderers |
Translate the following into a SQL query | How many were in attendance when the result was l 20-17? | SELECT Attendance FROM table WHERE Result = l 20-17 |
Translate the following into a SQL query | Which Third/Vice skip has a Second of éric sylvain? | SELECT Third/Vice skip FROM table WHERE Second = éric sylvain |
Translate the following into a SQL query | Which Lead has a Skip of mike mcewen? | SELECT Lead FROM table WHERE Skip = mike mcewen |
Translate the following into a SQL query | Which City has a Lead of steve gould? | SELECT City FROM table WHERE Lead = steve gould |
Translate the following into a SQL query | Which Lead has a City of winnipeg, and a Third/Vice skip of kevin park? | SELECT Lead FROM table WHERE City = winnipeg AND Third/Vice skip = kevin park |
Translate the following into a SQL query | Which City has a Lead of tyler forrest? | SELECT City FROM table WHERE Lead = tyler forrest |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.