instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Name the hull number of Commissioned– Decommissioned of 1973–1996 | SELECT Hull No. FROM table WHERE Commissioned– Decommissioned = 1973–1996 |
Translate the following into a SQL query | Name the commissioned-decommissioned for oakland and NVR page of aor-1 | SELECT Commissioned– Decommissioned FROM table WHERE Home Port = oakland AND NVR page = aor-1 |
Translate the following into a SQL query | Name the home port for kansas city | SELECT Home Port FROM table WHERE Ship = kansas city |
Translate the following into a SQL query | Name the commissioned-decommissioned for NVR page of aor-7 | SELECT Commissioned– Decommissioned FROM table WHERE NVR page = aor-7 |
Translate the following into a SQL query | Name the ship for oakland home port and NVR page of aor-3 | SELECT Ship FROM table WHERE Home Port = oakland AND NVR page = aor-3 |
Translate the following into a SQL query | What is the name of the location and ship type in the Gulf of Mexico that entered service in 1999? | SELECT Name FROM table WHERE Location = gulf of mexico AND Type = ship AND Entered service = 1999 |
Translate the following into a SQL query | What was the water depth that entered service in 2001 named Cajun Express? | SELECT Water depth FROM table WHERE Entered service = 2001 AND Name = cajun express |
Translate the following into a SQL query | What was the water depth in the Gulf of Mexico named Discoverer Clear Leader? | SELECT Water depth FROM table WHERE Location = gulf of mexico AND Name = discoverer clear leader |
Translate the following into a SQL query | What is the name of a location in Nigeria? | SELECT Name FROM table WHERE Location = nigeria |
Translate the following into a SQL query | What location entered service in 1999 and had a customer of Anadarko? | SELECT Location FROM table WHERE Entered service = 1999 AND Customer = anadarko |
Translate the following into a SQL query | What was the Score on January 30? | SELECT Score FROM table WHERE Date = january 30 |
Translate the following into a SQL query | Who were the Visitor of the Toronto Maple Leafs Home game on December 22? | SELECT Visitor FROM table WHERE Home = toronto maple leafs AND Date = december 22 |
Translate the following into a SQL query | On what Date was the Record 9–6–4? | SELECT Date FROM table WHERE Record = 9–6–4 |
Translate the following into a SQL query | What was the Score on March 1? | SELECT Score FROM table WHERE Date = march 1 |
Translate the following into a SQL query | What is the primary conference that was founded before 1866 and has an affiliation of private/catholic? | SELECT Primary conference FROM table WHERE Founded < 1866 AND Affiliation = private/catholic |
Translate the following into a SQL query | What is the total enrollment for an affiliation of public, and was founded before 1866? | SELECT COUNT Enrollment FROM table WHERE Affiliation = public AND Founded < 1866 |
Translate the following into a SQL query | What is the affiliation for towson, md? | SELECT Affiliation FROM table WHERE Location = towson, md |
Translate the following into a SQL query | What is the total enrollment for a private/catholic affiliation and founded after 1842? | SELECT COUNT Enrollment FROM table WHERE Affiliation = private/catholic AND Founded > 1842 |
Translate the following into a SQL query | What is the number founded for the nickname mountain hawks? | SELECT COUNT Founded FROM table WHERE Nickname = mountain hawks |
Translate the following into a SQL query | What is the score of the season in the host city kėdainiai? | SELECT Score FROM table WHERE Host City = kėdainiai |
Translate the following into a SQL query | Who was the winner of the season before 2010 with Lietuvos Rytas as a finalist? | SELECT Winner FROM table WHERE Finalist = lietuvos rytas AND Season < 2010 |
Translate the following into a SQL query | Who was the finalist in the 2010 season in the host city tartu? | SELECT Finalist FROM table WHERE Host City = tartu AND Season = 2010 |
Translate the following into a SQL query | Who was the winner during the 2009 season? | SELECT Winner FROM table WHERE Season = 2009 |
Translate the following into a SQL query | What is the host city during the 2012 season? | SELECT Host City FROM table WHERE Season = 2012 |
Translate the following into a SQL query | what game had a score of 4–6, 6–3, 7–6(10)? | SELECT Tournament FROM table WHERE Score = 4–6, 6–3, 7–6(10) |
Translate the following into a SQL query | When did eleonor magdalene of the palatinate-neuburg become duchess? | SELECT Became Duchess FROM table WHERE Name = eleonor magdalene of the palatinate-neuburg |
Translate the following into a SQL query | Which Marriage has a Became Duchess of 12 december 1666? | SELECT Marriage FROM table WHERE Became Duchess = 12 december 1666 |
Translate the following into a SQL query | When did the person die who was born on 18 november 1630? | SELECT Death FROM table WHERE Birth = 18 november 1630 |
Translate the following into a SQL query | Which Birth has a Became Duchess of 17 april 1711 husband's ascension? | SELECT Birth FROM table WHERE Became Duchess = 17 april 1711 husband's ascension |
Translate the following into a SQL query | Which Spouse has a Birth of 30 may 1653? | SELECT Spouse FROM table WHERE Birth = 30 may 1653 |
Translate the following into a SQL query | When did the person born on 6 january 1655 die? | SELECT Death FROM table WHERE Birth = 6 january 1655 |
Translate the following into a SQL query | Which Club or province has a caps larger than 15 and has Chris Cusiter playing for them? | SELECT Club/province FROM table WHERE Caps > 15 AND Player = chris cusiter |
Translate the following into a SQL query | What is the date of birth for the player from Ulster and plays at Centre position? | SELECT Date of Birth (Age) FROM table WHERE Club/province = ulster AND Position = centre |
Translate the following into a SQL query | What type of disaster is rms atlantic categorized in that was located in Nova Scotia? | SELECT Type FROM table WHERE Location = nova scotia AND Disaster = rms atlantic |
Translate the following into a SQL query | What is the type of disaster that the Arrow Air Flight 1285 categorized in? | SELECT Type FROM table WHERE Disaster = arrow air flight 1285 |
Translate the following into a SQL query | What is the disaster that was located in Ontario with 223 deaths? | SELECT Disaster FROM table WHERE Location = ontario AND Deaths = 223 |
Translate the following into a SQL query | How many deaths were there during the shipwreck in 1873? | SELECT Deaths FROM table WHERE Type = shipwreck AND Date = 1873 |
Translate the following into a SQL query | Where was the disaster located that took place on 1916? | SELECT Location FROM table WHERE Date = 1916 |
Translate the following into a SQL query | Which Laps is the highest one that has a Time/Retired of +3.370 secs? | SELECT MAX Laps FROM table WHERE Time/Retired = +3.370 secs |
Translate the following into a SQL query | Which Grid has a Team of rusport, and Laps larger than 221? | SELECT SUM Grid FROM table WHERE Team = rusport AND Laps > 221 |
Translate the following into a SQL query | What title has a producer of MAQ and Anna as a role? | SELECT Title FROM table WHERE Producer = maq AND Role = anna |
Translate the following into a SQL query | How many years was Kay Tagal Kang Hinintay directed by Rory Quintos and produced by Star Cinema? | SELECT COUNT Year FROM table WHERE Producer = star cinema AND Director = rory quintos AND Title = kay tagal kang hinintay |
Translate the following into a SQL query | Which title was directed by Joyce Bernal? | SELECT Title FROM table WHERE Director = joyce bernal |
Translate the following into a SQL query | What song is it that artist morena camilleri does and has more than 38 points | SELECT Song FROM table WHERE Points > 38 AND Artist = morena camilleri |
Translate the following into a SQL query | What is the total number of points for ray agius | SELECT SUM Points FROM table WHERE Lyricist = ray agius |
Translate the following into a SQL query | What play did henry s. uber / betty uber (eng) finish in? | SELECT COUNT Place FROM table WHERE Name = henry s. uber / betty uber (eng) |
Translate the following into a SQL query | When Baltimore County, Howard are represented, what's the first elected when the committee is environmental matters (vice-chair)? | SELECT MAX First Elected FROM table WHERE Counties Represented = baltimore county, howard AND Committee = environmental matters (vice-chair) |
Translate the following into a SQL query | What party is the delegate of Turner, Frank S. Frank S. Turner of Howard County? | SELECT Party FROM table WHERE Counties Represented = howard AND Delegate = turner, frank s. frank s. turner |
Translate the following into a SQL query | What is the damage of storm three? | SELECT Damage (millions USD ) FROM table WHERE Storm name = three |
Translate the following into a SQL query | Which Date has a MotoGP winner of casey stoner, and a 250cc winner of hiroshi aoyama? | SELECT Date FROM table WHERE MotoGP winner = casey stoner AND 250cc winner = hiroshi aoyama |
Translate the following into a SQL query | Which 250cc winner has a 125cc winner of bradley smith, and a MotoGP winner of casey stoner? | SELECT 250cc winner FROM table WHERE 125cc winner = bradley smith AND MotoGP winner = casey stoner |
Translate the following into a SQL query | Which Round is the lowest one that has a Circuit of donington? | SELECT MIN Round FROM table WHERE Circuit = donington |
Translate the following into a SQL query | Which MotoGP winner has a 250cc winner of marco simoncelli, and a Round of 15? | SELECT MotoGP winner FROM table WHERE 250cc winner = marco simoncelli AND Round = 15 |
Translate the following into a SQL query | Which 250cc winner has a 125cc winner of bradley smith, and a Circuit of mugello? | SELECT 250cc winner FROM table WHERE 125cc winner = bradley smith AND Circuit = mugello |
Translate the following into a SQL query | Which 250cc winner has a Round larger than 6, and a Date of 26 july? | SELECT 250cc winner FROM table WHERE Round > 6 AND Date = 26 july |
Translate the following into a SQL query | Attendance of 48,510 had what highest week? | SELECT MAX Week FROM table WHERE Attendance = 48,510 |
Translate the following into a SQL query | Opponent of at san francisco 49ers had what lowest week? | SELECT MIN Week FROM table WHERE Opponent = at san francisco 49ers |
Translate the following into a SQL query | On what Date is the Minnesota Vikings the Opponent? | SELECT Date FROM table WHERE Opponent = minnesota vikings |
Translate the following into a SQL query | What is the Date of Week 5? | SELECT Date FROM table WHERE Week = 5 |
Translate the following into a SQL query | What is the Date of Week 2? | SELECT Date FROM table WHERE Week = 2 |
Translate the following into a SQL query | What was the score when the game has a loss of Lary (10-12)? | SELECT Score FROM table WHERE Loss = lary (10-12) |
Translate the following into a SQL query | What is the result of the friendly match? | SELECT Result FROM table WHERE Competition = friendly |
Translate the following into a SQL query | What is the score of the match on June 4, 2008? | SELECT Score FROM table WHERE Date = june 4, 2008 |
Translate the following into a SQL query | Which Year is the lowest one that has a Length of 3:50? | SELECT MIN Year FROM table WHERE Length = 3:50 |
Translate the following into a SQL query | Which Length has a Year of 2000? | SELECT Length FROM table WHERE Year = 2000 |
Translate the following into a SQL query | In what place is the artist Midnight Band with a draw larger than 2 and less than 139 points. | SELECT Place FROM table WHERE Draw > 2 AND Points < 139 AND Artist = midnight band |
Translate the following into a SQL query | what player matched up with 9 | SELECT Player FROM table WHERE Matches = 9 |
Translate the following into a SQL query | What is the 2nd leg of the Internacional Team 1? | SELECT 2nd leg FROM table WHERE Team 1 = internacional |
Translate the following into a SQL query | Which Rank has a Capacity smaller than 12,000, and a Country of united states? | SELECT SUM Rank FROM table WHERE Capacity < 12,000 AND Country = united states |
Translate the following into a SQL query | Which City has a Country of spain, and a Stadium of palacio de deportes de santander? | SELECT City FROM table WHERE Country = spain AND Stadium = palacio de deportes de santander |
Translate the following into a SQL query | Which Capacity is the lowest one that has a Rank smaller than 15, and a City of belgrade? | SELECT MIN Capacity FROM table WHERE Rank < 15 AND City = belgrade |
Translate the following into a SQL query | Which Capacity is the lowest one that has a City of brisbane, and a Rank smaller than 1? | SELECT MIN Capacity FROM table WHERE City = brisbane AND Rank < 1 |
Translate the following into a SQL query | What are the total points that had 68 match points, 9 bonus points and 30 games? | SELECT Total points FROM table WHERE Games = 30 AND Bonus points = 9 AND Match points = 68 |
Translate the following into a SQL query | What's the shortest length from north klondike highway that has a length less than 326? | SELECT MIN Length (km) FROM table WHERE Name = north klondike highway AND Length (mi) < 326 |
Translate the following into a SQL query | what team had a score of 2-1 | SELECT Opponent FROM table WHERE Score = 2-1 |
Translate the following into a SQL query | what team played on may 11 | SELECT Opponent FROM table WHERE Date = may 11 |
Translate the following into a SQL query | what place has the club of sevilla | SELECT Away FROM table WHERE Club = sevilla |
Translate the following into a SQL query | Which new conference is located in Greentown? | SELECT New conference FROM table WHERE Location = greentown |
Translate the following into a SQL query | What is the most current year with a previous conference of Mid-Indiana in Converse? | SELECT MAX Year joined FROM table WHERE Previous conference = mid-indiana AND Location = converse |
Translate the following into a SQL query | What year did Culver leave? | SELECT SUM Year left FROM table WHERE Location = culver |
Translate the following into a SQL query | What is the mascot with a #/County of 34 Howard? | SELECT Mascot FROM table WHERE # / County = 34 howard |
Translate the following into a SQL query | What day was a friendly game held that had a score of 2:3? | SELECT Date FROM table WHERE Type of game = friendly AND Results¹ = 2:3 |
Translate the following into a SQL query | What type of game was held on December 22? | SELECT Type of game FROM table WHERE Date = december 22 |
Translate the following into a SQL query | what game had a doubles round in 1979 | SELECT Mixed doubles FROM table WHERE Year = 1979 |
Translate the following into a SQL query | Where were less than 72 goals made and more than 40 assists made? | SELECT Venue FROM table WHERE Goals < 72 AND Assists > 40 |
Translate the following into a SQL query | Which opponent plays against the Pohang Steelers? | SELECT Name FROM table WHERE Opponent = pohang steelers |
Translate the following into a SQL query | What competition had more than 40 assists? | SELECT Competition FROM table WHERE Assists > 40 |
Translate the following into a SQL query | What Nation Placed 122.5? | SELECT Nation FROM table WHERE Places = 122.5 |
Translate the following into a SQL query | What is the Places amount of the United States Ranking 8? | SELECT AVG Places FROM table WHERE Nation = united states AND Rank = 8 |
Translate the following into a SQL query | What is the average episode number where jimmy mulville was the 4th performer? | SELECT AVG Episode FROM table WHERE Performer 4 = jimmy mulville |
Translate the following into a SQL query | What is the total number of episodes where hugh laurie was the 3rd performer? | SELECT COUNT Episode FROM table WHERE Performer 3 = hugh laurie |
Translate the following into a SQL query | What is the lowest episode number where john bird was the 4th performer? | SELECT MIN Episode FROM table WHERE Performer 4 = john bird |
Translate the following into a SQL query | Who was the 3rd performer when Rory Bremner was the 4th performer? | SELECT Performer 3 FROM table WHERE Performer 4 = rory bremner |
Translate the following into a SQL query | What time did the game featuring the Detroit Lions at Three Rivers Stadium occur? | SELECT Time ( ET ) FROM table WHERE Location = three rivers stadium AND Opponent = detroit lions |
Translate the following into a SQL query | What is the highest number of successful launches associated with over 1 launch and under 0 fails? | SELECT MAX Successes FROM table WHERE Launches > 1 AND Failures < 0 |
Translate the following into a SQL query | What are the fewest partial failures associated with 1 launch, India, gslv type, and a Rocket of gslv mk ii? | SELECT MIN Partial failures FROM table WHERE Launches = 1 AND Country = india AND Type = gslv AND Rocket = gslv mk ii |
Translate the following into a SQL query | What kind of locomotive is Winston Churchill? | SELECT Locomotive type FROM table WHERE Name = winston churchill |
Translate the following into a SQL query | How many draws were there when there were points less than 23, 6 losses, and more than 21 against? | SELECT COUNT Drawn FROM table WHERE Points < 23 AND Lost = 6 AND Against > 21 |
Translate the following into a SQL query | What is the smallest amount of draws when the position is less than 7 and the against is 19? | SELECT MIN Drawn FROM table WHERE Position < 7 AND Against = 19 |
Translate the following into a SQL query | What is the highest amount of plays for fluminense? | SELECT MAX Played FROM table WHERE Team = fluminense |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.