instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Which team 1 has vfl gummersbach as team 2?
SELECT Team 1 FROM table WHERE Team 2 = vfl gummersbach
Translate the following into a SQL query
What is the 2nd leg that has 31-37 as the 1st leg?
SELECT 2nd leg FROM table WHERE 1st leg = 31-37
Translate the following into a SQL query
Which team 1 has cbm valladolid as team 2?
SELECT Team 1 FROM table WHERE Team 2 = cbm valladolid
Translate the following into a SQL query
What 2nd leg has rk gold club kozina as team 1?
SELECT 2nd leg FROM table WHERE Team 1 = rk gold club kozina
Translate the following into a SQL query
What 1st leg has 52-70 as the agg.?
SELECT 1st leg FROM table WHERE Agg. = 52-70
Translate the following into a SQL query
What was the surface for October 10, 2004?
SELECT Surface FROM table WHERE Date = october 10, 2004
Translate the following into a SQL query
What was the surface for the opponent Roger Federer?
SELECT Surface FROM table WHERE Opponent = roger federer
Translate the following into a SQL query
How many years was the 400 m event in the olympic games?
SELECT COUNT Year FROM table WHERE Competition = olympic games AND Event = 400 m
Translate the following into a SQL query
How many were in attendance of the game with l 26-21 result?
SELECT Attendance FROM table WHERE Result = l 26-21
Translate the following into a SQL query
Who is the opponent for the game with 37,845 people in attendance?
SELECT Opponent FROM table WHERE Attendance = 37,845
Translate the following into a SQL query
How many silver medals were there with 2 gold medals and more than 2 bronze medals?
SELECT Silver FROM table WHERE Gold = 2 AND Bronze > 2
Translate the following into a SQL query
What is the smallest total number of medals for rank 11 and more than 0 silver medals?
SELECT MIN Total FROM table WHERE Rank = 11 AND Silver > 0
Translate the following into a SQL query
What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United States?
SELECT SUM Total FROM table WHERE Bronze > 2 AND Nation = united states AND Gold > 1
Translate the following into a SQL query
What is the largest number of gold medals for Canada with more than 7 bronze medals?
SELECT MAX Gold FROM table WHERE Nation = canada AND Bronze > 7
Translate the following into a SQL query
What is the sum of all silver medals with less than 23 medals in total and more than 3 bronze medals for the United States?
SELECT SUM Silver FROM table WHERE Total < 23 AND Nation = united states AND Bronze > 3
Translate the following into a SQL query
When was Steve Williams in Zurich and his result was 10.07?
SELECT Date FROM table WHERE Location = zurich AND Result = 10.07
Translate the following into a SQL query
What is the largest number lost with 0 draws and less than 12 points for Gwardia Katowice?
SELECT MAX Lost FROM table WHERE Draw = 0 AND Team = gwardia katowice AND Points < 12
Translate the following into a SQL query
What is the highest number of draws with 6 losses and less than 15 points?
SELECT MAX Draw FROM table WHERE Lost = 6 AND Points < 15
Translate the following into a SQL query
How many draws correspond to more than 11 losses in a match less than 14?
SELECT COUNT Draw FROM table WHERE Lost > 11 AND Match < 14
Translate the following into a SQL query
What is the Director of Children of Sarajevo?
SELECT Director FROM table WHERE Film title used in nomination = children of sarajevo
Translate the following into a SQL query
What is the Result of the 2010 (83rd) Ceremony?
SELECT Result FROM table WHERE Year (Ceremony) = 2010 (83rd)
Translate the following into a SQL query
What is the Result of the 2013 (86th) Ceremony?
SELECT Result FROM table WHERE Year (Ceremony) = 2013 (86th)
Translate the following into a SQL query
What is the Original title of Children of Sarajevo?
SELECT Original title FROM table WHERE Film title used in nomination = children of sarajevo
Translate the following into a SQL query
In the 2012 (85th) Ceremony, what was the Original title of the film not nominated?
SELECT Original title FROM table WHERE Result = not nominated AND Year (Ceremony) = 2012 (85th)
Translate the following into a SQL query
What is the lowest draw number for the song ranked 6th with more than 43 points?
SELECT MIN Draw FROM table WHERE Points > 43 AND Rank = 6th
Translate the following into a SQL query
What is the total sum of points for songs performed by Partners in Crime?
SELECT SUM Points FROM table WHERE Performer = partners in crime
Translate the following into a SQL query
What is the class of facility ID 150935?
SELECT Class FROM table WHERE Facility ID = 150935
Translate the following into a SQL query
Which city has a facility ID greater than 150833?
SELECT City of license FROM table WHERE Facility ID > 150833
Translate the following into a SQL query
What position does the player from the Toronto Argonauts play?
SELECT Position FROM table WHERE CFL Team = toronto argonauts
Translate the following into a SQL query
What was the 1st leg for Team 2 Concepto Egile?
SELECT 1st leg FROM table WHERE Team 2 = concepto egile
Translate the following into a SQL query
Which team 1 has team 2, Gomera?
SELECT Team 1 FROM table WHERE Team 2 = gomera
Translate the following into a SQL query
What public team was founded prior to 1883?
SELECT Team FROM table WHERE Founded < 1883 AND Type = public
Translate the following into a SQL query
Who has exactly 342 spikes?
SELECT Name FROM table WHERE Spike = 342
Translate the following into a SQL query
What is the smallest number of spikes for players with a weight of 83 and height over 190?
SELECT MIN Spike FROM table WHERE Weight = 83 AND Height > 190
Translate the following into a SQL query
What is Class, when Power is 78 Watts?
SELECT Class FROM table WHERE Power = 78 watts
Translate the following into a SQL query
What is Power, when Identifier is CBEB-FM?
SELECT Power FROM table WHERE Identifier = cbeb-fm
Translate the following into a SQL query
What is Identifier, when City of License is Terrace Bay?
SELECT Identifier FROM table WHERE City of license = terrace bay
Translate the following into a SQL query
What is Power, when City of License is Sioux Lookout?
SELECT Power FROM table WHERE City of license = sioux lookout
Translate the following into a SQL query
What is Identifier, when City of License is Hornepayne?
SELECT Identifier FROM table WHERE City of license = hornepayne
Translate the following into a SQL query
What is City of License, when Frequency is 101.1?
SELECT City of license FROM table WHERE Frequency = 101.1
Translate the following into a SQL query
Which LE-5 Model has an LE-5A of 130?
SELECT LE-5 Model FROM table WHERE LE-5A = 130
Translate the following into a SQL query
What Series had 14 races and 12th position?
SELECT Series FROM table WHERE Races = 14 AND Position = 12th
Translate the following into a SQL query
What season was the Formula BMW USA in?
SELECT Season FROM table WHERE Series = formula bmw usa
Translate the following into a SQL query
What series had more than 10 Podiums?
SELECT Series FROM table WHERE Podiums > 10
Translate the following into a SQL query
What is the Status with an Author that is colbert?
SELECT Status FROM table WHERE Authors = colbert
Translate the following into a SQL query
What college was the draft pick number larger than 18 that went to the Barangay ginebra kings?
SELECT College FROM table WHERE Pick > 18 AND PBA team = barangay ginebra kings
Translate the following into a SQL query
What is the sum of the pick numbers for the player that went to San Miguel Beermen who played at San Sebastian?
SELECT SUM Pick FROM table WHERE PBA team = san miguel beermen AND College = san sebastian
Translate the following into a SQL query
What is the total number of picks for PBA team san miguel beermen who picked rommel daep?
SELECT COUNT Pick FROM table WHERE PBA team = san miguel beermen AND Player = rommel daep
Translate the following into a SQL query
What player came from the United States and went to Ohlone college?
SELECT Player FROM table WHERE Country of origin* = united states AND College = ohlone
Translate the following into a SQL query
Who won after 1999 with changwon lg sakers as runners-up?
SELECT Champions FROM table WHERE Year > 1999 AND Runners-up = changwon lg sakers
Translate the following into a SQL query
What is the result for the champions jeonju kcc egis with runners-up seoul samsung thunders after 2007?
SELECT Result FROM table WHERE Year > 2007 AND Runners-up = seoul samsung thunders AND Champions = jeonju kcc egis
Translate the following into a SQL query
What was the winning team in 2013?
SELECT Winning team FROM table WHERE Year = 2013
Translate the following into a SQL query
What is the highest year that Europe won, when the USA's Captain was Kathy Whitworth?
SELECT MAX Year FROM table WHERE Winning team = europe AND USA Captain = kathy whitworth
Translate the following into a SQL query
When the USA's captain was Beth Daniel, who was the winning team?
SELECT Winning team FROM table WHERE USA Captain = beth daniel
Translate the following into a SQL query
What is the Season when league shows bundesliga, and a European competition of played korac cup?
SELECT Season FROM table WHERE League = bundesliga AND European competitions = played korac cup
Translate the following into a SQL query
What is the average Tier when the postseason shows -, and the season is 2012–13?
SELECT AVG Tier FROM table WHERE Postseason = – AND Season = 2012–13
Translate the following into a SQL query
What is the European competition when the tier is more than 2?
SELECT European competitions FROM table WHERE Tier > 2
Translate the following into a SQL query
What was the outcome of the match played on grass?
SELECT Outcome FROM table WHERE Surface = grass
Translate the following into a SQL query
What was the outcome of the match on February 17, 2003?
SELECT Outcome FROM table WHERE Date (Final) = february 17, 2003
Translate the following into a SQL query
How many average wins have USA as the team?
SELECT AVG Wins FROM table WHERE Team = usa
Translate the following into a SQL query
What are the average wins that have great britain as the team?
SELECT AVG Wins FROM table WHERE Team = great britain
Translate the following into a SQL query
What's the average draft pick number from Carson-Newman College before Round 7?
SELECT AVG Pick # FROM table WHERE College = carson-newman AND Round < 7
Translate the following into a SQL query
Which college has a pick number of 155?
SELECT College FROM table WHERE Pick # = 155
Translate the following into a SQL query
What score in the final has november 3, 2002 as the date?
SELECT Score in the final FROM table WHERE Date = november 3, 2002
Translate the following into a SQL query
What surface has natalia gussoni as the partner?
SELECT Surface FROM table WHERE Partner = natalia gussoni
Translate the following into a SQL query
What outcome has September 23, 2013 as the date?
SELECT Outcome FROM table WHERE Date = september 23, 2013
Translate the following into a SQL query
What score in the final has hard as the surface, and june 13, 2011 as the date?
SELECT Score in the final FROM table WHERE Surface = hard AND Date = june 13, 2011
Translate the following into a SQL query
What date has elke clijsters as the partner?
SELECT Date FROM table WHERE Partner = elke clijsters
Translate the following into a SQL query
What is the Round with a Prize of money that is Β£120,000?
SELECT Round FROM table WHERE Prize money = Β£120,000
Translate the following into a SQL query
What is the Match with a Prize of money that is Β£1,000,000?
SELECT Matches FROM table WHERE Prize money = Β£1,000,000
Translate the following into a SQL query
When alvin and the chipmunks meet frankenstein, what was the role?
SELECT Role FROM table WHERE Title = alvin and the chipmunks meet frankenstein
Translate the following into a SQL query
What's the earliest year with a role of alvin seville simon seville david 'dave' seville, and a Title of alvin and the chipmunks meet the wolfman?
SELECT MIN Year FROM table WHERE Role = alvin seville simon seville david 'dave' seville AND Title = alvin and the chipmunks meet the wolfman
Translate the following into a SQL query
What's the average year for the Role of alvin seville simon seville david 'dave' seville, and a Title of the chipmunk adventure?
SELECT AVG Year FROM table WHERE Role = alvin seville simon seville david 'dave' seville AND Title = the chipmunk adventure
Translate the following into a SQL query
What was the role in the chipmunk adventure?
SELECT Role FROM table WHERE Title = the chipmunk adventure
Translate the following into a SQL query
What role was played in 2007?
SELECT Role FROM table WHERE Year = 2007
Translate the following into a SQL query
What is the total number of points for the KV Racing Technology team when they use a chevrolet engine?
SELECT COUNT Points FROM table WHERE Engine = chevrolet AND Team = kv racing technology
Translate the following into a SQL query
Which engine has a chassis of dallara, is ranked 6th, and has 384 points?
SELECT Engine FROM table WHERE Chassis = dallara AND Rank = 6th AND Points = 384
Translate the following into a SQL query
Which engine is used when there is a 3rd place rank and 513 points?
SELECT Engine FROM table WHERE Rank = 3rd AND Points = 513
Translate the following into a SQL query
What is the chassis when the rank is 3rd?
SELECT Chassis FROM table WHERE Rank = 3rd
Translate the following into a SQL query
What are the years that Andretti Autosport is a team?
SELECT COUNT Year FROM table WHERE Team = andretti autosport
Translate the following into a SQL query
Which team is ranked 3rd in 2008?
SELECT Team FROM table WHERE Rank = 3rd AND Year = 2008
Translate the following into a SQL query
Which Oilers points have a Record of 10–6, and Oilers first downs larger than 14?
SELECT AVG Oilers points FROM table WHERE Record = 10–6 AND Oilers first downs > 14
Translate the following into a SQL query
Which Oilers points have an Opponent of san francisco 49ers, and Opponents larger than 19?
SELECT MAX Oilers points FROM table WHERE Opponent = san francisco 49ers AND Opponents > 19
Translate the following into a SQL query
Which Game has an Opponent of at kansas city chiefs, and an Attendance smaller than 40,213?
SELECT SUM Game FROM table WHERE Opponent = at kansas city chiefs AND Attendance < 40,213
Translate the following into a SQL query
What is the name of the country that has 18 May 2004 as the date?
SELECT Country FROM table WHERE Date = 18 may 2004
Translate the following into a SQL query
What catalog has Australia as the country?
SELECT Catalog FROM table WHERE Country = australia
Translate the following into a SQL query
In what format was the release that was dated 7 April 2003 from catalog 584 2112?
SELECT Format FROM table WHERE Date = 7 april 2003 AND Catalog = 584 2112
Translate the following into a SQL query
What date was the release when the format was lp?
SELECT Date FROM table WHERE Format = lp
Translate the following into a SQL query
What date is the release when the label was Parlophone and the catalog was 582 2912?
SELECT Date FROM table WHERE Label = parlophone AND Catalog = 582 2912
Translate the following into a SQL query
What catalog has the United Kingdom as the country?
SELECT Catalog FROM table WHERE Country = united kingdom
Translate the following into a SQL query
What is the nationality of the guard for the chool/Club Team in Virginia?
SELECT Nationality FROM table WHERE Position = guard AND School/Club Team = virginia
Translate the following into a SQL query
What is the School/Club Team with a nationality of United States for Arron Afflalo?
SELECT School/Club Team FROM table WHERE Nationality = united states AND Player = arron afflalo
Translate the following into a SQL query
What is the Years in Orlando for carlos arroyo?
SELECT Years in Orlando FROM table WHERE Player = carlos arroyo
Translate the following into a SQL query
What is the Player for Orlando in 1989–1991?
SELECT Player FROM table WHERE Years in Orlando = 1989–1991
Translate the following into a SQL query
What is the Position for Orlando for 1989–1999?
SELECT Position FROM table WHERE Years in Orlando = 1989–1999
Translate the following into a SQL query
Which player was from Western Washington University, played midfield, and was from years after 2009?
SELECT Player FROM table WHERE School = western washington university AND Position = midfield AND Year > 2009
Translate the following into a SQL query
Which team was Bubba Vanegdom from?
SELECT Team FROM table WHERE Player = bubba vanegdom
Translate the following into a SQL query
What was the position of the player from Pacific Lutheran University named Greg Fredlund in years after 2010?
SELECT Position FROM table WHERE School = pacific lutheran university AND Player = greg fredlund AND Year > 2010
Translate the following into a SQL query
What was the position of Greg Fredlund in years after 2008?
SELECT Position FROM table WHERE Year > 2008 AND Player = greg fredlund
Translate the following into a SQL query
What home team has 8 ties?
SELECT Home team FROM table WHERE Tie no = 8