instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What date was the game held in Towson? | SELECT Date FROM table WHERE City = towson |
Translate the following into a SQL query | Which season premiered on 29 October 1990 and had more than 6 episodes? | SELECT MAX Series FROM table WHERE Premiere = 29 october 1990 AND Episodes > 6 |
Translate the following into a SQL query | WHAT DATE HAD A SCORE OF 71-64? | SELECT Date FROM table WHERE Score = 71-64 |
Translate the following into a SQL query | WHAT SCORE WAS ON SEPTEMBER 21? | SELECT Score FROM table WHERE Date = september 21 |
Translate the following into a SQL query | WHAT SCORE HAD A RECORD OF 1-1? | SELECT Score FROM table WHERE Record = 1-1 |
Translate the following into a SQL query | WHAT OPPONENT HAD A DATE OF SEPTEMBER 28? | SELECT Opponent FROM table WHERE Date = september 28 |
Translate the following into a SQL query | WHAT SCORE HAD A LOSS AND RECORD OF 1-1? | SELECT Score FROM table WHERE Result = loss AND Record = 1-1 |
Translate the following into a SQL query | Who is the alternate for Andy Brown, and Nick Grady? | SELECT Alternate (2) FROM table WHERE Coach = andy brown AND Captain = nick grady |
Translate the following into a SQL query | Which captain has Gintare Karpaviciute as an alternate? | SELECT Captain FROM table WHERE Alternate (1) = gintare karpaviciute |
Translate the following into a SQL query | Which coach works with Robert Harvey? | SELECT Coach FROM table WHERE Captain = robert harvey |
Translate the following into a SQL query | Which Nickname has Founded of 1954? | SELECT Nickname FROM table WHERE Founded = 1954 |
Translate the following into a SQL query | Which team played in the Boston Garden when the final score was L 118-130? | SELECT Team FROM table WHERE Location Attendance = boston garden AND Score = l 118-130 |
Translate the following into a SQL query | What team played at the Boston Garden when the series was 1-0? | SELECT Team FROM table WHERE Location Attendance = boston garden AND Series = 1-0 |
Translate the following into a SQL query | Which driver had a grid of 2? | SELECT Driver FROM table WHERE Grid = 2 |
Translate the following into a SQL query | What is the smallest grid value that had 16 points and a team of Mi-Jack Conquest Racing? | SELECT MIN Grid FROM table WHERE Team = mi-jack conquest racing AND Points = 16 |
Translate the following into a SQL query | What is the number of points associated with 165 laps? | SELECT Points FROM table WHERE Laps = 165 |
Translate the following into a SQL query | What is the total number of laps associated with 8 points and a grid under 8? | SELECT COUNT Laps FROM table WHERE Points = 8 AND Grid < 8 |
Translate the following into a SQL query | What is the highest amount of employees with 110,520.2 in revenue, and a more than 2,237.7 profit? | SELECT MAX Employees FROM table WHERE Revenue (Millions.$) < 110,520.2 AND Profit (Millions.$) > 2,237.7 |
Translate the following into a SQL query | What is the % for Munger when McCrory has 40% and the lead margin is greater than 3? | SELECT Libertarian: Michael Munger FROM table WHERE Republican: Pat McCrory = 40% AND Lead Margin > 3 |
Translate the following into a SQL query | What is the percentage of Perdue when McCrory has 37% and Munger has 6%? | SELECT Democrat: Beverly Perdue FROM table WHERE Republican: Pat McCrory = 37% AND Libertarian: Michael Munger = 6% |
Translate the following into a SQL query | What is the lead margin for McCrory when he has 49%? | SELECT Lead Margin FROM table WHERE Republican: Pat McCrory = 49% |
Translate the following into a SQL query | What is the lowest height in feet for the building located in platz der einheit 1, gallus, that was built after 1961 with a height less than 130 meters? | SELECT MIN Height (ft) FROM table WHERE Year built > 1961 AND Location = platz der einheit 1, gallus AND Height (m) < 130 |
Translate the following into a SQL query | What is the sum of the heights in meters for the commerzbank tower built after 1984? | SELECT SUM Height (m) FROM table WHERE Year built > 1984 AND Name = commerzbank tower |
Translate the following into a SQL query | What is the earliest year that the building in sonnemannstraße/rückertstraße, ostend was built with a height larger than 185 meters? | SELECT MIN Year built FROM table WHERE Location = sonnemannstraße/rückertstraße, ostend AND Height (m) > 185 |
Translate the following into a SQL query | What is the lowest height in meters for the building located in mailänder straße 1, sachsenhausen-süd, with a height shorter than 328.1 ft? | SELECT MIN Height (m) FROM table WHERE Location = mailänder straße 1, sachsenhausen-süd AND Height (ft) < 328.1 |
Translate the following into a SQL query | What is the average population vlue for an area smaller than 26.69 square km and has an official name of Rogersville? | SELECT AVG Population FROM table WHERE Area km 2 < 26.69 AND Official Name = rogersville |
Translate the following into a SQL query | What's the name of the album from 2012 with a Hammer Music / Nail Records label? | SELECT Album FROM table WHERE Label = hammer music / nail records AND Year = 2012 |
Translate the following into a SQL query | What year had the Hungarian top 40 album charts of 3? | SELECT Year FROM table WHERE Hungarian top 40 album charts = 3 |
Translate the following into a SQL query | What type of release was Napisten Hava? | SELECT Release type FROM table WHERE Album = napisten hava |
Translate the following into a SQL query | What was the name of the album that was a demo release? | SELECT Album FROM table WHERE Release type = demo |
Translate the following into a SQL query | What is the serials issued in 1982 with a format of ABC-123? | SELECT Serials issued FROM table WHERE Serial format = abc-123 AND Issued = 1982 |
Translate the following into a SQL query | Which design has a serial format of AB-12-34? | SELECT Design FROM table WHERE Serial format = ab-12-34 |
Translate the following into a SQL query | Which serials were issued with a design of black on yellow? | SELECT Serials issued FROM table WHERE Design = black on yellow |
Translate the following into a SQL query | WHo was the outgoing manager for the team of fc carl zeiss jena? | SELECT Outgoing manager FROM table WHERE Team = fc carl zeiss jena |
Translate the following into a SQL query | What team did the manager come from who departed due to an end of tenure as caretaker? | SELECT Team FROM table WHERE Manner of departure = end of tenure as caretaker |
Translate the following into a SQL query | What was the date of appointment for the replaced manager, reiner geyer? | SELECT Date of appointment FROM table WHERE Replaced by = reiner geyer |
Translate the following into a SQL query | What was the date of vacancy after the outgoing manager, ralf santelli departed? | SELECT Date of vacancy FROM table WHERE Outgoing manager = ralf santelli |
Translate the following into a SQL query | Who was the outgoing manager who departed due to fc energie cottbus purchased rights? | SELECT Outgoing manager FROM table WHERE Manner of departure = fc energie cottbus purchased rights |
Translate the following into a SQL query | How many times is the position lb and the overall is less than 46? | SELECT COUNT Pick FROM table WHERE Position = lb AND Overall < 46 |
Translate the following into a SQL query | what is the college when the overall is more than 76 for brian mitchell? | SELECT College FROM table WHERE Overall > 76 AND Name = brian mitchell |
Translate the following into a SQL query | what is the pick when the overall is less than 297 and the college is alabama? | SELECT Pick FROM table WHERE Overall < 297 AND College = alabama |
Translate the following into a SQL query | what is the highest round when the college is penn state? | SELECT MAX Round FROM table WHERE College = penn state |
Translate the following into a SQL query | What is the 1989 number when the 200 number is less than 52.8 in Arizona, New Mexico, and Utah | SELECT SUM 1989 FROM table WHERE 2000 < 52.8 AND Location = arizona, new mexico, and utah |
Translate the following into a SQL query | What shows for 2000 at the Fort Peck Indian Reservation, Montana, when the 1979 is less than 26.8? | SELECT AVG 2000 FROM table WHERE Location = montana AND Reservation = fort peck indian reservation AND 1979 < 26.8 |
Translate the following into a SQL query | What is the 2000 number when the 1969 is 54.3, and the 1979 is less than 48.4? | SELECT SUM 2000 FROM table WHERE 1969 = 54.3 AND 1979 < 48.4 |
Translate the following into a SQL query | What is the 2000 number when the 1989 is less than 54.9 in Arizona, New Mexico, and Utah? | SELECT SUM 2000 FROM table WHERE 1989 < 54.9 AND Location = arizona, new mexico, and utah |
Translate the following into a SQL query | What is the 1979 number for Standing Rock Indian Reservation when the 1989 is less than 54.9? | SELECT SUM 1979 FROM table WHERE Reservation = standing rock indian reservation AND 1989 < 54.9 |
Translate the following into a SQL query | What Kerry's percentage where 66 people voted for another candidate? | SELECT Kerry% FROM table WHERE Others# = 66 |
Translate the following into a SQL query | Can you tell me the average Laps that has the Time of +17.485, and the Grid smaller than 7? | SELECT AVG Laps FROM table WHERE Time = +17.485 AND Grid < 7 |
Translate the following into a SQL query | Can you tell me the sum of Grid that has the Manufacturer of aprilia, and the sandro cortese? | SELECT SUM Grid FROM table WHERE Manufacturer = aprilia AND Rider = sandro cortese |
Translate the following into a SQL query | What was the date of game 21? | SELECT Date FROM table WHERE Game = 21 |
Translate the following into a SQL query | What was the score of the game on June 10? | SELECT Score/Time FROM table WHERE Date = june 10 |
Translate the following into a SQL query | What is Sum of Round, when College/Junior/Club Team is Brandon Wheat Kings ( WHL ), when Player is Mike Perovich (D), and when Pick is less than 23? | SELECT SUM Round FROM table WHERE College/Junior/Club Team = brandon wheat kings ( whl ) AND Player = mike perovich (d) AND Pick < 23 |
Translate the following into a SQL query | What is the sum of Round, when Player is Tim Hunter (RW), and when Pick is less than 54? | SELECT SUM Round FROM table WHERE Player = tim hunter (rw) AND Pick < 54 |
Translate the following into a SQL query | Who is the outgoing manager who was replaced by jürgen klopp? | SELECT Outgoing manager FROM table WHERE Replaced by = jürgen klopp |
Translate the following into a SQL query | What is the date of appointment of the manager who was replaced by markus babbel? | SELECT Date of appointment FROM table WHERE Replaced by = markus babbel |
Translate the following into a SQL query | What was the manner of depature of the manager with a date of appointment on 23 November 2008? | SELECT Manner of departure FROM table WHERE Date of appointment = 23 november 2008 |
Translate the following into a SQL query | Who replaced the manager of team arminia bielefeld? | SELECT Replaced by FROM table WHERE Team = arminia bielefeld |
Translate the following into a SQL query | What is the date of vacancy of team fc bayern munich, which had a date of appointment on 27 April 2009? | SELECT Date of vacancy FROM table WHERE Team = fc bayern munich AND Date of appointment = 27 april 2009 |
Translate the following into a SQL query | What is the date of appointment of outgoing manager fred rutten, who had a sacked manner of departure? | SELECT Date of appointment FROM table WHERE Manner of departure = sacked AND Outgoing manager = fred rutten |
Translate the following into a SQL query | What was the length when James Swallow had a release longer than 2.1? | SELECT Length FROM table WHERE Writer = james swallow AND Release > 2.1 |
Translate the following into a SQL query | Who wrote Infiltration? | SELECT Writer FROM table WHERE Title = infiltration |
Translate the following into a SQL query | What was the earliest release for Pathogen directed by Sharon Gosling? | SELECT MIN Release FROM table WHERE Director = sharon gosling AND Title = pathogen |
Translate the following into a SQL query | What was the length of release 3.6? | SELECT Length FROM table WHERE Release = 3.6 |
Translate the following into a SQL query | What day was the score for tournament of alcobaça 6–3, 2–6, 7–5? | SELECT Date FROM table WHERE Tournament = alcobaça AND Score = 6–3, 2–6, 7–5 |
Translate the following into a SQL query | What was the score for alcobaça when the opponent was in the final of xinyun han? | SELECT Score FROM table WHERE Tournament = alcobaça AND Opponent in the final = xinyun han |
Translate the following into a SQL query | What was the score when the opponent was irena pavlovic and the surface was hard? | SELECT Score FROM table WHERE Surface = hard AND Opponent in the final = irena pavlovic |
Translate the following into a SQL query | What was the opponent in the final when the score was 6–3, 2–6, 7–5? | SELECT Opponent in the final FROM table WHERE Score = 6–3, 2–6, 7–5 |
Translate the following into a SQL query | What day was the surface clay and the score 6–1, 6–4? | SELECT Date FROM table WHERE Surface = clay AND Score = 6–1, 6–4 |
Translate the following into a SQL query | What is the Phoenician letter for the Hangul of ㄹ? | SELECT Phoenician FROM table WHERE Hangul = ㄹ |
Translate the following into a SQL query | What is the Latin letter for the Tibetan of ས? | SELECT Latin FROM table WHERE Tibetan = ས |
Translate the following into a SQL query | to the Latin of f, y, u/v/w? | SELECT Greek FROM table WHERE Latin = f, y, u/v/w |
Translate the following into a SQL query | What is the Hangul equivalent of the Greek ϝ, υ? | SELECT Hangul FROM table WHERE Greek = ϝ, υ |
Translate the following into a SQL query | What is the Latin equivalent for the Phagspa of ꡙ? | SELECT Latin FROM table WHERE ’Phagspa = ꡙ |
Translate the following into a SQL query | What was the surface played on for the match than began before 1897? | SELECT Court surface FROM table WHERE Began < 1897 |
Translate the following into a SQL query | For the Indian Wells Masters tournament, what was the country? | SELECT Country FROM table WHERE Tournament = indian wells masters |
Translate the following into a SQL query | Which location was in China, and played on a hard court? | SELECT Location FROM table WHERE Court surface = hard AND Country = china |
Translate the following into a SQL query | What country was the Paris Masters tournament played in? | SELECT Country FROM table WHERE Tournament = paris masters |
Translate the following into a SQL query | Who was the opponent when the H/A was H and the scorer was Ferguson? | SELECT Opponents FROM table WHERE H / A = h AND Scorers = ferguson |
Translate the following into a SQL query | Who was the opponent on 11 August 1991 when the H/A was H? | SELECT Opponents FROM table WHERE H / A = h AND Date = 11 august 1991 |
Translate the following into a SQL query | What was the H/A when the scorer was Hughes? | SELECT H / A FROM table WHERE Scorers = hughes |
Translate the following into a SQL query | What was the film that grossed $26,010,864 ranked? | SELECT MIN Rank FROM table WHERE Gross = $26,010,864 |
Translate the following into a SQL query | How much did Universal Studio's film Xanadu gross? | SELECT Gross FROM table WHERE Studio = universal AND Title = xanadu |
Translate the following into a SQL query | What is the rank of Bronco Billy? | SELECT AVG Rank FROM table WHERE Title = bronco billy |
Translate the following into a SQL query | Name the lowest Founded with the Name cougars? | SELECT MIN Founded FROM table WHERE Nickname = cougars |
Translate the following into a SQL query | Which Affiliation has a Nickname of cougars? | SELECT Affiliation FROM table WHERE Nickname = cougars |
Translate the following into a SQL query | Name the Founded which has a Affiliation of private/methodist? | SELECT MAX Founded FROM table WHERE Affiliation = private/methodist |
Translate the following into a SQL query | What is Label, when Date is 1987? | SELECT Label FROM table WHERE Date = 1987 |
Translate the following into a SQL query | What is Date, when Format is Vinyl, and when Label is Mercury? | SELECT Date FROM table WHERE Format = vinyl AND Label = mercury |
Translate the following into a SQL query | What is Date, when Region is Yugoslavia? | SELECT Date FROM table WHERE Region = yugoslavia |
Translate the following into a SQL query | What is Format, when Label is Bronze, when Date is 1982, and when Catalogue is 204 636? | SELECT Format FROM table WHERE Label = bronze AND Date = 1982 AND Catalogue = 204 636 |
Translate the following into a SQL query | What is Date, when Label is Jugoton? | SELECT Date FROM table WHERE Label = jugoton |
Translate the following into a SQL query | What is Premier Date, when Cycle is less than 2? | SELECT Premiere date FROM table WHERE Cycle < 2 |
Translate the following into a SQL query | What is the lowest Cycle, when Number Of Contestants is 11, and when International Destinations is Paris Gran Canaria? | SELECT MIN Cycle FROM table WHERE Number of contestants = 11 AND International Destinations = paris gran canaria |
Translate the following into a SQL query | What is the highest Cycle, when the Number of Constestants is 11, and when Premiere Date is September 3, 2012? | SELECT MAX Cycle FROM table WHERE Number of contestants = 11 AND Premiere date = september 3, 2012 |
Translate the following into a SQL query | What is Number of Contestants, when Cycle is 4? | SELECT Number of contestants FROM table WHERE Cycle = 4 |
Translate the following into a SQL query | What is Number of Contestants, when International Destinations is London Lisbon? | SELECT Number of contestants FROM table WHERE International Destinations = london lisbon |
Translate the following into a SQL query | What is the lowest pick with fewer than 3 rounds and more than 4 overall? | SELECT MIN Pick FROM table WHERE Round < 3 AND Overall > 4 |
Translate the following into a SQL query | Which round has more than 79 overall and a position of QB? | SELECT Round FROM table WHERE Position = qb AND Overall > 79 |
Translate the following into a SQL query | Which Notre Dame position has a pick lower than 5 and round 7? | SELECT Position FROM table WHERE Pick < 5 AND College = notre dame AND Round = 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.