instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
How many sacks for the player with over 1 tackle, under 3 assisted tackles, and over 0 yards?
|
SELECT COUNT Sack FROM table WHERE Tackles > 1 AND Assisted < 3 AND Yards > 0
|
Translate the following into a SQL query
|
What stamp design has a denomination of $1.18?
|
SELECT Design FROM table WHERE Denomination = $1.18
|
Translate the following into a SQL query
|
What is the denomination for the stamp issued 8 January 2009?
|
SELECT Denomination FROM table WHERE Date of Issue = 8 january 2009
|
Translate the following into a SQL query
|
What date was the John Belisle, Kosta Tsetsekas stamp issued?
|
SELECT Date of Issue FROM table WHERE Design = john belisle, kosta tsetsekas
|
Translate the following into a SQL query
|
What is the first day cover cancellation for the Karen Smith Design stamp?
|
SELECT First Day Cover Cancellation FROM table WHERE Design = karen smith design
|
Translate the following into a SQL query
|
What is the date of Competition of 2008 africa cup of nations?
|
SELECT Date FROM table WHERE Competition = 2008 africa cup of nations
|
Translate the following into a SQL query
|
What is the score on 22 january 2008?
|
SELECT Score FROM table WHERE Date = 22 january 2008
|
Translate the following into a SQL query
|
Which venue was used 22 january 2008?
|
SELECT Venue FROM table WHERE Date = 22 january 2008
|
Translate the following into a SQL query
|
What result has a Score of 1–0, and a Competition of 2014 fifa world cup qualification?
|
SELECT Result FROM table WHERE Score = 1–0 AND Competition = 2014 fifa world cup qualification
|
Translate the following into a SQL query
|
What date was the Competition of 2014 fifa world cup qualification, with a Score of 1–0?
|
SELECT Date FROM table WHERE Competition = 2014 fifa world cup qualification AND Score = 1–0
|
Translate the following into a SQL query
|
what is the object type when the right ascension (j2000) is 11h10m42.8s?
|
SELECT Object type FROM table WHERE Right ascension ( J2000 ) = 11h10m42.8s
|
Translate the following into a SQL query
|
what is the declination (j2000) when the ngc number is higher than 3593?
|
SELECT Declination ( J2000 ) FROM table WHERE NGC number > 3593
|
Translate the following into a SQL query
|
what is the constellation when the object type is spiral galaxy, the ngc number is less than 3593 and the right ascension (j2000) is 11h05m48.9s?
|
SELECT Constellation FROM table WHERE Object type = spiral galaxy AND NGC number < 3593 AND Right ascension ( J2000 ) = 11h05m48.9s
|
Translate the following into a SQL query
|
what is the right ascension (j2000) when the ngc number is 3576?
|
SELECT Right ascension ( J2000 ) FROM table WHERE NGC number = 3576
|
Translate the following into a SQL query
|
Who is the driver when the grid is 18?
|
SELECT Driver FROM table WHERE Grid = 18
|
Translate the following into a SQL query
|
What is the time/retired when the grid is 19?
|
SELECT Time/Retired FROM table WHERE Grid = 19
|
Translate the following into a SQL query
|
What was St Kilda's home team opponents score?
|
SELECT Home team score FROM table WHERE Away team = st kilda
|
Translate the following into a SQL query
|
What was the home team score at Carlton's away match?
|
SELECT Home team score FROM table WHERE Away team = carlton
|
Translate the following into a SQL query
|
When did Hawthorn play at home?
|
SELECT Date FROM table WHERE Home team = hawthorn
|
Translate the following into a SQL query
|
How many people were in attendance at St Kilda's away match?
|
SELECT Crowd FROM table WHERE Away team = st kilda
|
Translate the following into a SQL query
|
Where did the home team score 8.9 (57)?
|
SELECT Venue FROM table WHERE Home team score = 8.9 (57)
|
Translate the following into a SQL query
|
When did the away team score 7.16 (58)?
|
SELECT Date FROM table WHERE Away team score = 7.16 (58)
|
Translate the following into a SQL query
|
What is the date of the British Rail class 111 tslrb description?
|
SELECT Date FROM table WHERE Description = british rail class 111 tslrb
|
Translate the following into a SQL query
|
What is the number & name with an Undergoing overhaul, restoration or repairs date?
|
SELECT Number & Name FROM table WHERE Date = undergoing overhaul, restoration or repairs
|
Translate the following into a SQL query
|
What is the number & name of the livery in 1958?
|
SELECT Number & Name FROM table WHERE Date = 1958
|
Translate the following into a SQL query
|
What is the lowest rank for a nation with 29 total medals, over 5 silvers, and under 16 bronze?
|
SELECT MIN Rank FROM table WHERE Silver > 5 AND Total = 29 AND Bronze < 16
|
Translate the following into a SQL query
|
What is the highest rank for a nation with 26 golds and over 17 silvers?
|
SELECT MAX Rank FROM table WHERE Gold = 26 AND Silver > 17
|
Translate the following into a SQL query
|
What is the catalog number with the date November 16, 2004?
|
SELECT Catalog FROM table WHERE Date = november 16, 2004
|
Translate the following into a SQL query
|
What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482?
|
SELECT Date FROM table WHERE Label = sony bmg, epic AND Catalog = 5187482
|
Translate the following into a SQL query
|
Which Catalog has a Region of Canada and a Format of cd/dvd?
|
SELECT Catalog FROM table WHERE Region = canada AND Format = cd/dvd
|
Translate the following into a SQL query
|
What is the date for a CD format with a Region of Europe?
|
SELECT Date FROM table WHERE Region = europe AND Format = cd
|
Translate the following into a SQL query
|
What nationality is the la salle team?
|
SELECT Nationality FROM table WHERE School/Club Team = la salle
|
Translate the following into a SQL query
|
What's the nationality of jim les?
|
SELECT Nationality FROM table WHERE Player = jim les
|
Translate the following into a SQL query
|
Which player has a nationality of spain?
|
SELECT Player FROM table WHERE Nationality = spain
|
Translate the following into a SQL query
|
What position is listed for the nebraska team?
|
SELECT Position FROM table WHERE School/Club Team = nebraska
|
Translate the following into a SQL query
|
On October 24, who played at home when there was a decision of Ward?
|
SELECT Home FROM table WHERE Decision = ward AND Date = october 24
|
Translate the following into a SQL query
|
How many laps are there for grid 8?
|
SELECT Laps FROM table WHERE Grid = 8
|
Translate the following into a SQL query
|
What is the driver for Grid 8?
|
SELECT Driver FROM table WHERE Grid = 8
|
Translate the following into a SQL query
|
What is the average grid for Clay Regazzoni?
|
SELECT AVG Grid FROM table WHERE Driver = clay regazzoni
|
Translate the following into a SQL query
|
What is the average laps for the grid smaller than 21 for Renzo Zorzi?
|
SELECT AVG Laps FROM table WHERE Grid < 21 AND Driver = renzo zorzi
|
Translate the following into a SQL query
|
What is the average laps for Grid 9?
|
SELECT AVG Laps FROM table WHERE Grid = 9
|
Translate the following into a SQL query
|
Name the constituted for labor and scullin ministry
|
SELECT Constituted FROM table WHERE Party = labor AND Name = scullin ministry
|
Translate the following into a SQL query
|
What location is the tournament with a 1st Prize larger than $202,500, and a Score of 274 (-14)?
|
SELECT Location FROM table WHERE 1st Prize( $ ) > 202,500 AND Score = 274 (-14)
|
Translate the following into a SQL query
|
Who was South Melbourne's away team opponents?
|
SELECT Away team FROM table WHERE Home team = south melbourne
|
Translate the following into a SQL query
|
Who was the leading scorer on November 2, 2007?
|
SELECT Leading scorer FROM table WHERE Date = november 2, 2007
|
Translate the following into a SQL query
|
What was the attendance when the Hawks played?
|
SELECT COUNT Attendance FROM table WHERE Home = hawks
|
Translate the following into a SQL query
|
How many bronzes are there for the total nation with 112 silver and a total of 72?
|
SELECT AVG Bronze FROM table WHERE Total > 72 AND Nation = total AND Silver < 112
|
Translate the following into a SQL query
|
What is the highest bronze for San Marino with less than 82 total and less than 3 golds?
|
SELECT MAX Bronze FROM table WHERE Total < 82 AND Nation = san marino AND Gold < 3
|
Translate the following into a SQL query
|
How many golds were there when there was more than 11 bronze and 29 in total?
|
SELECT COUNT Gold FROM table WHERE Bronze > 11 AND Total = 29
|
Translate the following into a SQL query
|
What was Montenegro's average bronze with less than 7 silver and more than 4 golds?
|
SELECT AVG Bronze FROM table WHERE Silver < 7 AND Nation = montenegro AND Gold > 4
|
Translate the following into a SQL query
|
How many golds were there for Iceland with more than 15 silver?
|
SELECT COUNT Gold FROM table WHERE Silver > 15 AND Nation = iceland
|
Translate the following into a SQL query
|
What was Andorra's total with less than 10 silver and more than 5 bronze?
|
SELECT SUM Total FROM table WHERE Silver < 10 AND Nation = andorra AND Bronze > 5
|
Translate the following into a SQL query
|
What is the roll number of Poroti school, which has a 6 decile?
|
SELECT Roll FROM table WHERE Decile = 6 AND Name = poroti school
|
Translate the following into a SQL query
|
What is the roll number of the school with a state authority in Waiotira?
|
SELECT Roll FROM table WHERE Authority = state AND Area = waiotira
|
Translate the following into a SQL query
|
What is the area of the school with a decile of 2 and a roll number 222?
|
SELECT Area FROM table WHERE Decile = 2 AND Roll = 222
|
Translate the following into a SQL query
|
WHat is the decile of the school in Purua?
|
SELECT Decile FROM table WHERE Area = purua
|
Translate the following into a SQL query
|
what is the away team score when the home team is essendon?
|
SELECT Away team score FROM table WHERE Home team = essendon
|
Translate the following into a SQL query
|
what is the venue when the crowd is more than 11,131 and the home team is essendon?
|
SELECT Venue FROM table WHERE Crowd > 11,131 AND Home team = essendon
|
Translate the following into a SQL query
|
How many total ties had less than 1183 total games, 121 years, and more than 541 losses?
|
SELECT COUNT Tied FROM table WHERE Total Games < 1183 AND Years = 121 AND Lost > 541
|
Translate the following into a SQL query
|
How many losses had more than 122 years and more than 1244 total games?
|
SELECT SUM Lost FROM table WHERE Years > 122 AND Total Games > 1244
|
Translate the following into a SQL query
|
What is the lowest earnings for a player with over 24 wins?
|
SELECT MIN Earnings( $ ) FROM table WHERE Wins > 24
|
Translate the following into a SQL query
|
Who has the most wins from new zealand with over $1,910,413?
|
SELECT MAX Wins FROM table WHERE Country = new zealand AND Earnings( $ ) > 1,910,413
|
Translate the following into a SQL query
|
Which constructor has Chuck Weyant as a driver, 45 laps, and a qual of less than 142.29?
|
SELECT Constructor FROM table WHERE Laps = 45 AND Qual < 142.29 AND Driver = chuck weyant
|
Translate the following into a SQL query
|
Which time/retired has a qual of 144.02?
|
SELECT Time/Retired FROM table WHERE Qual = 144.02
|
Translate the following into a SQL query
|
Which rounds did Vic Elford with a Ford cosworth dfv 3.0 v8 engine have?
|
SELECT Rounds FROM table WHERE Driver = vic elford AND Engine = ford cosworth dfv 3.0 v8
|
Translate the following into a SQL query
|
What is the chassis for Bruce Mclaren with all rounds and a g tyre?
|
SELECT Chassis FROM table WHERE Rounds = all AND Tyre = g AND Driver = bruce mclaren
|
Translate the following into a SQL query
|
What is the NHL team that has a team (League) of Mississauga Icedogs (ohl)?
|
SELECT NHL team FROM table WHERE College/Junior/Club team (League) = mississauga icedogs (ohl)
|
Translate the following into a SQL query
|
Im the match where the home team is Melbourne Victory, what was the crowd attendance?
|
SELECT COUNT Crowd FROM table WHERE Home Team = melbourne victory
|
Translate the following into a SQL query
|
What was the score of the match that took place in the playoff round?
|
SELECT Score FROM table WHERE Round = playoff
|
Translate the following into a SQL query
|
In the match where newcastle jets was the away team, what was the crown attendance?
|
SELECT Crowd FROM table WHERE Away Team = newcastle jets
|
Translate the following into a SQL query
|
What team was the opponent on 1990-10-21?
|
SELECT Opponent FROM table WHERE Date = 1990-10-21
|
Translate the following into a SQL query
|
What was the competition earlier than 1987?
|
SELECT Competition FROM table WHERE Year < 1987
|
Translate the following into a SQL query
|
What event placed bronze earlier than 1987?
|
SELECT Event FROM table WHERE Placed = bronze AND Year < 1987
|
Translate the following into a SQL query
|
What was the score for the match on November 13, 2005?
|
SELECT Score FROM table WHERE Date = november 13, 2005
|
Translate the following into a SQL query
|
What tournament took place on July 17, 2005, with a clay surface?
|
SELECT Tournament FROM table WHERE Surface = clay AND Date = july 17, 2005
|
Translate the following into a SQL query
|
What is the highest Grid with over 72 laps?
|
SELECT MAX Grid FROM table WHERE Laps > 72
|
Translate the following into a SQL query
|
What is the average number of laps associated with a Time/Retired of +1:14.801?
|
SELECT AVG Laps FROM table WHERE Time/Retired = +1:14.801
|
Translate the following into a SQL query
|
What date is the circuit at wanneroo park?
|
SELECT Date FROM table WHERE Circuit = wanneroo park
|
Translate the following into a SQL query
|
What team has a title of calder?
|
SELECT Team FROM table WHERE Race Title = calder
|
Translate the following into a SQL query
|
Tell me the Laps for time/retired of +1:08.491
|
SELECT Laps FROM table WHERE Time/Retired = +1:08.491
|
Translate the following into a SQL query
|
Tell me the highest laps for toyota and grid of 13
|
SELECT MAX Laps FROM table WHERE Constructor = toyota AND Grid = 13
|
Translate the following into a SQL query
|
I want the Driver with Laps of 20
|
SELECT Driver FROM table WHERE Laps = 20
|
Translate the following into a SQL query
|
Tell me the sum of Grid for giancarlo fisichella
|
SELECT SUM Grid FROM table WHERE Driver = giancarlo fisichella
|
Translate the following into a SQL query
|
What date was the venue at VFL park?
|
SELECT Date FROM table WHERE Venue = vfl park
|
Translate the following into a SQL query
|
What was the crowd attendance when the home team was Melbourne?
|
SELECT COUNT Crowd FROM table WHERE Home team = melbourne
|
Translate the following into a SQL query
|
What was the crowd attendance when the home team scored 13.17 (95)?
|
SELECT SUM Crowd FROM table WHERE Home team score = 13.17 (95)
|
Translate the following into a SQL query
|
What was the away team's score when the home team scored 15.16 (106)?
|
SELECT Away team score FROM table WHERE Home team score = 15.16 (106)
|
Translate the following into a SQL query
|
What was the away team when the venue was Lake Oval?
|
SELECT Away team FROM table WHERE Venue = lake oval
|
Translate the following into a SQL query
|
What was the away team when the home team was Carlton?
|
SELECT Away team FROM table WHERE Home team = carlton
|
Translate the following into a SQL query
|
What player is picked 302 in round 11?
|
SELECT Player FROM table WHERE Round = 11 AND Pick = 302
|
Translate the following into a SQL query
|
What is the biggest purse with a 1st prize of $26,000?
|
SELECT MAX Purse( $ ) FROM table WHERE 1st Prize( $ ) = 26,000
|
Translate the following into a SQL query
|
How many laps did Jackie Oliver do?
|
SELECT Laps FROM table WHERE Driver = jackie oliver
|
Translate the following into a SQL query
|
How many laps with a grid larger than 7 did a Lotus - Ford do with a Time/Retired of + 2 laps?
|
SELECT SUM Laps FROM table WHERE Grid > 7 AND Constructor = lotus - ford AND Time/Retired = + 2 laps
|
Translate the following into a SQL query
|
What is the name of the constellation that has a NGC number smaller tha 5457?
|
SELECT Constellation FROM table WHERE NGC number < 5457
|
Translate the following into a SQL query
|
What is the Apparent magnitude of a Declination (J2000) of °39′45″?
|
SELECT MIN Apparent magnitude FROM table WHERE Declination ( J2000 ) = °39′45″
|
Translate the following into a SQL query
|
Which supercharger gear ratio has a Octane rating of 68?
|
SELECT Supercharger gear ratio FROM table WHERE Octane rating = 68
|
Translate the following into a SQL query
|
What is the elite eight result for the big west?
|
SELECT Elite Eight FROM table WHERE Conference = big west
|
Translate the following into a SQL query
|
What is the vote percentage when the number is more than 241,306 appointed on July 10, 2007?
|
SELECT Votes % FROM table WHERE Votes # > 241,306 AND Appointed = july 10, 2007
|
Translate the following into a SQL query
|
What is the vote % for Cliff Breitkreuz?
|
SELECT Votes % FROM table WHERE Candidate = cliff breitkreuz
|
Translate the following into a SQL query
|
What is the time/retired for damon hill?
|
SELECT Time/Retired FROM table WHERE Driver = damon hill
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.