instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Which Surface has a Result of fernando verdasco?
SELECT Surface FROM table WHERE Result = fernando verdasco
Translate the following into a SQL query
How many events did clay win?
SELECT COUNT !Event FROM table WHERE Winner = clay
Translate the following into a SQL query
Which Surface has an Opponent of rafael nadal, and an Event of 2?
SELECT Surface FROM table WHERE Opponent = rafael nadal AND !Event = 2
Translate the following into a SQL query
Who is iván navarro's opponent?
SELECT Opponent FROM table WHERE Result = iván navarro
Translate the following into a SQL query
Which Event has a Surface of semifinal, and a Winner of hard (i)?
SELECT MAX !Event FROM table WHERE Surface = semifinal AND Winner = hard (i)
Translate the following into a SQL query
Who was the leader at the summit earlier than 1956, when Carcassonne shows for finish?
SELECT Leader at the summit FROM table WHERE Year < 1956 AND Finish = carcassonne
Translate the following into a SQL query
What year was finish Toulouse, and stage was larger than 12?
SELECT SUM Year FROM table WHERE Finish = toulouse AND Stage > 12
Translate the following into a SQL query
What is the highest stage number for a year later than 1948, leader at the summit was group, and finish was Bagnères-De-Bigorre?
SELECT MAX Stage FROM table WHERE Year > 1948 AND Leader at the summit = group AND Finish = bagnères-de-bigorre
Translate the following into a SQL query
which Vacator has a Reason for change of resigned november 10, 1965?
SELECT Vacator FROM table WHERE Reason for change = resigned november 10, 1965
Translate the following into a SQL query
Which Reason has a State (class) of tennessee (2)?
SELECT Reason for change FROM table WHERE State (class) = tennessee (2)
Translate the following into a SQL query
When is it that successor's formal installation has a Vacator of ross bass (d)?
SELECT Date of successor's formal installation FROM table WHERE Vacator = ross bass (d)
Translate the following into a SQL query
Which State (class) has a Successor of harry f. byrd, jr. (d)? Question
SELECT State (class) FROM table WHERE Successor = harry f. byrd, jr. (d)
Translate the following into a SQL query
Which date of Date of successor's formal installation has a State (class) of michigan (2)?
SELECT Date of successor's formal installation FROM table WHERE State (class) = michigan (2)
Translate the following into a SQL query
Which country has a Col (m) of 1374?
SELECT Country FROM table WHERE Col (m) = 1374
Translate the following into a SQL query
How many Games have Years at club of 1971–1974, and a Debut year larger than 1971?
SELECT SUM Games FROM table WHERE Years at club = 1971–1974 AND Debut year > 1971
Translate the following into a SQL query
Which Games have Years at club of 1974–1975, and Goals of 4?
SELECT AVG Games FROM table WHERE Years at club = 1974–1975 AND Goals = 4
Translate the following into a SQL query
Which Years at club have Games smaller than 7, and Goals larger than 2, and a Player of john frazer?
SELECT Years at club FROM table WHERE Games < 7 AND Goals > 2 AND Player = john frazer
Translate the following into a SQL query
Which Games have Years at club of 1977, and Goals of 17, and a Debut year smaller than 1977?
SELECT AVG Games FROM table WHERE Years at club = 1977 AND Goals = 17 AND Debut year < 1977
Translate the following into a SQL query
Which Goals have Games smaller than 41, and a Player of mark amos?
SELECT MIN Goals FROM table WHERE Games < 41 AND Player = mark amos
Translate the following into a SQL query
What is Melaine Walker's Rank?
SELECT SUM Rank FROM table WHERE Name = melaine walker
Translate the following into a SQL query
What is the Name of the Player with a Rank of 23 or less, Heat of 4 and Result of 55.91?
SELECT Name FROM table WHERE Heat = 4 AND Rank < 23 AND Result = 55.91
Translate the following into a SQL query
What is the Heat of the Player with a Rank of 18 or less and Result of 55.15?
SELECT Heat FROM table WHERE Rank < 18 AND Result = 55.15
Translate the following into a SQL query
What is the quantity preserved for fleet number(s) 3000–3015?
SELECT Quantity preserved FROM table WHERE Fleet number(s) = 3000–3015
Translate the following into a SQL query
What manufacturer has a wheel arrangement of 4-6-6-4, and a Class of z-7?
SELECT Manufacturer FROM table WHERE Wheel arrangement = 4-6-6-4 AND Class = z-7
Translate the following into a SQL query
What is the Year for fleet number 5000?
SELECT Year made FROM table WHERE Fleet number(s) = 5000
Translate the following into a SQL query
What year made has a Quantity made of 4?
SELECT Year made FROM table WHERE Quantity made = 4
Translate the following into a SQL query
What is the quantity preserved for the serial number of mallet and simple articulated locomotives?
SELECT Quantity preserved FROM table WHERE Serial numbers = mallet and simple articulated locomotives
Translate the following into a SQL query
How many silver medals did Estonia, which won more than 1 gold and less than 97 medals total, win?
SELECT Silver FROM table WHERE Gold > 1 AND Total < 97 AND Nation = estonia
Translate the following into a SQL query
How many gold medals did Denmark win?
SELECT MIN Gold FROM table WHERE Nation = denmark
Translate the following into a SQL query
What is the total number of gold medals won among nations that won more than 27 bronze and less than 305 medals total?
SELECT COUNT Gold FROM table WHERE Bronze > 27 AND Total < 305
Translate the following into a SQL query
How many gold medals were won by the nation that won over 4 silver medals, over 14 bronze, and 97 medals total?
SELECT COUNT Gold FROM table WHERE Silver > 4 AND Bronze > 14 AND Total = 97
Translate the following into a SQL query
What is the highest championship that has 1 as the league cup, and 17 as the total?
SELECT MAX Championship FROM table WHERE League Cup = 1 AND Total = 17
Translate the following into a SQL query
How many league cups have an FA Cup less than 0?
SELECT COUNT League Cup FROM table WHERE FA Cup < 0
Translate the following into a SQL query
On what date was the Brookwood, which weighed over 5,008 tons, attacked?
SELECT Date FROM table WHERE Tonnage > 5,008 AND Name of ship = brookwood
Translate the following into a SQL query
What is the average rank of west germany (frg), which has more than 1 silver, less than 11 gold, and 2 bronze medals?
SELECT AVG Rank FROM table WHERE Silver > 1 AND Gold < 11 AND Bronze = 2 AND Nation = west germany (frg)
Translate the following into a SQL query
What's the date when Yelena Isinbayeva for Russia was in Beijing, China?
SELECT Date FROM table WHERE Nation = russia AND Place = beijing, china AND Athlete = yelena isinbayeva
Translate the following into a SQL query
What's the performance of Dire Tune?
SELECT Performance FROM table WHERE Athlete = dire tune
Translate the following into a SQL query
What place had 14:11.15 as the performance?
SELECT Place FROM table WHERE Performance = 14:11.15
Translate the following into a SQL query
What's the event that had a performance of 14:11.15 by Ethiopia?
SELECT Event FROM table WHERE Nation = ethiopia AND Performance = 14:11.15
Translate the following into a SQL query
What was the position of the player picked after 94, by the Boston Patriots?
SELECT Position FROM table WHERE Pick > 94 AND Team = boston patriots
Translate the following into a SQL query
What college had the 93 pick?
SELECT College FROM table WHERE Pick = 93
Translate the following into a SQL query
Does the Robert McKimson title featuring Bugs Bunny have a reissue?
SELECT reissue? FROM table WHERE Characters = bugs bunny AND Director = robert mckimson
Translate the following into a SQL query
What venue has euro 2004 q. as the competition?
SELECT Venue FROM table WHERE Competition = euro 2004 q.
Translate the following into a SQL query
What county is Whiteland Community School in?
SELECT County FROM table WHERE School = whiteland community
Translate the following into a SQL query
What county has a football team in IHSAA class AAAAA and a school macot of the Grizzly Cubs?
SELECT County FROM table WHERE IHSAA Football Class = aaaaa AND Mascot = grizzly cubs
Translate the following into a SQL query
What county has a school mascot of the Pioneers?
SELECT County FROM table WHERE Mascot = pioneers
Translate the following into a SQL query
What are the IHSAA classes of the Indianapolis schools?
SELECT IHSAA Class FROM table WHERE Location = indianapolis
Translate the following into a SQL query
Which Song has Points smaller than 53, and a Place larger than 8, and a Draw larger than 1?
SELECT Song FROM table WHERE Points < 53 AND Place > 8 AND Draw > 1
Translate the following into a SQL query
What is the result for the Green-Communist party when the Left Bloc has 3.6%?
SELECT Green-Communist FROM table WHERE Left Bloc = 3.6%
Translate the following into a SQL query
What is the result for the Green-Communist party when the Left Bloc has 3.0%?
SELECT Green-Communist FROM table WHERE Left Bloc = 3.0%
Translate the following into a SQL query
What is the result for the Socialist party when the People's Party has 6.8%?
SELECT Socialist FROM table WHERE People's Party = 6.8%
Translate the following into a SQL query
What is the date released when the Left Bloc had 3.2%?
SELECT Date Released FROM table WHERE Left Bloc = 3.2%
Translate the following into a SQL query
What is the cardinalatial order of the elector elevated circa 1116?
SELECT Cardinalatial order and title FROM table WHERE Elevated = circa 1116
Translate the following into a SQL query
When was the elector from pisa elevated?
SELECT Elevated FROM table WHERE Nationality = pisa
Translate the following into a SQL query
What is the cardinalatial order and title of bosone?
SELECT Cardinalatial order and title FROM table WHERE Elector = bosone
Translate the following into a SQL query
Who is the elevator from crema?
SELECT Elevator FROM table WHERE Nationality = crema
Translate the following into a SQL query
What is the name of the swimmer from Australia in lane 4 with a heat larger than 4?
SELECT Name FROM table WHERE Heat > 4 AND Lane = 4 AND Nationality = australia
Translate the following into a SQL query
What is the lowest heat number for a swimmer with a time of 2:34.94?
SELECT MIN Heat FROM table WHERE Time = 2:34.94
Translate the following into a SQL query
What is the rank of the player from Ukraine with react less than 0.26?
SELECT COUNT Rank FROM table WHERE Nationality = ukraine AND React < 0.26
Translate the following into a SQL query
What was the highest week with a w 21-17 result, and more than 45,254 in attendance?
SELECT MAX Week FROM table WHERE Result = w 21-17 AND Attendance > 45,254
Translate the following into a SQL query
What's the Proto-Germanic when the Old English is /d/?
SELECT Proto-Germanic FROM table WHERE Old English = /d/
Translate the following into a SQL query
What's the Proto Germanic when then German is /s/ or /ts/?
SELECT Proto-Germanic FROM table WHERE German = /s/ or /ts/
Translate the following into a SQL query
What's the Dutch when then Old English is /d/?
SELECT Dutch FROM table WHERE Old English = /d/
Translate the following into a SQL query
What's the West Germanic when the German is /s/ or /ts/?
SELECT West Germanic FROM table WHERE German = /s/ or /ts/
Translate the following into a SQL query
What's the Proto-Germanic when the German is /t/?
SELECT Proto-Germanic FROM table WHERE German = /t/
Translate the following into a SQL query
What is the to par for japan
SELECT To par FROM table WHERE Country = japan
Translate the following into a SQL query
what player has $187,500 and score 66-75-71-69=281
SELECT Player FROM table WHERE Money ( $ ) = 187,500 AND Score = 66-75-71-69=281
Translate the following into a SQL query
what place has score 66-74-68-73=281
SELECT Place FROM table WHERE Score = 66-74-68-73=281
Translate the following into a SQL query
what player has place t10
SELECT Player FROM table WHERE Place = t10
Translate the following into a SQL query
what is the to par for $242,813 with score 68-72-74-66=280
SELECT To par FROM table WHERE Money ( $ ) = 242,813 AND Score = 68-72-74-66=280
Translate the following into a SQL query
Which School has a Size larger than 408, and a Mascot of pacers?
SELECT School FROM table WHERE Size > 408 AND Mascot = pacers
Translate the following into a SQL query
Which Size has an IHSAA Class of aa, and a Location of milan?
SELECT SUM Size FROM table WHERE IHSAA Class = aa AND Location = milan
Translate the following into a SQL query
Which County has a Mascot of pacers?
SELECT County FROM table WHERE Mascot = pacers
Translate the following into a SQL query
Which Mascot has a County of 69 ripley, and an IHSAA Class of aa, and a School of south ripley?
SELECT Mascot FROM table WHERE County = 69 ripley AND IHSAA Class = aa AND School = south ripley
Translate the following into a SQL query
Who was in Lane 5 and had a heat of 7?
SELECT Name FROM table WHERE Heat = 7 AND Lane = 5
Translate the following into a SQL query
What lane number was Hungary and had a heat of 4?
SELECT COUNT Lane FROM table WHERE Heat = 4 AND Nationality = hungary
Translate the following into a SQL query
What's the date when the score was 690.3?
SELECT Date FROM table WHERE Score = 690.3
Translate the following into a SQL query
What's the place of 1989 with a comp of ECH?
SELECT Place FROM table WHERE Comp = ech AND Date = 1989
Translate the following into a SQL query
Who was the shooter with a score of 686.4?
SELECT Shooter FROM table WHERE Score = 686.4
Translate the following into a SQL query
what is the year for borderlands 2?
SELECT Year FROM table WHERE Game = borderlands 2
Translate the following into a SQL query
what is the year for the game dead space 2?
SELECT Year FROM table WHERE Game = dead space 2
Translate the following into a SQL query
who is the developers for demon's souls?
SELECT Developer(s) FROM table WHERE Game = demon's souls
Translate the following into a SQL query
In what year is Zaxxon the Standalone?
SELECT Year FROM table WHERE Standalone = zaxxon
Translate the following into a SQL query
What is the Standalone in the year when Space Invaders is the Console?
SELECT Standalone FROM table WHERE Console = space invaders
Translate the following into a SQL query
What is the Standalone when Tron is the Arcade?
SELECT Standalone FROM table WHERE Arcade = tron
Translate the following into a SQL query
What is the Console when Space Invaders is the Arcade?
SELECT Console FROM table WHERE Arcade = space invaders
Translate the following into a SQL query
What position does the player from the Arizona Diamondbacks play?
SELECT Position FROM table WHERE Team = arizona diamondbacks
Translate the following into a SQL query
What school did P Jay Gehrke of the Kansas City Royals attend?
SELECT School FROM table WHERE Position = p AND Team = kansas city royals AND Player = jay gehrke
Translate the following into a SQL query
What country does Adam van Koeverden play for?
SELECT Country FROM table WHERE Athletes = adam van koeverden
Translate the following into a SQL query
what is the pick when the school is jasper hs (jasper, texas)?
SELECT Pick FROM table WHERE School = jasper hs (jasper, texas)
Translate the following into a SQL query
who is the player when the position is p and the team is oakland athletics?
SELECT Player FROM table WHERE Position = p AND Team = oakland athletics
Translate the following into a SQL query
what is the school when the team is new york yankees?
SELECT School FROM table WHERE Team = new york yankees
Translate the following into a SQL query
who is the player when the school is spring hs (spring, texas)?
SELECT Player FROM table WHERE School = spring hs (spring, texas)
Translate the following into a SQL query
What's the melamine content of 英雄牌嬰幼兒配方乳粉 having more than 1 samples failed?
SELECT Melamine content(mg/kg) FROM table WHERE Samples failed > 1 AND Product = 英雄牌嬰幼兒配方乳粉
Translate the following into a SQL query
What's the most melamine content that has more than 1 samples failed and produced by Guangzhou Jinding Dairy Products Factory?
SELECT MAX Melamine content(mg/kg) FROM table WHERE Producer = guangzhou jinding dairy products factory AND Samples failed > 1
Translate the following into a SQL query
What's the product that has less than 98.6 melamine content, more than 1 sample failed and took less than 3 samples?
SELECT Product FROM table WHERE Melamine content(mg/kg) < 98.6 AND Samples failed > 1 AND Samples taken < 3
Translate the following into a SQL query
What the most samples failed for 可淇牌嬰幼兒配方乳粉 and had less than 1 samples taken?
SELECT MAX Samples failed FROM table WHERE Product = 可淇牌嬰幼兒配方乳粉 AND Samples taken < 1
Translate the following into a SQL query
How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4?
SELECT SUM Samples taken FROM table WHERE Melamine content(mg/kg) < 53.4 AND Producer = qingdao suncare nutritional technology
Translate the following into a SQL query
What did the golfer from Australia score?
SELECT Score FROM table WHERE Country = australia
Translate the following into a SQL query
Which date has an Opera usage percentage of 5.1% and Internet Explorer usage of 59.5%?
SELECT Date FROM table WHERE Opera = 5.1% AND Internet Explorer = 59.5%