instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What position has round less than 2?
SELECT Position FROM table WHERE Round < 2
Translate the following into a SQL query
In what venue is Essendon the home team?
SELECT Venue FROM table WHERE Home team = essendon
Translate the following into a SQL query
Who was the away team when the venue was Windy Hill?
SELECT Away team FROM table WHERE Venue = windy hill
Translate the following into a SQL query
What was the score for Hawthorn when they were the away team?
SELECT Away team score FROM table WHERE Away team = hawthorn
Translate the following into a SQL query
What method was used that had a resulting win against opponent, Natsuko Kikukawa?
SELECT Method FROM table WHERE Res. = win AND Opponent = natsuko kikukawa
Translate the following into a SQL query
What was the highest number of rounds that had Hikaru Shinohara as an opponent and a record of 11-7?
SELECT MAX Round FROM table WHERE Opponent = hikaru shinohara AND Record = 11-7
Translate the following into a SQL query
Which method has a record of 11-10?
SELECT Method FROM table WHERE Record = 11-10
Translate the following into a SQL query
Who is the loser when the attendance is larger than 31,409 and the date is July 9?
SELECT Loss FROM table WHERE Attendance > 31,409 AND Date = july 9
Translate the following into a SQL query
How much in average Loans Received has Contributions less than 34,986,088, Disbursements more than 251,093,944 for Dennis Kucinich † with Operating Expenditures more than 3,638,219?
SELECT AVG Loans Received FROM table WHERE Contributions < 34,986,088 AND All Disbursements > 251,093,944 AND Candidate = dennis kucinich † AND Operating Expenditures > 3,638,219
Translate the following into a SQL query
How much is the lowest Operating Expenditures when Contributions are more than 8,245,241?
SELECT MIN Operating Expenditures FROM table WHERE Contributions > 8,245,241
Translate the following into a SQL query
How many Loans Received have Disbursements larger than 21,857,565, and Contributions greater than 3,869,613 with Receipts under 11,405,771?
SELECT COUNT Loans Received FROM table WHERE All Disbursements > 21,857,565 AND Contributions > 3,869,613 AND All Receipts < 11,405,771
Translate the following into a SQL query
What is the most Receipts for Barack Obama with Disbursements smaller than 85,176,289?
SELECT MAX All Receipts FROM table WHERE Candidate = barack obama AND All Disbursements < 85,176,289
Translate the following into a SQL query
How many Operating Expenditures have Receipts of 44,259,386?
SELECT COUNT Operating Expenditures FROM table WHERE All Receipts = 44,259,386
Translate the following into a SQL query
How many wins were there in 2004-05?
SELECT Win # FROM table WHERE Season = 2004-05
Translate the following into a SQL query
How many times did jim vivona win?
SELECT COUNT Win # FROM table WHERE Winner = jim vivona
Translate the following into a SQL query
Which position was morristown minutemen in?
SELECT Position FROM table WHERE Team = morristown minutemen
Translate the following into a SQL query
Which season was harrisburg lunatics in?
SELECT Season FROM table WHERE Team = harrisburg lunatics
Translate the following into a SQL query
What is the smallest rank with less than 2 wings, more than 26 events, and less than $1,831,211?
SELECT MIN Rank FROM table WHERE Wins < 2 AND Earnings ( $ ) < 1,831,211 AND Events > 26
Translate the following into a SQL query
What is the most wins with a rank of 5 and less than $1,537,571 in earnings?
SELECT MAX Wins FROM table WHERE Rank = 5 AND Earnings ( $ ) > 1,537,571
Translate the following into a SQL query
What was the venue for Round f?
SELECT Venue FROM table WHERE Round = f
Translate the following into a SQL query
On what date was the Result 1-0?
SELECT Date FROM table WHERE Result = 1-0
Translate the following into a SQL query
What was the attendance on 10 november 2004?
SELECT AVG Attendance FROM table WHERE Date = 10 november 2004
Translate the following into a SQL query
What is the size of the crowd when the home team is Fitzroy?
SELECT COUNT Crowd FROM table WHERE Home team = fitzroy
Translate the following into a SQL query
How many laps did riccardo patrese do when he had a time/retird of + 1 lap?
SELECT COUNT Laps FROM table WHERE Time/Retired = + 1 lap AND Driver = riccardo patrese
Translate the following into a SQL query
Name the episode for jenny bicks and cindy chupack nominees in 2004
SELECT Episode FROM table WHERE Year = 2004 AND Nominee(s) = jenny bicks and cindy chupack
Translate the following into a SQL query
Name the episode for year more than 1999
SELECT Episode FROM table WHERE Year > 1999
Translate the following into a SQL query
What was the home team's score at the game held at Junction Oval?
SELECT Home team score FROM table WHERE Venue = junction oval
Translate the following into a SQL query
What was the away team's score at the game held at MCG?
SELECT Away team score FROM table WHERE Venue = mcg
Translate the following into a SQL query
Who was the away team at the game held at Arden Street Oval?
SELECT Away team FROM table WHERE Venue = arden street oval
Translate the following into a SQL query
What was the size of the crowd at the game where Fitzroy was the home team?
SELECT Crowd FROM table WHERE Home team = fitzroy
Translate the following into a SQL query
Name the most bronze for silver more than 6 and total less than 127 with gold less than 11
SELECT MAX Bronze FROM table WHERE Silver > 6 AND Total < 127 AND Gold < 11
Translate the following into a SQL query
Name the highest silver for table tennis and bronze more than 0
SELECT MAX Silver FROM table WHERE Sport = table tennis AND Bronze > 0
Translate the following into a SQL query
Which kickoff had an attendance of 58,120?
SELECT Kickoff [a ] FROM table WHERE Attendance = 58,120
Translate the following into a SQL query
What week number did November 19, 1989 games fall on?
SELECT Week FROM table WHERE Date = november 19, 1989
Translate the following into a SQL query
Which game site(s) had record of 2-2?
SELECT Game site FROM table WHERE Record = 2-2
Translate the following into a SQL query
Which game had a kickoff at 1:00 and a record of 3-7?
SELECT Opponent FROM table WHERE Kickoff [a ] = 1:00 AND Record = 3-7
Translate the following into a SQL query
Which game had an attendance of 56,271?
SELECT Date FROM table WHERE Attendance = 56,271
Translate the following into a SQL query
Tell me the driver for ford cosworth dfv 3.0 v8 and chassis of ts19 ts20
SELECT Driver FROM table WHERE Engine = ford cosworth dfv 3.0 v8 AND Chassis = ts19 ts20
Translate the following into a SQL query
Tell me the constructor for alberto colombo and chassis of a1
SELECT Constructor FROM table WHERE Driver = alberto colombo AND Chassis = a1
Translate the following into a SQL query
Tell me the constructor for clay regazzoni
SELECT Constructor FROM table WHERE Driver = clay regazzoni
Translate the following into a SQL query
Tell me the chassis for team tissot ensign and driver of brett lunger
SELECT Chassis FROM table WHERE Entrant = team tissot ensign AND Driver = brett lunger
Translate the following into a SQL query
I want the tyres for hans binder
SELECT Tyres FROM table WHERE Driver = hans binder
Translate the following into a SQL query
I want the constructor for divina galica rounds of 1-2
SELECT Constructor FROM table WHERE Rounds = 1-2 AND Driver = divina galica
Translate the following into a SQL query
Who is the vacator for the February 1, 1971 date of successor's formal installation?
SELECT Vacator FROM table WHERE Date of successor's formal installation = february 1, 1971
Translate the following into a SQL query
What is the state of the senator with a November 14, 1972 date of successor's formal installation?
SELECT State (class) FROM table WHERE Date of successor's formal installation = november 14, 1972
Translate the following into a SQL query
What team did the Red Sox play against on June 3?
SELECT Opponent FROM table WHERE Date = june 3
Translate the following into a SQL query
What was the Record at the game that had an attendance of 21,191?
SELECT Record FROM table WHERE Attendance = 21,191
Translate the following into a SQL query
What was the final score of the game on June 17?
SELECT Score FROM table WHERE Date = june 17
Translate the following into a SQL query
What is the 1st ship delivery date of 6 ways?
SELECT 1st Ship Delivery Date FROM table WHERE Total Number of Ways = 6 ways
Translate the following into a SQL query
What is the total vessels built in Wilmington, California?
SELECT total vessels built FROM table WHERE Location (city, state) = wilmington, california
Translate the following into a SQL query
What was the final round result of Mohammad Reza Samadi?
SELECT Final FROM table WHERE Athlete = mohammad reza samadi
Translate the following into a SQL query
If the Home team score was 19.15 (129), what was the Away team's score that game?
SELECT Away team score FROM table WHERE Home team score = 19.15 (129)
Translate the following into a SQL query
When the Home team of footscray is playing, what's the Home team score?
SELECT Home team score FROM table WHERE Home team = footscray
Translate the following into a SQL query
If the Away team scored 18.8 (116), what was the Home team's score?
SELECT Home team score FROM table WHERE Away team score = 18.8 (116)
Translate the following into a SQL query
What was the title of the song that peaked the charts at #1 with track 20?
SELECT Song Title FROM table WHERE Chart Peak = #1 AND Track = 20
Translate the following into a SQL query
What is the time from the song called Treat Me Nice?
SELECT Time FROM table WHERE Song Title = treat me nice
Translate the following into a SQL query
What was Random House's copyright information?
SELECT Copyright Information FROM table WHERE Publisher = random house
Translate the following into a SQL query
What was release date in 1992 with the ISBN #0?
SELECT Release Date FROM table WHERE ISBN = 0 AND Year = 1992
Translate the following into a SQL query
What club team has 216 overall?
SELECT Club team FROM table WHERE Overall = 216
Translate the following into a SQL query
What is the highest round played by Chris Phillips?
SELECT MAX Round FROM table WHERE Player = chris phillips
Translate the following into a SQL query
What player attended Graceland College?
SELECT Player FROM table WHERE College = graceland
Translate the following into a SQL query
What is the highest pick number of the CFL's Toronto Argonauts?
SELECT MAX Pick # FROM table WHERE CFL Team = toronto argonauts
Translate the following into a SQL query
Which pick number attended McMaster College?
SELECT Pick # FROM table WHERE College = mcmaster
Translate the following into a SQL query
Who was the visiting team at the game where Edmonton was the home team and the decision was Osgood?
SELECT Visitor FROM table WHERE Decision = osgood AND Home = edmonton
Translate the following into a SQL query
What is the date recorded for I Want to Be Free with a length of 2:12?
SELECT Recorded FROM table WHERE Time = 2:12 AND Song Title = i want to be free
Translate the following into a SQL query
What is the highest track with a length of 1:54 written by Gene Autry and Oakley Haldeman?
SELECT MAX Track FROM table WHERE Time = 1:54 AND Writer(s) = gene autry and oakley haldeman
Translate the following into a SQL query
What is the title of the song with a track less than 8 released on 3/22/57?
SELECT Song Title FROM table WHERE Track < 8 AND Release Date = 3/22/57
Translate the following into a SQL query
What song title was written by Kal Mann and Bernie Lowe?
SELECT Song Title FROM table WHERE Writer(s) = kal mann and bernie lowe
Translate the following into a SQL query
What is the Home team score for Geelong, whereby the Away team has a score of 18.13 (121)?
SELECT Home team score FROM table WHERE Away team score = 18.13 (121)
Translate the following into a SQL query
What date did the Away team, North Melbourne, play Geelong?
SELECT Date FROM table WHERE Away team = north melbourne
Translate the following into a SQL query
What Venue had an Away team score of 7.15 (57) on June 4, 1973?
SELECT Venue FROM table WHERE Away team score = 7.15 (57)
Translate the following into a SQL query
The driver Jacky Ickx had what time/retired?
SELECT Time/Retired FROM table WHERE Driver = jacky ickx
Translate the following into a SQL query
What is the least number of laps for the driver Jo Siffert?
SELECT MIN Laps FROM table WHERE Driver = jo siffert
Translate the following into a SQL query
What is the least number of laps for the constructor Ferrari and where the grid number was less than 4?
SELECT MIN Laps FROM table WHERE Constructor = ferrari AND Grid < 4
Translate the following into a SQL query
What is the total amount of grid when the laps amount was smaller than 68 and the time/retired was injection?
SELECT SUM Grid FROM table WHERE Laps < 68 AND Time/Retired = injection
Translate the following into a SQL query
What is the gender of Congresswoman Jaime Herrera Beutler's baby?
SELECT Baby gender FROM table WHERE Congresswoman = jaime herrera beutler
Translate the following into a SQL query
How old was the mother who delivered on December 15, 2008?
SELECT Mother's age FROM table WHERE Date of delivery = december 15, 2008
Translate the following into a SQL query
What was the delivery date of Congresswoman Kirsten Gillibrand's baby boy?
SELECT Date of delivery FROM table WHERE Baby gender = boy AND Congresswoman = kirsten gillibrand
Translate the following into a SQL query
Which player on the Bulls has a 6 May 1978 birthday?
SELECT Player FROM table WHERE Club/province = bulls AND Date of Birth (Age) = 6 may 1978
Translate the following into a SQL query
Which player has a 1 February 1982 birthday and more than 16 caps?
SELECT Player FROM table WHERE Caps > 16 AND Date of Birth (Age) = 1 february 1982
Translate the following into a SQL query
Which tournament has a 2011 of 1r?
SELECT Tournament FROM table WHERE 2011 = 1r
Translate the following into a SQL query
Which 2009 tournament was french open?
SELECT 2009 FROM table WHERE Tournament = french open
Translate the following into a SQL query
When the home team score was 8.12 (60), what was the date?
SELECT Date FROM table WHERE Home team score = 8.12 (60)
Translate the following into a SQL query
When the away team was collingwood, what was the away team score?
SELECT Away team score FROM table WHERE Away team = collingwood
Translate the following into a SQL query
Who was Richmond's home team opponent?
SELECT Home team FROM table WHERE Away team = richmond
Translate the following into a SQL query
Where did Essendon play as the away team?
SELECT Venue FROM table WHERE Away team = essendon
Translate the following into a SQL query
Where did the character of Aiden Burn csi detective first appear?
SELECT First appearance FROM table WHERE Character = aiden burn csi detective
Translate the following into a SQL query
Which Ipsos 5/25/09 has a TNS-Sofres 5/28/09 of 20%?
SELECT Ipsos 5/25/09 FROM table WHERE TNS-Sofres 5/28/09 = 20%
Translate the following into a SQL query
Which TNS-Sofres 5/26/09 has an Ipsos 5/25/09 of 1%?
SELECT TNS-Sofres 5/26/09 FROM table WHERE Ipsos 5/25/09 = 1%
Translate the following into a SQL query
Which OpinionWay 5/18/09 has an Ipsos 5/16/09 of 11%?
SELECT OpinionWay 5/18/09 FROM table WHERE Ipsos 5/16/09 = 11%
Translate the following into a SQL query
Which Ipsos 5/16/09 has a TNS-Sofres 5/28/09 of 2.5%?
SELECT Ipsos 5/16/09 FROM table WHERE TNS-Sofres 5/28/09 = 2.5%
Translate the following into a SQL query
Which Ipsos 5/16/09 has an Ifop- La Croix 5/15/09 of 26%?
SELECT CSA 5/20/09 FROM table WHERE Ifop- La Croix 5/15/09 = 26%
Translate the following into a SQL query
Which Viavoice 5/15/09 has a CSA 5/14/09 of 5%, and a TNS-Sofres 5/28/09 of 4.5%?
SELECT Viavoice 5/15/09 FROM table WHERE CSA 5/14/09 = 5% AND TNS-Sofres 5/28/09 = 4.5%
Translate the following into a SQL query
What driver has 44 laps?
SELECT Driver FROM table WHERE Laps = 44
Translate the following into a SQL query
What is the average laps for a grid larger than 2, for a ferrari that got in an accident?
SELECT AVG Laps FROM table WHERE Grid > 2 AND Time/Retired = accident AND Constructor = ferrari
Translate the following into a SQL query
Name the average goal difference for draw of 7 and played more than 18
SELECT AVG Goal Difference FROM table WHERE Draw = 7 AND Played > 18
Translate the following into a SQL query
Tell me the totla number of goal difference for goals against of 30 and played less than 18
SELECT COUNT Goal Difference FROM table WHERE Goals Against = 30 AND Played < 18
Translate the following into a SQL query
Name the total number of draw for played more than 18
SELECT COUNT Draw FROM table WHERE Played > 18
Translate the following into a SQL query
Where is the player with a pick smaller than 12 and a college of UV from?
SELECT Country of origin* FROM table WHERE Pick < 12 AND College = uv
Translate the following into a SQL query
What PBA team is the player from Ateneo college and a pick of 17?
SELECT PBA team FROM table WHERE College = ateneo AND Pick = 17