instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which Series has a Score of 3 – 8? | SELECT Series FROM table WHERE Score = 3 – 8 |
Translate the following into a SQL query | Which Date has a Decision of myre? | SELECT Date FROM table WHERE Decision = myre |
Translate the following into a SQL query | How many Attendances on may 24? | SELECT MIN Attendance FROM table WHERE Date = may 24 |
Translate the following into a SQL query | Which Series are on may 18? | SELECT Series FROM table WHERE Date = may 18 |
Translate the following into a SQL query | How many Attendances that has a Visitor of philadelphia on may 20? | SELECT AVG Attendance FROM table WHERE Visitor = philadelphia AND Date = may 20 |
Translate the following into a SQL query | who is the Visitor that has a Series of series tied 2–2? | SELECT Visitor FROM table WHERE Series = series tied 2–2 |
Translate the following into a SQL query | How many Attendances have a Score of 4 – 5? Question 4 | SELECT MAX Attendance FROM table WHERE Score = 4 – 5 |
Translate the following into a SQL query | WHo has a Home of philadelphia and a Series of flyers lead 1–0? | SELECT Visitor FROM table WHERE Home = philadelphia AND Series = flyers lead 1–0 |
Translate the following into a SQL query | What is the class of the Charlotte Camel gt 500 race? | SELECT Class FROM table WHERE Race = charlotte camel gt 500 |
Translate the following into a SQL query | What is the race 12 hours in length? | SELECT Race FROM table WHERE Length = 12 hours |
Translate the following into a SQL query | What is the class of the Coca-cola classic 12 hours of sebring race? | SELECT Class FROM table WHERE Race = coca-cola classic 12 hours of sebring |
Translate the following into a SQL query | What is the class of the Budweiser Grand Prix of Miami race with a length of 3 hours? | SELECT Class FROM table WHERE Race = budweiser grand prix of miami AND Length = 3 hours |
Translate the following into a SQL query | What is the date of the Paul Revere 250 race in the Daytona International Speedway circuit? | SELECT Date FROM table WHERE Circuit = daytona international speedway AND Race = paul revere 250 |
Translate the following into a SQL query | What race is 12 hours in length? | SELECT Race FROM table WHERE Length = 12 hours |
Translate the following into a SQL query | What is the highest round for the pick from Finland? | SELECT MAX Round FROM table WHERE Nationality = finland |
Translate the following into a SQL query | What is the total number of rounds that Joe Barnes was picked? | SELECT COUNT Round FROM table WHERE Player = joe barnes |
Translate the following into a SQL query | What is the total 2nd of Thomas Morgenstern, who has a 1st less than 132.5? | SELECT COUNT 2nd (m) FROM table WHERE Name = thomas morgenstern AND 1st (m) < 132.5 |
Translate the following into a SQL query | What was the order of the Tokyo olympic games? | SELECT Order FROM table WHERE Olympic Games = tokyo |
Translate the following into a SQL query | What was the 15th club in 2012? | SELECT Club FROM table WHERE Year = 2012 AND Order = 15th |
Translate the following into a SQL query | What medal did Michael Conlon, with a weight of fly, win? | SELECT Medal FROM table WHERE Weight = fly AND Boxer = michael conlon |
Translate the following into a SQL query | How many losses have more than 45,036 attendance? | SELECT Loss FROM table WHERE Attendance > 45,036 |
Translate the following into a SQL query | on april 29, what was the attendance? | SELECT SUM Attendance FROM table WHERE Date = april 29 |
Translate the following into a SQL query | on april 9 what was the attendance? | SELECT AVG Attendance FROM table WHERE Date = april 9 |
Translate the following into a SQL query | What date has postponed (rain) rescheduled for august 7 as the score? | SELECT Date FROM table WHERE Score = postponed (rain) rescheduled for august 7 |
Translate the following into a SQL query | Failures larger than 0, and a Successes of 1 has what lowest partial failures? | SELECT MIN Partial failures FROM table WHERE Failures > 0 AND Successes = 1 |
Translate the following into a SQL query | Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures? | SELECT SUM Partial failures FROM table WHERE Successes < 6 AND Launches > 1 AND Failures = 2 |
Translate the following into a SQL query | Who was the opposing team during a game in the Pontiac Silverdome? | SELECT Opponent FROM table WHERE Location = pontiac silverdome |
Translate the following into a SQL query | What was the final score for the January 23 game? | SELECT Score FROM table WHERE Date = january 23 |
Translate the following into a SQL query | What is the highest Feb value having an opponent of the Philadelphia Flyers and is after game 63? | SELECT MAX February FROM table WHERE Opponent = philadelphia flyers AND Game > 63 |
Translate the following into a SQL query | Who was the opponent in games over 58, after Feb 16, and having a record of 40-20-4? | SELECT Opponent FROM table WHERE Game > 58 AND February > 16 AND Record = 40-20-4 |
Translate the following into a SQL query | Which Year has a Genre of rock (track)? | SELECT SUM Year FROM table WHERE Genre = rock (track) |
Translate the following into a SQL query | Which Year Inducted is the highest one that has a Year smaller than 1965? | SELECT MAX Year Inducted FROM table WHERE Year < 1965 |
Translate the following into a SQL query | Which Overall is the highest one that has a Pick # smaller than 9, and a Name of mike pearson? | SELECT MAX Overall FROM table WHERE Pick # < 9 AND Name = mike pearson |
Translate the following into a SQL query | Which Round is the lowest one that has a Position of wide receiver, and an Overall smaller than 222? | SELECT MIN Round FROM table WHERE Position = wide receiver AND Overall < 222 |
Translate the following into a SQL query | What was the Record on September 21? | SELECT Record FROM table WHERE Date = september 21 |
Translate the following into a SQL query | What was the record the day David Weathers (15) had a save? | SELECT Record FROM table WHERE Save = david weathers (15) |
Translate the following into a SQL query | Who had a save on September 2? | SELECT Save FROM table WHERE Date = september 2 |
Translate the following into a SQL query | What was the loss on September 2? | SELECT Loss FROM table WHERE Date = september 2 |
Translate the following into a SQL query | What is the total number of byes that are associated with 1 draw, 5 wins, and fewer than 12 losses? | SELECT SUM Byes FROM table WHERE Draws = 1 AND Wins = 5 AND Losses < 12 |
Translate the following into a SQL query | What is the total number of byes associated with fewer than 8 wins and fewer than 1 draw? | SELECT COUNT Byes FROM table WHERE Draws < 1 AND Wins < 8 |
Translate the following into a SQL query | What is the NTFA Div 1 team that has 15 wins and less than 1 draw? | SELECT NTFA Div 1 FROM table WHERE Draws < 1 AND Wins = 15 |
Translate the following into a SQL query | What is the average number of losses for teams with 0 draws and 0 byes? | SELECT AVG Losses FROM table WHERE Draws = 0 AND Byes < 0 |
Translate the following into a SQL query | What is the most number of losses for teams with 5 wins and an against value under 1607? | SELECT MAX Losses FROM table WHERE Wins = 5 AND Against < 1607 |
Translate the following into a SQL query | Race that has a Podium larger than 1, and a Season of 1982, and a flap smaller than 1 had how many number of races? | SELECT COUNT Race FROM table WHERE Podium > 1 AND Season = 1982 AND FLap < 1 |
Translate the following into a SQL query | Pole smaller than 0 had what lowest podium? | SELECT MIN Podium FROM table WHERE Pole < 0 |
Translate the following into a SQL query | Flap of 0, and a Race smaller than 2, and a Season of 1989, and a Pole smaller than 0 had what average podium? | SELECT AVG Podium FROM table WHERE FLap = 0 AND Race < 2 AND Season = 1989 AND Pole < 0 |
Translate the following into a SQL query | What was the record on august 24? | SELECT Record FROM table WHERE Date = august 24 |
Translate the following into a SQL query | Elevation of 11,158 feet 3401 m had what route? | SELECT Route FROM table WHERE Elevation = 11,158 feet 3401 m |
Translate the following into a SQL query | Route larger than 24, and a Highway of trail ridge road had what elevation? | SELECT Elevation FROM table WHERE Route > 24 AND Highway = trail ridge road |
Translate the following into a SQL query | Elevation of 12,183 feet 3713 m is what average route? | SELECT AVG Route FROM table WHERE Elevation = 12,183 feet 3713 m |
Translate the following into a SQL query | What Opponent has a Results¹ of 1:3? | SELECT Opponent FROM table WHERE Results¹ = 1:3 |
Translate the following into a SQL query | On what Date was the Results¹ 1:2? | SELECT Date FROM table WHERE Results¹ = 1:2 |
Translate the following into a SQL query | What City had Results¹ of 1:2? | SELECT City FROM table WHERE Results¹ = 1:2 |
Translate the following into a SQL query | On what Date was Wales the Opponent? | SELECT Date FROM table WHERE Opponent = wales |
Translate the following into a SQL query | In what City was Bulgaria the Opponent with Results¹ of 1:0? | SELECT City FROM table WHERE Results¹ = 1:0 AND Opponent = bulgaria |
Translate the following into a SQL query | What Vancouver canucks game was on a date closest to November 4? | SELECT MAX Game FROM table WHERE Opponent = vancouver canucks AND November < 4 |
Translate the following into a SQL query | Name the year for jerry sichting | SELECT Year FROM table WHERE Color commentator(s) = jerry sichting |
Translate the following into a SQL query | Name the studio host for glenn ordway and jerry sichting with year of 1993-94 | SELECT Studio host FROM table WHERE Play-by-play = glenn ordway AND Color commentator(s) = jerry sichting AND Year = 1993-94 |
Translate the following into a SQL query | Name the flagship station for cedric maxwell and year of 1995-96 | SELECT Flagship Station FROM table WHERE Color commentator(s) = cedric maxwell AND Year = 1995-96 |
Translate the following into a SQL query | Who was the architect of the 10 floor building with a height of 42 M? | SELECT Architect FROM table WHERE Height [m] = 42 AND Floors = 10 |
Translate the following into a SQL query | What is the height of the building built by architects Ross and Macfarlane? | SELECT Height [m] FROM table WHERE Architect = ross and macfarlane |
Translate the following into a SQL query | Who was the architect that built the Electric Railway Chambers before 1915? | SELECT Architect FROM table WHERE Built < 1915 AND Building = electric railway chambers |
Translate the following into a SQL query | What is the Time on july 18 that has a Loss of lilly (3-3)? | SELECT Time FROM table WHERE Date = july 18 AND Loss = lilly (3-3) |
Translate the following into a SQL query | Which Opponent has a Record of 43-56? | SELECT Opponent FROM table WHERE Record = 43-56 |
Translate the following into a SQL query | What is the Score on July 18 that has Record of 41-51? | SELECT Score FROM table WHERE Date = july 18 AND Record = 41-51 |
Translate the following into a SQL query | Which Record is on july 31? | SELECT Record FROM table WHERE Date = july 31 |
Translate the following into a SQL query | Which Opponent has a Loss of weaver (9-9)? | SELECT Opponent FROM table WHERE Loss = weaver (9-9) |
Translate the following into a SQL query | Which Season was the Poles greater than 14? | SELECT Season FROM table WHERE Poles > 14 |
Translate the following into a SQL query | Which is the highest Season with a Percentage of 67% and Alberto Ascari as a Driver? | SELECT MAX Season FROM table WHERE Percentage = 67% AND Driver = alberto ascari |
Translate the following into a SQL query | Name the Driver that has Races greater than 16? | SELECT Driver FROM table WHERE Races > 16 |
Translate the following into a SQL query | What is the average Long that has a GP-GS less than 14, a AVg/G less than 0.8 and a Gain less than 3 and a Loss greater than 8? | SELECT AVG Long FROM table WHERE GP-GS < 14 AND Avg/G < 0.8 AND Gain < 3 AND Loss > 8 |
Translate the following into a SQL query | What is the lowest Avg/G with a Long less than 0? | SELECT MIN Avg/G FROM table WHERE Long < 0 |
Translate the following into a SQL query | What is the amount of Avg/G with a Name of blaine gabbert and a Long greater than 30? | SELECT SUM Avg/G FROM table WHERE Name = blaine gabbert AND Long > 30 |
Translate the following into a SQL query | What is the total number of Long with a Av/g of 124.9 but Loss greater than 0? | SELECT COUNT Long FROM table WHERE Loss > 0 AND Avg/G = 124.9 |
Translate the following into a SQL query | What date has parlophone as the label, and lp as a format? | SELECT Date FROM table WHERE Label = parlophone AND Format = lp |
Translate the following into a SQL query | What school has oregon as the state, and ashland as the city? | SELECT School FROM table WHERE State = oregon AND City = ashland |
Translate the following into a SQL query | What conference has mayville state as the school? | SELECT Conference FROM table WHERE School = mayville state |
Translate the following into a SQL query | What school has belleville as the city? | SELECT School FROM table WHERE City = belleville |
Translate the following into a SQL query | What city has trojans as the team, and taylor as the school? | SELECT City FROM table WHERE Team = trojans AND School = taylor |
Translate the following into a SQL query | What team has great plains as the conference, and concordia (ne) as the school? | SELECT Team FROM table WHERE Conference = great plains AND School = concordia (ne) |
Translate the following into a SQL query | What school is in hillsboro city? | SELECT School FROM table WHERE City = hillsboro |
Translate the following into a SQL query | How many games have a February larger than 11, and a Record of 23-7-8? | SELECT COUNT Game FROM table WHERE February > 11 AND Record = 23-7-8 |
Translate the following into a SQL query | How much February has a Game larger than 37, and an Opponent of chicago black hawks? | SELECT COUNT February FROM table WHERE Game > 37 AND Opponent = chicago black hawks |
Translate the following into a SQL query | Which February has a Game of 40? | SELECT February FROM table WHERE Game = 40 |
Translate the following into a SQL query | Which Record has a February smaller than 8, and an Opponent of montreal canadiens? | SELECT Record FROM table WHERE February < 8 AND Opponent = montreal canadiens |
Translate the following into a SQL query | Which Score has a Game larger than 40, and a Record of 25-10-8? | SELECT Score FROM table WHERE Game > 40 AND Record = 25-10-8 |
Translate the following into a SQL query | What was the team performance in 1977? | SELECT Team Performance FROM table WHERE Year = 1977 |
Translate the following into a SQL query | What was the position of the player whose team lost super bowl xxv before 1992, with a team defense rank larger than 3? | SELECT Position FROM table WHERE Team Defense Rank > 3 AND Year < 1992 AND Team Performance = lost super bowl xxv |
Translate the following into a SQL query | What round was Joe Patton selected with a pick over 68? | SELECT Round FROM table WHERE Pick > 68 AND Player = joe patton |
Translate the following into a SQL query | Which Sail number has a Position smaller than 2? | SELECT Sail number FROM table WHERE Position < 2 |
Translate the following into a SQL query | WHICH Corrected time d:hh:mm:ss has a Position smaller than 7, and a Yacht type of cookson 50 | SELECT Corrected time d:hh:mm:ss FROM table WHERE Position < 7 AND Yacht type = cookson 50 |
Translate the following into a SQL query | WHICH State/country that has ray roberts? | SELECT State/country FROM table WHERE Skipper = ray roberts |
Translate the following into a SQL query | WHICH Yacht type has a Corrected time 2:13:04:48? | SELECT Yacht type FROM table WHERE Corrected time d:hh:mm:ss = 2:13:04:48 |
Translate the following into a SQL query | WHICH LOA (Metres) has a Corrected time d:hh:mm:ss of 3:12:07:43? | SELECT AVG LOA (Metres) FROM table WHERE Corrected time d:hh:mm:ss = 3:12:07:43 |
Translate the following into a SQL query | What surface did Smeets play on during the Kuwait tournament? | SELECT Surface FROM table WHERE Tournament = kuwait |
Translate the following into a SQL query | What tournament did Smeets play against Mark nielsen? | SELECT Tournament FROM table WHERE Opponent in the final = mark nielsen |
Translate the following into a SQL query | Who was the opponent during the tournament in Kuwait? | SELECT Opponent in the final FROM table WHERE Tournament = kuwait |
Translate the following into a SQL query | What is the weight of the player from the vk primorac kotor club? | SELECT Weight FROM table WHERE Club = vk primorac kotor |
Translate the following into a SQL query | What is the weight of the player from pvk jadran club? | SELECT Weight FROM table WHERE Club = pvk jadran |
Translate the following into a SQL query | What is the name of the player from club pro recco? | SELECT Name v t e FROM table WHERE Club = pro recco |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.