instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What is the smallest Draws with a Result of runner-up, and Losses larger than 1?
|
SELECT MIN Draws FROM table WHERE Result = runner-up AND Losses > 1
|
Translate the following into a SQL query
|
What is the number of Year with a Result of champions, and Matches larger than 5?
|
SELECT COUNT Year FROM table WHERE Result = champions AND Matches > 5
|
Translate the following into a SQL query
|
What is the greatest Wins with Losses larger than 1?
|
SELECT MAX Wins FROM table WHERE Losses > 1
|
Translate the following into a SQL query
|
What is the total number of Year with Wins of 1, and Losses smaller than 1?
|
SELECT SUM Year FROM table WHERE Wins = 1 AND Losses < 1
|
Translate the following into a SQL query
|
What is the greatest Wins with Matches smaller than 5, and a Year of 1994?
|
SELECT MAX Wins FROM table WHERE Matches < 5 AND Year = 1994
|
Translate the following into a SQL query
|
On what date was Motherwell the opponent at Fir Park?
|
SELECT Date FROM table WHERE Opponent = motherwell AND Venue = fir park
|
Translate the following into a SQL query
|
What is the round at St. Mirren Park with more than 4,555 people attending?
|
SELECT Round FROM table WHERE Venue = st. mirren park AND Attendance > 4,555
|
Translate the following into a SQL query
|
What's the sum of attendance when banbury united is the away team and tie no is over 102?
|
SELECT SUM Attendance FROM table WHERE Away team = banbury united AND Tie no > 102
|
Translate the following into a SQL query
|
What's the sum of tie no for home team burgess hill town?
|
SELECT SUM Tie no FROM table WHERE Home team = burgess hill town
|
Translate the following into a SQL query
|
What is the highest population of Deuel county's 1,819 households?
|
SELECT MAX Population FROM table WHERE County = deuel AND Number of households < 1,819
|
Translate the following into a SQL query
|
When the venue is away and the opponents are the bracknell bees, what is the competition?
|
SELECT Competition FROM table WHERE Venue = away AND Opponent = bracknell bees
|
Translate the following into a SQL query
|
What opponent played on the 28th with a venue of away?
|
SELECT Opponent FROM table WHERE Venue = away AND Date = 28th
|
Translate the following into a SQL query
|
What was the venue on the 20th?
|
SELECT Venue FROM table WHERE Date = 20th
|
Translate the following into a SQL query
|
When did the peterborough phantoms play at a venue of home?
|
SELECT Date FROM table WHERE Venue = home AND Opponent = peterborough phantoms
|
Translate the following into a SQL query
|
Which opponent has a result of 2-0 l?
|
SELECT Opponent FROM table WHERE Result = 2-0 l
|
Translate the following into a SQL query
|
Which opponent completed a challenge competition with a result of 8-2 w?
|
SELECT Opponent FROM table WHERE Competition = challenge AND Result = 8-2 w
|
Translate the following into a SQL query
|
What shows for round when the race was Int. Adac Preis Von Zweibrücken?
|
SELECT Round FROM table WHERE Race = int. adac preis von zweibrücken
|
Translate the following into a SQL query
|
What is the round for the Norisring circuit?
|
SELECT AVG Round FROM table WHERE Circuit = norisring
|
Translate the following into a SQL query
|
What race was a round smaller than 8, on 6 july?
|
SELECT Race FROM table WHERE Round < 8 AND Date = 6 july
|
Translate the following into a SQL query
|
What is the round for the Int. Adac-Preis Der Tourenwagen Von Sachsen-Anhalt?
|
SELECT Round FROM table WHERE Race = int. adac-preis der tourenwagen von sachsen-anhalt
|
Translate the following into a SQL query
|
What week were there 56,023 people in attendance?
|
SELECT COUNT Week FROM table WHERE Attendance = 56,023
|
Translate the following into a SQL query
|
What is the attendance number later than week 9 on November 20, 1983?
|
SELECT COUNT Attendance FROM table WHERE Week > 9 AND Date = november 20, 1983
|
Translate the following into a SQL query
|
What is Surface, when Date is less than 1979, and when Opponent in the Final is "Bill Scanlon"?
|
SELECT Surface FROM table WHERE Date < 1979 AND Opponent in the final = bill scanlon
|
Translate the following into a SQL query
|
What is Score in The Final, when Opponent in The Final is "John McEnroe", and when Championship is "Los Angeles , U.S."?
|
SELECT Score in the final FROM table WHERE Opponent in the final = john mcenroe AND Championship = los angeles , u.s.
|
Translate the following into a SQL query
|
What is Outcome, when Opponent in The Final is "Bill Scanlon"?
|
SELECT Outcome FROM table WHERE Opponent in the final = bill scanlon
|
Translate the following into a SQL query
|
Which To par has a Player of bernhard langer?
|
SELECT To par FROM table WHERE Player = bernhard langer
|
Translate the following into a SQL query
|
Which Score has a Country of united states, and a Player of raymond floyd?
|
SELECT Score FROM table WHERE Country = united states AND Player = raymond floyd
|
Translate the following into a SQL query
|
Which To par has a Place of t6, and a Player of nick faldo?
|
SELECT To par FROM table WHERE Place = t6 AND Player = nick faldo
|
Translate the following into a SQL query
|
Which To par has a Place of t2, and a Player of mark james?
|
SELECT To par FROM table WHERE Place = t2 AND Player = mark james
|
Translate the following into a SQL query
|
Which Country has a Place of t10, and a Player of tony jacklin?
|
SELECT Country FROM table WHERE Place = t10 AND Player = tony jacklin
|
Translate the following into a SQL query
|
Which Country has a Score of 71-74-70=215?
|
SELECT Country FROM table WHERE Score = 71-74-70=215
|
Translate the following into a SQL query
|
How many losses for the team with less than 4 wins, more than 0 byes and 2510 against?
|
SELECT AVG Losses FROM table WHERE Wins < 4 AND Against = 2510 AND Byes > 0
|
Translate the following into a SQL query
|
How many wins for team with 1800 Against and more than 0 byes?
|
SELECT MAX Wins FROM table WHERE Against = 1800 AND Draws > 0
|
Translate the following into a SQL query
|
What is the least wins for a team with against less than 814?
|
SELECT MIN Wins FROM table WHERE Against < 814
|
Translate the following into a SQL query
|
How many losses for the team with 3 wins and more than 1919 against?
|
SELECT MIN Losses FROM table WHERE Wins = 3 AND Against > 1919
|
Translate the following into a SQL query
|
What is the 2002 result where 2011 and 2000 are 1R?
|
SELECT 2002 FROM table WHERE 2011 = 1r AND 2000 = 1r
|
Translate the following into a SQL query
|
What is the 2008 result where 2003 is 325?
|
SELECT 2008 FROM table WHERE 2003 = 325
|
Translate the following into a SQL query
|
What is the 2002 result when 2006 is A and 2010 is Q1?
|
SELECT 2002 FROM table WHERE 2006 = a AND 2010 = q1
|
Translate the following into a SQL query
|
Which Year completed has a Dam type of concrete gravity, and an Impounded body of water of deep creek reservoir?
|
SELECT MIN Year completed FROM table WHERE Dam type = concrete gravity AND Impounded body of water = deep creek reservoir
|
Translate the following into a SQL query
|
Which dam type was completed in 1961?
|
SELECT Dam type FROM table WHERE Year completed = 1961
|
Translate the following into a SQL query
|
Which Year completed has a Dam type of earthfill embankment, and a Dam constructed of khancoban dam?
|
SELECT MAX Year completed FROM table WHERE Dam type = earthfill embankment AND Dam constructed = khancoban dam
|
Translate the following into a SQL query
|
Which Reservoir capacity has an Impounded body of water of tumut two pondage?
|
SELECT Reservoir capacity FROM table WHERE Impounded body of water = tumut two pondage
|
Translate the following into a SQL query
|
What Companion (in order from star) has a Semimajor axis (AU) of 0.1886 +0.083 −0.0104?
|
SELECT Companion (in order from star) FROM table WHERE Semimajor axis ( AU ) = 0.1886 +0.083 −0.0104
|
Translate the following into a SQL query
|
What Inclination has Eccentricity of 0.06 +0.06 −0.11?
|
SELECT Inclination FROM table WHERE Eccentricity = 0.06 +0.06 −0.11
|
Translate the following into a SQL query
|
What Companion (in order from star) has an Orbital period (s day) of 9.6184 +0.0050 −0.0049?
|
SELECT Companion (in order from star) FROM table WHERE Orbital period ( s day ) = 9.6184 +0.0050 −0.0049
|
Translate the following into a SQL query
|
What Inclination has a Mass of ≥ 6.6 +1.1 −1.0 m⊕?
|
SELECT Inclination FROM table WHERE Mass = ≥ 6.6 +1.1 −1.0 m⊕
|
Translate the following into a SQL query
|
What Semimajor axis (AU) has a Companion (in order from star) of g?
|
SELECT Semimajor axis ( AU ) FROM table WHERE Companion (in order from star) = g
|
Translate the following into a SQL query
|
What Semimajor axis (AU) has a Mass of ≥ 3.5 ± 1.4 m⊕?
|
SELECT Semimajor axis ( AU ) FROM table WHERE Mass = ≥ 3.5 ± 1.4 m⊕
|
Translate the following into a SQL query
|
What Slalom was Switzerland in?
|
SELECT Slalom FROM table WHERE Country = switzerland
|
Translate the following into a SQL query
|
WHAT IS THE PACKAGE VERSION WITH TELUS MOBILITY?
|
SELECT Package Version FROM table WHERE Carrier = telus mobility
|
Translate the following into a SQL query
|
WHAT IS THE PACKAGE VERSION FOR blackberry storm 9530, APPLICATION 5.0.0.419, AND MTS MOBILITY?
|
SELECT Package Version FROM table WHERE Device = blackberry storm 9530 AND Applications = 5.0.0.419 AND Carrier = mts mobility
|
Translate the following into a SQL query
|
WHAT IS THE CARRIER WITH 5.0.0.742 VERSION?
|
SELECT Carrier FROM table WHERE Package Version = 5.0.0.742
|
Translate the following into a SQL query
|
WHAT IS THE CARRIER FOR 4.7.0.208 VERSION?
|
SELECT Carrier FROM table WHERE Package Version = 4.7.0.208
|
Translate the following into a SQL query
|
WHAT IS THE DEVICE WITH MTS MOBILITY?
|
SELECT Device FROM table WHERE Carrier = mts mobility
|
Translate the following into a SQL query
|
How much money was there when the to par was 15?
|
SELECT SUM Money ( $ ) FROM table WHERE To par = 15
|
Translate the following into a SQL query
|
What are the years for the 250 model?
|
SELECT Years FROM table WHERE Model = 250
|
Translate the following into a SQL query
|
What is the power of the Chassis code w123.130?
|
SELECT Power FROM table WHERE Chassis code = w123.130
|
Translate the following into a SQL query
|
What Engine does the w123.026 chassis have?
|
SELECT Engine FROM table WHERE Chassis code = w123.026
|
Translate the following into a SQL query
|
What Chassis code has a 200d model and a Power of ps (kw; hp) @ 4200?
|
SELECT Chassis code FROM table WHERE Power = ps (kw; hp) @ 4200 AND Model = 200d
|
Translate the following into a SQL query
|
What is the height in ft and m of the regions bank building?
|
SELECT Height ft (m) FROM table WHERE Name = regions bank building
|
Translate the following into a SQL query
|
What is the street address of the van antwerp building?
|
SELECT Street address FROM table WHERE Name = van antwerp building
|
Translate the following into a SQL query
|
What is the hight in ft and m of the building with less than 11 floors?
|
SELECT Height ft (m) FROM table WHERE Floors < 11
|
Translate the following into a SQL query
|
What is the against when the opposing team is Italy?
|
SELECT COUNT Against FROM table WHERE Opposing Teams = italy
|
Translate the following into a SQL query
|
What is Cha Bum-Kun's average number of goals per match?
|
SELECT COUNT Goals per Match FROM table WHERE Name = cha bum-kun
|
Translate the following into a SQL query
|
How many caps does Jon Dahl Tomasson, who has less than 0.46 goals per match, have?
|
SELECT COUNT Caps FROM table WHERE Name = jon dahl tomasson AND Goals per Match < 0.46
|
Translate the following into a SQL query
|
What is the club from Vila Do Conde?
|
SELECT Club FROM table WHERE City = vila do conde
|
Translate the following into a SQL query
|
What is the stadium for the team that was 6th in the liga in the 2004-2005 season?
|
SELECT Stadium FROM table WHERE 2004-2005 season = 6th in the liga
|
Translate the following into a SQL query
|
What is the stadium for the city of Braga?
|
SELECT Stadium FROM table WHERE City = braga
|
Translate the following into a SQL query
|
In what round was Kelsey Tessier drafted?
|
SELECT Round FROM table WHERE Player = kelsey tessier
|
Translate the following into a SQL query
|
What is Local Mission, when Mission is "Mauritius"?
|
SELECT Local Mission FROM table WHERE Mission = mauritius
|
Translate the following into a SQL query
|
What is Local Position, when Mission is "Paraguay"?
|
SELECT Local Position FROM table WHERE Mission = paraguay
|
Translate the following into a SQL query
|
What is Local Location, when Local Position is "Ambassador", when Non-Resident Head of Mission is "Marina Isabel Cáceres de Estévez", and when Mission is "Finland"?
|
SELECT Local Location FROM table WHERE Local Position = ambassador AND Non-Resident Head of Mission = marina isabel cáceres de estévez AND Mission = finland
|
Translate the following into a SQL query
|
What is Non-Resident Head of Mission, when Local Location is "Warsaw", and when Mission is "Poland"?
|
SELECT Non-Resident Head of Mission FROM table WHERE Local Location = warsaw AND Mission = poland
|
Translate the following into a SQL query
|
What is Local Location, when Resident Country is "Belgium", and when Mission is "Poland"?
|
SELECT Local Location FROM table WHERE Resident Country = belgium AND Mission = poland
|
Translate the following into a SQL query
|
What is Resident Country, when Local Location is "Copenhagen"?
|
SELECT Resident Country FROM table WHERE Local Location = copenhagen
|
Translate the following into a SQL query
|
What is Player, when Place is "1"?
|
SELECT Player FROM table WHERE Place = 1
|
Translate the following into a SQL query
|
What is Score, when Country is "United States", when Place is "T3", and when Player is "Phil Blackmar"?
|
SELECT Score FROM table WHERE Country = united states AND Place = t3 AND Player = phil blackmar
|
Translate the following into a SQL query
|
What is To Par, when Country is "Australia"?
|
SELECT To par FROM table WHERE Country = australia
|
Translate the following into a SQL query
|
What is Score, when Player is "Vijay Singh"?
|
SELECT Score FROM table WHERE Player = vijay singh
|
Translate the following into a SQL query
|
What type of surface did they play on 23 October 2000?
|
SELECT Surface FROM table WHERE Date = 23 october 2000
|
Translate the following into a SQL query
|
What type of surface did they play on 21 July 1997
|
SELECT Surface FROM table WHERE Date = 21 july 1997
|
Translate the following into a SQL query
|
what was the score of the Championship match played in Estoril, Portugal?
|
SELECT Score in the final FROM table WHERE Championship = estoril, portugal
|
Translate the following into a SQL query
|
What was the name of the opponent Tommy Haas played in the Championship?
|
SELECT Championship FROM table WHERE Opponent in the final = tommy haas
|
Translate the following into a SQL query
|
What was the score of the match played on 18 January 1999?
|
SELECT Outcome FROM table WHERE Date = 18 january 1999
|
Translate the following into a SQL query
|
What season has roma as the opponent?
|
SELECT Season FROM table WHERE Opponent = roma
|
Translate the following into a SQL query
|
What is the Ship Type of the Prize Disposition of ship and a tonnage less than 151?
|
SELECT Ship Type FROM table WHERE Disposition of Ship = prize AND Tonnage < 151
|
Translate the following into a SQL query
|
What is the highest tonnage of the Brig Ship Type and the disposition of Ship of Prize?
|
SELECT MAX Tonnage FROM table WHERE Ship Type = brig AND Disposition of Ship = prize
|
Translate the following into a SQL query
|
What's the to par for england when the score is less than 71?
|
SELECT To par FROM table WHERE Country = england AND Score < 71
|
Translate the following into a SQL query
|
What is the lowest total for 1985-1986 when the total points are 124?
|
SELECT MIN 1985-1986 FROM table WHERE Total points = 124
|
Translate the following into a SQL query
|
Which Year born (Age) has a Current Club of sporting al riyadi beirut, and a Position of pf?
|
SELECT Year born (Age) FROM table WHERE Current Club = sporting al riyadi beirut AND Position = pf
|
Translate the following into a SQL query
|
Which Current Club has a Player of bassem balaa?
|
SELECT Current Club FROM table WHERE Player = bassem balaa
|
Translate the following into a SQL query
|
What was the round in 1968?
|
SELECT Round FROM table WHERE Year = 1968
|
Translate the following into a SQL query
|
What is the round for a year earlier than 1987?
|
SELECT Round FROM table WHERE Year < 1987
|
Translate the following into a SQL query
|
What is the round when Grand Slam was the Davis Cup?
|
SELECT Round FROM table WHERE Grand Slam = davis cup
|
Translate the following into a SQL query
|
What is the grand slam in 1987, when round shows first round, and Ivan Lendl won?
|
SELECT Grand Slam FROM table WHERE Year = 1987 AND Round = first round AND Winner = ivan lendl
|
Translate the following into a SQL query
|
What is the highes win % that manager juan carlos chávez's team had when they lost less than 4 times?
|
SELECT MAX Win % FROM table WHERE Manager = juan carlos chávez AND Lost < 4
|
Translate the following into a SQL query
|
In which district is the incumbent a republican first elected in 1998?
|
SELECT District FROM table WHERE Party = republican AND First elected = 1998
|
Translate the following into a SQL query
|
What is the party affiliation of Virginia Foxx?
|
SELECT Party FROM table WHERE Incumbent = virginia foxx
|
Translate the following into a SQL query
|
What is Event, when Winning Driver is "Laurent Aiello Laurent Aiello", when Round is greater than 1, and when Circuit is "Wunstorf"?
|
SELECT Event FROM table WHERE Winning driver = laurent aiello laurent aiello AND Round > 1 AND Circuit = wunstorf
|
Translate the following into a SQL query
|
What is Date, when Round is "2"?
|
SELECT Date FROM table WHERE Round = 2
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.