instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is State, when From is "830 BC"? | SELECT State FROM table WHERE From = 830 bc |
Translate the following into a SQL query | Which Ratio has a Similar ISO A size of a3? | SELECT AVG Ratio FROM table WHERE Similar ISO A size = a3 |
Translate the following into a SQL query | Which mm × mm has an in × in of 11 × 17? | SELECT mm × mm FROM table WHERE in × in = 11 × 17 |
Translate the following into a SQL query | Which Ratio has a Name of ansi e? | SELECT MIN Ratio FROM table WHERE Name = ansi e |
Translate the following into a SQL query | Which Ratio has an in × in of 17 × 22? | SELECT Ratio FROM table WHERE in × in = 17 × 22 |
Translate the following into a SQL query | What is the Distance of the 1945 Vuelta a Espana with 4A Stage? | SELECT Distance FROM table WHERE Stage = 4a |
Translate the following into a SQL query | What earned has 5 for the rank? | SELECT Earned FROM table WHERE Rank = 5 |
Translate the following into a SQL query | What is the average earnings ($) that has meg mallon as the player, with a rank less than 9? | SELECT AVG Earnings ( $ ) FROM table WHERE Player = meg mallon AND Rank < 9 |
Translate the following into a SQL query | What's the fed tax that has a total tax greater than 33.2, a minimum sales tax less than 41.01 and in Vancouver, BC? | SELECT AVG Federal excise tax ( CAD¢ / L ) FROM table WHERE Total excise tax (CAD¢/L) > 33.2 AND Government = vancouver, bc AND Minimum tax incl. sales taxes (CAD¢/L) < 41.01 |
Translate the following into a SQL query | What is the least minimum sales tax when the min tax is 105.7 and fed tax is more than 10? | SELECT MIN Minimum tax incl. sales taxes (CAD¢/L) FROM table WHERE Min. tax (CAD¢/US gal) = 105.7 AND Federal excise tax ( CAD¢ / L ) > 10 |
Translate the following into a SQL query | What is the 1991 when 1992 and 1990 are 1R? | SELECT 1991 FROM table WHERE 1992 = 1r AND 1990 = 1r |
Translate the following into a SQL query | What is the 1991 when 1990 is ATP Masters Series? | SELECT 1991 FROM table WHERE 1990 = atp masters series |
Translate the following into a SQL query | What is the 1995 when the 1991 is Grand Slams? | SELECT 1995 FROM table WHERE 1991 = grand slams |
Translate the following into a SQL query | What is the career SR when 1985 is Grand Slams? | SELECT Career SR FROM table WHERE 1985 = grand slams |
Translate the following into a SQL query | Which Name has a Date of 11 june 1940? | SELECT Name FROM table WHERE Date = 11 june 1940 |
Translate the following into a SQL query | Which Nationality has a Fate of sunk (mine), and a Tonnage (GRT) smaller than 2,266? | SELECT Nationality FROM table WHERE Fate = sunk (mine) AND Tonnage (GRT) < 2,266 |
Translate the following into a SQL query | Which Tonnage (GRT) is the highest one that has a Date of 16 june 1940? | SELECT MAX Tonnage (GRT) FROM table WHERE Date = 16 june 1940 |
Translate the following into a SQL query | Which Nationality has a Name of assyrian? | SELECT Nationality FROM table WHERE Name = assyrian |
Translate the following into a SQL query | What is the time for the bike (40km) when the swim (1.5km) is 19:56? | SELECT Bike (40km) FROM table WHERE Swim (1.5km) = 19:56 |
Translate the following into a SQL query | With a swim (1.5km) of 18:55 and a run (10km) of 32:37, what is the trans 2? | SELECT Trans 2 FROM table WHERE Swim (1.5km) = 18:55 AND Run (10km) = 32:37 |
Translate the following into a SQL query | Daniela Ryf who competes in the women's even had what swim (1.5km)? | SELECT Swim (1.5km) FROM table WHERE Event = women's AND Athlete = daniela ryf |
Translate the following into a SQL query | For the triathlon with a bike (40km) of 58:20 what is the total time? | SELECT Total Time FROM table WHERE Bike (40km) = 58:20 |
Translate the following into a SQL query | How long did the trans 1 take when 2:00:40.20 is the total time? | SELECT Trans 1 FROM table WHERE Total Time = 2:00:40.20 |
Translate the following into a SQL query | Can you tell me the Record that has the Team of minnesota? | SELECT Record FROM table WHERE Team = minnesota |
Translate the following into a SQL query | Can you tell me the Score that has the Team of memphis? | SELECT Score FROM table WHERE Team = memphis |
Translate the following into a SQL query | With a date of Aldershot and Aldershot as the away team what was the score of the game? | SELECT Score FROM table WHERE Away team = aldershot AND Date = aldershot |
Translate the following into a SQL query | What was the score for the game when West Ham United was the away team? | SELECT Score FROM table WHERE Away team = west ham united |
Translate the following into a SQL query | With Sheffield United as the away team and the date, what home team has a tie no of 15? | SELECT Home team FROM table WHERE Tie no = 15 AND Away team = sheffield united AND Date = sheffield united |
Translate the following into a SQL query | Who was the home team when Sheffield United was the away team and the date was also Sheffield United? | SELECT Home team FROM table WHERE Away team = sheffield united AND Date = sheffield united |
Translate the following into a SQL query | What tie no has Watford as the date? | SELECT Tie no FROM table WHERE Date = watford |
Translate the following into a SQL query | Which Country has a Place of t9, and a Score of 71-71-72=214, and a Player of ernie els? | SELECT Country FROM table WHERE Place = t9 AND Score = 71-71-72=214 AND Player = ernie els |
Translate the following into a SQL query | Which Country has a To par of –13? | SELECT Country FROM table WHERE To par = –13 |
Translate the following into a SQL query | Which Player has a Score of 72-69-73=214? | SELECT Player FROM table WHERE Score = 72-69-73=214 |
Translate the following into a SQL query | Which Score has a To par of –4, and a Player of duffy waldorf? | SELECT Score FROM table WHERE To par = –4 AND Player = duffy waldorf |
Translate the following into a SQL query | Which Country has a Score of 79-68-74=212? | SELECT Country FROM table WHERE Score = 79-68-74=212 |
Translate the following into a SQL query | Which To par has a Country of united states, and a Player of duffy waldorf? | SELECT To par FROM table WHERE Country = united states AND Player = duffy waldorf |
Translate the following into a SQL query | What is Opponent In Final, when Surface is Hard, when Location is Wellington, New Zealand, and when Date is 6 February 2000? | SELECT Opponent in final FROM table WHERE Surface = hard AND Location = wellington, new zealand AND Date = 6 february 2000 |
Translate the following into a SQL query | What is Surface, when Date is 2 May 1999? | SELECT Surface FROM table WHERE Date = 2 may 1999 |
Translate the following into a SQL query | What is the 2nd leg when team #1 is Rubin Kazan? | SELECT 2nd leg FROM table WHERE Team #1 = rubin kazan |
Translate the following into a SQL query | What is the agg when team #2 is 2006 UEFA Intertoto Cup? | SELECT Agg. FROM table WHERE Team #2 = 2006 uefa intertoto cup |
Translate the following into a SQL query | What is the highest market value in billions of the company with profits of 20.96 billions and 166.99 billions in assets? | SELECT MAX Market Value (billion $) FROM table WHERE Profits (billion $) = 20.96 AND Assets (billion $) > 166.99 |
Translate the following into a SQL query | What is the total market value in billions of the company with 20.96 billion in profits and less than 166.99 billions in assets? | SELECT COUNT Market Value (billion $) FROM table WHERE Profits (billion $) = 20.96 AND Assets (billion $) < 166.99 |
Translate the following into a SQL query | What is the average assets in billions of the company Bank of America, which has less than 49.01 billions in sales? | SELECT AVG Assets (billion $) FROM table WHERE Company = bank of america AND Sales (billion $) < 49.01 |
Translate the following into a SQL query | What is the highest profits in billions of the company headquartered in the USA with a market value of 194.87 billions and less than 76.66 billions in sales? | SELECT MAX Profits (billion $) FROM table WHERE Headquarters = usa AND Market Value (billion $) = 194.87 AND Sales (billion $) < 76.66 |
Translate the following into a SQL query | Which Total has a Nation of japan, and a Silver larger than 2? | SELECT MIN Total FROM table WHERE Nation = japan AND Silver > 2 |
Translate the following into a SQL query | Which Nation has a Gold larger than 0, and a Total larger than 4, and a Rank of 6? | SELECT Nation FROM table WHERE Gold > 0 AND Total > 4 AND Rank = 6 |
Translate the following into a SQL query | Which Silver has a Rank of 1, and a Total smaller than 11? | SELECT SUM Silver FROM table WHERE Rank = 1 AND Total < 11 |
Translate the following into a SQL query | Which Total has a Nation of united states, and a Bronze larger than 3? | SELECT MAX Total FROM table WHERE Nation = united states AND Bronze > 3 |
Translate the following into a SQL query | Where did jamie cox & daniel marsh play against queensland? | SELECT Venue FROM table WHERE Opponent = queensland AND Batsmen = jamie cox & daniel marsh |
Translate the following into a SQL query | Where were jamie cox & scott kremerskothen paired? | SELECT Venue FROM table WHERE Batsmen = jamie cox & scott kremerskothen |
Translate the following into a SQL query | Who were the batsmen paired for wicket 7? | SELECT Batsmen FROM table WHERE Wicket = 7 |
Translate the following into a SQL query | How many runs did they get against new south wales in 2002/03? | SELECT Runs FROM table WHERE Opponent = new south wales AND Season = 2002/03 |
Translate the following into a SQL query | What season did they play queensland at wicket 4? | SELECT Season FROM table WHERE Opponent = queensland AND Wicket = 4 |
Translate the following into a SQL query | What was the Peak Position on July 11, 2001? | SELECT Peak position FROM table WHERE Date = july 11, 2001 |
Translate the following into a SQL query | On December 12, 2001, how many weeks had the single been in its position? | SELECT Weeks FROM table WHERE Date = december 12, 2001 |
Translate the following into a SQL query | What is the nationality of the Team Purdue? | SELECT Nationality FROM table WHERE School/Club Team = purdue |
Translate the following into a SQL query | What is the nationality of the Team Georgia Tech? | SELECT Nationality FROM table WHERE School/Club Team = georgia tech |
Translate the following into a SQL query | What is the nationality of the forward position on the Grizzlies in 2011? | SELECT Nationality FROM table WHERE Position = forward AND Years for Grizzlies = 2011 |
Translate the following into a SQL query | Who was the runner-up at the event held in Tartu, Estonia? | SELECT Runner Up FROM table WHERE Venue = tartu, estonia |
Translate the following into a SQL query | For the event held in Tartu, Estonia, what is the name of the runner-up? | SELECT Runner Up FROM table WHERE Venue = tartu, estonia |
Translate the following into a SQL query | Who took third place in 2012? | SELECT Third Place FROM table WHERE Year = 2012 |
Translate the following into a SQL query | In what year was this event held in Oslo, Norway? | SELECT Year FROM table WHERE Venue = oslo, norway |
Translate the following into a SQL query | What is the head of government for Don Stephen Senanayake? | SELECT Head(s) of Government FROM table WHERE Name = don stephen senanayake |
Translate the following into a SQL query | Which team is in 14th position? | SELECT Team FROM table WHERE Pos. = 14th |
Translate the following into a SQL query | Which position has a Year larger than 1997, and a Class Position of 3rd? | SELECT Pos. FROM table WHERE Year > 1997 AND Class Pos. = 3rd |
Translate the following into a SQL query | What is 2nd Leg, when Team #2 is "San Lorenzo"? | SELECT 2nd leg FROM table WHERE Team #2 = san lorenzo |
Translate the following into a SQL query | Which Clock Speed has a FSB Speed of 400 mhz, and a Model Number of c7-m 794? | SELECT Clock Speed FROM table WHERE FSB Speed = 400 mhz AND Model Number = c7-m 794 |
Translate the following into a SQL query | Which Socket has a FSB Speed of 400 mhz, and a Voltage Range of 1.004 v? | SELECT Socket FROM table WHERE FSB Speed = 400 mhz AND Voltage Range = 1.004 v |
Translate the following into a SQL query | Which Clock Multiplier has a Clock Speed of 1.6 ghz, and a Model Number of c7-m 764? | SELECT Clock Multiplier FROM table WHERE Clock Speed = 1.6 ghz AND Model Number = c7-m 764 |
Translate the following into a SQL query | Which FSB Speed has a Model Number of c7-m 765? | SELECT FSB Speed FROM table WHERE Model Number = c7-m 765 |
Translate the following into a SQL query | Which Clock Multiplier has a Model Number of c7-m 764? | SELECT Clock Multiplier FROM table WHERE Model Number = c7-m 764 |
Translate the following into a SQL query | Which Release Date has a Voltage Range of 1.148 v - 1.196 v? | SELECT Release Date FROM table WHERE Voltage Range = 1.148 v - 1.196 v |
Translate the following into a SQL query | Who are the players that placed t2? | SELECT Player FROM table WHERE Place = t2 |
Translate the following into a SQL query | Which country is Lee Trevino from? | SELECT Country FROM table WHERE Player = lee trevino |
Translate the following into a SQL query | Which player(s) is from South Africa? | SELECT Player FROM table WHERE Country = south africa |
Translate the following into a SQL query | what is the record when the year is after 1992, manager is tom kotchman and finish is 2nd? | SELECT Record FROM table WHERE Year > 1992 AND Manager = tom kotchman AND Finish = 2nd |
Translate the following into a SQL query | what is the finish when the manager is tom kotchman and record is 43-33? | SELECT Finish FROM table WHERE Manager = tom kotchman AND Record = 43-33 |
Translate the following into a SQL query | what is the finish when the manager is tom kotchman and the record is 40-36? | SELECT Finish FROM table WHERE Manager = tom kotchman AND Record = 40-36 |
Translate the following into a SQL query | who is the manager when the year is before 1994 and finish is 5th? | SELECT Manager FROM table WHERE Year < 1994 AND Finish = 5th |
Translate the following into a SQL query | what is the record when the year is 2011? | SELECT Record FROM table WHERE Year = 2011 |
Translate the following into a SQL query | What is Player, when Total is "294", and when Year(s) Won is "1955"? | SELECT Player FROM table WHERE Total = 294 AND Year(s) won = 1955 |
Translate the following into a SQL query | What is Player, when To Par is less than 14? | SELECT Player FROM table WHERE To par < 14 |
Translate the following into a SQL query | What is To Par, when Player is "Tommy Bolt"? | SELECT To par FROM table WHERE Player = tommy bolt |
Translate the following into a SQL query | What is the sum of Total, when Player is "Tommy Bolt"? | SELECT SUM Total FROM table WHERE Player = tommy bolt |
Translate the following into a SQL query | What is the total number of Total, when To Par is "7"? | SELECT COUNT Total FROM table WHERE To par = 7 |
Translate the following into a SQL query | Which award was won when the nomination was Senses Around? | SELECT Award FROM table WHERE Result = won AND Nomination = senses around |
Translate the following into a SQL query | What was the nomination in a year earlier than 2009? | SELECT Nomination FROM table WHERE Year < 2009 |
Translate the following into a SQL query | Which award is for the category Best New Artist? | SELECT Award FROM table WHERE Category = best new artist |
Translate the following into a SQL query | What is the earliest year with a category of Top 10 Selling Mandarin Albums of the Year? | SELECT MIN Year FROM table WHERE Category = top 10 selling mandarin albums of the year |
Translate the following into a SQL query | For the USAC National Championship, what is the Discipline? | SELECT Discipline FROM table WHERE Championship = usac national championship |
Translate the following into a SQL query | In the Indianapolis Sweepstakes race session, what is the championship? | SELECT Championship FROM table WHERE Session = race AND Event = indianapolis sweepstakes |
Translate the following into a SQL query | What circuit is the Sprint Cup series championship? | SELECT Circuit FROM table WHERE Championship = sprint cup series |
Translate the following into a SQL query | What were the Results for 25,000 Attendance? | SELECT Result FROM table WHERE Attendance = 25,000 |
Translate the following into a SQL query | What was the result on 10/06/1934? | SELECT Result FROM table WHERE Date = 10/06/1934 |
Translate the following into a SQL query | What year was the team Club of atlético de san juan fc who plays at hiram bithorn stadium founded. | SELECT SUM Founded FROM table WHERE Stadium = hiram bithorn stadium AND Club = atlético de san juan fc |
Translate the following into a SQL query | What is the Branding of the Iloilo City Frequency with a Power of 10 Kw? | SELECT Branding FROM table WHERE Power = 10 kw AND Location = iloilo city |
Translate the following into a SQL query | What is the Power of the Frequency with a Callsign of DXLL? | SELECT Power FROM table WHERE Callsign = dxll |
Translate the following into a SQL query | What is the Frequency in Davao City? | SELECT Frequency FROM table WHERE Location = davao city |
Translate the following into a SQL query | What is the Branding with a Callsign DWLL? | SELECT Branding FROM table WHERE Callsign = dwll |
Translate the following into a SQL query | What is the Branding of the Metro Manila Frequency with a Callsign of DWBL? | SELECT Branding FROM table WHERE Location = metro manila AND Callsign = dwbl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.