instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | what is the type when the averaging time is 1-hour and the standard is 0.12 ppm (235 μg/m³)? | SELECT Type FROM table WHERE Averaging Time = 1-hour AND Standard = 0.12 ppm (235 μg/m³) |
Translate the following into a SQL query | what is the type when the regulatory citation is 40 cfr 50.9(a)? | SELECT Type FROM table WHERE Regulatory Citation = 40 cfr 50.9(a) |
Translate the following into a SQL query | What is the highest League, when Title Playoff is greater than 0? | SELECT MAX League FROM table WHERE Title Playoff > 0 |
Translate the following into a SQL query | What is the lowest Title Playoff, when Total is less than 3, and when League is greater than "2"? | SELECT MIN Title Playoff FROM table WHERE Total < 3 AND League > 2 |
Translate the following into a SQL query | What is the lowest Title Playoff, when League is greater than 3, and when Super Cup is less than 0? | SELECT MIN Title Playoff FROM table WHERE League > 3 AND Super Cup < 0 |
Translate the following into a SQL query | What is the total number of Super Cup, when Title Playoff is "0", when Total is greater than 9, and when League is less than 11? | SELECT COUNT Super Cup FROM table WHERE Title Playoff = 0 AND Total > 9 AND League < 11 |
Translate the following into a SQL query | What was the score when the jazz played against toronto? | SELECT Score FROM table WHERE Team = toronto |
Translate the following into a SQL query | What is the date of the game against miami? | SELECT Date FROM table WHERE Team = miami |
Translate the following into a SQL query | Who was the Opponent in Week 7? | SELECT Opponent FROM table WHERE Week = 7 |
Translate the following into a SQL query | What was the Attendance on November 7, 1999? | SELECT Attendance FROM table WHERE Date = november 7, 1999 |
Translate the following into a SQL query | Who was the Opponent of the Game with a Result of l 23-41? | SELECT Opponent FROM table WHERE Result = l 23-41 |
Translate the following into a SQL query | What was the Attendance in Week 1? | SELECT Attendance FROM table WHERE Week = 1 |
Translate the following into a SQL query | How much average Finish has Starts of 9, and a Top 10 smaller than 0? | SELECT SUM Avg. Finish FROM table WHERE Starts = 9 AND Top 10 < 0 |
Translate the following into a SQL query | Which Winnings have Starts larger than 34, and Poles smaller than 1, and a Top 10 of 5? | SELECT Winnings FROM table WHERE Starts > 34 AND Poles < 1 AND Top 10 = 5 |
Translate the following into a SQL query | Which Diameter (km) has a Name of alma-merghen planitia, and a Year named smaller than 1997? | SELECT MAX Diameter (km) FROM table WHERE Name = alma-merghen planitia AND Year named < 1997 |
Translate the following into a SQL query | Which Longitude has a Latitude of 73.0s, and a Name of aibarchin planitia? | SELECT Longitude FROM table WHERE Latitude = 73.0s AND Name = aibarchin planitia |
Translate the following into a SQL query | Which Year named has a Name of nuptadi planitia, and a Diameter (km) larger than 1,200.0? | SELECT MIN Year named FROM table WHERE Name = nuptadi planitia AND Diameter (km) > 1,200.0 |
Translate the following into a SQL query | Which Latitude has a Year named smaller than 1997, and a Name of aino planitia? | SELECT Latitude FROM table WHERE Year named < 1997 AND Name = aino planitia |
Translate the following into a SQL query | In what tournament did Cipolla face Sergio Roitman? | SELECT Tournament FROM table WHERE Opponent = sergio roitman |
Translate the following into a SQL query | What is the Rating/Share (18-49) that also has a Share greater than 10 and 12.42 million Viewers? | SELECT Rating/Share (18-49) FROM table WHERE Share > 10 AND Viewers (millions) = 12.42 |
Translate the following into a SQL query | Which Week has a Record of 2-9? | SELECT MIN Week FROM table WHERE Record = 2-9 |
Translate the following into a SQL query | Which Week has an Attendance smaller than 70,056, and an Opponent of at minnesota vikings? | SELECT COUNT Week FROM table WHERE Attendance < 70,056 AND Opponent = at minnesota vikings |
Translate the following into a SQL query | What is the 1993 finish for the event that had a 1990 of QF and 1995 of 2R? | SELECT 1993 FROM table WHERE 1990 = qf AND 1995 = 2r |
Translate the following into a SQL query | What is the 1994 finish for the Miami tournament? | SELECT 1994 FROM table WHERE Tournament = miami |
Translate the following into a SQL query | What is the to par score from Brad Faxon of the United States with a score of 73-68=141? | SELECT To par FROM table WHERE Country = united states AND Score = 73-68=141 AND Player = brad faxon |
Translate the following into a SQL query | What's the to par score in T8 place from Zimbabwe and has a score of 73-68=141? | SELECT To par FROM table WHERE Place = t8 AND Score = 73-68=141 AND Country = zimbabwe |
Translate the following into a SQL query | What's the score of Lee Janzen in T4 place? | SELECT Score FROM table WHERE Place = t4 AND Player = lee janzen |
Translate the following into a SQL query | What's the score of Jeff Maggert in T2 place? | SELECT Score FROM table WHERE Place = t2 AND Player = jeff maggert |
Translate the following into a SQL query | What's the to par when the score was 68-73=141? | SELECT To par FROM table WHERE Score = 68-73=141 |
Translate the following into a SQL query | What's the total number of game that has 377 points? | SELECT SUM Games FROM table WHERE Points = 377 |
Translate the following into a SQL query | What's the total number of points that the rank is less than 5 and has Tiago Splitter? | SELECT COUNT Points FROM table WHERE Name = tiago splitter AND Rank < 5 |
Translate the following into a SQL query | What is the total number of games that has Juan Carlos Navarro and more than 266 points? | SELECT SUM Games FROM table WHERE Points > 266 AND Name = juan carlos navarro |
Translate the following into a SQL query | What's the rank of Igor Rakočević of Tau Cerámica with more than 377 points? | SELECT SUM Rank FROM table WHERE Team = tau cerámica AND Name = igor rakočević AND Points > 377 |
Translate the following into a SQL query | What's the rank of the Tau Cerámica that has 377 points and more than 21 games? | SELECT COUNT Rank FROM table WHERE Team = tau cerámica AND Points = 377 AND Games > 21 |
Translate the following into a SQL query | What are the dates of squadron 33? | SELECT Dates FROM table WHERE Squadron = squadron 33 |
Translate the following into a SQL query | What institution won 2nd more recently than 2007 with Peter Agre as Chief Judge? | SELECT Institution FROM table WHERE Year > 2007 AND Award = 2nd AND Chief Judge = peter agre |
Translate the following into a SQL query | What student won 3rd with Peter Agre as Chief Judge? | SELECT Name FROM table WHERE Chief Judge = peter agre AND Award = 3rd |
Translate the following into a SQL query | What institution won in 2010 with student Cheng Herng Yi? | SELECT Institution FROM table WHERE Year > 2010 AND Name = cheng herng yi |
Translate the following into a SQL query | What was the lowest postion of ehc straubing ii when they played less than 10 games? | SELECT MIN Position FROM table WHERE Name = ehc straubing ii AND Played < 10 |
Translate the following into a SQL query | What was the drawn amount for teams with points of 12 and played smaller than 10? | SELECT AVG Drawn FROM table WHERE Points = 12 AND Played < 10 |
Translate the following into a SQL query | How many games were played by the team with 2 draws, less than 16 points and a position higher than 5? | SELECT COUNT Played FROM table WHERE Drawn = 2 AND Points < 16 AND Position > 5 |
Translate the following into a SQL query | What was the grid of Buddy Rice? | SELECT Grid FROM table WHERE Driver = buddy rice |
Translate the following into a SQL query | Which team had a driver with a finish position of 7? | SELECT Team FROM table WHERE Fin. Pos = 7 |
Translate the following into a SQL query | What was the time of the driver with a finish position of 19? | SELECT Time/Retired FROM table WHERE Fin. Pos = 19 |
Translate the following into a SQL query | What were the number of laps led by the driver with a finish position of 14? | SELECT Laps Led FROM table WHERE Fin. Pos = 14 |
Translate the following into a SQL query | Which team had a finish position of 8? | SELECT Team FROM table WHERE Fin. Pos = 8 |
Translate the following into a SQL query | For the 27 arrow match event, what's the sum of all scores for that event? | SELECT SUM Score FROM table WHERE Event = 27 arrow match |
Translate the following into a SQL query | Which event had a score of over 673 points? | SELECT Event FROM table WHERE Score > 673 |
Translate the following into a SQL query | What is the total number of appearances in the premier league when there were 10 appearances at UEFA and less than 4 at league cup? | SELECT COUNT Premier League FROM table WHERE UEFA Cup = 10 AND League Cup < 4 |
Translate the following into a SQL query | What is the highest total number of appearances when there were less than 4 at the FA cup? | SELECT MAX Total FROM table WHERE FA Cup < 4 |
Translate the following into a SQL query | What player had less than 6 appearances at the FA cup, 33 at the premier league, and more than 5 at the UEFA cup? | SELECT Player FROM table WHERE FA Cup < 6 AND Premier League = 33 AND UEFA Cup > 5 |
Translate the following into a SQL query | What is the sum of the appearances at the league cup for the defender who had less than 10 appearances at the UEFA cup? | SELECT SUM League Cup FROM table WHERE Position = defender AND UEFA Cup < 10 |
Translate the following into a SQL query | What's the target of the antibody rituximab? | SELECT Target FROM table WHERE Antibody = rituximab |
Translate the following into a SQL query | What's the target for the brand mylotarg? | SELECT Target FROM table WHERE Brand name = mylotarg |
Translate the following into a SQL query | What's the type for the brand herceptin with an approval date of before 2006? | SELECT Type FROM table WHERE Approval date < 2006 AND Brand name = herceptin |
Translate the following into a SQL query | What is Position, when Overall is less than 590, and when Round is 3? | SELECT Position FROM table WHERE Overall < 590 AND Round = 3 |
Translate the following into a SQL query | What is Player, when MLB Team is "Florida Marlins", and when Round is less than 15? | SELECT Player FROM table WHERE MLB Team = florida marlins AND Round < 15 |
Translate the following into a SQL query | What is the lowest Overall, when Player is "Dan Jennings", and when Round is greater than 9? | SELECT MIN Overall FROM table WHERE Player = dan jennings AND Round > 9 |
Translate the following into a SQL query | What is the total number of Round, when Position is 2B? | SELECT COUNT Round FROM table WHERE Position = 2b |
Translate the following into a SQL query | What are the highest points for Justin Lofton when his top 10 is lower than 5? | SELECT MAX Points FROM table WHERE Driver = justin lofton AND Top 10 < 5 |
Translate the following into a SQL query | What is Frank Kimmel's lowest top 5 with more than 0 wins and fewer than 14 top 10s? | SELECT MIN Top 5 FROM table WHERE Wins > 0 AND Driver = frank kimmel AND Top 10 < 14 |
Translate the following into a SQL query | What is the lowest top 10 with fewer than 4 wins, fewer than 3260 points and more than 0 for top 5? | SELECT MIN Top 10 FROM table WHERE Wins < 4 AND Points < 3260 AND Top 5 > 0 |
Translate the following into a SQL query | When the mark is 7.35, what's the lowest Lane found? | SELECT MIN Lane FROM table WHERE Mark = 7.35 |
Translate the following into a SQL query | What's the lowest lane found for a mark of 8.09 pb? | SELECT MIN Lane FROM table WHERE Mark = 8.09 pb |
Translate the following into a SQL query | What's the sum of all of ivet lalova's Heat stats? | SELECT SUM Heat FROM table WHERE Name = ivet lalova |
Translate the following into a SQL query | What's the total number of Heat recorded for the british virgin islands? | SELECT COUNT Heat FROM table WHERE Country = british virgin islands |
Translate the following into a SQL query | When the lane is under 2 and the name is virgen benavides with a mark of 7.29, what's the total number of Heat found? | SELECT COUNT Heat FROM table WHERE Mark = 7.29 AND Name = virgen benavides AND Lane < 2 |
Translate the following into a SQL query | What's the Time for the Competition of european cup and has a Venue of Moscow? | SELECT Time FROM table WHERE Competition = european cup AND Venue = moscow |
Translate the following into a SQL query | What's the Time for an Event of 4x100 m relay and has a Venue of Frankfurt? | SELECT Time FROM table WHERE Event = 4x100 m relay AND Venue = frankfurt |
Translate the following into a SQL query | What Competition has an Event of 4x100 m relay and has the Time of 38.89? | SELECT Competition FROM table WHERE Event = 4x100 m relay AND Time = 38.89 |
Translate the following into a SQL query | What's the lowest Year with a Venue of casablanca and has the Time of 20.63w? | SELECT MIN Year FROM table WHERE Venue = casablanca AND Time = 20.63w |
Translate the following into a SQL query | What was the College/junior/club team of the player with the united states nationality? | SELECT College/junior/club team FROM table WHERE Nationality = united states |
Translate the following into a SQL query | What was the lowest pick number for a united states player picked before round 7? | SELECT MIN Pick FROM table WHERE Round > 7 AND Nationality = united states |
Translate the following into a SQL query | What country was the player with the score line 69-71-72-69=281 from? | SELECT Country FROM table WHERE Score = 69-71-72-69=281 |
Translate the following into a SQL query | What was the score of the player from South Africa? | SELECT Score FROM table WHERE Country = south africa |
Translate the following into a SQL query | What country did the player with the score line 73-74-72-64=283 from? | SELECT Country FROM table WHERE Score = 73-74-72-64=283 |
Translate the following into a SQL query | Who won Pro Stock Motorcycle the year Tom Martino won Pro Stock? | SELECT Pro Stock Motorcycle FROM table WHERE Pro Stock = tom martino |
Translate the following into a SQL query | Who won Funny Car in 2012? | SELECT Funny Car FROM table WHERE Year = 2012 |
Translate the following into a SQL query | Who won Funny Car when Jim Yates won Pro Stock, in years after 1996? | SELECT Funny Car FROM table WHERE Pro Stock = jim yates AND Year > 1996 |
Translate the following into a SQL query | Who won Pro Stock the year Tony Schumacher won Top Fuel and Tony Pedregon won Funny Car? | SELECT Pro Stock FROM table WHERE Top Fuel = tony schumacher AND Funny Car = tony pedregon |
Translate the following into a SQL query | In which year did John Force win Funny Car and Mike Dunn win in Top Fuel? | SELECT Year FROM table WHERE Funny Car = john force AND Top Fuel = mike dunn |
Translate the following into a SQL query | What is the total number of races in the 2006 season with 0 poles and more than 0 podiums? | SELECT COUNT Races FROM table WHERE Poles = 0 AND Season = 2006 AND Podiums > 0 |
Translate the following into a SQL query | What is the highest number of the fastest laps when there were 0 poles, more than 2 podiums, and more than 15 races? | SELECT MAX Fastest Laps FROM table WHERE Poles = 0 AND Races > 15 AND Podiums > 2 |
Translate the following into a SQL query | What is the total number of races when there was more than 1 pole, and the fastest number of laps was less than 4? | SELECT SUM Races FROM table WHERE Poles > 1 AND Fastest Laps < 4 |
Translate the following into a SQL query | What was the average number of fastest laps with less than 0 poles? | SELECT AVG Fastest Laps FROM table WHERE Poles < 0 |
Translate the following into a SQL query | What is the smallest number of poles when the fastest laps are less than 0? | SELECT MIN Poles FROM table WHERE Fastest Laps < 0 |
Translate the following into a SQL query | What is the total number of wins in the 2007 season when the fastest laps is 0, there are less than 0 podiums, and there are less than 16 races? | SELECT SUM Wins FROM table WHERE Fastest Laps = 0 AND Races < 16 AND Season = 2007 AND Podiums < 0 |
Translate the following into a SQL query | What surface did hayley ericksen play on? | SELECT Surface FROM table WHERE Partner = hayley ericksen |
Translate the following into a SQL query | Who were the opponents on a hard surface with a score of 6-4, 7-6(2)? | SELECT Opponents in the final FROM table WHERE Surface = hard AND Score = 6-4, 7-6(2) |
Translate the following into a SQL query | What was hayley ericksen's score? | SELECT Score FROM table WHERE Partner = hayley ericksen |
Translate the following into a SQL query | Who won the Silver the Year Katie Curtis Unknown won the Bronze? | SELECT Silver FROM table WHERE Bronze = katie curtis unknown |
Translate the following into a SQL query | Round that greg huntington went in? | SELECT Round FROM table WHERE Name = greg huntington |
Translate the following into a SQL query | Total overall from penn state? | SELECT SUM Overall FROM table WHERE College = penn state |
Translate the following into a SQL query | How many seasons did Pat Chambers coach? | SELECT COUNT Seasons FROM table WHERE Coach = pat chambers |
Translate the following into a SQL query | What was the to par that goes with the score 68-74-69=211? | SELECT To par FROM table WHERE Score = 68-74-69=211 |
Translate the following into a SQL query | What country is Paul Stankowski from? | SELECT Country FROM table WHERE Player = paul stankowski |
Translate the following into a SQL query | What place goes with the score of 70-66-65=201? | SELECT Place FROM table WHERE Score = 70-66-65=201 |
Translate the following into a SQL query | When Fred Funk had a to par of E, what was the score? | SELECT Score FROM table WHERE To par = e AND Player = fred funk |
Translate the following into a SQL query | Where is the location where Scott Junk was the opponent? | SELECT Location FROM table WHERE Opponent = scott junk |
Translate the following into a SQL query | what is the score on 14 december 1974 and the away team is crystal palace? | SELECT Score FROM table WHERE Date = 14 december 1974 AND Away team = crystal palace |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.