instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What was the margin of victory when the winning score was −12 (66-67-64-71=268)? | SELECT Margin of victory FROM table WHERE Winning score = −12 (66-67-64-71=268) |
Translate the following into a SQL query | What day was the margin of victory 1 stroke when the tournament was colonial national invitation? | SELECT Date FROM table WHERE Margin of victory = 1 stroke AND Tournament = colonial national invitation |
Translate the following into a SQL query | What was the winning score for runnerup Greg Norman | SELECT Winning score FROM table WHERE Runner(s)-up = greg norman |
Translate the following into a SQL query | Which Builder has a Pennant number of Q149? | SELECT Builder FROM table WHERE Pennant number = q149 |
Translate the following into a SQL query | On what date was the ship with a Pennant number of Q144 commissioned? | SELECT Commissioned FROM table WHERE Pennant number = q144 |
Translate the following into a SQL query | How many ships are named Monge? | SELECT COUNT Ordered FROM table WHERE Name = monge |
Translate the following into a SQL query | What launched has mariner 4 as the spacecraft? | SELECT Launched FROM table WHERE Spacecraft = mariner 4 |
Translate the following into a SQL query | What launched has 158 days (5 months, 8 days) as the time elapsed? | SELECT Launched FROM table WHERE Time elapsed = 158 days (5 months, 8 days) |
Translate the following into a SQL query | When was the song by Andy Gibb issued? | SELECT Issue Date(s) FROM table WHERE Artist = andy gibb |
Translate the following into a SQL query | Which Round has a College of stanford, and an Overall smaller than 8? | SELECT AVG Round FROM table WHERE College = stanford AND Overall < 8 |
Translate the following into a SQL query | How many Picks have a College of tennessee, and an Overall smaller than 270? | SELECT SUM Pick # FROM table WHERE College = tennessee AND Overall < 270 |
Translate the following into a SQL query | Which Pick # is the lowest one that has a College of troy state, and a Name of reggie dwight, and an Overall smaller than 217? | SELECT MIN Pick # FROM table WHERE College = troy state AND Name = reggie dwight AND Overall < 217 |
Translate the following into a SQL query | What's the smallest amount of earnings when the wins are less than 72 and the rank is more than 3? | SELECT MIN Earnings ( $ ) FROM table WHERE Wins < 72 AND Rank > 3 |
Translate the following into a SQL query | What's the least amount of wins with earnings that are more than $2,556,043, and where Lee Trevino is a player? | SELECT MIN Wins FROM table WHERE Earnings ( $ ) > 2,556,043 AND Player = lee trevino |
Translate the following into a SQL query | What's the smallest amount of earnings when there are more than 18 wins and the rank is 2? | SELECT MIN Earnings ( $ ) FROM table WHERE Wins > 18 AND Rank = 2 |
Translate the following into a SQL query | What is the lowest number of losses for a team with more than 0 wins? | SELECT MIN Losses FROM table WHERE Wins > 0 |
Translate the following into a SQL query | What is the average number of losses for teams with fewer than 0 wins? | SELECT AVG Losses FROM table WHERE Wins < 0 |
Translate the following into a SQL query | What is the average number of wins for Runcorn Highfield with more than 0 draws? | SELECT AVG Wins FROM table WHERE Team = runcorn highfield AND Draws > 0 |
Translate the following into a SQL query | What is the lowest number of losses for Nottingham City with fewer than 0 wins? | SELECT MIN Losses FROM table WHERE Team = nottingham city AND Wins < 0 |
Translate the following into a SQL query | What is the weight of the player from the Philadelphia 76ers? | SELECT COUNT Weight FROM table WHERE Team = philadelphia 76ers |
Translate the following into a SQL query | What is the height of the player, Larry Hughes? | SELECT Height FROM table WHERE Player = larry hughes |
Translate the following into a SQL query | What player was moved to Blackpool? | SELECT Player FROM table WHERE To club = blackpool |
Translate the following into a SQL query | A player was moved to celtic had an end of what date? | SELECT End date FROM table WHERE To club = celtic |
Translate the following into a SQL query | Which Game is the average one that has a February larger than 20, and a Record of 41–17–4, and Points smaller than 86? | SELECT AVG Game FROM table WHERE February > 20 AND Record = 41–17–4 AND Points < 86 |
Translate the following into a SQL query | what country hosted david toms | SELECT Country FROM table WHERE Player = david toms |
Translate the following into a SQL query | What was the score for game 18? | SELECT Score FROM table WHERE Game = 18 |
Translate the following into a SQL query | What is the kickoff time for the game that was at Ralph Wilson Stadium? | SELECT Kickoff ( ET ) FROM table WHERE Game site = ralph wilson stadium |
Translate the following into a SQL query | What is the record for the game against the New England Patriots with a recap? | SELECT Record FROM table WHERE NFL Recap = recap AND Opponent = new england patriots |
Translate the following into a SQL query | What is the result of the game on week 11? | SELECT Result FROM table WHERE Week = 11 |
Translate the following into a SQL query | Who was the visitor that led to a 3-0-2 record? | SELECT Visitor FROM table WHERE Record = 3-0-2 |
Translate the following into a SQL query | What is the original title of the Gypsy Magic film title used in nomination? | SELECT Original title FROM table WHERE Film title used in nomination = gypsy magic |
Translate the following into a SQL query | Name the builder for number 3 | SELECT Builder FROM table WHERE Number = 3 |
Translate the following into a SQL query | Name the date with works number less than 1673 and number less than 3 | SELECT Date FROM table WHERE Works number < 1673 AND Number < 3 |
Translate the following into a SQL query | Name the builder for 4/1906 and works number more than 199 | SELECT Builder FROM table WHERE Works number > 199 AND Date = 4/1906 |
Translate the following into a SQL query | What was the largest number of people in attendance of the game with a W 14-3 result after week 10? | SELECT MAX Attendance FROM table WHERE Result = w 14-3 AND Week > 10 |
Translate the following into a SQL query | What is the percentage for Zares on May 21–22? | SELECT Zares FROM table WHERE Date = may 21–22 |
Translate the following into a SQL query | What is the source for 7% DeSUS? | SELECT Source FROM table WHERE DeSUS = 7% |
Translate the following into a SQL query | What is the source for Zares at 8.6%? | SELECT Source FROM table WHERE Zares = 8.6% |
Translate the following into a SQL query | What is the source corresponding to a date of May 25–27? | SELECT Source FROM table WHERE Date = may 25–27 |
Translate the following into a SQL query | What song is done by Terence Trent D'Arby? | SELECT Song FROM table WHERE Artist = terence trent d'arby |
Translate the following into a SQL query | What was the Result on October 27, 2002? | SELECT Result FROM table WHERE Date = october 27, 2002 |
Translate the following into a SQL query | in riyadh, saudi arabia, what is the score? | SELECT Score FROM table WHERE Venue = riyadh, saudi arabia |
Translate the following into a SQL query | Which Pocona Municipality (%) is the lowest one that has a Puerto Villarroel Municipality (%) smaller than 14.6, and a Chimoré Municipality (%) of 5.1, and an Entre Ríos Municipality (%) smaller than 0.9? | SELECT MIN Pocona Municipality (%) FROM table WHERE Puerto Villarroel Municipality (%) < 14.6 AND Chimoré Municipality (%) = 5.1 AND Entre Ríos Municipality (%) < 0.9 |
Translate the following into a SQL query | Which Puerto Villarroel Municipality (%) is the lowest one that has an Ethnic group of not indigenous, and a Totora Municipality (%) smaller than 4.4? | SELECT MIN Puerto Villarroel Municipality (%) FROM table WHERE Ethnic group = not indigenous AND Totora Municipality (%) < 4.4 |
Translate the following into a SQL query | Which Pocona Municipality (%) has a Puerto Villarroel Municipality (%) larger than 14.6, and a Pojo Municipality (%) smaller than 88.5? | SELECT SUM Pocona Municipality (%) FROM table WHERE Puerto Villarroel Municipality (%) > 14.6 AND Pojo Municipality (%) < 88.5 |
Translate the following into a SQL query | Which Totora Municipality (%) is the highest one that has a Chimoré Municipality (%) of 5.1, and a Pocona Municipality (%) smaller than 0.2? | SELECT MAX Totora Municipality (%) FROM table WHERE Chimoré Municipality (%) = 5.1 AND Pocona Municipality (%) < 0.2 |
Translate the following into a SQL query | Which Pos has a Car # smaller than 18, and a Driver of mike skinner? | SELECT AVG Pos. FROM table WHERE Car # < 18 AND Driver = mike skinner |
Translate the following into a SQL query | Which Team has a Pos larger than 3, and a Make of toyota, and a Car # smaller than 59, and a Driver of mike skinner? | SELECT Team FROM table WHERE Pos. > 3 AND Make = toyota AND Car # < 59 AND Driver = mike skinner |
Translate the following into a SQL query | Which Pos has a Team of roush fenway racing, and a Car # of 99? | SELECT SUM Pos. FROM table WHERE Team = roush fenway racing AND Car # = 99 |
Translate the following into a SQL query | Which Car # has a Make of toyota, and a Pos of 7? | SELECT AVG Car # FROM table WHERE Make = toyota AND Pos. = 7 |
Translate the following into a SQL query | Which Pos has a Team of germian racing? | SELECT Pos. FROM table WHERE Team = germian racing |
Translate the following into a SQL query | Which Opponent has a Score of 2–6? | SELECT Opponent FROM table WHERE Score = 2–6 |
Translate the following into a SQL query | Which Game has a Series of flyers win 3–0? Question 3 | SELECT MAX Game FROM table WHERE Series = flyers win 3–0 |
Translate the following into a SQL query | Which Series is on april 18? | SELECT Series FROM table WHERE Date = april 18 |
Translate the following into a SQL query | Name the date with score of 9-2 | SELECT Date FROM table WHERE Score = 9-2 |
Translate the following into a SQL query | Which Points is the highest one that has a Nationality of aut, and a Name of thomas morgenstern? | SELECT MAX Points FROM table WHERE Nationality = aut AND Name = thomas morgenstern |
Translate the following into a SQL query | Which Name has a 2nd (m) larger than 128.5, and Points of 260.8? | SELECT Name FROM table WHERE 2nd (m) > 128.5 AND Points = 260.8 |
Translate the following into a SQL query | What is the sum of the capacities for Carrigh wind warm that has a size of 0.85 MW and more than 3 turbines? | SELECT SUM Capacity (MW) FROM table WHERE Size (MW) = 0.85 AND Wind Farm = carrigh AND Turbines > 3 |
Translate the following into a SQL query | What is the size of the windfarm in wexford that has more than 19 turbines and a vendor of Enercon? | SELECT Size (MW) FROM table WHERE Turbines > 19 AND Turbine Vendor = enercon AND County = wexford |
Translate the following into a SQL query | Who is the turbine vendor for Meenadreen in Donegal county with less than 6 turbines with a size of 0.85 MW? | SELECT Turbine Vendor FROM table WHERE Turbines < 6 AND County = donegal AND Size (MW) = 0.85 AND Wind Farm = meenadreen |
Translate the following into a SQL query | What is the population where the rank is higher than 51 and the Median House-hold income is $25,250? | SELECT SUM Population FROM table WHERE Rank > 51 AND Median House- hold Income = $25,250 |
Translate the following into a SQL query | What is the Population where the Median House-hold Income is $25,016? | SELECT MIN Population FROM table WHERE Median House- hold Income = $25,016 |
Translate the following into a SQL query | What is the Number of Households that have a Per Capita Income of $21,345? | SELECT AVG Number of Households FROM table WHERE Per Capita Income = $21,345 |
Translate the following into a SQL query | What County has a Median Family Income of $79,331? | SELECT County FROM table WHERE Median Family Income = $79,331 |
Translate the following into a SQL query | The United States, with a total medal count of less than 171, and a bronze medal count less than 9, has how many gold medals? | SELECT MAX Gold FROM table WHERE Total < 171 AND Nation = united states AND Bronze < 9 |
Translate the following into a SQL query | How many total gold medals did Australia receive? | SELECT COUNT Gold FROM table WHERE Nation = australia |
Translate the following into a SQL query | How many total bronze medals did Canada receive? | SELECT MAX Bronze FROM table WHERE Nation = canada |
Translate the following into a SQL query | How many total gold medals did India receive? | SELECT Gold FROM table WHERE Nation = india |
Translate the following into a SQL query | Which 1997's accompanying 1991 was a when the tournament was the australian open? | SELECT 1997 FROM table WHERE 1991 = a AND Tournament = australian open |
Translate the following into a SQL query | Which 1997's 1992 was 1r when 1994 was a? | SELECT 1997 FROM table WHERE 1992 = 1r AND 1994 = a |
Translate the following into a SQL query | Which 1995's tournament was the French Open? | SELECT 1995 FROM table WHERE Tournament = french open |
Translate the following into a SQL query | Which 1989's 1991 and 1994 stats were 1r? | SELECT 1989 FROM table WHERE 1991 = 1r AND 1994 = 1r |
Translate the following into a SQL query | Which 1990s 1992 was 3r? | SELECT 1990 FROM table WHERE 1992 = 3r |
Translate the following into a SQL query | Which Linda McCartney has a Stuart of electric guitar? | SELECT Linda McCartney FROM table WHERE Stuart = electric guitar |
Translate the following into a SQL query | Which Whitten has a Stuart of bass, and a Paul McCartney of electric guitar? | SELECT Whitten FROM table WHERE Stuart = bass AND Paul McCartney = electric guitar |
Translate the following into a SQL query | Which McIntosh has a Whitten of drums, and a Stuart of bass, and a Paul McCartney of electric guitar? | SELECT McIntosh FROM table WHERE Whitten = drums AND Stuart = bass AND Paul McCartney = electric guitar |
Translate the following into a SQL query | Which Paul McCartney has a Linda McCartney of keyboards? | SELECT Paul McCartney FROM table WHERE Linda McCartney = keyboards |
Translate the following into a SQL query | Which McIntosh has a Stuart of bass, and a Linda McCartney of keyboards or drum? | SELECT McIntosh FROM table WHERE Stuart = bass AND Linda McCartney = keyboards or drum |
Translate the following into a SQL query | Which Paul McCartney has a Linda McCartney of keyboards or drum? | SELECT Paul McCartney FROM table WHERE Linda McCartney = keyboards or drum |
Translate the following into a SQL query | What is the largest Grid that has a Bike of honda cbr1000rr, and a Time of +20.848, and a Lap greater than 24? | SELECT MAX Grid FROM table WHERE Bike = honda cbr1000rr AND Time = +20.848 AND Laps > 24 |
Translate the following into a SQL query | D'Oyly Carte 1920 Tour of hugh enes blackmore is what D'Oyly Carte 1930 Tour? | SELECT D'Oyly Carte 1930 Tour FROM table WHERE D'Oyly Carte 1920 Tour = hugh enes blackmore |
Translate the following into a SQL query | D'Oyly Carte 1939 Tour of richard walker involves what D'Oyly Carte 1945 Tour? | SELECT D'Oyly Carte 1945 Tour FROM table WHERE D'Oyly Carte 1939 Tour = richard walker |
Translate the following into a SQL query | D'Oyly Carte 1920 Tour of james turnbull is what D'Oyly Carte 1945 Tour? | SELECT D'Oyly Carte 1945 Tour FROM table WHERE D'Oyly Carte 1920 Tour = james turnbull |
Translate the following into a SQL query | Role of wilfred is what D'Oyly Carte 1945 Tour? | SELECT D'Oyly Carte 1945 Tour FROM table WHERE Role = wilfred |
Translate the following into a SQL query | D'Oyly Carte 1939 Tour of sydney granville had what D'Oyly Carte 1950 Tour | SELECT D'Oyly Carte 1950 Tour FROM table WHERE D'Oyly Carte 1939 Tour = sydney granville |
Translate the following into a SQL query | D'Oyly Carte 1930 Tour of john dean involved what D'Oyly Carte 1945 Tour? | SELECT D'Oyly Carte 1945 Tour FROM table WHERE D'Oyly Carte 1930 Tour = john dean |
Translate the following into a SQL query | The nation of denmark has what average total nad more than 0 gold? | SELECT AVG Total FROM table WHERE Nation = denmark AND Gold > 0 |
Translate the following into a SQL query | Switzerland has how many gold and less than 0 silver? | SELECT MAX Gold FROM table WHERE Nation = switzerland AND Silver < 0 |
Translate the following into a SQL query | How many wins does the player ranked lower than 3 with earnings of $3,315,502 have? | SELECT SUM Wins FROM table WHERE Rank > 3 AND Earnings ( $ ) > 3,315,502 |
Translate the following into a SQL query | What is the highest number of wins of the player with less than $4,976,980 in earnings and a rank lower than 4? | SELECT MAX Wins FROM table WHERE Earnings ( $ ) < 4,976,980 AND Rank > 4 |
Translate the following into a SQL query | How many years had a score of 734-5d? | SELECT COUNT Year FROM table WHERE Score = 734-5d |
Translate the following into a SQL query | Which venue had a city of Manchester before 2003? | SELECT Venue FROM table WHERE City = manchester AND Year < 2003 |
Translate the following into a SQL query | Which venue had a city of Manchester in 2003? | SELECT Venue FROM table WHERE City = manchester AND Year = 2003 |
Translate the following into a SQL query | Which venue had a score of 734-5d? | SELECT Venue FROM table WHERE Score = 734-5d |
Translate the following into a SQL query | What is the average number of top-5s for the major with 5 top-10s and fewer than 12 cuts made? | SELECT AVG Top-5 FROM table WHERE Top-10 = 5 AND Cuts made < 12 |
Translate the following into a SQL query | What is the average number of top-10s for the major with 2 top-25s and fewer than 10 cuts made? | SELECT AVG Top-10 FROM table WHERE Top-25 = 2 AND Cuts made < 10 |
Translate the following into a SQL query | What is the total number of top-25s for the major that has 11 top-10s? | SELECT COUNT Top-25 FROM table WHERE Top-10 = 11 |
Translate the following into a SQL query | How many total events have cuts made over 12, more than 2 top-5s, and more than 11 top-10s? | SELECT SUM Events FROM table WHERE Cuts made > 12 AND Top-5 > 2 AND Top-10 > 11 |
Translate the following into a SQL query | How many total wins are associated with events with 1 top-10? | SELECT SUM Wins FROM table WHERE Top-10 = 1 |
Translate the following into a SQL query | What is the average number of cuts made in events with fewer than 1 win and exactly 11 top-10s? | SELECT AVG Cuts made FROM table WHERE Top-10 = 11 AND Wins < 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.