instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What away team plays at Victoria Park?
|
SELECT Away team FROM table WHERE Venue = victoria park
|
Translate the following into a SQL query
|
How many caps does stephen hoiles have?
|
SELECT SUM Caps FROM table WHERE Player = stephen hoiles
|
Translate the following into a SQL query
|
Which Date has a Home team of st kilda?
|
SELECT Date FROM table WHERE Home team = st kilda
|
Translate the following into a SQL query
|
Which Away team has an Away team score of 13.22 (100)?
|
SELECT Away team FROM table WHERE Away team score = 13.22 (100)
|
Translate the following into a SQL query
|
Which Venue has an Away team of footscray?
|
SELECT Venue FROM table WHERE Away team = footscray
|
Translate the following into a SQL query
|
Which Crowd has a Home team of geelong?
|
SELECT Crowd FROM table WHERE Home team = geelong
|
Translate the following into a SQL query
|
What is the most silver medals a team with 3 total medals and less than 1 bronze has?
|
SELECT MAX Silver FROM table WHERE Total = 3 AND Bronze < 1
|
Translate the following into a SQL query
|
What is the least amount of silver medals a team with less than 0 gold medals has?
|
SELECT MIN Silver FROM table WHERE Gold < 0
|
Translate the following into a SQL query
|
What is the most bronze a team with more than 2 silvers has?
|
SELECT MAX Bronze FROM table WHERE Silver > 2
|
Translate the following into a SQL query
|
What is the total amount of bronze medals a team with 1 gold and more than 3 silver medals has?
|
SELECT SUM Bronze FROM table WHERE Gold = 1 AND Silver > 3
|
Translate the following into a SQL query
|
What is the draw number that has 59 points?
|
SELECT AVG Draw FROM table WHERE Points = 59
|
Translate the following into a SQL query
|
What place for roger pontare?
|
SELECT Place FROM table WHERE Artist = roger pontare
|
Translate the following into a SQL query
|
What song has draw number less than 2?
|
SELECT Song FROM table WHERE Draw < 2
|
Translate the following into a SQL query
|
What was the attendance when Essendon played as the home team?
|
SELECT COUNT Crowd FROM table WHERE Home team = essendon
|
Translate the following into a SQL query
|
Who played the home team at Windy Hill?
|
SELECT Home team FROM table WHERE Venue = windy hill
|
Translate the following into a SQL query
|
What was the date of the game that had a decision of wall?
|
SELECT Date FROM table WHERE Decision = wall
|
Translate the following into a SQL query
|
What is the name of the circuit when Jack Brabham is in the pole position and Graham Hill has the fastest lap?
|
SELECT Circuit FROM table WHERE Pole position = jack brabham AND Fastest lap = graham hill
|
Translate the following into a SQL query
|
What race contains the Monaco circuit?
|
SELECT Race FROM table WHERE Circuit = monaco
|
Translate the following into a SQL query
|
What is the date of the race when Jack Brabham is in the pole position and the circuit is Spa-Francorchamps?
|
SELECT Date FROM table WHERE Pole position = jack brabham AND Circuit = spa-francorchamps
|
Translate the following into a SQL query
|
What is the name of the circuit when Phil Hill has the fastest lap?
|
SELECT Circuit FROM table WHERE Fastest lap = phil hill
|
Translate the following into a SQL query
|
What is the sum of every REG GP that Peter Andersson played as a pick# less than 143?
|
SELECT SUM Reg GP FROM table WHERE Player = peter andersson AND Pick # < 143
|
Translate the following into a SQL query
|
What is the total of PI GP played by Anton Rodin with a Reg GP less than 0?
|
SELECT COUNT Pl GP FROM table WHERE Player = anton rodin AND Reg GP < 0
|
Translate the following into a SQL query
|
What is the total pick# played by Anton Rodin with a Reg GP over 0?
|
SELECT COUNT Pick # FROM table WHERE Player = anton rodin AND Reg GP > 0
|
Translate the following into a SQL query
|
What is the lowest grid that has over 67 laps with stefan bellof driving?
|
SELECT MIN Grid FROM table WHERE Laps > 67 AND Driver = stefan bellof
|
Translate the following into a SQL query
|
How many laps have a grid under 14 and a time/retired of out of fuel?
|
SELECT SUM Laps FROM table WHERE Grid < 14 AND Time/Retired = out of fuel
|
Translate the following into a SQL query
|
Who drove the renault that went over 23 laps and had a grid under 11?
|
SELECT Driver FROM table WHERE Grid < 11 AND Constructor = renault AND Laps > 23
|
Translate the following into a SQL query
|
What is the average NGC number that has a Apparent magnitude greater than 14.2?
|
SELECT AVG NGC number FROM table WHERE Apparent magnitude > 14.2
|
Translate the following into a SQL query
|
What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3?
|
SELECT MAX NGC number FROM table WHERE Declination ( J2000 ) = °04′58″ AND Apparent magnitude > 7.3
|
Translate the following into a SQL query
|
What Constellation has a Object type of globular cluster and a NGC number of 5986?
|
SELECT Constellation FROM table WHERE Object type = globular cluster AND NGC number = 5986
|
Translate the following into a SQL query
|
For clubs that have 0 gold and less than 5 points, what is the average amount of bronze medals?
|
SELECT AVG Bronze FROM table WHERE Points < 5 AND Gold < 0
|
Translate the following into a SQL query
|
Club aik had over 9 small silver medals and more than 8 bronze medals, how many total points did they have?
|
SELECT AVG Points FROM table WHERE Small Silver > 9 AND Club = aik AND Bronze > 8
|
Translate the following into a SQL query
|
How many points did landskrona bois get when they were ranked below 18?
|
SELECT COUNT Points FROM table WHERE Club = landskrona bois AND Rank < 18
|
Translate the following into a SQL query
|
Who was the opponent for game 5?
|
SELECT Opponent FROM table WHERE Game = 5
|
Translate the following into a SQL query
|
Name the team for pick more than 30 and position of c with round more than 4
|
SELECT Team FROM table WHERE Pick > 30 AND Position = c AND Round > 4
|
Translate the following into a SQL query
|
What's the number of decimal digits when the total bits is more than 32 and the exponent is less than 15?
|
SELECT Number of decimal digits FROM table WHERE Total bits > 32 AND Exponent < 15
|
Translate the following into a SQL query
|
What's the total number of signicand with ~34.0 decimal digits and more than 128 total bits?
|
SELECT COUNT Significand FROM table WHERE Number of decimal digits = ~34.0 AND Total bits > 128
|
Translate the following into a SQL query
|
What's the sum of significand with ~34.0 decimal digits and an exponent bias larger than 16383?
|
SELECT SUM Significand FROM table WHERE Number of decimal digits = ~34.0 AND Exponent bias > 16383
|
Translate the following into a SQL query
|
What's the sum of sign with an exponent bias less than 1023, ~3.3 decimal digits, and less than 11 bits precision?
|
SELECT SUM Sign FROM table WHERE Exponent bias < 1023 AND Number of decimal digits = ~3.3 AND Bits precision < 11
|
Translate the following into a SQL query
|
What's the sum of sign with more than 53 bits precision, double extended (80-bit) type, and more than 80 total bits?
|
SELECT SUM Sign FROM table WHERE Bits precision > 53 AND Type = double extended (80-bit) AND Total bits > 80
|
Translate the following into a SQL query
|
What's the lowest bits precision when the total bits are less than 16?
|
SELECT MIN Bits precision FROM table WHERE Total bits < 16
|
Translate the following into a SQL query
|
How many years did the team that has a Singles win-Loss of 4-9 and first played before 1999?
|
SELECT SUM Years Played FROM table WHERE Singles Win-Loss = 4-9 AND First year played < 1999
|
Translate the following into a SQL query
|
What is the highest game number with a record of 12-8-1?
|
SELECT MAX Game FROM table WHERE Record = 12-8-1
|
Translate the following into a SQL query
|
What is the record when the decision was valiquette on November 23?
|
SELECT Record FROM table WHERE Decision = valiquette AND November = 23
|
Translate the following into a SQL query
|
I want the driver for Laps more than 8 and ferrari with Grid of 8
|
SELECT Driver FROM table WHERE Laps > 8 AND Constructor = ferrari AND Grid = 8
|
Translate the following into a SQL query
|
Which title has the Translation of vesoul?
|
SELECT Title FROM table WHERE Translation = vesoul
|
Translate the following into a SQL query
|
What was the orignal title for the winner and nominee, Breaking the Waves, in 1996 (11th)?
|
SELECT Original title FROM table WHERE Year = 1996 (11th) AND Winner and nominees = breaking the waves
|
Translate the following into a SQL query
|
What is the original title for the winner and nominees 'Secrets & Lies'?
|
SELECT Original title FROM table WHERE Winner and nominees = secrets & lies
|
Translate the following into a SQL query
|
The winner and nominee 'Hidden Agenda' is from which country?
|
SELECT Country FROM table WHERE Winner and nominees = hidden agenda
|
Translate the following into a SQL query
|
What is the total amount of freight produced of u28c?
|
SELECT Total produced FROM table WHERE Service = freight AND Builder’s Model = u28c
|
Translate the following into a SQL query
|
What is the build date for PRR Class gf30a?
|
SELECT Build date FROM table WHERE PRR Class = gf30a
|
Translate the following into a SQL query
|
What is the PRR class for wheel arrangement c-c and total less than 15?
|
SELECT PRR Class FROM table WHERE Wheel arrangement = c-c AND Total produced < 15
|
Translate the following into a SQL query
|
What was the model for PRR class of gf28a freight?
|
SELECT Builder’s Model FROM table WHERE Service = freight AND PRR Class = gf28a
|
Translate the following into a SQL query
|
Who got 189,524 votes?
|
SELECT Queens FROM table WHERE Manhattan = 189,524
|
Translate the following into a SQL query
|
Which owner has the frequency of 103.3 FM?
|
SELECT Owner FROM table WHERE Frequency = 103.3 fm
|
Translate the following into a SQL query
|
What is the call sign of the Classic Country Music station?
|
SELECT Call sign FROM table WHERE Format = classic country
|
Translate the following into a SQL query
|
Which owner has the call sign of KDSU?
|
SELECT Name FROM table WHERE Call sign = kdsu
|
Translate the following into a SQL query
|
What is the call sign for Thunder 106.1?
|
SELECT Call sign FROM table WHERE Name = thunder 106.1
|
Translate the following into a SQL query
|
Which owner has a Contemporary Christian music station on 97.9 FM?
|
SELECT Name FROM table WHERE Format = contemporary christian music AND Frequency = 97.9 fm
|
Translate the following into a SQL query
|
Who was the leading scorer in the game where the visiting team was the Pistons?
|
SELECT Leading scorer FROM table WHERE Visitor = pistons
|
Translate the following into a SQL query
|
How many people attended the game where the leading scorer was Tim Duncan (24), and the home team was the Spurs?
|
SELECT MIN Attendance FROM table WHERE Leading scorer = tim duncan (24) AND Home = spurs
|
Translate the following into a SQL query
|
What is the mean number of laps where Time/retired was a water leak and the grid number was bigger than 12?
|
SELECT AVG Laps FROM table WHERE Time/Retired = water leak AND Grid > 12
|
Translate the following into a SQL query
|
What is the mean number of laps when time/retired was spun off and the driver was Nick Heidfeld?
|
SELECT AVG Laps FROM table WHERE Time/Retired = spun off AND Driver = nick heidfeld
|
Translate the following into a SQL query
|
What is the sum grid number when the driver was Luciano Burti?
|
SELECT COUNT Grid FROM table WHERE Driver = luciano burti
|
Translate the following into a SQL query
|
Which constructor had a laps number bigger than 3 when the driver was Jarno Trulli?
|
SELECT Constructor FROM table WHERE Laps > 3 AND Driver = jarno trulli
|
Translate the following into a SQL query
|
Name the head of household for married filing jointly or qualified widow(er) being $137,051–$208,850
|
SELECT Head of Household FROM table WHERE Married Filing Jointly or Qualified Widow(er) = $137,051–$208,850
|
Translate the following into a SQL query
|
Name the married filing jointly or qualified widow(er) with head of household being $117,451–$190,200
|
SELECT Married Filing Jointly or Qualified Widow(er) FROM table WHERE Head of Household = $117,451–$190,200
|
Translate the following into a SQL query
|
Name the married filing separately for single of $0–$8,350
|
SELECT Married Filing Separately FROM table WHERE Single = $0–$8,350
|
Translate the following into a SQL query
|
Name the head of household that has married filing separately of $104,426–$186,475
|
SELECT Head of Household FROM table WHERE Married Filing Separately = $104,426–$186,475
|
Translate the following into a SQL query
|
Name the marginal ordinary income tax rate that has a head of household of $372,951+
|
SELECT Marginal Ordinary Income Tax Rate FROM table WHERE Head of Household = $372,951+
|
Translate the following into a SQL query
|
What is the point average for the game that has FGM-FGA of 11-28 and a number smaller than 7?
|
SELECT AVG Points FROM table WHERE FGM - FGA = 11-28 AND Number < 7
|
Translate the following into a SQL query
|
What is the lowest number of floors recorded for buildings built by Dubai Marriott Harbour Hotel & Suites?
|
SELECT MIN Floors FROM table WHERE Name = dubai marriott harbour hotel & suites
|
Translate the following into a SQL query
|
What is the name of the building housing more than 101 floors, that was built after 2006?
|
SELECT Name FROM table WHERE Year > 2006 AND Floors > 101
|
Translate the following into a SQL query
|
Which team played against the away team that scored 5.5 (35)?
|
SELECT Home team FROM table WHERE Away team score = 5.5 (35)
|
Translate the following into a SQL query
|
What was the crowd size on 4 july 1981, and a Away team of essendon?
|
SELECT Crowd FROM table WHERE Date = 4 july 1981 AND Away team = essendon
|
Translate the following into a SQL query
|
When did essendon play away?
|
SELECT Date FROM table WHERE Away team = essendon
|
Translate the following into a SQL query
|
Which category won the Sundance Film Festival award in 1998?
|
SELECT Category FROM table WHERE Result = won AND Year = 1998 AND Award = sundance film festival
|
Translate the following into a SQL query
|
Which award category was the film series The Wire nominated for after 2005?
|
SELECT Category FROM table WHERE Result = nominated AND Film or series = the wire AND Year > 2005
|
Translate the following into a SQL query
|
What was the result for the nominee for Outstanding Supporting Actress in a Drama Series in 2009?
|
SELECT Result FROM table WHERE Category = outstanding supporting actress in a drama series AND Year = 2009
|
Translate the following into a SQL query
|
When the home team scored 11.13 (79), what away team were they playing?
|
SELECT Away team FROM table WHERE Home team score = 11.13 (79)
|
Translate the following into a SQL query
|
When st kilda played as the away team, what date was that?
|
SELECT Date FROM table WHERE Away team = st kilda
|
Translate the following into a SQL query
|
What was the crowd total on the day the home team scored 12.12 (84)?
|
SELECT SUM Crowd FROM table WHERE Home team score = 12.12 (84)
|
Translate the following into a SQL query
|
On what date did Fitzroy play as the home team?
|
SELECT Date FROM table WHERE Home team = fitzroy
|
Translate the following into a SQL query
|
What date did the home team score 12.12 (84)?
|
SELECT Date FROM table WHERE Home team score = 12.12 (84)
|
Translate the following into a SQL query
|
How many points did the away team score in the game that the home team scored 14.25 (109)?
|
SELECT Away team score FROM table WHERE Home team score = 14.25 (109)
|
Translate the following into a SQL query
|
What is the sum of crowds that saw hawthorn at home?
|
SELECT SUM Crowd FROM table WHERE Home team = hawthorn
|
Translate the following into a SQL query
|
What away side scores 10.17 (77)?
|
SELECT Away team FROM table WHERE Away team score = 10.17 (77)
|
Translate the following into a SQL query
|
Who is the home side when the away side scores 10.17 (77)?
|
SELECT Home team FROM table WHERE Away team score = 10.17 (77)
|
Translate the following into a SQL query
|
Name the antonio thomas for Hikaru Sato of tanaka (8:09)
|
SELECT Antonio Thomas FROM table WHERE Hikaru Sato = tanaka (8:09)
|
Translate the following into a SQL query
|
Tell me the block A for antonio thomas of kondo (13:24)
|
SELECT Block A FROM table WHERE Antonio Thomas = kondo (13:24)
|
Translate the following into a SQL query
|
Name the minoru that has a hikaru sato of x and super crazy of yang (8:36)
|
SELECT Minoru FROM table WHERE Hikaru Sato = x AND Super Crazy = yang (8:36)
|
Translate the following into a SQL query
|
Atlanta was a visitor on December 8, what was their record?
|
SELECT Record FROM table WHERE Visitor = atlanta
|
Translate the following into a SQL query
|
Tell me the team which has matches of 13
|
SELECT Team FROM table WHERE Matches = 13
|
Translate the following into a SQL query
|
Tell me the sum of win % for drawn being larger than 35
|
SELECT SUM Win % FROM table WHERE Drawn > 35
|
Translate the following into a SQL query
|
Name the most win % for 13 drawn
|
SELECT MAX Win % FROM table WHERE Drawn = 13
|
Translate the following into a SQL query
|
Name the sum of drawn for 30 october 2006 and win % more than 43.2
|
SELECT SUM Drawn FROM table WHERE From = 30 october 2006 AND Win % > 43.2
|
Translate the following into a SQL query
|
Name the win % average from 22 april 2000 for drawn more than 1
|
SELECT AVG Win % FROM table WHERE From = 22 april 2000 AND Drawn > 1
|
Translate the following into a SQL query
|
Name the average lost for matches of 6
|
SELECT AVG Lost FROM table WHERE Matches = 6
|
Translate the following into a SQL query
|
What was the time recorded for grid 18?
|
SELECT Time/Retired FROM table WHERE Grid = 18
|
Translate the following into a SQL query
|
What catalogue has a track less than 16 and 2/3/56 recorded with a song titled Lawdy Miss Clawdy?
|
SELECT Catalogue FROM table WHERE Track < 16 AND Recorded = 2/3/56 AND Song Title = lawdy miss clawdy
|
Translate the following into a SQL query
|
What is the highest track for the song Rip it Up?
|
SELECT MAX Track FROM table WHERE Song Title = rip it up
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.