instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What was the record for July 26? | SELECT Record FROM table WHERE Date = july 26 |
Translate the following into a SQL query | Played that has a Points of 38, and a B.P. larger than 5 has what sum? | SELECT SUM Played FROM table WHERE Points = 38 AND B.P. > 5 |
Translate the following into a SQL query | B.P. of 0, and a Pts Agst smaller than 247 has how many total number of played? | SELECT COUNT Played FROM table WHERE B.P. = 0 AND Pts Agst < 247 |
Translate the following into a SQL query | Pts Agst of 572, and a Pts For larger than 346 has what total number of position? | SELECT COUNT Position FROM table WHERE Pts Agst = 572 AND Pts For > 346 |
Translate the following into a SQL query | What is the most number of rounds that the Team from RBR Enterprises and having a Chevrolet Silverado ran? | SELECT MAX Rounds FROM table WHERE Truck(s) = chevrolet silverado AND Team = rbr enterprises |
Translate the following into a SQL query | Who was the crew chief for the team from Make Motorsports? | SELECT Crew Chief FROM table WHERE Team = make motorsports |
Translate the following into a SQL query | Who was the driver for crew chief Nick Carlson? | SELECT Driver(s) FROM table WHERE Crew Chief = nick carlson |
Translate the following into a SQL query | What is the truck used by Brett Moffitt, from Hattori Racing Enterprises? | SELECT Truck(s) FROM table WHERE Driver(s) = brett moffitt AND Team = hattori racing enterprises |
Translate the following into a SQL query | Who is the pick with the height of 6'9" and weighs (lbs) 215? | SELECT Pick FROM table WHERE Height = 6'9" AND Weight (lbs.) = 215 |
Translate the following into a SQL query | who is the NBA team for the draft year after 2003 with a height of 6'10" and home town of st. charles, mo? | SELECT NBA Team FROM table WHERE Draft Year > 2003 AND Height = 6'10" AND Hometown = st. charles, mo |
Translate the following into a SQL query | What was the losing bonus that had 1 draw and a 10 try bonus? | SELECT Losing bonus FROM table WHERE Drawn = 1 AND Try bonus = 10 |
Translate the following into a SQL query | How many resulted in draws with 34 tries for? | SELECT Drawn FROM table WHERE Tries for = 34 |
Translate the following into a SQL query | How many tries against were there with 520 points against? | SELECT Tries against FROM table WHERE Points against = 520 |
Translate the following into a SQL query | How many tries for were there while having 479 points against? | SELECT Tries for FROM table WHERE Points against = 479 |
Translate the following into a SQL query | How many resulted in a loss with 479 points against? | SELECT Lost FROM table WHERE Points against = 479 |
Translate the following into a SQL query | What is the try bonus when there were 58 points? | SELECT Try bonus FROM table WHERE Points = 58 |
Translate the following into a SQL query | Which opponent has a record of 44-28? | SELECT Opponent FROM table WHERE Record = 44-28 |
Translate the following into a SQL query | Which opponent has an attendance of 40,560? | SELECT Opponent FROM table WHERE Attendance = 40,560 |
Translate the following into a SQL query | Which loss was on June 13? | SELECT Loss FROM table WHERE Date = june 13 |
Translate the following into a SQL query | What is the attendance that has a record of 43-28? | SELECT Attendance FROM table WHERE Record = 43-28 |
Translate the following into a SQL query | What was the date of the record of 43-28? | SELECT Date FROM table WHERE Record = 43-28 |
Translate the following into a SQL query | Goalsagainst that has a Points of 108, and a Lost smaller than 14 has what average? | SELECT AVG Goalsagainst FROM table WHERE Points = 108 AND Lost < 14 |
Translate the following into a SQL query | Lost of 42, and a Goalsfor larger than 195 contains how many number of games? | SELECT COUNT Games FROM table WHERE Lost = 42 AND Goalsfor > 195 |
Translate the following into a SQL query | Season of 2002–03, and a Lost larger than 14, what is the lowest goals? | SELECT MIN Goalsfor FROM table WHERE Season = 2002–03 AND Lost > 14 |
Translate the following into a SQL query | Goalsagainst of 285, and a Season of 2006–07, and a Games smaller than 70 has what average points? | SELECT AVG Points FROM table WHERE Goalsagainst = 285 AND Season = 2006–07 AND Games < 70 |
Translate the following into a SQL query | Goals for of 288, and Points smaller than 85 what is the highest goals against? | SELECT MAX Goalsagainst FROM table WHERE Goalsfor = 288 AND Points < 85 |
Translate the following into a SQL query | What player originally played for the Los Angeles Kings? | SELECT Player FROM table WHERE Original Team = los angeles kings |
Translate the following into a SQL query | What Offer Team has a date of July 29, 1994? | SELECT Offer Team FROM table WHERE Date = july 29, 1994 |
Translate the following into a SQL query | What is the Result that has the New York Rangers as the Offer Team and Adam Graves as the Player? | SELECT Result FROM table WHERE Offer Team = new york rangers AND Player = adam graves |
Translate the following into a SQL query | What date has Vancouver Canucks as the original team, Ryan Kesler as the player, and matched as the Result? | SELECT Date FROM table WHERE Original Team = vancouver canucks AND Result = matched AND Player = ryan kesler |
Translate the following into a SQL query | What was David Backes' Offer Team? | SELECT Offer Team FROM table WHERE Player = david backes |
Translate the following into a SQL query | What is the result of Chris Gratton and Philadelphia Flyers as the Offer Team? | SELECT Result FROM table WHERE Offer Team = philadelphia flyers AND Player = chris gratton |
Translate the following into a SQL query | Which game had an attendance of 5,000 and was away? | SELECT AVG Game FROM table WHERE Venue = away AND Attendance = 5,000 |
Translate the following into a SQL query | When was the date in 1786? | SELECT Date FROM table WHERE Year = 1786 |
Translate the following into a SQL query | How low is the Attendance that has an Opponent of devil rays and a Date of may 13? | SELECT MIN Attendance FROM table WHERE Opponent = devil rays AND Date = may 13 |
Translate the following into a SQL query | How high is the Attendance with a Record of 29-25? | SELECT MAX Attendance FROM table WHERE Record = 29-25 |
Translate the following into a SQL query | Which Opponent has a lost of wells (6-2)? | SELECT Opponent FROM table WHERE Loss = wells (6-2) |
Translate the following into a SQL query | What is the team 2 with a 0-0 2nd leg? | SELECT Team 2 FROM table WHERE 2nd leg = 0-0 |
Translate the following into a SQL query | What is the team 1 with a (g14)morolo team 2? | SELECT Team 1 FROM table WHERE Team 2 = (g14)morolo |
Translate the following into a SQL query | What is the average Total, when the value for Silver is less than 1, when the value for Gold is 0, when the Nation is Switzerland, and when the value for Bronze is 2? | SELECT AVG Total FROM table WHERE Silver < 1 AND Gold = 0 AND Nation = switzerland AND Bronze < 2 |
Translate the following into a SQL query | What is the average Total, when the Nation is Sweden, and when the value for Bronze is less than 3? | SELECT AVG Total FROM table WHERE Nation = sweden AND Bronze < 3 |
Translate the following into a SQL query | What is the average value for Gold, when the value for Silver is greater than 2, and when the Nation is West Germany? | SELECT AVG Gold FROM table WHERE Silver > 2 AND Nation = west germany |
Translate the following into a SQL query | What is the value for Gold, when the value for Bronze is less than 0? | SELECT COUNT Gold FROM table WHERE Bronze < 0 |
Translate the following into a SQL query | Where is the coed school with state authority, a Decile larger than 6 and 26 enrolled? | SELECT Area FROM table WHERE Authority = state AND Decile > 6 AND Gender = coed AND Roll = 26 |
Translate the following into a SQL query | What is the average roll for Fairfield school? | SELECT AVG Roll FROM table WHERE Name = fairfield school |
Translate the following into a SQL query | Which school has a roll larger than 26 and is located in Fairfield? | SELECT Name FROM table WHERE Roll > 26 AND Area = fairfield |
Translate the following into a SQL query | how many points are there for a Chassis of porsche 718, and a Year smaller than 1964? | SELECT COUNT Points FROM table WHERE Chassis = porsche 718 AND Year < 1964 |
Translate the following into a SQL query | what is the engine that saw 0 points, and a Chassis of porsche 718, in 1961? | SELECT Engine FROM table WHERE Points = 0 AND Chassis = porsche 718 AND Year = 1961 |
Translate the following into a SQL query | what is the engine that saw a Chassis of porsche 718, and 0 points, prior to 1964? | SELECT Engine FROM table WHERE Chassis = porsche 718 AND Points = 0 AND Year < 1964 |
Translate the following into a SQL query | Which bronze has a Nation of poland? | SELECT Bronze FROM table WHERE Nation = poland |
Translate the following into a SQL query | Which gold has 3 silver and a Total of 5? | SELECT Gold FROM table WHERE Silver = 3 AND Total = 5 |
Translate the following into a SQL query | Which gold has a Bronze of 1, a Rank of 47, and a Nation of spain? | SELECT Gold FROM table WHERE Bronze = 1 AND Rank = 47 AND Nation = spain |
Translate the following into a SQL query | Which nation has a Silver of 1, a Gold of 0, and a Total of 1? | SELECT Nation FROM table WHERE Silver = 1 AND Gold = 0 AND Total = 1 |
Translate the following into a SQL query | Which bronze has a Rank of 37? | SELECT Bronze FROM table WHERE Rank = 37 |
Translate the following into a SQL query | Which silver has a Bronze of 1, a Total of 4, and a Nation of slovakia? | SELECT Silver FROM table WHERE Bronze = 1 AND Total = 4 AND Nation = slovakia |
Translate the following into a SQL query | What is the Issue Date(s) of Volume:Issue of 32:18-19? | SELECT Issue Date(s) FROM table WHERE Volume:Issue = 32:18-19 |
Translate the following into a SQL query | Volume:Issue of 32:26-33:5 was how many Weeks on Top? | SELECT Weeks on Top FROM table WHERE Volume:Issue = 32:26-33:5 |
Translate the following into a SQL query | What car had the fewest laps with a qual of 138.750? | SELECT MIN Laps FROM table WHERE Qual = 138.750 |
Translate the following into a SQL query | How many laps were there for the car with a qual of 138.750? | SELECT Laps FROM table WHERE Qual = 138.750 |
Translate the following into a SQL query | For the car with a qual of 134.288, what was the rank? | SELECT Rank FROM table WHERE Qual = 134.288 |
Translate the following into a SQL query | What was the finishing place for 1953? | SELECT Finish FROM table WHERE Year = 1953 |
Translate the following into a SQL query | Tell me the name for commissioned of 30 august 1941 and laid down of 22 september 1939 | SELECT Name FROM table WHERE Laid Down = 22 september 1939 AND Commissioned = 30 august 1941 |
Translate the following into a SQL query | What is the score when there was a Loss of birkbeck (0–3)? | SELECT Score FROM table WHERE Loss = birkbeck (0–3) |
Translate the following into a SQL query | Which GPU has the cushaw application? | SELECT GPU‡ FROM table WHERE Application = cushaw |
Translate the following into a SQL query | What is the expected speed up of the gpu-hmmer application? | SELECT Expected Speed Up† FROM table WHERE Application = gpu-hmmer |
Translate the following into a SQL query | Who was the host team at the game at the Cleveland Browns Stadium? | SELECT Host Team FROM table WHERE Stadium = cleveland browns stadium |
Translate the following into a SQL query | What was the final score when the Buffalo Bills were the visiting team? | SELECT Final Score FROM table WHERE Visiting Team = buffalo bills |
Translate the following into a SQL query | What was the final score when the Denver Broncos were the visiting team? | SELECT Final Score FROM table WHERE Visiting Team = denver broncos |
Translate the following into a SQL query | What is the date that a game at the Alltel Stadium had a final score of 6-20? | SELECT Date FROM table WHERE Stadium = alltel stadium AND Final Score = 6-20 |
Translate the following into a SQL query | what is the average season when results is less than 2 times in 2nd and more than 6 times in 3rd? | SELECT AVG Season FROM table WHERE 2nd pl. < 2 AND 3rd pl. > 6 |
Translate the following into a SQL query | How many times was the motorcycle ducati 916 2nd place when wins is less than 7? | SELECT SUM 2nd pl. FROM table WHERE Motorcycle = ducati 916 AND Wins < 7 |
Translate the following into a SQL query | Who is the champion when the motorcycle is ducati 916 and 2nd place is less than 5? | SELECT Champion FROM table WHERE Motorcycle = ducati 916 AND 2nd pl. < 5 |
Translate the following into a SQL query | What Catalog has a label of Alfa records and a date of November 21, 1980? | SELECT Catalog FROM table WHERE Label = alfa records AND Date = november 21, 1980 |
Translate the following into a SQL query | What catalog has a format of ED remaster CD and a date of December 19, 2001? | SELECT Catalog FROM table WHERE Format = ed remaster cd AND Date = december 19, 2001 |
Translate the following into a SQL query | What Date has a label of alfa records? | SELECT Date FROM table WHERE Label = alfa records |
Translate the following into a SQL query | What region has the label of alfa records and the date of January 23, 1987? | SELECT Region FROM table WHERE Label = alfa records AND Date = january 23, 1987 |
Translate the following into a SQL query | What date has the format of CD and catalog of alca-274? | SELECT Date FROM table WHERE Format = cd AND Catalog = alca-274 |
Translate the following into a SQL query | What date has the format of cd? | SELECT Date FROM table WHERE Format = cd |
Translate the following into a SQL query | What is the Decile number for St Mary's Catholic School? | SELECT Decile FROM table WHERE Name = st mary's catholic school |
Translate the following into a SQL query | Which Authority is set for Hauturu School? | SELECT Authority FROM table WHERE Name = hauturu school |
Translate the following into a SQL query | What School is in the kio kio area? | SELECT Name FROM table WHERE Area = kio kio |
Translate the following into a SQL query | What race is in the 5th position? | SELECT Race FROM table WHERE Position = 5th |
Translate the following into a SQL query | What Replica has a race of supersport race 1? | SELECT Replica FROM table WHERE Race = supersport race 1 |
Translate the following into a SQL query | What replica has the 5th position? | SELECT Replica FROM table WHERE Position = 5th |
Translate the following into a SQL query | When a Sigma 7 has a standard byte string, what is the value for the decimal? | SELECT Decimal FROM table WHERE Byte string = standard AND Model = sigma 7 |
Translate the following into a SQL query | What is the value for the byte string when the memory map, decimal, and floating points are all standard and the max memory is smaller than 512? | SELECT Byte string FROM table WHERE Memory map = standard AND Decimal = standard AND Floating point = standard AND Max memory (kwords) < 512 |
Translate the following into a SQL query | What model has both a standard byte string and floating-point? | SELECT Model FROM table WHERE Byte string = standard AND Floating point = standard |
Translate the following into a SQL query | On a Sigma 9 with a standard byte string and more than 128 max memory, what is the value of the memory map? | SELECT Memory map FROM table WHERE Byte string = standard AND Max memory (kwords) > 128 AND Model = sigma 9 |
Translate the following into a SQL query | What is the decimal value when the memory map and byte string are standard, and the max memory is 512? | SELECT Decimal FROM table WHERE Byte string = standard AND Memory map = standard AND Max memory (kwords) = 512 |
Translate the following into a SQL query | Who was the co-driver in the DNF position in the GT1 class? | SELECT Co-Drivers FROM table WHERE Pos. = dnf AND Class = gt1 |
Translate the following into a SQL query | Which co-driver was part of team Martini Lancia earlier than 1986? | SELECT Co-Drivers FROM table WHERE Year < 1986 AND Team = martini lancia |
Translate the following into a SQL query | The Le Mans Porsche team Joest Racing is in which class? | SELECT Class FROM table WHERE Team = le mans porsche team joest racing |
Translate the following into a SQL query | Name the build date for total produced of 146 | SELECT Build date FROM table WHERE Total produced = 146 |
Translate the following into a SQL query | Name the model for specification of dl-066 | SELECT Model FROM table WHERE Specification = dl-066 |
Translate the following into a SQL query | Name the power output for model of s-13 | SELECT Power output FROM table WHERE Model = s-13 |
Translate the following into a SQL query | What's the worst score for the worst dancer(s) john barnes, with a best score of 36? | SELECT Worst score FROM table WHERE Best score = 36 AND Worst dancer(s) = john barnes |
Translate the following into a SQL query | What's the worst dance of jive dancer(s)? | SELECT Worst dancer(s) FROM table WHERE Dance = jive |
Translate the following into a SQL query | What's the best score, with the worst dancer(s) gethin jones/kenny logan? | SELECT Best score FROM table WHERE Worst dancer(s) = gethin jones/kenny logan |
Translate the following into a SQL query | What's the best average score with a bad score of 15? | SELECT AVG Best score FROM table WHERE Worst score = 15 |
Translate the following into a SQL query | What is the name of the opponent that has a record of 66-69? | SELECT Opponent FROM table WHERE Record = 66-69 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.