instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
Which Right ascension (J2000) has a Constellation of mensa, and an NGC number larger than 2171?
|
SELECT Right ascension ( J2000 ) FROM table WHERE Constellation = mensa AND NGC number > 2171
|
Translate the following into a SQL query
|
Which NGC number has an Object type of open cluster, and a Right ascension (J2000) of 06h01m06s?
|
SELECT MAX NGC number FROM table WHERE Object type = open cluster AND Right ascension ( J2000 ) = 06h01m06s
|
Translate the following into a SQL query
|
Which Object type has an NGC number of 2171?
|
SELECT Object type FROM table WHERE NGC number = 2171
|
Translate the following into a SQL query
|
What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889?
|
SELECT End Date FROM table WHERE Governor = richard j. oglesby AND Term = 1885–1889
|
Translate the following into a SQL query
|
What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research?
|
SELECT Site FROM table WHERE Orbit = leo AND Decay ( UTC ) = still in orbit AND Function = magnetosphere research
|
Translate the following into a SQL query
|
What date and time has a sub-orbital of orbit, a function of aeronomy research, and a Nike Orion rocket, as well as a Poker Flat site?
|
SELECT Date and time ( UTC ) FROM table WHERE Orbit = sub-orbital AND Function = aeronomy research AND Rocket = nike orion AND Site = poker flat
|
Translate the following into a SQL query
|
what is the tournament when the winning score is 2 and 1?
|
SELECT Tournament FROM table WHERE Winning score = 2 and 1
|
Translate the following into a SQL query
|
what is the margin of victory for the tournament travelers championship?
|
SELECT Margin of victory FROM table WHERE Tournament = travelers championship
|
Translate the following into a SQL query
|
what is the margin of victory for the waste management phoenix open tournament?
|
SELECT Margin of victory FROM table WHERE Tournament = waste management phoenix open
|
Translate the following into a SQL query
|
who is the runner-up when the winning score is −16 (68-70-65-65=268)?
|
SELECT Runner-up FROM table WHERE Winning score = −16 (68-70-65-65=268)
|
Translate the following into a SQL query
|
For which Game 4 did Michael O'Connor play wing position?
|
SELECT Game 4 FROM table WHERE Position = wing AND Game 1 = michael o'connor
|
Translate the following into a SQL query
|
For which Game 4, did David Boyle play in Game 3?
|
SELECT Game 4 FROM table WHERE Game 3 = david boyle
|
Translate the following into a SQL query
|
Which Game 1 has a fullback?
|
SELECT Game 1 FROM table WHERE Position = fullback
|
Translate the following into a SQL query
|
For which Game 4 did Michael O'Connor play during Game 1?
|
SELECT Game 4 FROM table WHERE Game 1 = michael o'connor
|
Translate the following into a SQL query
|
During Game 2, which position did Andrew Farrar play?
|
SELECT Position FROM table WHERE Game 2 = andrew farrar
|
Translate the following into a SQL query
|
During which Game 4, did Brett Kenny play Game 2?
|
SELECT Game 4 FROM table WHERE Game 2 = brett kenny
|
Translate the following into a SQL query
|
Where was the former private member that was founded in 1891 and left in 1975?
|
SELECT Location FROM table WHERE Left = 1975 AND Type = private AND Founded = 1891
|
Translate the following into a SQL query
|
what is the places when for the soviet union with a rank more than 11?
|
SELECT SUM Places FROM table WHERE Nation = soviet union AND Rank > 11
|
Translate the following into a SQL query
|
what is the name when the nation is soviet union and the points is 185?
|
SELECT Name FROM table WHERE Nation = soviet union AND Points = 185
|
Translate the following into a SQL query
|
What constructor has less than 3 laps and grid 15?
|
SELECT Constructor FROM table WHERE Laps < 3 AND Grid = 15
|
Translate the following into a SQL query
|
Which Home team has an Away team of collingwood?
|
SELECT Home team FROM table WHERE Away team = collingwood
|
Translate the following into a SQL query
|
Name the lowest against for when wins are greater than 14, draws is 0 and losses are 4
|
SELECT MIN Against FROM table WHERE Losses = 4 AND Draws = 0 AND Wins > 14
|
Translate the following into a SQL query
|
Name the sum against for byes less than 0
|
SELECT SUM Against FROM table WHERE Byes < 0
|
Translate the following into a SQL query
|
Name the sum of draws for losses less than 2 and wins of 16
|
SELECT SUM Draws FROM table WHERE Wins = 16 AND Losses < 2
|
Translate the following into a SQL query
|
How few laps were finished in 17?
|
SELECT MIN Laps FROM table WHERE Finish = 17
|
Translate the following into a SQL query
|
What is 1966's Qual rating?
|
SELECT Qual FROM table WHERE Year = 1966
|
Translate the following into a SQL query
|
What race has a finish time of 10?
|
SELECT Start FROM table WHERE Finish = 10
|
Translate the following into a SQL query
|
What is the lowest lap with a rank of 30?
|
SELECT MIN Laps FROM table WHERE Rank = 30
|
Translate the following into a SQL query
|
What finish time started at 32?
|
SELECT Finish FROM table WHERE Start = 32
|
Translate the following into a SQL query
|
Who is the lowest ranked player from the United States that has less than 3 Wins?
|
SELECT MIN Rank FROM table WHERE Country = united states AND Wins < 3
|
Translate the following into a SQL query
|
What is the score of the game that had a visiting team of Edmonton?
|
SELECT Score FROM table WHERE Visitor = edmonton
|
Translate the following into a SQL query
|
What is the record of the game that had a home team of Colorado, and a visiting team of Winnipeg?
|
SELECT Record FROM table WHERE Home = colorado AND Visitor = winnipeg
|
Translate the following into a SQL query
|
What team was visiting on February 15?
|
SELECT Visitor FROM table WHERE Date = february 15
|
Translate the following into a SQL query
|
What theme had an issue price of $489.95 after 2005?
|
SELECT Theme FROM table WHERE Issue Price = $489.95 AND Year > 2005
|
Translate the following into a SQL query
|
What year was the timber trade?
|
SELECT SUM Year FROM table WHERE Theme = timber trade
|
Translate the following into a SQL query
|
What year has an issue price of $697.95?
|
SELECT COUNT Year FROM table WHERE Issue Price = $697.95
|
Translate the following into a SQL query
|
What was the engine driven by Jean-Pierre Jarier and has a chassis of PC4?
|
SELECT Engine FROM table WHERE Driver = jean-pierre jarier AND Chassis = pc4
|
Translate the following into a SQL query
|
What Season had Dundee United as a Winner?
|
SELECT Season FROM table WHERE Winners = dundee united
|
Translate the following into a SQL query
|
What is the Score of the Rangers' Runner-ups and Hibernian Winners in Hampden Park?
|
SELECT Score FROM table WHERE Venue = hampden park AND Runners-up = rangers AND Winners = hibernian
|
Translate the following into a SQL query
|
What Runners-up have a Venue in Broadwood Stadium?
|
SELECT Runners-up FROM table WHERE Venue = broadwood stadium
|
Translate the following into a SQL query
|
When is the completed date of the destroyer with a pennant number h63?
|
SELECT Completed FROM table WHERE Pennant number = h63
|
Translate the following into a SQL query
|
When is the completed date of the destroyer with a pennant number h59?
|
SELECT Completed FROM table WHERE Pennant number = h59
|
Translate the following into a SQL query
|
What ship has a pennant number h05?
|
SELECT Ship FROM table WHERE Pennant number = h05
|
Translate the following into a SQL query
|
What ship has a pennant number h05?
|
SELECT Ship FROM table WHERE Pennant number = h05
|
Translate the following into a SQL query
|
What is the launched date of the destroyer completed 25 February 1936?
|
SELECT Launched FROM table WHERE Completed = 25 february 1936
|
Translate the following into a SQL query
|
What is the launched date of the destroyer completed 1 July 1936?
|
SELECT Launched FROM table WHERE Completed = 1 july 1936
|
Translate the following into a SQL query
|
What was the home team score when the VFL played at Western Oval?
|
SELECT Home team score FROM table WHERE Venue = western oval
|
Translate the following into a SQL query
|
Who was North Melbourne's home opponent?
|
SELECT Home team FROM table WHERE Away team = north melbourne
|
Translate the following into a SQL query
|
What was the home team score when the VFL played at Princes Park?
|
SELECT Home team score FROM table WHERE Venue = princes park
|
Translate the following into a SQL query
|
Which sum of AVE-No has a Name of albula alps, and a Height (m) larger than 3418?
|
SELECT SUM AVE- No. FROM table WHERE Name = albula alps AND Height (m) > 3418
|
Translate the following into a SQL query
|
Which Height (m) has a Name of plessur alps, and a AVE-No larger than 63?
|
SELECT MIN Height (m) FROM table WHERE Name = plessur alps AND AVE- No. > 63
|
Translate the following into a SQL query
|
Which Name has a Height (m) of 2980?
|
SELECT Name FROM table WHERE Height (m) = 2980
|
Translate the following into a SQL query
|
Which AVE-No has a Name of livigno alps?
|
SELECT MIN AVE- No. FROM table WHERE Name = livigno alps
|
Translate the following into a SQL query
|
Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari?
|
SELECT Winning Driver FROM table WHERE Fastest Lap = michael schumacher AND Constructor = ferrari AND Pole Position = jenson button
|
Translate the following into a SQL query
|
What was the pole position at the san marino grand prix with michael schumacher as winning driver?
|
SELECT Pole Position FROM table WHERE Winning Driver = michael schumacher AND Grand Prix = san marino grand prix
|
Translate the following into a SQL query
|
Name the Grand Prix for pole position of kimi räikkönen
|
SELECT Grand Prix FROM table WHERE Pole Position = kimi räikkönen
|
Translate the following into a SQL query
|
How many Established groups have a multicultural sub category?
|
SELECT COUNT Established FROM table WHERE Sub Category = multicultural
|
Translate the following into a SQL query
|
Which is the category of the group was establishe in 1990?
|
SELECT Category FROM table WHERE Established = 1990
|
Translate the following into a SQL query
|
What is the category of the touchdown atlantic?
|
SELECT Category FROM table WHERE Event Name = touchdown atlantic
|
Translate the following into a SQL query
|
Name the result for 13 october 2004
|
SELECT Result FROM table WHERE Date = 13 october 2004
|
Translate the following into a SQL query
|
Name the date that has a friendly competition at rheinpark stadion, vaduz
|
SELECT Date FROM table WHERE Competition = friendly AND Venue = rheinpark stadion, vaduz
|
Translate the following into a SQL query
|
Who is the constructor of John Surtees's Oulton Park circuit car?
|
SELECT Constructor FROM table WHERE Circuit = oulton park AND Winning driver = john surtees
|
Translate the following into a SQL query
|
Which race was Matra the constructor?
|
SELECT Race Name FROM table WHERE Constructor = matra
|
Translate the following into a SQL query
|
Which race was at Hockenheim circuit?
|
SELECT Race Name FROM table WHERE Circuit = hockenheim
|
Translate the following into a SQL query
|
Who was the winner of the XII Spring Trophy race with BRM as the constructor?
|
SELECT Winning driver FROM table WHERE Constructor = brm AND Race Name = xii spring trophy
|
Translate the following into a SQL query
|
What is the away team at victoria park?
|
SELECT Away team FROM table WHERE Venue = victoria park
|
Translate the following into a SQL query
|
Which venue has an Away team score of 17.14 (116)?
|
SELECT Venue FROM table WHERE Away team score = 17.14 (116)
|
Translate the following into a SQL query
|
Which away team is from junction oval?
|
SELECT Away team FROM table WHERE Venue = junction oval
|
Translate the following into a SQL query
|
Which Away team score has Home team score of 13.12 (90)?
|
SELECT Away team score FROM table WHERE Home team score = 13.12 (90)
|
Translate the following into a SQL query
|
What was the term of Hon Peter Morris?
|
SELECT Term in office FROM table WHERE Member = hon peter morris
|
Translate the following into a SQL query
|
What party is the member that has an electorate of Lindsay?
|
SELECT Party FROM table WHERE Electorate = lindsay
|
Translate the following into a SQL query
|
What is the low lap total for the under 4 grid car driven by juan pablo montoya?
|
SELECT MIN Laps FROM table WHERE Grid < 4 AND Driver = juan pablo montoya
|
Translate the following into a SQL query
|
Who drove the grid 11 car?
|
SELECT Driver FROM table WHERE Grid = 11
|
Translate the following into a SQL query
|
What is the grid total for cars with over 69 laps?
|
SELECT COUNT Grid FROM table WHERE Laps > 69
|
Translate the following into a SQL query
|
What is the time/retired with 22 laps and a grid of 29?
|
SELECT Time/Retired FROM table WHERE Laps = 22 AND Grid = 29
|
Translate the following into a SQL query
|
What is the highest number of laps with a time of +6.643 and grid less than 2?
|
SELECT MAX Laps FROM table WHERE Time/Retired = +6.643 AND Grid < 2
|
Translate the following into a SQL query
|
When was there 204 deaths?
|
SELECT Dates active FROM table WHERE Deaths = 204
|
Translate the following into a SQL query
|
When is the birth date of player with right arm fast style?
|
SELECT Date of Birth FROM table WHERE Bowling Style = right arm fast
|
Translate the following into a SQL query
|
What batting style corresponds to a bowling style of right arm medium for Stuart Williams?
|
SELECT Batting Style FROM table WHERE Bowling Style = right arm medium AND Player = stuart williams
|
Translate the following into a SQL query
|
What is the birth date for Mervyn Dillon?
|
SELECT Date of Birth FROM table WHERE Player = mervyn dillon
|
Translate the following into a SQL query
|
What position does Michael Ruffin play?
|
SELECT Position FROM table WHERE Player = michael ruffin
|
Translate the following into a SQL query
|
What is the nationality of the center?
|
SELECT Nationality FROM table WHERE Position = center
|
Translate the following into a SQL query
|
What is the nationality of the Jazz player 1977-79?
|
SELECT Nationality FROM table WHERE Years for Jazz = 1977-79
|
Translate the following into a SQL query
|
Tell me the School/Club team of the player from the United States that play'de guard?
|
SELECT School/Club Team FROM table WHERE Nationality = united states AND Position = guard
|
Translate the following into a SQL query
|
What nationality is Bill Robinzine?
|
SELECT Nationality FROM table WHERE Player = bill robinzine
|
Translate the following into a SQL query
|
What is the average of seasons for 10th place finishes?
|
SELECT AVG Season FROM table WHERE Position = 10th
|
Translate the following into a SQL query
|
What season was there a 2nd place finish?
|
SELECT Season FROM table WHERE Position = 2nd
|
Translate the following into a SQL query
|
What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?
|
SELECT Level FROM table WHERE Season > 2003 AND Division = kakkonen (second division) AND Position = 12th
|
Translate the following into a SQL query
|
What was the streak on April 2?
|
SELECT Streak FROM table WHERE Date = april 2
|
Translate the following into a SQL query
|
Who was the visiting team when the leading scorer was Jones : 20?
|
SELECT Visitor FROM table WHERE Leading scorer = jones : 20
|
Translate the following into a SQL query
|
How many people watched season 1?
|
SELECT Viewers (in millions) FROM table WHERE Season = 1
|
Translate the following into a SQL query
|
What was the ranking of the season whose finale aired on May 15, 2011?
|
SELECT Ranking FROM table WHERE Season finale = may 15, 2011
|
Translate the following into a SQL query
|
Which season premiered on November 27, 2012?
|
SELECT Season FROM table WHERE Season premiere = november 27, 2012
|
Translate the following into a SQL query
|
What is the PI GP of Rob Flockhart, who has a pick # less than 122 and a round # less than 3?
|
SELECT SUM Pl GP FROM table WHERE Pick # < 122 AND Player = rob flockhart AND Rd # < 3
|
Translate the following into a SQL query
|
What is the lowest reg gp of the player with a round # more than 2, a pick # of 80, and a PI GP larger than 0?
|
SELECT MIN Reg GP FROM table WHERE Rd # > 2 AND Pick # = 80 AND Pl GP > 0
|
Translate the following into a SQL query
|
Name the highest FIPS code for coordinates of 41.827547, -74.118478 and land less than 1.196
|
SELECT MAX FIPS code FROM table WHERE Coordinates = 41.827547, -74.118478 AND Land ( sq mi ) < 1.196
|
Translate the following into a SQL query
|
Name the CDP name for FIPS code of 3659708
|
SELECT CDP name FROM table WHERE FIPS code = 3659708
|
Translate the following into a SQL query
|
Name the FIPS code for county of wyoming and CDP name of pike
|
SELECT FIPS code FROM table WHERE County = wyoming AND CDP name = pike
|
Translate the following into a SQL query
|
Name the sum of land for ANSI code of 2390496 and population less than 7,284
|
SELECT SUM Land ( sq mi ) FROM table WHERE ANSI code = 2390496 AND Pop. (2010) < 7,284
|
Translate the following into a SQL query
|
How many solo tackles for the player with over 0 TDs and over 0 sacks?
|
SELECT MIN Solo FROM table WHERE TD's > 0 AND Sack > 0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.