instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What is the constructor for the race with Nigel Mansell as the fastest lap?
|
SELECT Constructor FROM table WHERE Fastest Lap = nigel mansell
|
Translate the following into a SQL query
|
What is the fastest lap at estoril?
|
SELECT Fastest Lap FROM table WHERE Location = estoril
|
Translate the following into a SQL query
|
What is the race in Paul Ricard with Keke Rosberg as the fastest lap?
|
SELECT Race FROM table WHERE Fastest Lap = keke rosberg AND Location = paul ricard
|
Translate the following into a SQL query
|
Who was the winner at spa-francorchamps?
|
SELECT Race Winner FROM table WHERE Location = spa-francorchamps
|
Translate the following into a SQL query
|
Where was the game with result 7-2 played?
|
SELECT Venue FROM table WHERE Result = 7-2
|
Translate the following into a SQL query
|
What was the score of the Friendly competition where the result was 7-2?
|
SELECT Score FROM table WHERE Competition = friendly AND Result = 7-2
|
Translate the following into a SQL query
|
What was the score of the game on 27 January 1996?
|
SELECT Score FROM table WHERE Date = 27 january 1996
|
Translate the following into a SQL query
|
What is the event with a result of 3-2?
|
SELECT Competition FROM table WHERE Result = 3-2
|
Translate the following into a SQL query
|
How big was the crowd size, at the Junction Oval venue?
|
SELECT SUM Crowd FROM table WHERE Venue = junction oval
|
Translate the following into a SQL query
|
What is the visiting team of Melbourne's score?
|
SELECT Away team score FROM table WHERE Away team = melbourne
|
Translate the following into a SQL query
|
What is the average crowd size of Fitzroy's home team?
|
SELECT AVG Crowd FROM table WHERE Home team = fitzroy
|
Translate the following into a SQL query
|
Which railway had the earliest build date and a disposal of "Scrapped 1941?"
|
SELECT MIN Build date FROM table WHERE Disposal = scrapped 1941
|
Translate the following into a SQL query
|
Which railway had a loco name of Pyramus and a build date of 1911?
|
SELECT Railway FROM table WHERE Build date = 1911 AND Loco name = pyramus
|
Translate the following into a SQL query
|
What was the build date of the railway(s) with 0-6-2 t wheels?
|
SELECT Build date FROM table WHERE Wheels = 0-6-2 t
|
Translate the following into a SQL query
|
Which disbanded is in the ahl league?
|
SELECT Disbanded FROM table WHERE League = ahl
|
Translate the following into a SQL query
|
Which championship was established after 2005?
|
SELECT Championships FROM table WHERE Established > 2005
|
Translate the following into a SQL query
|
Which year had J.R. Reid as a player?
|
SELECT Year FROM table WHERE Player = j.r. reid
|
Translate the following into a SQL query
|
Which hometown is the played Dajuan Wagner from?
|
SELECT Hometown FROM table WHERE Player = dajuan wagner
|
Translate the following into a SQL query
|
When the home team was carlton how many people were in the crowd?
|
SELECT Crowd FROM table WHERE Home team = carlton
|
Translate the following into a SQL query
|
Which away team had a crowd of over 23,000 people?
|
SELECT Away team FROM table WHERE Crowd > 23,000
|
Translate the following into a SQL query
|
What's the home team for the western oval venue?
|
SELECT Home team FROM table WHERE Venue = western oval
|
Translate the following into a SQL query
|
What's the home team for the junction oval venue?
|
SELECT Home team score FROM table WHERE Venue = junction oval
|
Translate the following into a SQL query
|
What date did the away team score 13.10 (88)?
|
SELECT Date FROM table WHERE Away team score = 13.10 (88)
|
Translate the following into a SQL query
|
What was the result when the opponent was fenerbahçe?
|
SELECT Result FROM table WHERE Opponent = fenerbahçe
|
Translate the following into a SQL query
|
what is the apparent magnitude of NGC number 6027d?
|
SELECT Apparent magnitude FROM table WHERE NGC number = 6027d
|
Translate the following into a SQL query
|
What is the visiting team of the game with the home team Grizzlies on 13 November 2007?
|
SELECT Visitor FROM table WHERE Home = grizzlies AND Date = 13 november 2007
|
Translate the following into a SQL query
|
What is the date of the game when the Mavericks were the home team?
|
SELECT Date FROM table WHERE Home = mavericks
|
Translate the following into a SQL query
|
Which of the lowest years had a Wheel arrangement that was 0-4-2t?
|
SELECT MIN Year made FROM table WHERE Wheel arrangement = 0-4-2t
|
Translate the following into a SQL query
|
What is the mean Year when the IWCR number was 5 and the Year withdrawn was bigger than 1926?
|
SELECT AVG Year made FROM table WHERE IWCR No. = 5 AND Year withdrawn > 1926
|
Translate the following into a SQL query
|
Which SR number had a wheel arrangement of 0-6-0t, the year made was more recent than 1874, and the year withdrawn was 1963?
|
SELECT SR No. FROM table WHERE Wheel arrangement = 0-6-0t AND Year made > 1874 AND Year withdrawn = 1963
|
Translate the following into a SQL query
|
What is the sum number of years where the wheel arrangement of 0-4-0t?
|
SELECT COUNT Year made FROM table WHERE Wheel arrangement = 0-4-0t
|
Translate the following into a SQL query
|
What was the latest week of a game that had an attendance of 63,001?
|
SELECT MAX Week FROM table WHERE Attendance = 63,001
|
Translate the following into a SQL query
|
What is the total medals Austria and those with larger than rank 4 have?
|
SELECT COUNT Total FROM table WHERE Nation = austria AND Rank > 4
|
Translate the following into a SQL query
|
What is the most gold medals that a team ranked higher than 6, have 1 silver medal, and more than 4 total medals have?
|
SELECT MAX Gold FROM table WHERE Rank < 6 AND Silver = 1 AND Total > 4
|
Translate the following into a SQL query
|
Which country has a rollercoaster that opened in 2002, is a spinning coaster, and is located in Disney's Animal Kingdom?
|
SELECT Country FROM table WHERE Opened = 2002 AND Model = spinning coaster AND Park = disney's animal kingdom
|
Translate the following into a SQL query
|
What is the name of the roller coaster that opened in 2000 in Brighton Pier?
|
SELECT Name FROM table WHERE Opened = 2000 AND Park = brighton pier
|
Translate the following into a SQL query
|
How many attended on may 6?
|
SELECT COUNT Attendance FROM table WHERE Date = may 6
|
Translate the following into a SQL query
|
Who did they lose to 3-17?
|
SELECT Opponent FROM table WHERE Score = 3-17
|
Translate the following into a SQL query
|
What team was the home team when the away team scored 12.11 (83)?
|
SELECT Home team FROM table WHERE Away team score = 12.11 (83)
|
Translate the following into a SQL query
|
What venue did Richmond play at as the home team?
|
SELECT Venue FROM table WHERE Home team = richmond
|
Translate the following into a SQL query
|
What home team played against Footscray as the away team?
|
SELECT Home team FROM table WHERE Away team = footscray
|
Translate the following into a SQL query
|
What date did the away team score 14.8 (92)?
|
SELECT Date FROM table WHERE Away team score = 14.8 (92)
|
Translate the following into a SQL query
|
what was the attendance when the away team was boreham wood?
|
SELECT Attendance FROM table WHERE Away team = boreham wood
|
Translate the following into a SQL query
|
what is the tie no when the away team is solihull moors?
|
SELECT SUM Tie no FROM table WHERE Away team = solihull moors
|
Translate the following into a SQL query
|
who is the away team when the tie no is more than 13 and the home team is team bath?
|
SELECT Away team FROM table WHERE Tie no > 13 AND Home team = team bath
|
Translate the following into a SQL query
|
What is the Pick # of the player from Simon Fraser College?
|
SELECT AVG Pick # FROM table WHERE College = simon fraser
|
Translate the following into a SQL query
|
What is the margin of victory for the winning score of −10 (71-65-68-70=274)?
|
SELECT Margin of victory FROM table WHERE Winning score = −10 (71-65-68-70=274)
|
Translate the following into a SQL query
|
Who is the runner(s)-up for a winning score of −3 (71-74-66-66=277)?
|
SELECT Runner(s)-up FROM table WHERE Winning score = −3 (71-74-66-66=277)
|
Translate the following into a SQL query
|
What venue had less than 7.4 extra and the result of 4th?
|
SELECT Venue FROM table WHERE Extra < 7.4 AND Result = 4th
|
Translate the following into a SQL query
|
What is the highest extra total before 2003 at the Meeting of all africa games?
|
SELECT MAX Extra FROM table WHERE Meeting = all africa games AND Year < 2003
|
Translate the following into a SQL query
|
What year has an extra of 8, and a result of 3rd?
|
SELECT Year FROM table WHERE Extra = 8 AND Result = 3rd
|
Translate the following into a SQL query
|
What year has a venue of algiers, algeria, extra smaller than 8.03, and a Meeting of all africa games?
|
SELECT Year FROM table WHERE Venue = algiers, algeria AND Extra < 8.03 AND Meeting = all africa games
|
Translate the following into a SQL query
|
What is the Date with a Set 3 with 15–6?
|
SELECT Date FROM table WHERE Set 3 = 15–6
|
Translate the following into a SQL query
|
What is the Set 3 with a Score of 3–1, and has a Set 2 of 13–15?
|
SELECT Set 3 FROM table WHERE Score = 3–1 AND Set 2 = 13–15
|
Translate the following into a SQL query
|
What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–12?
|
SELECT Set 1 FROM table WHERE Score = 3–0 AND Set 3 = 15–12
|
Translate the following into a SQL query
|
What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–10?
|
SELECT Set 1 FROM table WHERE Score = 3–0 AND Set 3 = 15–10
|
Translate the following into a SQL query
|
What is the Set 2 with a Total with 45–12?
|
SELECT Set 2 FROM table WHERE Total = 45–12
|
Translate the following into a SQL query
|
What is the Total with a Score of 3–0, and a Date of 14 oct, and has a Set 1 of 15–12?
|
SELECT Total FROM table WHERE Score = 3–0 AND Date = 14 oct AND Set 1 = 15–12
|
Translate the following into a SQL query
|
What was the date of the footscray home game?
|
SELECT Date FROM table WHERE Home team = footscray
|
Translate the following into a SQL query
|
Tell me the time for martin kampmann
|
SELECT Time FROM table WHERE Opponent = martin kampmann
|
Translate the following into a SQL query
|
Tell me the sum of round for record of 6-3
|
SELECT SUM Round FROM table WHERE Record = 6-3
|
Translate the following into a SQL query
|
Tell me the location for win with record of 8-5
|
SELECT Location FROM table WHERE Res. = win AND Record = 8-5
|
Translate the following into a SQL query
|
In which of North Melbourne's away games was there the lowest crowd?
|
SELECT MIN Crowd FROM table WHERE Away team = north melbourne
|
Translate the following into a SQL query
|
What is the build date of the model with PRR Class brs24?
|
SELECT Build date FROM table WHERE PRR Class = brs24
|
Translate the following into a SQL query
|
How many total units were built of Model ds-4-4-660 with a b-b wheel arrangement and a PRR Class of bs6?
|
SELECT SUM Total produced FROM table WHERE Wheel arrangement = b-b AND PRR Class = bs6 AND Builder’s Model = ds-4-4-660
|
Translate the following into a SQL query
|
What is the build date of the model with a PRR Class of brs24?
|
SELECT Build date FROM table WHERE PRR Class = brs24
|
Translate the following into a SQL query
|
What is the total number of roll for Te Hapua school?
|
SELECT COUNT Roll FROM table WHERE Name = te hapua school
|
Translate the following into a SQL query
|
Name the place of action for the marine corps and corporal rank
|
SELECT Place of action FROM table WHERE Service = marine corps AND Rank = corporal
|
Translate the following into a SQL query
|
When driver heinz-harald frentzen has a number of laps greater than 60, what is the sum of grid?
|
SELECT COUNT Grid FROM table WHERE Laps > 60 AND Driver = heinz-harald frentzen
|
Translate the following into a SQL query
|
What is the population total for saint-wenceslas with a region number of under 17?
|
SELECT SUM Population FROM table WHERE Name = saint-wenceslas AND Region < 17
|
Translate the following into a SQL query
|
What is the smallest code associated with a type of m for a region less than 17 named, named saint-sylvère?
|
SELECT MIN Code FROM table WHERE Type = m AND Name = saint-sylvère AND Region < 17
|
Translate the following into a SQL query
|
What competition was at the Daugava Stadium, Riga, Latvia?
|
SELECT Competition FROM table WHERE Venue = daugava stadium, riga, latvia
|
Translate the following into a SQL query
|
How many total goals were made at the game on 15 November 1989?
|
SELECT COUNT Goal FROM table WHERE Date = 15 november 1989
|
Translate the following into a SQL query
|
What is the captain's name of team Leeds United?
|
SELECT Captain FROM table WHERE Team = leeds united
|
Translate the following into a SQL query
|
Who is the shirt sponsor for Captain Geoff Thomas' team?
|
SELECT Shirt sponsor FROM table WHERE Captain = geoff thomas
|
Translate the following into a SQL query
|
What is the name of the team that Tulip Computers NV sponsors?
|
SELECT Team FROM table WHERE Shirt sponsor = tulip computers nv
|
Translate the following into a SQL query
|
What is the name of the captain for team Norwich City?
|
SELECT Captain FROM table WHERE Team = norwich city
|
Translate the following into a SQL query
|
What team does Graeme Souness manage?
|
SELECT Team FROM table WHERE Manager = graeme souness
|
Translate the following into a SQL query
|
what is the lowest laps when the grid is smaller than 5 and the driver is juan manuel fangio?
|
SELECT MIN Laps FROM table WHERE Grid < 5 AND Driver = juan manuel fangio
|
Translate the following into a SQL query
|
what is the grid when the time/retired is +9 laps and the laps is larger than 91?
|
SELECT COUNT Grid FROM table WHERE Time/Retired = +9 laps AND Laps > 91
|
Translate the following into a SQL query
|
what is the lowest grid when the time retired is clutch, the driver is peter collins and the laps is smaller than 26?
|
SELECT MIN Grid FROM table WHERE Time/Retired = clutch AND Driver = peter collins AND Laps < 26
|
Translate the following into a SQL query
|
What zone has camp type D/S in area Bl9?
|
SELECT Zone FROM table WHERE Camp Type = d/s AND Area = bl9
|
Translate the following into a SQL query
|
Which name has group 0 in Bl4 area?
|
SELECT Name FROM table WHERE Group(s) = 0 AND Area = bl4
|
Translate the following into a SQL query
|
Which zone has max capacity of 23 in a group under 2 at Robbers Roost?
|
SELECT Zone FROM table WHERE Max People > 23 AND Group(s) < 2 AND Name = robbers roost
|
Translate the following into a SQL query
|
I want to know the average crowd for away team of melbourne
|
SELECT AVG Crowd FROM table WHERE Away team = melbourne
|
Translate the following into a SQL query
|
Which driver had a time off course?
|
SELECT Driver FROM table WHERE Time/Retired = off course
|
Translate the following into a SQL query
|
What is the top lap that had 2 grids and more than 26 points?
|
SELECT MAX Laps FROM table WHERE Grid = 2 AND Points > 26
|
Translate the following into a SQL query
|
What is the top lap that had 6 grids and more than 19 points?
|
SELECT MAX Laps FROM table WHERE Grid = 6 AND Points > 19
|
Translate the following into a SQL query
|
What is the average point count for tristan gommendy?
|
SELECT AVG Points FROM table WHERE Driver = tristan gommendy
|
Translate the following into a SQL query
|
What is the point low with 2 grids?
|
SELECT MIN Points FROM table WHERE Grid = 2
|
Translate the following into a SQL query
|
What is the Dismissals with a Venue with source: cricinfo.com?
|
SELECT Dismissals FROM table WHERE Venue = source: cricinfo.com
|
Translate the following into a SQL query
|
What is the Versus with a Player with ko otieno, with Venue with bloemfontein?
|
SELECT Versus FROM table WHERE Player = ko otieno AND Venue = bloemfontein
|
Translate the following into a SQL query
|
What is the Venue with a Date with 27-02-2003?
|
SELECT Venue FROM table WHERE Date = 27-02-2003
|
Translate the following into a SQL query
|
What is the Player with Versus with australia?
|
SELECT Player FROM table WHERE Versus = australia
|
Translate the following into a SQL query
|
What is the Player with a Date with 12-03-2003?
|
SELECT Player FROM table WHERE Date = 12-03-2003
|
Translate the following into a SQL query
|
What is the Dismissals with a Player with source: cricinfo.com?
|
SELECT Dismissals FROM table WHERE Player = source: cricinfo.com
|
Translate the following into a SQL query
|
What is the sum number of attendance when the visiting team was Charlotte and the leading scorer was Ricky Davis (23)?
|
SELECT COUNT Attendance FROM table WHERE Visitor = charlotte AND Leading scorer = ricky davis (23)
|
Translate the following into a SQL query
|
Which Visitor was there when the Home game was played in Miami on November 4?
|
SELECT Visitor FROM table WHERE Home = miami AND Date = november 4
|
Translate the following into a SQL query
|
What nationality is Demetris Nichols?
|
SELECT Nationality FROM table WHERE Player = demetris nichols
|
Translate the following into a SQL query
|
What school or team has round of 2 with less than 42 picks?
|
SELECT School/Club Team FROM table WHERE Round = 2 AND Pick < 42
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.