instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
On what date was the record 8–6–3?
SELECT Date FROM table WHERE Record = 8–6–3
Translate the following into a SQL query
What was the score when Pittsburgh was the visitor?
SELECT Score FROM table WHERE Visitor = pittsburgh
Translate the following into a SQL query
On what date were the NY Rangers home?
SELECT Date FROM table WHERE Home = ny rangers
Translate the following into a SQL query
Which visitor had a record of 7–5–3?
SELECT Visitor FROM table WHERE Record = 7–5–3
Translate the following into a SQL query
Who was home when Detroit was visiting with a score of 4 – 1?
SELECT Home FROM table WHERE Visitor = detroit AND Score = 4 – 1
Translate the following into a SQL query
What is the earliest date with Great Expectations label with LP format?
SELECT MIN Date FROM table WHERE Label = great expectations AND Format = lp
Translate the following into a SQL query
What format was used for Mobil 1?
SELECT Format FROM table WHERE Catalog = mobil 1
Translate the following into a SQL query
what team won the friendly match
SELECT Result FROM table WHERE Competition = friendly match
Translate the following into a SQL query
Which Runner-up has a Last win smaller than 1998, and Wins of 1, and a Rank larger than 13?
SELECT COUNT Runner-up FROM table WHERE Last win < 1998 AND Wins = 1 AND Rank > 13
Translate the following into a SQL query
How many Last wins have a Club of mansfield town, and Wins smaller than 1?
SELECT COUNT Last win FROM table WHERE Club = mansfield town AND Wins < 1
Translate the following into a SQL query
Which Driver has a Date of 16th september 1951, and a Race of dns?
SELECT Driver FROM table WHERE Date = 16th september 1951 AND Race = dns
Translate the following into a SQL query
At which race did reg parnell win the goodwood trophy?
SELECT Race FROM table WHERE Event = goodwood trophy AND Driver = reg parnell
Translate the following into a SQL query
Which Race has a Date of 31st may 1953, and an Event of grand prix de l'albigeois final?
SELECT Race FROM table WHERE Date = 31st may 1953 AND Event = grand prix de l'albigeois final
Translate the following into a SQL query
What's the highest rank of a PVG/ZSPD Code (IATA/ICAO) airport with a total cargo less than 2,543,394 metric tonnes?
SELECT MAX Rank FROM table WHERE Code (IATA/ICAO) = pvg/zspd AND Total Cargo (Metric Tonnes) < 2,543,394
Translate the following into a SQL query
What's the average total cargo in metric tonnes that has an 11.8% Change?
SELECT AVG Total Cargo (Metric Tonnes) FROM table WHERE % Change = 11.8%
Translate the following into a SQL query
What is the highest rank of Tokyo International Airport?
SELECT MAX Rank FROM table WHERE Airport = tokyo international airport
Translate the following into a SQL query
Where the games are smaller than 5 and the points are 6, what is the average lost?
SELECT AVG Lost FROM table WHERE Points = 6 AND Games < 5
Translate the following into a SQL query
with build 5/69-6/69 what's the order?
SELECT SUM Order FROM table WHERE Built = 5/69-6/69
Translate the following into a SQL query
Which Outcome has a Score of 6–2, 6–2?
SELECT Outcome FROM table WHERE Score = 6–2, 6–2
Translate the following into a SQL query
Which Date has an Outcome of winner, and a Score of 7–5, 6–4?
SELECT Date FROM table WHERE Outcome = winner AND Score = 7–5, 6–4
Translate the following into a SQL query
Which Tournament has an Outcome of winner, and a Surface of clay, and a Score of 6–4, 6–1?
SELECT Tournament FROM table WHERE Outcome = winner AND Surface = clay AND Score = 6–4, 6–1
Translate the following into a SQL query
What was the outcome in mari andersson's tournament?
SELECT Outcome FROM table WHERE Opponent = mari andersson
Translate the following into a SQL query
What's the loss of the game with the opponent of the Nationals with a score of 7-1?
SELECT Loss FROM table WHERE Opponent = nationals AND Score = 7-1
Translate the following into a SQL query
Which opponent has a record of 70-52?
SELECT Opponent FROM table WHERE Record = 70-52
Translate the following into a SQL query
What is the attendance of the game that has the opponent of The Nationals with a record of 68-51?
SELECT SUM Attendance FROM table WHERE Opponent = nationals AND Record = 68-51
Translate the following into a SQL query
What's the attendance of the game with a score of 5-4?
SELECT Attendance FROM table WHERE Score = 5-4
Translate the following into a SQL query
Who's the opponent of the game with the record 64-51?
SELECT Opponent FROM table WHERE Record = 64-51
Translate the following into a SQL query
Who were the opponents in games before number 54?
SELECT Opponent FROM table WHERE Game < 54
Translate the following into a SQL query
what was the score of bert yancey
SELECT Score FROM table WHERE Player = bert yancey
Translate the following into a SQL query
What is the Length/Fuel of the bus with a Quantity of 30?
SELECT Length/Fuel FROM table WHERE Quantity = 30
Translate the following into a SQL query
What is the Length/Fuel of the bus built between 2000-2003 with a high Floor Styling?
SELECT Length/Fuel FROM table WHERE Floor Styling = high AND Year Built = 2000-2003
Translate the following into a SQL query
In what Venue was the game with a Friendly Competition and 1 Goal played?
SELECT Venue FROM table WHERE Competition = friendly AND Goal = 1
Translate the following into a SQL query
What is the amount of money that a +5 to par with a score of 76-69-70-70=285?
SELECT COUNT Money ( $ ) FROM table WHERE To par = +5 AND Score = 76-69-70-70=285
Translate the following into a SQL query
What is the name of the player with a 71-69-71-69=280 score?
SELECT Player FROM table WHERE Score = 71-69-71-69=280
Translate the following into a SQL query
Which average Game # has a Home of san jose, and Points smaller than 71?
SELECT AVG Game # FROM table WHERE Home = san jose AND Points < 71
Translate the following into a SQL query
Which Home has a Game # of 59?
SELECT Home FROM table WHERE Game # = 59
Translate the following into a SQL query
Which Visitor has a Game # larger than 62, and a Date of february 25?
SELECT Visitor FROM table WHERE Game # > 62 AND Date = february 25
Translate the following into a SQL query
with delivery date of 2001 2001 what is the owns?
SELECT Owns FROM table WHERE Delivery Date = 2001 2001
Translate the following into a SQL query
with delivery date of 2001 2001 what is gross tonnage?
SELECT AVG Gross Tonnage FROM table WHERE Delivery Date = 2001 2001
Translate the following into a SQL query
with delivery date 1997 1997 what is the owns?
SELECT Owns FROM table WHERE Delivery Date = 1997 1997
Translate the following into a SQL query
Which conference does the school from Gainesville, Florida, play in?
SELECT Present Conference FROM table WHERE Location = gainesville, florida
Translate the following into a SQL query
What is the number of enrollments for teams named the Buccaneers founded before 1911?
SELECT COUNT Enrollment FROM table WHERE Nickname = buccaneers AND Founded < 1911
Translate the following into a SQL query
What is the highest chart number for the song Yardbirds aka Roger the Engineer?
SELECT MAX Chart no. FROM table WHERE Title = yardbirds aka roger the engineer
Translate the following into a SQL query
What is the average chart number for 11/1965?
SELECT AVG Chart no. FROM table WHERE Date = 11/1965
Translate the following into a SQL query
What is origin country for a title that charted at 52?
SELECT Origin FROM table WHERE Chart no. = 52
Translate the following into a SQL query
What is the Record of the Game after 40 with New York Rangers as Opponent?
SELECT Record FROM table WHERE Game > 40 AND Opponent = new york rangers
Translate the following into a SQL query
When did Adam Thompson play in the final?
SELECT Date FROM table WHERE Opponent in the final = adam thompson
Translate the following into a SQL query
When was the Lagos tournament?
SELECT Date FROM table WHERE Tournament = lagos
Translate the following into a SQL query
What was the score against the phillies on may 24?
SELECT Score FROM table WHERE Opponent = phillies AND Date = may 24
Translate the following into a SQL query
Opponent of new england patriots had what attendance?
SELECT Attendance FROM table WHERE Opponent = new england patriots
Translate the following into a SQL query
Attendance of 55,340 had what opponent?
SELECT Opponent FROM table WHERE Attendance = 55,340
Translate the following into a SQL query
Week smaller than 4, and a Game Site of rca dome, and a Opponent of new england patriots involves what date?
SELECT Date FROM table WHERE Week < 4 AND Game Site = rca dome AND Opponent = new england patriots
Translate the following into a SQL query
Record of 0–8 had what result?
SELECT Result FROM table WHERE Record = 0–8
Translate the following into a SQL query
Record of 0–8 had what lowest week?
SELECT MIN Week FROM table WHERE Record = 0–8
Translate the following into a SQL query
What was the score when the visitor was pittsburgh?
SELECT Score FROM table WHERE Visitor = pittsburgh
Translate the following into a SQL query
What was the decision on November 26?
SELECT Decision FROM table WHERE Date = november 26
Translate the following into a SQL query
What is the BW 2013 ranking of Washington, D.C., which has an ARWU 2012 ranking greater than 51?
SELECT BW 2013 FROM table WHERE ARWU 2012 > 51 AND Location (State, City) = washington, d.c.
Translate the following into a SQL query
What is the USN 2013 ranking with a BW 2013 ranking less than 1000, a Forbes 2011 ranking larger than 17, and a CNN 2011 ranking less than 13?
SELECT SUM USN 2013 FROM table WHERE BW 2013 < 1000 AND Forbes 2011 > 17 AND CNN 2011 < 13
Translate the following into a SQL query
What is the average AE 2011 ranking with a Forbes 2011 ranking of 24 and a FT 2011 ranking less than 44?
SELECT AVG AE 2011 FROM table WHERE Forbes 2011 = 24 AND FT 2011 < 44
Translate the following into a SQL query
What is the average ARWU 2012 ranking of Illinois, Champaign, which has a USN 2013 ranking less than 91 and an EC 2013 ranking larger than 1000?
SELECT AVG ARWU 2012 FROM table WHERE USN 2013 < 91 AND Location (State, City) = illinois, champaign AND Ec 2013 > 1000
Translate the following into a SQL query
What is the average BW 2013 ranking of Texas, Fort Worth, which has an AE 2011 ranking of 1000 and an FT 2011 ranking less than 1000?
SELECT AVG BW 2013 FROM table WHERE AE 2011 = 1000 AND Location (State, City) = texas, fort worth AND FT 2011 < 1000
Translate the following into a SQL query
Who did they play at lincoln financial field at 8:30 (ET) after week 14?
SELECT Opponent FROM table WHERE Week > 14 AND Game Site = lincoln financial field AND Time (ET) = 8:30
Translate the following into a SQL query
What is the density for the area that is larger than 4,015.6 and a population smaller than 6,178?
SELECT COUNT Density (km 2 ) FROM table WHERE Area (km 2 ) > 4,015.6 AND 2002 population < 6,178
Translate the following into a SQL query
What is the density that has an area smaller than 2,200.2 and a population larger than 2,599?
SELECT COUNT Density (km 2 ) FROM table WHERE Area (km 2 ) < 2,200.2 AND 2002 population > 2,599
Translate the following into a SQL query
What is the average rank for nations with fewer than 0 gold medals?
SELECT AVG Rank FROM table WHERE Gold < 0
Translate the following into a SQL query
What is the total number of bronze medals with more than 1 medal total and fewer than 1 silver medal?
SELECT COUNT Bronze FROM table WHERE Total > 1 AND Silver < 1
Translate the following into a SQL query
What is the highest rank of a nation with fewer than 0 silver medals?
SELECT MAX Rank FROM table WHERE Silver < 0
Translate the following into a SQL query
Which Bats have a First of josh, and Throws of r, and a Surname of cakebread?
SELECT Bats FROM table WHERE First = josh AND Throws = r AND Surname = cakebread
Translate the following into a SQL query
Which DOB has Throws of r, and a Position of c, and a First of torey?
SELECT D.O.B. FROM table WHERE Throws = r AND Position = c AND First = torey
Translate the following into a SQL query
Which DOB has a Surname of cresswell?
SELECT D.O.B. FROM table WHERE Surname = cresswell
Translate the following into a SQL query
Which DOB has Bats of r, and Throws of r, and a Position of rhp, and a First of john?
SELECT D.O.B. FROM table WHERE Bats = r AND Throws = r AND Position = rhp AND First = john
Translate the following into a SQL query
Which Position did Ruzic play?
SELECT Position FROM table WHERE Surname = ruzic
Translate the following into a SQL query
How many throws did Torey have?
SELECT Throws FROM table WHERE First = torey
Translate the following into a SQL query
Which Ties is the highest one that has Losses smaller than 9, and Starts of 26, and Wins smaller than 21?
SELECT MAX Ties FROM table WHERE Losses < 9 AND Starts = 26 AND Wins < 21
Translate the following into a SQL query
Which Win % has a Name of tony rice, and Wins smaller than 28?
SELECT COUNT Win % FROM table WHERE Name = tony rice AND Wins < 28
Translate the following into a SQL query
Which Wins have a Win % smaller than 0.8270000000000001, and a Name of rick mirer, and Ties smaller than 1?
SELECT SUM Wins FROM table WHERE Win % < 0.8270000000000001 AND Name = rick mirer AND Ties < 1
Translate the following into a SQL query
How many Losses have a Name of blair kiel?
SELECT COUNT Losses FROM table WHERE Name = blair kiel
Translate the following into a SQL query
Which Losses have a Name of jimmy clausen?
SELECT AVG Losses FROM table WHERE Name = jimmy clausen
Translate the following into a SQL query
what is the number of attendance on june 24
SELECT COUNT Attendance FROM table WHERE Date = june 24
Translate the following into a SQL query
Attendance larger than 17,001, and a Date of june 15 had what decision?
SELECT Decision FROM table WHERE Attendance > 17,001 AND Date = june 15
Translate the following into a SQL query
Home of dallas happened on what date?
SELECT Date FROM table WHERE Home = dallas
Translate the following into a SQL query
Home of buffalo happened on what date?
SELECT Date FROM table WHERE Home = buffalo
Translate the following into a SQL query
Visitor of dallas, and a Date of june 12 had what highest attendance?
SELECT MAX Attendance FROM table WHERE Visitor = dallas AND Date = june 12
Translate the following into a SQL query
On which date was the position less than 4 at Piraeus?
SELECT Date FROM table WHERE Pos. < 4 AND Venue = piraeus
Translate the following into a SQL query
Which team had 64 laps and 13 points?
SELECT Team FROM table WHERE Laps = 64 AND Points = 13
Translate the following into a SQL query
How many laps did the team with a time/retired of +1.906 have?
SELECT COUNT Laps FROM table WHERE Time/Retired = +1.906
Translate the following into a SQL query
What is the time/retired of the team with a grid of 14?
SELECT Time/Retired FROM table WHERE Grid = 14
Translate the following into a SQL query
What is the lowest grid of pkv racing, which had 13 points and less than 64 laps?
SELECT MIN Grid FROM table WHERE Team = pkv racing AND Points = 13 AND Laps < 64
Translate the following into a SQL query
What is the total grid of the team with a time/retired of +7.346?
SELECT COUNT Grid FROM table WHERE Time/Retired = +7.346
Translate the following into a SQL query
What is the grid of pkv racing with the driver oriol serviΓ ?
SELECT SUM Grid FROM table WHERE Team = pkv racing AND Driver = oriol serviΓ 
Translate the following into a SQL query
When Cancelable of yes, bubble of yes and a Category of keyboard, what was the Attribute?
SELECT Attribute FROM table WHERE Cancelable = yes AND Bubbles = yes AND Category = keyboard
Translate the following into a SQL query
When Bubbles of no, and a Category of miscellaneous, and a Type of propertychange, what was the Cancelable?
SELECT Cancelable FROM table WHERE Bubbles = no AND Category = miscellaneous AND Type = propertychange
Translate the following into a SQL query
When Type was rowexit what was the Category?
SELECT Category FROM table WHERE Type = rowexit
Translate the following into a SQL query
When Cancelable of yes, and a Type of drag, what was the Category?
SELECT Category FROM table WHERE Cancelable = yes AND Type = drag
Translate the following into a SQL query
When Event has Bubbles of yes, Cancelable of yes, Category of mouse, and a Type of contextmenu what is the Attribute?
SELECT Attribute FROM table WHERE Bubbles = yes AND Cancelable = yes AND Category = mouse AND Type = contextmenu
Translate the following into a SQL query
Let's say Type is of datasetcomplete, what is the Attribute?
SELECT Attribute FROM table WHERE Type = datasetcomplete
Translate the following into a SQL query
What is the name of the parish that has a former local authority of St Neots urban district?
SELECT Name FROM table WHERE Former local authority = st neots urban district
Translate the following into a SQL query
What district is the parish who had the South Cambridgeshire rural district as the former local authority?
SELECT District FROM table WHERE Former local authority = south cambridgeshire rural district
Translate the following into a SQL query
What district is St Martin's Without parish in with a population less than 75?
SELECT District FROM table WHERE Population < 75 AND Name = st martin's without
Translate the following into a SQL query
Who was the home team when FK kom were the guests?
SELECT Home FROM table WHERE Guest = fk kom