instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | what is the date when the away team is crystal palace? | SELECT Date FROM table WHERE Away team = crystal palace |
Translate the following into a SQL query | What is the height of the player with the 2012 club of asd roma? | SELECT Height FROM table WHERE 2012 club = asd roma |
Translate the following into a SQL query | What was the Tie Number of the Bradford City away team? | SELECT Tie no FROM table WHERE Away team = bradford city |
Translate the following into a SQL query | Who was the home team that had a replay of Tie Number and played against the Bolton Wanderers? | SELECT Home team FROM table WHERE Tie no = replay AND Away team = bolton wanderers |
Translate the following into a SQL query | What date has a Tie Number of 4? | SELECT Date FROM table WHERE Tie no = 4 |
Translate the following into a SQL query | What is the average money ($) that Tom Weiskopf made? | SELECT AVG Money ( $ ) FROM table WHERE Player = tom weiskopf |
Translate the following into a SQL query | What place did the golfer from the United States come in with a To Par of +2, and a score of 73-74-71-72=290? | SELECT Place FROM table WHERE Country = united states AND To par = +2 AND Score = 73-74-71-72=290 |
Translate the following into a SQL query | For the number notion more than 1,000,000 with a power notion of 10 12, what is the short scale? | SELECT Short scale FROM table WHERE Number notation > 1,000,000 AND Power notation = 10 12 |
Translate the following into a SQL query | For a long scale of one million, what is the power notion? | SELECT Power notation FROM table WHERE Long scale = one million |
Translate the following into a SQL query | For a power notation of 10 12, what is the long scale? | SELECT Long scale FROM table WHERE Power notation = 10 12 |
Translate the following into a SQL query | For a short scale of one quadrillion a thousand trillion, what is the Long scale? | SELECT Long scale FROM table WHERE Short scale = one quadrillion a thousand trillion |
Translate the following into a SQL query | what is the employee (real name) when the pick # is higher than 10 and the brand (to) is raw? | SELECT Employee (Real name) FROM table WHERE Pick # > 10 AND Brand (to) = raw |
Translate the following into a SQL query | Who was the opposing team when the scorer was ronaldinho 90+3'? | SELECT Opponent team FROM table WHERE Scorers = ronaldinho 90+3' |
Translate the following into a SQL query | Who was the opposing team when the scorers were jong-a-pin 19'( o.g. ) , gattuso 23' , inzaghi 69'? | SELECT Opponent team FROM table WHERE Scorers = jong-a-pin 19'( o.g. ) , gattuso 23' , inzaghi 69' |
Translate the following into a SQL query | What was the score when Altrincham was home? | SELECT Score FROM table WHERE Home team = altrincham |
Translate the following into a SQL query | How many goals against when the draws are fewer than 3? | SELECT MAX Goals Against FROM table WHERE Drawn < 3 |
Translate the following into a SQL query | How many goals when the points 1 is 38 and the played number is less than 42? | SELECT SUM Goals For FROM table WHERE Points 1 = 38 AND Played < 42 |
Translate the following into a SQL query | What is the fewest goals for when goal difference is +10 and goals against is more than 61? | SELECT MIN Goals For FROM table WHERE Goal Difference = +10 AND Goals Against > 61 |
Translate the following into a SQL query | What is the fewest goals for when goals against is 75 and drawn is smaller than 11? | SELECT MIN Goals For FROM table WHERE Goals Against = 75 AND Drawn < 11 |
Translate the following into a SQL query | What is the highest goals for the position after 10, a goal difference less than -24, and played more than 30 times? | SELECT MAX Goals for FROM table WHERE Position > 10 AND Goal Difference < -24 AND Played > 30 |
Translate the following into a SQL query | What is the lowest goals for more than 30 games played? | SELECT MIN Goals for FROM table WHERE Played > 30 |
Translate the following into a SQL query | What is the highest amount of goals in the position after 8, 12 losses, and played less than 30 games? | SELECT MAX Goals for FROM table WHERE Position > 8 AND Losses = 12 AND Played < 30 |
Translate the following into a SQL query | What is the total number of losses for the over 30 games played? | SELECT COUNT Losses FROM table WHERE Played > 30 |
Translate the following into a SQL query | What is the total number of losses and draws less than 7, points larger than 26, 60 goals, and a position before 4? | SELECT COUNT Losses FROM table WHERE Draws < 7 AND Points > 26 AND Goals for = 60 AND Position < 4 |
Translate the following into a SQL query | What is the highest total for bronze with a gold larger than 0, a silver smaller than 5, and a total of 15? | SELECT MAX Bronze FROM table WHERE Gold > 0 AND Total = 15 AND Silver < 5 |
Translate the following into a SQL query | What is Score, when High Points is "Dwight Howard (25)"? | SELECT Score FROM table WHERE High points = dwight howard (25) |
Translate the following into a SQL query | What is Score, when Team is "Washington"? | SELECT Score FROM table WHERE Team = washington |
Translate the following into a SQL query | What is Record, when Location Attendance is "Pepsi Center 19,749"? | SELECT Record FROM table WHERE Location Attendance = pepsi center 19,749 |
Translate the following into a SQL query | What is Record, when Game is "36"? | SELECT Record FROM table WHERE Game = 36 |
Translate the following into a SQL query | What is Date, when Winning Score is −14 (68-68-67-71=274)? | SELECT Date FROM table WHERE Winning score = −14 (68-68-67-71=274) |
Translate the following into a SQL query | What is the Margin of Victory, when Tournament is Mercedes Championships (3)? | SELECT Margin of victory FROM table WHERE Tournament = mercedes championships (3) |
Translate the following into a SQL query | What is Date, when Tournament, is Greenbrier Classic? | SELECT Date FROM table WHERE Tournament = greenbrier classic |
Translate the following into a SQL query | What is Runner(s)-Up when Margin of Victory is 6 Strokes? | SELECT Runner(s)-up FROM table WHERE Margin of victory = 6 strokes |
Translate the following into a SQL query | What is Date, when Runner(s)-Up is Jonathan Kaye? | SELECT Date FROM table WHERE Runner(s)-up = jonathan kaye |
Translate the following into a SQL query | What is the year that nahete colles was named? | SELECT MAX Year named FROM table WHERE Name = nahete colles |
Translate the following into a SQL query | What year was the geological feature with a latitude of 76.0n and a diameter larger than 548 km was named? | SELECT MAX Year named FROM table WHERE Latitude = 76.0n AND Diameter (km) > 548 |
Translate the following into a SQL query | What is the diameter in km of t'ien hu colles? | SELECT Diameter (km) FROM table WHERE Name = t'ien hu colles |
Translate the following into a SQL query | Which team has driven 134 laps? | SELECT Team FROM table WHERE Laps = 134 |
Translate the following into a SQL query | In what class is the laps greater than 134 and the position is 4th? | SELECT Class FROM table WHERE Laps > 134 AND Pos. = 4th |
Translate the following into a SQL query | What title did Mentuhotep IV have? | SELECT Title FROM table WHERE Name = mentuhotep iv |
Translate the following into a SQL query | What is the title of Amenemhat II? | SELECT Title FROM table WHERE Name = amenemhat ii |
Translate the following into a SQL query | What is the title of Senusret I? | SELECT Title FROM table WHERE Name = senusret i |
Translate the following into a SQL query | What is the title of Amenemhat I? | SELECT Title FROM table WHERE Name = amenemhat i |
Translate the following into a SQL query | What is the type shown from 1991 bc? | SELECT Type FROM table WHERE From = 1991 bc |
Translate the following into a SQL query | What is the Record when the round was 5, time was 5:00, and the opponent was Torrance Taylor | SELECT Record FROM table WHERE Round = 5 AND Time = 5:00 AND Opponent = torrance taylor |
Translate the following into a SQL query | What is the method when the time was 5:00, and the round higher than 4? | SELECT Method FROM table WHERE Time = 5:00 AND Round > 4 |
Translate the following into a SQL query | When the others had a value of 7%, what was the Polling organisation/client? | SELECT Polling organisation/client FROM table WHERE Others = 7% |
Translate the following into a SQL query | What player plays the position of small forward? | SELECT Player FROM table WHERE Position = small forward |
Translate the following into a SQL query | What is the latitude of the 0 diameter? | SELECT Latitude FROM table WHERE Diameter (km) = 0 |
Translate the following into a SQL query | What is the longitude of Angerona Tholus? | SELECT Longitude FROM table WHERE Name = angerona tholus |
Translate the following into a SQL query | What is the smallest diameter for Eirene Tholus? | SELECT MIN Diameter (km) FROM table WHERE Name = eirene tholus |
Translate the following into a SQL query | What was the game on April 25? | SELECT MIN Game FROM table WHERE Date = april 25 |
Translate the following into a SQL query | what is the event when 2011-12 is n/a? | SELECT Event FROM table WHERE 2011–12 = n/a |
Translate the following into a SQL query | what is the event when 2009-10 is dnp? | SELECT Event FROM table WHERE 2009–10 = dnp |
Translate the following into a SQL query | what is the event when 2006-07 is dnp? | SELECT Event FROM table WHERE 2006–07 = dnp |
Translate the following into a SQL query | what is 2012-13 when 2011-12 is dnp and event is autumn gold? | SELECT 2012–13 FROM table WHERE 2011–12 = dnp AND Event = autumn gold |
Translate the following into a SQL query | what is 2012-13 when 2011-12 is dnp and 2006-07 is dnp and 2010-11 is q? | SELECT 2012–13 FROM table WHERE 2011–12 = dnp AND 2006–07 = dnp AND 2010–11 = q |
Translate the following into a SQL query | what is the sum of the wkts when the ovrs were bigger than 2 and econ was bigger than 7.84? | SELECT SUM Wkts FROM table WHERE Ovrs > 2 AND Econ > 7.84 |
Translate the following into a SQL query | What is the sum of the runs when the wkts were bigger than 0 and ovrs were smaller than 2? | SELECT SUM Runs FROM table WHERE Ovrs < 2 AND Wkts > 0 |
Translate the following into a SQL query | What is the highest wkts for james hopes who had less than 26 runs and more than 2 ovrs? | SELECT MAX Wkts FROM table WHERE Runs < 26 AND Player = james hopes AND Ovrs > 2 |
Translate the following into a SQL query | What is the average sales in billions of the company headquartered in France with more than 2,539.1 billion in assets? | SELECT AVG Sales (billion $) FROM table WHERE Headquarters = france AND Assets (billion $) > 2,539.1 |
Translate the following into a SQL query | What is the average sales in billions of walmart, which has more than 15.7 billion in profits? | SELECT AVG Sales (billion $) FROM table WHERE Company = walmart AND Profits (billion $) > 15.7 |
Translate the following into a SQL query | What is the rider when the grid is 21? | SELECT Rider FROM table WHERE Grid = 21 |
Translate the following into a SQL query | What is the average laps when the manufacturer is yamaha, and the rider is garry mccoy and the grid is smaller than 4? | SELECT AVG Laps FROM table WHERE Manufacturer = yamaha AND Rider = garry mccoy AND Grid < 4 |
Translate the following into a SQL query | What is the lowest laps for rider andrew pitt, with a grid smaller than 18? Wha | SELECT MIN Laps FROM table WHERE Rider = andrew pitt AND Grid < 18 |
Translate the following into a SQL query | What is the lowest laps that has a manufacturer of yamaha, and a time/retired of +1:08.312, and a grid less than 20? | SELECT MIN Laps FROM table WHERE Manufacturer = yamaha AND Time/Retired = +1:08.312 AND Grid < 20 |
Translate the following into a SQL query | What event had a tko (punches) method and jason macdonald as the opponent? | SELECT Event FROM table WHERE Method = tko (punches) AND Opponent = jason macdonald |
Translate the following into a SQL query | What is the opponent after round number 1 with a method of decision (unanimous)? | SELECT Opponent FROM table WHERE Round > 1 AND Method = decision (unanimous) |
Translate the following into a SQL query | Who is the partnering that had the opponents of Marcelo Melo André Sá? | SELECT Partnering FROM table WHERE Opponents in final = marcelo melo andré sá |
Translate the following into a SQL query | What was the score on February 14, 1999? | SELECT Score in final FROM table WHERE Date = february 14, 1999 |
Translate the following into a SQL query | What date was the score 6–7(9), 6–2, (10–7)? | SELECT Date FROM table WHERE Score in final = 6–7(9), 6–2, (10–7) |
Translate the following into a SQL query | What is the lowest value for Sydney, when Perth is less than 169,000, and when NIGHTLY RANK is less than 5? | SELECT MIN Sydney FROM table WHERE Perth < 169,000 AND NIGHTLY RANK < 5 |
Translate the following into a SQL query | What is the lowest value for Sydney, when WEEKLY RANK is less than 8, and when Brisbane is greater than 252,000? | SELECT MIN Sydney FROM table WHERE WEEKLY RANK < 8 AND Brisbane > 252,000 |
Translate the following into a SQL query | What is the sum of the values for Melbourne, when Episode Number Production Number is 19 2-06, and when Sydney is less than 389,000? | SELECT SUM Melbourne FROM table WHERE Episode number Production number = 19 2-06 AND Sydney < 389,000 |
Translate the following into a SQL query | What is the lowest value for Perth, when Melbourne is greater than 461,000, and when Sydney is less than 430,000? | SELECT MIN Perth FROM table WHERE Melbourne > 461,000 AND Sydney < 430,000 |
Translate the following into a SQL query | How many rounds had a time of 5:00 at UFC 155? | SELECT COUNT Round FROM table WHERE Time = 5:00 AND Event = ufc 155 |
Translate the following into a SQL query | Which event had a time of 2:34? | SELECT Event FROM table WHERE Time = 2:34 |
Translate the following into a SQL query | Who was the opponent in the bout that led to a win in a time of 1:21? | SELECT Opponent FROM table WHERE Res. = win AND Time = 1:21 |
Translate the following into a SQL query | What is the method of resolution for the fight against akihiro gono? | SELECT Method FROM table WHERE Opponent = akihiro gono |
Translate the following into a SQL query | What is the average number of rounds that Lance Gibson fought when his record was 1-1? | SELECT AVG Round FROM table WHERE Record = 1-1 |
Translate the following into a SQL query | What is the Country of the Player with a Score of 69-71-66=206? | SELECT Country FROM table WHERE Score = 69-71-66=206 |
Translate the following into a SQL query | What is the Place of the Player from Scotland? | SELECT Place FROM table WHERE Country = scotland |
Translate the following into a SQL query | What is Steve Lowery's Place? | SELECT Place FROM table WHERE Player = steve lowery |
Translate the following into a SQL query | What was 1961's qual? | SELECT Qual FROM table WHERE Year = 1961 |
Translate the following into a SQL query | What was 13's finish? | SELECT Finish FROM table WHERE Start = 13 |
Translate the following into a SQL query | How many laps were in 1969? | SELECT Laps FROM table WHERE Year = 1969 |
Translate the following into a SQL query | Which Rank has a Qual of 145.144? | SELECT Rank FROM table WHERE Qual = 145.144 |
Translate the following into a SQL query | What is the sources for Bandung? | SELECT Sources of Pop. / Area FROM table WHERE City = bandung |
Translate the following into a SQL query | What race happened at Iowa Speedway? | SELECT Race FROM table WHERE Track = iowa speedway |
Translate the following into a SQL query | Who won the Food World 250? | SELECT Winner FROM table WHERE Race = food world 250 |
Translate the following into a SQL query | What race happened at pocono on 08-02-2008? | SELECT Race FROM table WHERE Track = pocono AND Date = 08-02-2008 |
Translate the following into a SQL query | What race happened on 04-25-2008? | SELECT Race FROM table WHERE Date = 04-25-2008 |
Translate the following into a SQL query | Where was the race on 09-13-2008? | SELECT Track FROM table WHERE Date = 09-13-2008 |
Translate the following into a SQL query | Which game number was played after March 11 and ended with a record of 26-30-10? | SELECT MIN Game FROM table WHERE Record = 26-30-10 AND March > 11 |
Translate the following into a SQL query | How many games total were played against @ Boston Bruins this season? | SELECT SUM Game FROM table WHERE Opponent = @ boston bruins |
Translate the following into a SQL query | When was the earliest game date in March where the match ended with a record of 25-29-10? | SELECT MIN March FROM table WHERE Record = 25-29-10 |
Translate the following into a SQL query | How many points when John Vopni won a season before 1977? | SELECT Points FROM table WHERE Season < 1977 AND Winner = john vopni |
Translate the following into a SQL query | How many points when Bill Benson was the winner? | SELECT Points FROM table WHERE Winner = bill benson |
Translate the following into a SQL query | Which team did Tyson Chandler (7) have high rebounds for? | SELECT Team FROM table WHERE High rebounds = tyson chandler (7) |
Translate the following into a SQL query | How many high assists were on November 27? | SELECT High assists FROM table WHERE Date = november 27 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.