instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is the average Attendance for the game on November 1, 1981?
SELECT AVG Attendance FROM table WHERE Date = november 1, 1981
Translate the following into a SQL query
What position is played by the player from the Chicago Cubs?
SELECT Position FROM table WHERE Team = chicago cubs
Translate the following into a SQL query
What is the name of the Outfielder that was picked prior to Pick 42?
SELECT Player FROM table WHERE Position = outfielder AND Pick < 42
Translate the following into a SQL query
What is the Week when anke huber chanda rubin shows for Semi finalists, and the Runner-up is meredith mcgrath larisa savchenko?
SELECT Week of FROM table WHERE Semi finalists = anke huber chanda rubin AND Runner-up = meredith mcgrath larisa savchenko
Translate the following into a SQL query
What is the Semi finalists when the Runner-up was katrina adams zina garrison-jackson?
SELECT Semi finalists FROM table WHERE Runner-up = katrina adams zina garrison-jackson
Translate the following into a SQL query
What is the Winner when anke huber chanda rubin was semi finalist?
SELECT Winner FROM table WHERE Semi finalists = anke huber chanda rubin
Translate the following into a SQL query
What is the Tier when the runner-up is chanda rubin caroline vis?
SELECT Tier FROM table WHERE Runner-up = chanda rubin caroline vis
Translate the following into a SQL query
What is the Week when the winner was mary joe fernández 6–4, 7–5?
SELECT Week of FROM table WHERE Winner = mary joe fernández 6–4, 7–5
Translate the following into a SQL query
What is the Runner-up with the tier was tier ii, and a Winner of gigi fernández natalia zvereva 5–7, 6–1, 6–4?
SELECT Runner-up FROM table WHERE Tier = tier ii AND Winner = gigi fernández natalia zvereva 5–7, 6–1, 6–4
Translate the following into a SQL query
Which week had safe as the result and Dolly Parton as the theme?
SELECT Week # FROM table WHERE Result = safe AND Theme = dolly parton
Translate the following into a SQL query
On which week was the beatles the original artist and the order # smaller than 10?
SELECT Week # FROM table WHERE Original artist = the beatles AND Order # < 10
Translate the following into a SQL query
On which week was the result safe and the song choice " across the universe "?
SELECT Week # FROM table WHERE Result = safe AND Song choice = " across the universe "
Translate the following into a SQL query
Which original artist had 5 as their order #?
SELECT Original artist FROM table WHERE Order # = 5
Translate the following into a SQL query
Which nominee was nominated in the Outstanding Director of a Musical category?
SELECT Nominee FROM table WHERE Category = outstanding director of a musical
Translate the following into a SQL query
What is the result for Brent Spiner?
SELECT Result FROM table WHERE Nominee = brent spiner
Translate the following into a SQL query
What is the number of games for Shaun Stonerook?
SELECT MIN Games FROM table WHERE Name = shaun stonerook
Translate the following into a SQL query
What is the highest total number of medals of the nation with less than 1 bronzes and less than 0 silver medals?
SELECT MAX Total FROM table WHERE Bronze < 1 AND Silver < 0
Translate the following into a SQL query
Total weeks of 49,980 attendance?
SELECT SUM Week FROM table WHERE Attendance = 49,980
Translate the following into a SQL query
Mean attendance for December 22, 1980?
SELECT AVG Attendance FROM table WHERE Date = december 22, 1980
Translate the following into a SQL query
Overall attendance for week 4?
SELECT Attendance FROM table WHERE Week = 4
Translate the following into a SQL query
What was in 2007 that has a 3r of 1999?
SELECT 2007 FROM table WHERE 1999 = 3r
Translate the following into a SQL query
What was in 2007 that is from 2004 0f 2r and 2010 of A?
SELECT 2007 FROM table WHERE 2004 = 2r AND 2010 = a
Translate the following into a SQL query
What is in 2001, that has the year 2006, 2r, and in 2010 an A?
SELECT 2001 FROM table WHERE 2006 = 2r AND 2010 = a
Translate the following into a SQL query
Who was awarded after 1947 in the category of, the best actor in a leading role?
SELECT Award FROM table WHERE Year > 1947 AND Category = best actor in a leading role
Translate the following into a SQL query
Which Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11?
SELECT Opponent FROM table WHERE Method = tko AND Location = elgin, illinois, usa AND Date = 2001-02-11
Translate the following into a SQL query
Which Round has a Location of auckland, new zealand, and a Method of tko on 1994-11-24?
SELECT AVG Round FROM table WHERE Location = auckland, new zealand AND Method = tko AND Date = 1994-11-24
Translate the following into a SQL query
Which highest Round has a Result of loss?
SELECT MAX Round FROM table WHERE Result = loss
Translate the following into a SQL query
Which Location has a Method of decision?
SELECT Location FROM table WHERE Method = decision
Translate the following into a SQL query
What tournament has 1r as a 2004, and 1r as a 2007?
SELECT Tournament FROM table WHERE 2004 = 1r AND 2007 = 1r
Translate the following into a SQL query
What 2012 has q2 as the 2010, and wimbledon as the tournament?
SELECT 2012 FROM table WHERE 2010 = q2 AND Tournament = wimbledon
Translate the following into a SQL query
What 2006 has grand slam tournaments of 2010?
SELECT 2006 FROM table WHERE 2010 = grand slam tournaments
Translate the following into a SQL query
What 2006 has grand slam tournaments of 2005?
SELECT 2006 FROM table WHERE 2005 = grand slam tournaments
Translate the following into a SQL query
What 2006 has q2 as the 2007?
SELECT 2006 FROM table WHERE 2007 = q2
Translate the following into a SQL query
What are the losses where the award is Mike Miller (Smoy)?
SELECT Losses FROM table WHERE Awards = mike miller (smoy)
Translate the following into a SQL query
Where the wins are 46, what is the win%?
SELECT Win% FROM table WHERE Wins = 46
Translate the following into a SQL query
Where the Vancouver Grizzlies is the awards, what is the conference?
SELECT Conference FROM table WHERE Awards = vancouver grizzlies
Translate the following into a SQL query
What is the highest 1987 value with a 1995 value less than 1995 and a 1999 less than 9?
SELECT MAX 1987 FROM table WHERE 1995 < 1995 AND 1999 < 9
Translate the following into a SQL query
What is the highest 2003 value with a 1990 greater than 74, a 125 value in 1985, and a 1995 value greater than 130?
SELECT MAX 2003 FROM table WHERE 1990 > 74 AND 1985 = 125 AND 1995 > 130
Translate the following into a SQL query
What is the highest 2007 value with a 1985 value greater than 52, a 1987 value greater than 130, and a 1990 less than 1990?
SELECT MAX 2007 FROM table WHERE 1985 > 52 AND 1987 > 130 AND 1990 < 1990
Translate the following into a SQL query
What is the highest 1995 with a 1990 less than 36, a 1987 less than 1987, and a 2007 value greater than 107?
SELECT MAX 1995 FROM table WHERE 1990 > 36 AND 1987 < 1987 AND 2007 > 107
Translate the following into a SQL query
What is the highest 2003 value with a 2011 less than 107 and a 1995 value less than 17?
SELECT MAX 2003 FROM table WHERE 2011 < 107 AND 1995 < 17
Translate the following into a SQL query
What is the name of the tournament with 11 or more events a top-5 of 0 and a top-25 of 2?
SELECT Tournament FROM table WHERE Events > 11 AND Top-5 = 0 AND Top-25 = 2
Translate the following into a SQL query
What is the most top-10 of the team with 8 cuts made and less than 11 events?
SELECT MAX Top-10 FROM table WHERE Cuts made = 8 AND Events < 11
Translate the following into a SQL query
What is the American Labor ticket when Henry Epstein is the liberal ticket?
SELECT American Labor ticket FROM table WHERE Liberal ticket = henry epstein
Translate the following into a SQL query
What is the name on the Communist ticket with an Office of judge of the court of appeals?
SELECT Communist ticket FROM table WHERE Office = judge of the court of appeals
Translate the following into a SQL query
What is the Office when spencer c. young is on the liberal ticket??
SELECT Office FROM table WHERE Liberal ticket = spencer c. young
Translate the following into a SQL query
What is the name on the Democratic ticket when the Liberal ticket is erastus corning 2nd?
SELECT Democratic ticket FROM table WHERE Liberal ticket = erastus corning 2nd
Translate the following into a SQL query
What name is on the Republican ticket when the American Labor ticket was spencer c. young?
SELECT Republican ticket FROM table WHERE American Labor ticket = spencer c. young
Translate the following into a SQL query
What is the entered number for the person with a time of 29:28?
SELECT Entered FROM table WHERE Time = 29:28
Translate the following into a SQL query
What is the number eliminated for the person with a time of 12:38?
SELECT Eliminated by FROM table WHERE Time = 12:38
Translate the following into a SQL query
What is the highest Attendance with a Result that is w 24-21?
SELECT MAX Attendance FROM table WHERE Result = w 24-21
Translate the following into a SQL query
What Date has a time of (seconds) 42.172?
SELECT Date FROM table WHERE Time (seconds) = 42.172
Translate the following into a SQL query
What is the Record for 23 january 2010, with a time smaller than 42.679 seconds?
SELECT Record FROM table WHERE Date = 23 january 2010 AND Time (seconds) < 42.679
Translate the following into a SQL query
What is the total number of Points that were in a Year that was 2005?
SELECT COUNT Points FROM table WHERE Year = 2005
Translate the following into a SQL query
What is the lowest Shots with a Point that is larger than 32?
SELECT MIN Shots FROM table WHERE Points > 32
Translate the following into a SQL query
Which category had a year of 1991?
SELECT Category FROM table WHERE Year = 1991
Translate the following into a SQL query
What is the score having a runner-up of Magdalena Maleeva?
SELECT Score FROM table WHERE Runner-up = magdalena maleeva
Translate the following into a SQL query
What year was John m. Belk Arena built?
SELECT Year Built FROM table WHERE Venue = john m. belk arena
Translate the following into a SQL query
What type of environment is the venue that was built in 2003?
SELECT Environment FROM table WHERE Year Built = 2003
Translate the following into a SQL query
What year was transamerica field built in?
SELECT Year Built FROM table WHERE Venue = transamerica field
Translate the following into a SQL query
What is the location of the venue owned by johnson c. smith university?
SELECT Location FROM table WHERE Owner = johnson c. smith university
Translate the following into a SQL query
What is the venue when the score was 8-2?
SELECT Venue FROM table WHERE Score = 8-2
Translate the following into a SQL query
What is the Score for the 1999 fifa confederations cup?
SELECT Score FROM table WHERE Competition = 1999 fifa confederations cup
Translate the following into a SQL query
What is the result on 30 june 1995?
SELECT Result FROM table WHERE Date = 30 june 1995
Translate the following into a SQL query
What is the Date of the 1999 fifa confederations cup?
SELECT Date FROM table WHERE Competition = 1999 fifa confederations cup
Translate the following into a SQL query
What is the Venue for the 2002 fifa world cup qualifier, and a Result of 8-2?
SELECT Venue FROM table WHERE Competition = 2002 fifa world cup qualifier AND Result = 8-2
Translate the following into a SQL query
What is the Score on 11 march 2001?
SELECT Score FROM table WHERE Date = 11 march 2001
Translate the following into a SQL query
What is the round 4 that has from less than 1990, and double for round 3?
SELECT Round 4 FROM table WHERE From < 1990 AND Round 3 = double
Translate the following into a SQL query
What is the round 6+ that has single as round 2, double as round 4, from 1982?
SELECT Round 6+ FROM table WHERE Round 2 = single AND Round 4 = double AND From = 1982
Translate the following into a SQL query
Which round 1 has a from prior to 1984, double as round 3, with a goal lwss than 300?
SELECT Round 1 FROM table WHERE From < 1984 AND Round 3 = double AND Goal < 300
Translate the following into a SQL query
What is the round 6+ that has a from prior to 1993, double for round 3, and a double for round 5?
SELECT Round 6+ FROM table WHERE From < 1993 AND Round 3 = double AND Round 5 = double
Translate the following into a SQL query
What is the symbol of the element with an empirical t of 190 and a calculated value of 135?
SELECT symbol FROM table WHERE empirical † = 190 AND Calculated = 135
Translate the following into a SQL query
What is the name of the element with a calculated value of 56?
SELECT name FROM table WHERE Calculated = 56
Translate the following into a SQL query
What is the covalent (single bond) value of sodium?
SELECT Covalent (single bond) FROM table WHERE name = sodium
Translate the following into a SQL query
What is the lowest jersey # of the player with a height of 191 cm from the New Jersey Devils in 2008-2009?
SELECT MIN Jersey # FROM table WHERE Height (cm) = 191 AND 2008–2009 Team = new jersey devils
Translate the following into a SQL query
What is the total height of the player with a birthdate on September 2, 1973?
SELECT COUNT Height (cm) FROM table WHERE Birthdate = september 2, 1973
Translate the following into a SQL query
What is the birthdate of Robert Esche?
SELECT Birthdate FROM table WHERE Name = robert esche
Translate the following into a SQL query
What is the position of the player with a jersey # greater than 30 and a December 23, 1986 birthdate?
SELECT Position FROM table WHERE Jersey # > 30 AND Birthdate = december 23, 1986
Translate the following into a SQL query
What is the weight of John-Michael Liles?
SELECT Weight (kg) FROM table WHERE Name = john-michael liles
Translate the following into a SQL query
What was the first leg score during the quarter-final game?
SELECT First leg FROM table WHERE Round = quarter-final
Translate the following into a SQL query
What was the aggregate score for the game against Dynamo Dresden?
SELECT Aggregate score FROM table WHERE Opposition = dynamo dresden
Translate the following into a SQL query
Who was the opposing team in the 3rd round?
SELECT Opposition FROM table WHERE Round = 3rd
Translate the following into a SQL query
Which nation has 0 golds and more than 1 silver?
SELECT Nation FROM table WHERE Gold = 0 AND Silver > 1
Translate the following into a SQL query
What is the smallest total that has under 3 golds, more than 0 silvers and bronzes?
SELECT MIN Total FROM table WHERE Gold < 3 AND Bronze > 0 AND Silver > 0
Translate the following into a SQL query
What is the total number of silvers associated with 3 bronzes, a total over 6, and a rank of 3?
SELECT COUNT Silver FROM table WHERE Bronze = 3 AND Rank = 3 AND Total > 6
Translate the following into a SQL query
What is the sum of bronzes associated with 0 golds and a rank of 10?
SELECT SUM Bronze FROM table WHERE Rank = 10 AND Gold < 0
Translate the following into a SQL query
What is the largest silver value associated with 0 golds?
SELECT MAX Silver FROM table WHERE Gold < 0
Translate the following into a SQL query
What is the total number of bronzes from the Netherlands?
SELECT COUNT Bronze FROM table WHERE Nation = netherlands
Translate the following into a SQL query
What is the average amount of earnings for years under 2004 and money list rankings of 6?
SELECT AVG Earnings ($) FROM table WHERE Money list rank = 6 AND Year < 2004
Translate the following into a SQL query
What is the highest number of wins for years after 1999 with averages over 73.02?
SELECT MAX Wins FROM table WHERE Average > 73.02 AND Year > 1999
Translate the following into a SQL query
Who was the away team when the home team Manchester United played?
SELECT Away team FROM table WHERE Home team = manchester united
Translate the following into a SQL query
When there was a tie of 16 what was the attendance?
SELECT Attendance FROM table WHERE Tie no = 16
Translate the following into a SQL query
Tell me the score when there was a Tie number of 6?
SELECT Score FROM table WHERE Tie no = 6
Translate the following into a SQL query
For the Tie number of 14 who was the away team?
SELECT Away team FROM table WHERE Tie no = 14
Translate the following into a SQL query
What Catalog released on June 29, 1999 has a Digipak Album Format?
SELECT Catalog FROM table WHERE Format = digipak album AND Date = june 29, 1999
Translate the following into a SQL query
What is the release Date of Catalog RR 8655-2?
SELECT Date FROM table WHERE Catalog = rr 8655-2
Translate the following into a SQL query
What is Score, when Group Song is 就是你, and when Index is F2?
SELECT Score FROM table WHERE Group Song = 就是你 AND Index = f2
Translate the following into a SQL query
What is Score, when Name is Nicole 赖淞凤?
SELECT Score FROM table WHERE Name = nicole 赖淞凤
Translate the following into a SQL query
What is Score, when Song is 第九夜?
SELECT Score FROM table WHERE Song = 第九夜
Translate the following into a SQL query
What is Group Song, when Song is 换季?
SELECT Group Song FROM table WHERE Song = 换季