instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Name the power for 1.8 duratorq
SELECT Power/rpm FROM table WHERE Model/Engine = 1.8 duratorq
Translate the following into a SQL query
Name the power for when the torque is n·m (lb·ft)/*n·m (lb·ft) @1750
SELECT Power/rpm FROM table WHERE Torque (Nm)/rpm = n·m (lb·ft)/*n·m (lb·ft) @1750
Translate the following into a SQL query
What are the smallest goals with a Goal Ratio of 0.14, and a Debut in Europe smaller than 1995?
SELECT MIN Goals FROM table WHERE Goal Ratio = 0.14 AND Debut in Europe < 1995
Translate the following into a SQL query
What's the average goal ratio with Goals larger than 1, Games larger than 161, and a Debut in Europe smaller than 1985?
SELECT AVG Goal Ratio FROM table WHERE Goals > 1 AND Games > 161 AND Debut in Europe < 1985
Translate the following into a SQL query
What lowest games have 20 goals and a Goal Ratio smaller than 0.14?
SELECT MIN Games FROM table WHERE Goals = 20 AND Goal Ratio < 0.14
Translate the following into a SQL query
What is the largest goal ratio with Goals smaller than 0?
SELECT MAX Goal Ratio FROM table WHERE Goals < 0
Translate the following into a SQL query
What lowest games have a Goal Ratio of 0, and Goals smaller than 0?
SELECT MIN Games FROM table WHERE Goal Ratio = 0 AND Goals < 0
Translate the following into a SQL query
How many debuts in Europe have less than 76 goals, more than 151 games, and a rank greater than 5?
SELECT COUNT Debut in Europe FROM table WHERE Goals < 76 AND Games > 151 AND Rank > 5
Translate the following into a SQL query
What is the average points of the Ferrari 1512 Chassis after 1965?
SELECT AVG Points FROM table WHERE Chassis = ferrari 1512 AND Year > 1965
Translate the following into a SQL query
What is the Chassis of the Cooper Car Company after 1965 when the engine was a Maserati v12?
SELECT Chassis FROM table WHERE Year > 1965 AND Team = cooper car company AND Engine = maserati v12
Translate the following into a SQL query
Which location had a round of 3, and an Opponent of matt horwich?
SELECT Location FROM table WHERE Round < 3 AND Opponent = matt horwich
Translate the following into a SQL query
What was the time of sportfight 10?
SELECT Time FROM table WHERE Event = sportfight 10
Translate the following into a SQL query
Which opponent had a time of 0:29?
SELECT Opponent FROM table WHERE Time = 0:29
Translate the following into a SQL query
What number has the builder ruston hornsby, the date 1961, and the name Topsy?
SELECT COUNT Number FROM table WHERE Builder = ruston hornsby AND Date = 1961 AND Name = topsy
Translate the following into a SQL query
What is the number with the builder hunslet and a works number greater than 822?
SELECT COUNT Number FROM table WHERE Builder = hunslet AND Works number > 822
Translate the following into a SQL query
What was the score of the March 14 game?
SELECT Score FROM table WHERE Date = march 14
Translate the following into a SQL query
What was the score for the December 11 game against the Ottawa Senators?
SELECT Score FROM table WHERE Visitor = ottawa senators AND Date = december 11
Translate the following into a SQL query
Name the project with length overall being 25 and name of levante
SELECT Project FROM table WHERE Length overall in meters (without bowsprit) = 25 AND Name = levante
Translate the following into a SQL query
Name the sum of Hull number with portugal destination
SELECT SUM Hull No. FROM table WHERE Destination = portugal
Translate the following into a SQL query
Name the sum of hull number for italy and year more than 1999
SELECT SUM Hull No. FROM table WHERE Destination = italy AND Year > 1999
Translate the following into a SQL query
Give me the result for a format saying album with 1994 as the year.
SELECT Result(s) FROM table WHERE Format(s) = album AND Year = 1994
Translate the following into a SQL query
List the Award Descriptions for the year of 1989.
SELECT Award Description(s) FROM table WHERE Year = 1989
Translate the following into a SQL query
What is on at 9:30 on the channel of dancing with the stars?
SELECT 9:30 FROM table WHERE 8:30 = dancing with the stars
Translate the following into a SQL query
What is on at 7:30 when k-ville is on at 9:00 on that channel?
SELECT 7:30 FROM table WHERE 9:00 = k-ville
Translate the following into a SQL query
What is on at 8:30 when occupation double is on at 7:00 at that channel?
SELECT 8:30 FROM table WHERE 7:00 = occupation double
Translate the following into a SQL query
What is on at 8:30 when etalk is on at 7:00 on that channel?
SELECT 8:30 FROM table WHERE 7:00 = etalk
Translate the following into a SQL query
What is on at 8:00 when etalk is on at 7:00?
SELECT 8:00 FROM table WHERE 7:00 = etalk
Translate the following into a SQL query
What was the score of the game played on August 5?
SELECT Score FROM table WHERE Date = august 5
Translate the following into a SQL query
On what date was the Blue Jays record 60-56?
SELECT Date FROM table WHERE Record = 60-56
Translate the following into a SQL query
Tell me the name for first elected more than 1988 and district of mason
SELECT Name FROM table WHERE First elected > 1988 AND District = mason
Translate the following into a SQL query
Name the party with first elected more than 1999 and position of supervisor for john foust
SELECT Party FROM table WHERE First elected > 1999 AND Position = supervisor AND Name = john foust
Translate the following into a SQL query
Name the total number of first elected for dranesville
SELECT COUNT First elected FROM table WHERE District = dranesville
Translate the following into a SQL query
What year was the venue at Sydney Cricket Ground, and the opponent was Parramatta Eels?
SELECT COUNT Year FROM table WHERE Venue = sydney cricket ground AND Opponent = parramatta eels
Translate the following into a SQL query
What was the competition in 1978?
SELECT Competition FROM table WHERE Year = 1978
Translate the following into a SQL query
What year was the average attendance 80,388?
SELECT AVG Year FROM table WHERE Attendance = 80,388
Translate the following into a SQL query
What was the score with the opponent being New Zealand Warriors?
SELECT Score FROM table WHERE Opponent = new zealand warriors
Translate the following into a SQL query
Which 1st Party has an election in 1847?
SELECT 1st Party FROM table WHERE Election = 1847
Translate the following into a SQL query
Which 1st Party has an election in 1865?
SELECT 1st Party FROM table WHERE Election = 1865
Translate the following into a SQL query
Which 1st Party has a 2nd Member of constituency abolished?
SELECT 1st Party FROM table WHERE 2nd Member = constituency abolished
Translate the following into a SQL query
Which 1st Member has an election in 1880 and a liberal 1st Party?
SELECT 1st Member FROM table WHERE 1st Party = liberal AND Election = 1880
Translate the following into a SQL query
Which 1st Member has an election in 1859 and a conservative 2nd Party?
SELECT 1st Member FROM table WHERE 2nd Party = conservative AND Election = 1859
Translate the following into a SQL query
What was the average number of points with bonus pts less than 31 with the rider dennis gavros?
SELECT AVG Total Points FROM table WHERE Rider = dennis gavros AND Bonus Pts < 31
Translate the following into a SQL query
How many total matches involving dennis gavros had total points less than 167?
SELECT COUNT Matches FROM table WHERE Rider = dennis gavros AND Total Points < 167
Translate the following into a SQL query
What is the smallest number of matches with Bonus Pts of 19 and Total Points greater than 421?
SELECT MIN Matches FROM table WHERE Bonus Pts = 19 AND Total Points > 421
Translate the following into a SQL query
Which category earlier than 2006 has Bart Brentjens as rider 2?
SELECT Category FROM table WHERE Date < 2006 AND Rider 2 = bart brentjens
Translate the following into a SQL query
How many dates does the ladies category correspond to Rothaus-Cube?
SELECT COUNT Date FROM table WHERE Category = ladies AND Team = rothaus-cube
Translate the following into a SQL query
Which category has a team of Cannondale Vredestein?
SELECT Category FROM table WHERE Team = cannondale vredestein
Translate the following into a SQL query
What is the qual with a rank 9?
SELECT Qual FROM table WHERE Rank = 9
Translate the following into a SQL query
What is the finish in 1956?
SELECT Finish FROM table WHERE Year = 1956
Translate the following into a SQL query
What is the finish with 200 laps and a start of 3?
SELECT Finish FROM table WHERE Laps = 200 AND Start = 3
Translate the following into a SQL query
What is the qual with 200 laps and a rank of 27?
SELECT Qual FROM table WHERE Laps = 200 AND Rank = 27
Translate the following into a SQL query
What is the rank with a 14 finish?
SELECT Rank FROM table WHERE Finish = 14
Translate the following into a SQL query
When did Deng Xuan first win Women's singles?
SELECT MIN Year FROM table WHERE Women's singles = deng xuan
Translate the following into a SQL query
When did Julie Still first win Women's singles?
SELECT MIN Year FROM table WHERE Women's singles = julie still
Translate the following into a SQL query
What is the lowest cuts made of the Masters tournament, which had a top-25 less than 0?
SELECT MIN Cuts made FROM table WHERE Tournament = masters tournament AND Top-25 < 0
Translate the following into a SQL query
What is the highest number of wins a tournament with 1 cuts made, a top-25 less than 1, and less than 2 events has?
SELECT MAX Wins FROM table WHERE Cuts made = 1 AND Top-25 < 1 AND Events < 2
Translate the following into a SQL query
What is the average number of events the Masters tournament, which has more than 0 top-25, has?
SELECT AVG Events FROM table WHERE Tournament = masters tournament AND Top-25 > 0
Translate the following into a SQL query
What is the total number of top-25 a tournament with less than 2 events has?
SELECT COUNT Top-25 FROM table WHERE Events < 2
Translate the following into a SQL query
Who won Women's doubles when Nikhil Kanetkar won Men's singles?
SELECT Women's doubles FROM table WHERE Men's singles = nikhil kanetkar
Translate the following into a SQL query
Who won Women's doubles when Zen Yaqiong won Women's singles?
SELECT Women's doubles FROM table WHERE Women's singles = zen yaqiong
Translate the following into a SQL query
What was the date of the game that had a loss of Gott (2-7)?
SELECT Date FROM table WHERE Loss = gott (2-7)
Translate the following into a SQL query
Who was the opponent at the game when the record was 54-58?
SELECT Opponent FROM table WHERE Record = 54-58
Translate the following into a SQL query
What was the score of the game when the record was 59-65?
SELECT Score FROM table WHERE Record = 59-65
Translate the following into a SQL query
Who was the opponent at the game that had a loss of Caldwell (10-11)?
SELECT Opponent FROM table WHERE Loss = caldwell (10-11)
Translate the following into a SQL query
Which opponent had a time of 1:26?
SELECT Opponent FROM table WHERE Time = 1:26
Translate the following into a SQL query
What was the date of the game with the Kansas City Royals when the Blue Jays record was 18-12?
SELECT Date FROM table WHERE Opponent = royals AND Record = 18-12
Translate the following into a SQL query
Which catalogue is from the UK region, and is on vinyl, and was dated in 1986?
SELECT Catalogue FROM table WHERE Region = uk AND Format = vinyl AND Date = 1986
Translate the following into a SQL query
What region has a bronze label and a catalogue of 202 876-270?
SELECT Region FROM table WHERE Label = bronze AND Catalogue = 202 876-270
Translate the following into a SQL query
Which label is from the Germany region?
SELECT Label FROM table WHERE Region = germany
Translate the following into a SQL query
What label has brol 34531 as it's catalogue?
SELECT Label FROM table WHERE Catalogue = brol 34531
Translate the following into a SQL query
Which label has UK for its region, is on a CD, and is dated from 1986?
SELECT Label FROM table WHERE Region = uk AND Date = 1986 AND Format = cd
Translate the following into a SQL query
Which catalogue has essential, castle music as it's label?
SELECT Catalogue FROM table WHERE Label = essential, castle music
Translate the following into a SQL query
What's the period of a rock album released in 1973?
SELECT Period active FROM table WHERE Release-year of first charted record = 1973 AND Genre = rock
Translate the following into a SQL query
Name the pick number for bill atessis
SELECT Pick # FROM table WHERE Name = bill atessis
Translate the following into a SQL query
Name the total number of overall for defensive tackle
SELECT COUNT Overall FROM table WHERE Position = defensive tackle
Translate the following into a SQL query
What is the 2012-list rank of a country with the lowest 2012-list rank out of all the countries with a 2010-list rank better than 13, a 2009-list rank of 0, a 2008-list rank lower than 4?
SELECT MAX 2012-list FROM table WHERE 2010-list < 13 AND 2009-list = 0 AND 2008-list > 4
Translate the following into a SQL query
Which engine has daimler benz ag as an entrant?
SELECT Engine FROM table WHERE Entrant = daimler benz ag
Translate the following into a SQL query
In which years was the to par +6?
SELECT Year(s) won FROM table WHERE To par = +6
Translate the following into a SQL query
In 1991, what was the lowest total?
SELECT MIN Total FROM table WHERE Year(s) won = 1991
Translate the following into a SQL query
What are the total lanes that have a rank larger than 22?
SELECT SUM Lane FROM table WHERE Rank > 22
Translate the following into a SQL query
Which one has a rank bigger than 2, lane of 1, and is from Hong Kong?
SELECT Name FROM table WHERE Rank > 2 AND Lane = 1 AND Nationality = hong kong
Translate the following into a SQL query
What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3?
SELECT SUM Rank FROM table WHERE Nationality = japan AND Lane < 7 AND Heat < 3
Translate the following into a SQL query
What was Jim Hoff's sum of losses and a wins smaller than 12?
SELECT SUM Losses FROM table WHERE Manager = jim hoff AND Wins < 12
Translate the following into a SQL query
What was the average of games that were one in 1978 that were smaller than 141?
SELECT AVG Wins FROM table WHERE Years = 1978 AND Games < 141
Translate the following into a SQL query
What was the sum of Richie Hebner winning games that were smaller 34?
SELECT SUM Games FROM table WHERE Manager = richie hebner AND Wins < 34
Translate the following into a SQL query
What was the average of wins with manager George Scherger smaller than 3 and losses smaller than 1?
SELECT AVG Wins FROM table WHERE Games < 3 AND Manager = george scherger AND Losses < 1
Translate the following into a SQL query
When was the golden slipper race?
SELECT Date FROM table WHERE Race = golden slipper
Translate the following into a SQL query
In which races did the jockey weigh less than 55.5 kg?
SELECT Race FROM table WHERE Weight (kg) < 55.5
Translate the following into a SQL query
What was the result of the Todman stakes race at rosehill?
SELECT Result FROM table WHERE Venue = rosehill AND Race = todman stakes
Translate the following into a SQL query
What Country has Player Ky Laffoon?
SELECT Country FROM table WHERE Player = ky laffoon
Translate the following into a SQL query
What Player is from the Country United States and Money ($) of 356?
SELECT Player FROM table WHERE Country = united states AND Money ( $ ) = 356
Translate the following into a SQL query
What Player has a To par of +1 and the Score 75-70-71-73=289?
SELECT Player FROM table WHERE To par = +1 AND Score = 75-70-71-73=289
Translate the following into a SQL query
What was the outcome for the Rome 2, Italy tournament?
SELECT Outcome FROM table WHERE Tournament = rome 2, italy
Translate the following into a SQL query
What was the outcome of the match opponents in the final of Marius Călugăru Ciprian Petre Porumb?
SELECT Outcome FROM table WHERE Opponents in the final = marius călugăru ciprian petre porumb
Translate the following into a SQL query
How many golds have a Total of 11, and a Bronze smaller than 3?
SELECT SUM Gold FROM table WHERE Total = 11 AND Bronze < 3
Translate the following into a SQL query
How many golds have a Bronze of 0, a Total larger than 1, a Nation of chad, and a Silver larger than 0?
SELECT SUM Gold FROM table WHERE Bronze = 0 AND Total > 1 AND Nation = chad AND Silver > 0
Translate the following into a SQL query
What is the smallest silver with a Gold of 1, and a Nation of lithuania?
SELECT MIN Silver FROM table WHERE Gold = 1 AND Nation = lithuania
Translate the following into a SQL query
What is the total bronze with a Gold larger than 1, a Rank of 2, and a Silver smaller than 12?
SELECT COUNT Bronze FROM table WHERE Gold > 1 AND Rank = 2 AND Silver < 12
Translate the following into a SQL query
Which Visiting Team is on december 23?
SELECT Visiting Team FROM table WHERE Date = december 23
Translate the following into a SQL query
Which Host Team has Final Score of 42-23?
SELECT Host Team FROM table WHERE Final Score = 42-23