instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the grid of driver tomas scheckter from vision racing team? | SELECT Grid FROM table WHERE Team = vision racing AND Driver = tomas scheckter |
Translate the following into a SQL query | What is the grid of car no. 3? | SELECT Grid FROM table WHERE Car No. = 3 |
Translate the following into a SQL query | What is the grid with a +6.8359 time/retired? | SELECT Grid FROM table WHERE Time/Retired = +6.8359 |
Translate the following into a SQL query | WHAT TEAM 1 HAS A 1st leg of 1–1, and a 2nd leg of 1–3? | SELECT Team 1 FROM table WHERE 1st leg = 1–1 AND 2nd leg = 1–3 |
Translate the following into a SQL query | WHAT IS THE 1ST LEG WITH TEAM 2 AS ATHLETIC? | SELECT 1st leg FROM table WHERE Team 2 = athletic |
Translate the following into a SQL query | WHAT IS THE 2ND LEG WITH TEAM 1 OF SPORTING? | SELECT 2nd leg FROM table WHERE Team 1 = sporting |
Translate the following into a SQL query | Sum of cuyo selection as the opposing team? | SELECT SUM Against FROM table WHERE Opposing Team = cuyo selection |
Translate the following into a SQL query | Lowest against for tour match on 21 july 1990? | SELECT MIN Against FROM table WHERE Status = tour match AND Date = 21 july 1990 |
Translate the following into a SQL query | Name the lowest version with a code of u+1034a that began after 2001. | SELECT MIN Version FROM table WHERE Code = u+1034a AND Year > 2001 |
Translate the following into a SQL query | What character was the version 5.1 and had a Greek capital letter Archaic Sampi? | SELECT Character FROM table WHERE Version = 5.1 AND Name = greek capital letter archaic sampi |
Translate the following into a SQL query | Give the sum of the version with the coptic small letter sampi, and a year after 2005. | SELECT SUM Version FROM table WHERE Name = coptic small letter sampi AND Year > 2005 |
Translate the following into a SQL query | What is the year that has a name with the Greek small letter sampi? | SELECT SUM Year FROM table WHERE Name = greek small letter sampi |
Translate the following into a SQL query | What country id Bob Rosburg from? | SELECT Country FROM table WHERE Player = bob rosburg |
Translate the following into a SQL query | What country has a score of 73-72-67=212? | SELECT Country FROM table WHERE Score = 73-72-67=212 |
Translate the following into a SQL query | What is Mike Souchak's to par? | SELECT To Par FROM table WHERE Player = mike souchak |
Translate the following into a SQL query | What is Mike Souchak's to par score? | SELECT To Par FROM table WHERE Player = mike souchak |
Translate the following into a SQL query | What was the finish for the golfer with a total of 285? | SELECT Finish FROM table WHERE Total = 285 |
Translate the following into a SQL query | What was the total for the golfer who had a year won of 1987? | SELECT Total FROM table WHERE Year(s) won = 1987 |
Translate the following into a SQL query | What was the finish for the golfer with a To par of +2? | SELECT Finish FROM table WHERE To par = +2 |
Translate the following into a SQL query | What was the total for the golfer who had a To par of +10 and year won of 1971? | SELECT SUM Total FROM table WHERE To par = +10 AND Year(s) won = 1971 |
Translate the following into a SQL query | What team played before game 71 and had a score w 91–86 (ot)? | SELECT Team FROM table WHERE Game < 71 AND Score = w 91–86 (ot) |
Translate the following into a SQL query | What was the high assist for game 66? | SELECT High assists FROM table WHERE Game = 66 |
Translate the following into a SQL query | What is josé maría olazábal's country? | SELECT Country FROM table WHERE Player = josé maría olazábal |
Translate the following into a SQL query | Which Player has a Score of 74-67-74-71=286? | SELECT Player FROM table WHERE Score = 74-67-74-71=286 |
Translate the following into a SQL query | Which Place has a Country of united states, and a Player of corey pavin? | SELECT Place FROM table WHERE Country = united states AND Player = corey pavin |
Translate the following into a SQL query | Who is the opponent in week 15? | SELECT Opponent FROM table WHERE Week = 15 |
Translate the following into a SQL query | What is the highest attendance a result of W 30-7? | SELECT MAX Attendance FROM table WHERE Result = w 30-7 |
Translate the following into a SQL query | What is the average attendance at week earlier than 6 on October 14, 2001? | SELECT AVG Attendance FROM table WHERE Week < 6 AND Date = october 14, 2001 |
Translate the following into a SQL query | what is the record when the method is submission (armbar) and the round is less than 3? | SELECT Record FROM table WHERE Method = submission (armbar) AND Round < 3 |
Translate the following into a SQL query | How many average points did svg burgkirchen have with a loss smaller than 6? | SELECT AVG Points FROM table WHERE Name = svg burgkirchen AND Lost < 6 |
Translate the following into a SQL query | Who had points smaller than 22 and a drawn of 2? | SELECT Name FROM table WHERE Points < 22 AND Drawn = 2 |
Translate the following into a SQL query | Who lost 2 and had a position bigger than 1? | SELECT Name FROM table WHERE Lost = 2 AND Position > 1 |
Translate the following into a SQL query | What is the name of the catalog issued with the title of 1958 Miles on the Sony label at a year prior to 2006? | SELECT Catalog FROM table WHERE Issued title = 1958 miles AND Label = sony AND Year < 2006 |
Translate the following into a SQL query | What is the label of the Year before 1979? | SELECT Label FROM table WHERE Year < 1979 |
Translate the following into a SQL query | WHAT IS THE 2011 PERFORMANCE AT THE MIAMI MASTERS? | SELECT 2011 FROM table WHERE Tournament = miami masters |
Translate the following into a SQL query | WHAT IS THE 2008 PERFORMANCE WITH A 2007 CAREER STATISTICS? | SELECT 2008 FROM table WHERE 2007 = career statistics |
Translate the following into a SQL query | WHAT IS THE TOURNAMENT WITH A 2010 OF A, 2009 OF A, AND 001 PERFORMANCE OF Q1? | SELECT Tournament FROM table WHERE 2010 = a AND 2009 = a AND 2011 = q1 |
Translate the following into a SQL query | WHAT IS THE 2009 PERFORMANCE WITH A 2012 OF 2R, 2001 OF 1R, 2007 OF A, AND 2008 OF A? | SELECT 2009 FROM table WHERE 2012 = 2r AND 2011 = 1r AND 2007 = a AND 2008 = a |
Translate the following into a SQL query | WHAT IS THE 2011 PERFORMANCE WITH A 2007 OF Q3? | SELECT 2011 FROM table WHERE 2007 = q3 |
Translate the following into a SQL query | Which Score has a Place of t2? | SELECT Score FROM table WHERE Place = t2 |
Translate the following into a SQL query | What was spain's score? | SELECT Score FROM table WHERE Country = spain |
Translate the following into a SQL query | Which To par has a Score of 70-73-80-68=291? | SELECT To par FROM table WHERE Score = 70-73-80-68=291 |
Translate the following into a SQL query | From what Country is T6 Place Player Tom Weiskopf? | SELECT Country FROM table WHERE Place = t6 AND Player = tom weiskopf |
Translate the following into a SQL query | With a To par of –2, what is Johnny Miller's Place? | SELECT Place FROM table WHERE To par = –2 AND Player = johnny miller |
Translate the following into a SQL query | From what Country is Gene Borek? | SELECT Country FROM table WHERE Player = gene borek |
Translate the following into a SQL query | What is the Country of the Player with a To par of –5? | SELECT Country FROM table WHERE To par = –5 |
Translate the following into a SQL query | What is the Place of the Player from New Zealand? | SELECT Place FROM table WHERE Country = new zealand |
Translate the following into a SQL query | What is the Place of the Player with a Score of 70-68=138? | SELECT Place FROM table WHERE Score = 70-68=138 |
Translate the following into a SQL query | What is the highest Losses, when Wins is greater than 1, and when Last Appearance is 2003? | SELECT MAX Losses FROM table WHERE Wins > 1 AND Last Appearance = 2003 |
Translate the following into a SQL query | What is the highest Wins, when Percent is 0.000, when School is Oklahoma State, and when Appearances is less than 1? | SELECT MAX Wins FROM table WHERE Percent = 0.000 AND School = oklahoma state AND Appearances < 1 |
Translate the following into a SQL query | What is the total number of Losses, when Last Appearance is 2003, and when Wins is greater than 2? | SELECT COUNT Losses FROM table WHERE Last Appearance = 2003 AND Wins > 2 |
Translate the following into a SQL query | What is Last Appearance, when Wins is less than 1, when Losses is 1, and when School is Oklahoma State? | SELECT Last Appearance FROM table WHERE Wins < 1 AND Losses = 1 AND School = oklahoma state |
Translate the following into a SQL query | What is College, when Pick is less than 145, and when Player is Jeff Wilkins? | SELECT College FROM table WHERE Pick < 145 AND Player = jeff wilkins |
Translate the following into a SQL query | What is Nationality, and when College is Illinois State? | SELECT Nationality FROM table WHERE College = illinois state |
Translate the following into a SQL query | What is Nationality, when Round is 6? | SELECT Nationality FROM table WHERE Round = 6 |
Translate the following into a SQL query | What is the total number of Round, when College is Northern Illinois? | SELECT COUNT Round FROM table WHERE College = northern illinois |
Translate the following into a SQL query | What is the average bronze when the total is 2, silver is less than 1 and gold is more than 1? | SELECT AVG Bronze FROM table WHERE Total = 2 AND Silver < 1 AND Gold > 1 |
Translate the following into a SQL query | what is the average silver when the total is more than 20? | SELECT AVG Silver FROM table WHERE Total > 20 |
Translate the following into a SQL query | what is the highest rank when the nation is united states (usa) and bronze is more than 1? | SELECT MAX Rank FROM table WHERE Nation = united states (usa) AND Bronze > 1 |
Translate the following into a SQL query | what is the average total when bronze is more than 0, gold is 0, the nation is united states (usa) and silver is 0? | SELECT AVG Total FROM table WHERE Bronze > 0 AND Gold = 0 AND Nation = united states (usa) AND Silver < 0 |
Translate the following into a SQL query | What was the resolution for the fight against enrique guzman? | SELECT Res. FROM table WHERE Opponent = enrique guzman |
Translate the following into a SQL query | What was the resolution of the fight when Nate Mohr's record was 8-6? | SELECT Res. FROM table WHERE Record = 8-6 |
Translate the following into a SQL query | What is the smallest number of third place earned for the Es Sahel at a rank less than 3? | SELECT MIN Third FROM table WHERE Club = es sahel AND Rank < 3 |
Translate the following into a SQL query | Which club has 1 runners-up with 0 winners and 2 third place earned? | SELECT Club FROM table WHERE Runners-up = 1 AND Winners = 0 AND Third = 2 |
Translate the following into a SQL query | Which Annual ridership (2008) has a Number of stations larger than 70, and an Annual ridership (1998) smaller than 451,971,849? | SELECT MIN Annual ridership (2008) FROM table WHERE Number of stations > 70 AND Annual ridership (1998) < 451,971,849 |
Translate the following into a SQL query | What is Name, when Bonus is greater than 1, when Only Point is greater than 7, and when Total Point is less than 21? | SELECT Name FROM table WHERE Bonus > 1 AND Only Point > 7 AND Total Point < 21 |
Translate the following into a SQL query | What is Name, when Only Point is greater than 1, when Catch Taken is greater than 3, when Bonus is greater than 4, and when Total Point is less than 30? | SELECT Name FROM table WHERE Only Point > 1 AND Catch Taken > 3 AND Bonus > 4 AND Total Point < 30 |
Translate the following into a SQL query | How many grids does Ducati have with Casey Stoner as a rider with fewer than 27 laps? | SELECT COUNT Grid FROM table WHERE Manufacturer = ducati AND Rider = casey stoner AND Laps < 27 |
Translate the following into a SQL query | Which manufacturer has a time of +10.142? | SELECT Manufacturer FROM table WHERE Time = +10.142 |
Translate the following into a SQL query | What is Loris Capirossi's time? | SELECT Time FROM table WHERE Rider = loris capirossi |
Translate the following into a SQL query | What were the highest laps when the grid was larger than 19 and the time/retired was fuel? | SELECT MAX Laps FROM table WHERE Grid > 19 AND Time/Retired = fuel |
Translate the following into a SQL query | Which team did Scott Pruett drive for when the grid was smaller than 20 and there were 65 laps? | SELECT Team FROM table WHERE Laps = 65 AND Grid < 20 AND Driver = scott pruett |
Translate the following into a SQL query | What year is the date when the boiler type is forward topfeed, the built at is Crewe, and lot number is less than 187? | SELECT COUNT Date FROM table WHERE Boiler type = forward topfeed AND Built at = crewe AND Lot No. < 187 |
Translate the following into a SQL query | What was the date of the game where Esteban Paredes scored 2 goals? | SELECT Date FROM table WHERE Goal = 2 |
Translate the following into a SQL query | What is the highest attendance when the opponent is the Los Angeles Rams and the week is less than 11? | SELECT MAX Attendance FROM table WHERE Opponent = los angeles rams AND Week < 11 |
Translate the following into a SQL query | What is the result when the week is greater than 7 and the Houston Oilers were the opponent? | SELECT Result FROM table WHERE Week > 7 AND Opponent = houston oilers |
Translate the following into a SQL query | What is Record, when Location Attendance is "Izod Center 16,911"? | SELECT Record FROM table WHERE Location Attendance = izod center 16,911 |
Translate the following into a SQL query | What is High Rebounds, when High Assists is "Delonte West (10)"? | SELECT High rebounds FROM table WHERE High assists = delonte west (10) |
Translate the following into a SQL query | What catalog had an Epic Records label in CD format? | SELECT Catalog FROM table WHERE Label = epic records AND Format = cd |
Translate the following into a SQL query | Which label is in Australia? | SELECT Label FROM table WHERE Region = australia |
Translate the following into a SQL query | The match that lasted 2:43 has what record? | SELECT Record FROM table WHERE Time = 2:43 |
Translate the following into a SQL query | The match that was held at Club Med Sandpiper has what method? | SELECT Method FROM table WHERE Venue = club med sandpiper |
Translate the following into a SQL query | The match of at Michael's Eighth Avenue venue against Tim Coleman that went 3:00 has what record? | SELECT Record FROM table WHERE Time = 3:00 AND Venue = michael's eighth avenue AND Opponent = tim coleman |
Translate the following into a SQL query | What method did the match at Club Med Sandpiper have? | SELECT Method FROM table WHERE Venue = club med sandpiper |
Translate the following into a SQL query | What is the Label of the release with Catalog number LPM-2899? | SELECT Label FROM table WHERE Catalog = lpm-2899 |
Translate the following into a SQL query | What is the Date of the RCA release with Catalog number SF-7635? | SELECT Date FROM table WHERE Label = rca AND Catalog = sf-7635 |
Translate the following into a SQL query | What is the Catalog of the RCA release? | SELECT Catalog FROM table WHERE Label = rca |
Translate the following into a SQL query | What is the Catalog number of the CD Reissue Universal release? | SELECT Catalog FROM table WHERE Format = cd reissue AND Label = universal |
Translate the following into a SQL query | What is the Label of the release on Stereo vinyl LP with Catalog number SF-7635? | SELECT Label FROM table WHERE Format = stereo vinyl lp AND Catalog = sf-7635 |
Translate the following into a SQL query | What university has a 2009 int'l student review greater than 268 and median rank greater than 4? | SELECT University FROM table WHERE Median ranks > 4 AND 2009 QS Asian Rankings: Int’l student review > 268 |
Translate the following into a SQL query | What's the ARWU ranking that has the int' student review of 144, a median rank of less than 10, and 2000 Singapore “Asiaweek” of none? | SELECT 2010 ARWU Rankings FROM table WHERE 2000 Singapore “Asiaweek” Rankings = none AND Median ranks < 10 AND 2009 QS Asian Rankings: Int’l student review = 144 |
Translate the following into a SQL query | Name the local that has the Int'l student review less than 320 and 2010 Eduniversal ranking of none. | SELECT Local FROM table WHERE 2010 eduniversal Rankings = none AND 2010 ARWU Rankings = none AND 2009 QS Asian Rankings: Int’l student review < 320 |
Translate the following into a SQL query | What's the int'l student review that has the 2010 QS Rank of none? | SELECT SUM 2009 QS Asian Rankings: Int’l student review FROM table WHERE 2010 QS Asian Rankings = none |
Translate the following into a SQL query | What university has an int'l student review of 195? | SELECT University FROM table WHERE 2009 QS Asian Rankings: Int’l student review = 195 |
Translate the following into a SQL query | WHAT CANDIDATE HAD A MARGIN OF ERROR OF ± 4.5%, WHEN PAT TOOMEY WAS 45% AND JOE SESTAK WAS 38%? | SELECT Other FROM table WHERE Margin of error = ± 4.5% AND Pat Toomey (R) = 45% AND Joe Sestak (D) = 38% |
Translate the following into a SQL query | WHAT DATE DID JOE SESTAK HAVE 46% WITH ± 3.0% MARGIN OF ERROR? | SELECT Date(s) administered FROM table WHERE Joe Sestak (D) = 46% AND Margin of error = ± 3.0% |
Translate the following into a SQL query | WHAT IS THE POINTS PERCENTAGE WITH A TOTAL OF 1-2-2 RECORD? | SELECT Points % FROM table WHERE Total W-L-H = 1-2-2 |
Translate the following into a SQL query | WHAT YEAR HAD 5 TOTAL MATCHES? | SELECT Year FROM table WHERE Total matches = 5 |
Translate the following into a SQL query | What is the quantity preserved when 4 were made of class F-21? | SELECT Quantity preserved FROM table WHERE Quantity made = 4 AND Class = f-21 |
Translate the following into a SQL query | What fleet number had 3 made? | SELECT Fleet number(s) FROM table WHERE Quantity made = 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.