instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the size of the crowd at the game where the home team scored 10.8 (68)? | SELECT AVG Crowd FROM table WHERE Home team score = 10.8 (68) |
Translate the following into a SQL query | What is the name of the away team that played Melbourne? | SELECT Away team FROM table WHERE Home team = melbourne |
Translate the following into a SQL query | What date was the game played at Punt Road Oval? | SELECT Date FROM table WHERE Venue = punt road oval |
Translate the following into a SQL query | What is the name of the home team that played against Hawthorn? | SELECT Home team FROM table WHERE Away team = hawthorn |
Translate the following into a SQL query | What is the home team score that played at Kardinia Park? | SELECT Home team score FROM table WHERE Venue = kardinia park |
Translate the following into a SQL query | I want the total number of Laps for Rubens Barrichello | SELECT COUNT Laps FROM table WHERE Driver = rubens barrichello |
Translate the following into a SQL query | Tell me the driver for grid less than 19 and Laps more than 59 with time/retired of +0.294 | SELECT Driver FROM table WHERE Grid < 19 AND Laps > 59 AND Time/Retired = +0.294 |
Translate the following into a SQL query | What is the name of the rider with a time of 1:45.52.84, and a Rank of 8? | SELECT Rider FROM table WHERE Time = 1:45.52.84 AND Rank = 8 |
Translate the following into a SQL query | What is the name of the team with a rank smaller than 5 and a time of 1:37.58.38? | SELECT Team FROM table WHERE Rank < 5 AND Time = 1:37.58.38 |
Translate the following into a SQL query | What is the highest rank for Peter Symes? | SELECT MAX Rank FROM table WHERE Rider = peter symes |
Translate the following into a SQL query | When was a game played where the away team scored 12.14 (86)? | SELECT Date FROM table WHERE Away team score = 12.14 (86) |
Translate the following into a SQL query | What was the score for the away team at Glenferrie Oval? | SELECT Away team score FROM table WHERE Venue = glenferrie oval |
Translate the following into a SQL query | When was a game played where the away team is St Kilda? | SELECT Date FROM table WHERE Away team = st kilda |
Translate the following into a SQL query | What was the home team score when the away team was Carlton? | SELECT Home team score FROM table WHERE Away team = carlton |
Translate the following into a SQL query | When was the game where the home team score was 8.9 (57)? | SELECT Date FROM table WHERE Home team score = 8.9 (57) |
Translate the following into a SQL query | What place can sit 65,000 and opens 2016? | SELECT Location FROM table WHERE Capacity = 65,000 AND Opening = 2016 |
Translate the following into a SQL query | What is the stadium of the san diego chargers? | SELECT Stadium FROM table WHERE Team = san diego chargers |
Translate the following into a SQL query | Who is the team at vikings stadium? | SELECT Team FROM table WHERE Stadium = vikings stadium |
Translate the following into a SQL query | For the Year 2013 what building(s) had more than 15 Floors? | SELECT Building FROM table WHERE Floors > 15 AND Year = 2013 |
Translate the following into a SQL query | For the Year 2013 what building(s) had less than 20 Floors? | SELECT Building FROM table WHERE Year = 2013 AND Floors < 20 |
Translate the following into a SQL query | What location was the game played at when Richmond was the away team? | SELECT Venue FROM table WHERE Away team = richmond |
Translate the following into a SQL query | What team was the home team when the home team score was 26.14 (170)? | SELECT Home team FROM table WHERE Home team score = 26.14 (170) |
Translate the following into a SQL query | What date was the game played at vfl park? | SELECT Date FROM table WHERE Venue = vfl park |
Translate the following into a SQL query | How many people were in the crowd when the away team was north melbourne? | SELECT SUM Crowd FROM table WHERE Away team = north melbourne |
Translate the following into a SQL query | What team was the away team when the home team scored 20.18 (138)? | SELECT Away team FROM table WHERE Home team score = 20.18 (138) |
Translate the following into a SQL query | What team was the home team when the home team score was 26.14 (170)? | SELECT Home team FROM table WHERE Home team score = 26.14 (170) |
Translate the following into a SQL query | When was the first HC climb which, more recently than 2012, had more than 1 HC climbs, more than 29 times visited? | SELECT SUM First time as HC climb FROM table WHERE No. of HC climbs > 1 AND No. of times visited > 29 AND Most recent > 2012 |
Translate the following into a SQL query | How many HC climbs had 1 visit more recently than 1984, a first HC climb before 1994, and a height of 1900? | SELECT No. of HC climbs FROM table WHERE No. of times visited = 1 AND Most recent > 1984 AND First time as HC climb < 1994 AND Height (m.) = 1900 |
Translate the following into a SQL query | What is the height with more than 2 HC climbs more recent than 2012, less than 48 times visited, and a first HC climb in 1989? | SELECT Height (m.) FROM table WHERE No. of HC climbs > 2 AND Most recent = 2012 AND No. of times visited < 48 AND First time as HC climb = 1989 |
Translate the following into a SQL query | What was the most recent year a height of 2770 m and a HC climb before 1992 was climbed? | SELECT COUNT Most recent FROM table WHERE Height (m.) = 2770 AND First time as HC climb < 1992 |
Translate the following into a SQL query | When was the first HC climb before 2013 with more than 3 times visited, more than 4 HC climbs, and a height of 1669? | SELECT First time as HC climb FROM table WHERE No. of times visited > 3 AND No. of HC climbs = 4 AND Most recent < 2013 AND Height (m.) = 1669 |
Translate the following into a SQL query | Who is the builder of Pennant d03? | SELECT Builder FROM table WHERE Pennant number = d03 |
Translate the following into a SQL query | How many picks had a Reg GP that was over 906, when the Pl GP was bigger than 99? | SELECT COUNT Pick # FROM table WHERE Reg GP > 906 AND Pl GP > 99 |
Translate the following into a SQL query | Which is the smallest pick number that had a Reg GP of less than 0? | SELECT MIN Pick # FROM table WHERE Reg GP < 0 |
Translate the following into a SQL query | Name the home team score when the away team is south melbourne | SELECT Home team score FROM table WHERE Away team = south melbourne |
Translate the following into a SQL query | Name the date for home team of collingwood | SELECT Date FROM table WHERE Home team = collingwood |
Translate the following into a SQL query | Name the date for princes park | SELECT Date FROM table WHERE Venue = princes park |
Translate the following into a SQL query | Name the date for the venue of brunswick street oval | SELECT Date FROM table WHERE Venue = brunswick street oval |
Translate the following into a SQL query | What was the attendence of the game on 26 April 1948 and an away team of Hawthorn? | SELECT Crowd FROM table WHERE Date = 26 april 1948 AND Away team = hawthorn |
Translate the following into a SQL query | When playing at Windy Hill, what was the home team? | SELECT Home team FROM table WHERE Venue = windy hill |
Translate the following into a SQL query | What is essendon's home team score? | SELECT Home team score FROM table WHERE Home team = essendon |
Translate the following into a SQL query | What is the average crowd when footscray is at home? | SELECT AVG Crowd FROM table WHERE Home team = footscray |
Translate the following into a SQL query | What is the listed crowd at windy hill? | SELECT Crowd FROM table WHERE Venue = windy hill |
Translate the following into a SQL query | What is the away team's score at punt road oval? | SELECT Away team FROM table WHERE Venue = punt road oval |
Translate the following into a SQL query | Who was the home team at the Nuggets game that had a score of 116–105? | SELECT Home FROM table WHERE Score = 116–105 |
Translate the following into a SQL query | Tell me the lowest Laps with a time/retired of +2 Laps and Grid of 20 | SELECT MIN Laps FROM table WHERE Time/Retired = +2 laps AND Grid = 20 |
Translate the following into a SQL query | I want the time/retired for eddie irvine | SELECT Time/Retired FROM table WHERE Driver = eddie irvine |
Translate the following into a SQL query | What date was Rodger Ward the winning driver? | SELECT Date FROM table WHERE Winning driver = rodger ward |
Translate the following into a SQL query | What was the constructor when Jack Brabham was the driver at the Monaco Grand Prix? | SELECT Constructor FROM table WHERE Winning driver = jack brabham AND Race = monaco grand prix |
Translate the following into a SQL query | What driver was the winner when Joakim Bonnier was in the Pole Position? | SELECT Winning driver FROM table WHERE Pole position = joakim bonnier |
Translate the following into a SQL query | What date was the Tyre d and Bruce Mclaren won? | SELECT Date FROM table WHERE Tyre = d AND Winning driver = bruce mclaren |
Translate the following into a SQL query | What date was Joakim Bonnier in the pole position? | SELECT Date FROM table WHERE Pole position = joakim bonnier |
Translate the following into a SQL query | What is the time for the racer on grid 19? | SELECT Time/Retired FROM table WHERE Grid = 19 |
Translate the following into a SQL query | Who made the car that Alberto Ascari went more than 35 laps on a grid less than 7? | SELECT Constructor FROM table WHERE Grid < 7 AND Laps > 35 AND Driver = alberto ascari |
Translate the following into a SQL query | What driver raced for more than 9 laps on grid 7? | SELECT Driver FROM table WHERE Laps > 9 AND Grid = 7 |
Translate the following into a SQL query | What is the Riding of the candidate Patricia Cordner who gained 7,190 votes? | SELECT Riding FROM table WHERE Votes > 7,190 AND Candidate = patricia cordner |
Translate the following into a SQL query | Which License has an Actual Vaersion of 9.0? | SELECT License FROM table WHERE Actual version = 9.0 |
Translate the following into a SQL query | Which System has an Actual Version 9.0? | SELECT System FROM table WHERE Actual version = 9.0 |
Translate the following into a SQL query | Which System's Name is Gemulator? | SELECT System FROM table WHERE Name = gemulator |
Translate the following into a SQL query | Which System's Name is Steem, and has a Freeware License? | SELECT System FROM table WHERE License = freeware AND Name = steem |
Translate the following into a SQL query | What was the Lightning's record at their home game against Carolina with an attendance over 16,526 and a decision of Holmqvist? | SELECT Record FROM table WHERE Decision = holmqvist AND Attendance > 16,526 AND Visitor = carolina |
Translate the following into a SQL query | What was the date of the game when the Lightning had a record of 10–13–2? | SELECT Date FROM table WHERE Record = 10–13–2 |
Translate the following into a SQL query | What was the date of the game when the Lightning had a record of 9–8–1? | SELECT Date FROM table WHERE Record = 9–8–1 |
Translate the following into a SQL query | What was the decision of the game when the Lightning had a record of 6–8–1? | SELECT Decision FROM table WHERE Record = 6–8–1 |
Translate the following into a SQL query | What pick was Dominic Uy? | SELECT AVG Pick FROM table WHERE Player = dominic uy |
Translate the following into a SQL query | What college did pick 33 attend? | SELECT College FROM table WHERE Pick = 33 |
Translate the following into a SQL query | What is the elevation of the city with a number of 91,385 Housing dwellings in 2007? | SELECT Elevation msl FROM table WHERE Housing (2007) = 91,385 |
Translate the following into a SQL query | What is the density of San Sebastián? | SELECT Density (hab/km²) FROM table WHERE City district = san sebastián |
Translate the following into a SQL query | What is the density of the city with an elevation of 3,400 msl? | SELECT Density (hab/km²) FROM table WHERE Elevation msl = 3,400 msl |
Translate the following into a SQL query | What is the area of the city with a density of 8,546.1? | SELECT Area km² FROM table WHERE Density (hab/km²) = 8,546.1 |
Translate the following into a SQL query | What is the area of the city with a density of 955.6? | SELECT Area km² FROM table WHERE Density (hab/km²) = 955.6 |
Translate the following into a SQL query | What is the density of San Sebastián? | SELECT Density (hab/km²) FROM table WHERE City district = san sebastián |
Translate the following into a SQL query | Which Result has a Category of best book of a musical? | SELECT Result FROM table WHERE Category = best book of a musical |
Translate the following into a SQL query | Which Nominee has a Category of outstanding musical? | SELECT Nominee FROM table WHERE Category = outstanding musical |
Translate the following into a SQL query | What is the record time at the Nascar Camping World Truck Series? | SELECT Time FROM table WHERE Record = nascar camping world truck series |
Translate the following into a SQL query | What date was the nascar nationwide series held? | SELECT Record FROM table WHERE Date = nascar nationwide series |
Translate the following into a SQL query | Who holds the record time of 24.521 and where was it made? | SELECT Record FROM table WHERE Time = 24.521 |
Translate the following into a SQL query | Which time/retired has a grid of 9? | SELECT Time/Retired FROM table WHERE Grid = 9 |
Translate the following into a SQL query | Which driver's grid is 6? | SELECT Driver FROM table WHERE Grid = 6 |
Translate the following into a SQL query | For which constructor does Juan Manuel Fangio drive? | SELECT Constructor FROM table WHERE Driver = juan manuel fangio |
Translate the following into a SQL query | Which laps has a grid of 8? | SELECT Laps FROM table WHERE Grid = 8 |
Translate the following into a SQL query | Which grid is constructed by Maserati and driven by Oscar Alfredo Gálvez? | SELECT Grid FROM table WHERE Constructor = maserati AND Driver = oscar alfredo gálvez |
Translate the following into a SQL query | what was the engine when ken downing drove an entrant from connaught engineering? | SELECT Engine FROM table WHERE Driver = ken downing AND Entrant = connaught engineering |
Translate the following into a SQL query | who built the car driven by eric brandon? | SELECT Constructor FROM table WHERE Driver = eric brandon |
Translate the following into a SQL query | what was the chassis built by simca-gordini and driven by max de terra? | SELECT Chassis FROM table WHERE Constructor = simca-gordini AND Driver = max de terra |
Translate the following into a SQL query | kenneth mcalpine drove from which entrant? | SELECT Entrant FROM table WHERE Driver = kenneth mcalpine |
Translate the following into a SQL query | with 6 rounds, and a 52 51/52 chassis, who is the driver? | SELECT Driver FROM table WHERE Rounds = 6 AND Chassis = 52 51/52 |
Translate the following into a SQL query | What was the attendance when the Braves were the opponent and the record was 56-53? | SELECT AVG Attendance FROM table WHERE Opponent = braves AND Record = 56-53 |
Translate the following into a SQL query | Who was the opponent when the record was 61-57? | SELECT Opponent FROM table WHERE Record = 61-57 |
Translate the following into a SQL query | How many laps for jochen rindt? | SELECT COUNT Laps FROM table WHERE Driver = jochen rindt |
Translate the following into a SQL query | What is the grid total for jean-pierre beltoise? | SELECT COUNT Grid FROM table WHERE Driver = jean-pierre beltoise |
Translate the following into a SQL query | What was the time for the event in which Tony Mendoza was the opponent? | SELECT Time FROM table WHERE Opponent = tony mendoza |
Translate the following into a SQL query | What is the average lap time for retired time of +23.707 and a Grid greater than 21? | SELECT AVG Laps FROM table WHERE Time/Retired = +23.707 AND Grid > 21 |
Translate the following into a SQL query | When the away team scored 9.8 (62) what was the crowd turnout? | SELECT Crowd FROM table WHERE Away team score = 9.8 (62) |
Translate the following into a SQL query | Which home team plays at victoria park? | SELECT Home team FROM table WHERE Venue = victoria park |
Translate the following into a SQL query | Tell me the lowest avg for 6 yards and rec more than 1 | SELECT MIN Avg. FROM table WHERE Yards = 6 AND Rec. > 1 |
Translate the following into a SQL query | Name the sum of long for avg more than 9.8 with rec less than 5 and yards less than 20 | SELECT SUM Long FROM table WHERE Avg. > 9.8 AND Rec. < 5 AND Yards < 20 |
Translate the following into a SQL query | Name the sum of long for avg less than 6 and rec less than 2 | SELECT SUM Long FROM table WHERE Avg. < 6 AND Rec. < 2 |
Translate the following into a SQL query | Name the average TD's for andy mccullough with yards less than 434 | SELECT AVG TD's FROM table WHERE Player = andy mccullough AND Yards < 434 |
Translate the following into a SQL query | Name the lelast decile for roll of 428 | SELECT MIN Decile FROM table WHERE Roll = 428 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.