instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Tell me the 3rd person sg for tiecal, tiecaltzi
SELECT 3rd person sg FROM table WHERE 3rd person sg honorific = tiecal, tiecaltzi
Translate the following into a SQL query
Tell me the overall rank for roland schoeman
SELECT Overall Rank FROM table WHERE Swimmer = roland schoeman
Translate the following into a SQL query
How many Silver medals did nation who is ranked greater than 1 and has 4 Gold medals have?
SELECT SUM Silver FROM table WHERE Rank > 1 AND Gold = 4
Translate the following into a SQL query
Which nation has more than 6 Silver medals and fewer than 8 Gold medals?
SELECT AVG Total FROM table WHERE Silver > 6 AND Gold < 8
Translate the following into a SQL query
What is the rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals?
SELECT AVG Rank FROM table WHERE Total < 24 AND Gold > 7
Translate the following into a SQL query
What is the rank of the nation that has more than 1 Bronze medals and fewer than 4 Gold medals?
SELECT MIN Rank FROM table WHERE Bronze > 1 AND Gold < 4
Translate the following into a SQL query
How many silver medals does Belarus (blr) along with 4 gold and 4 bronze?
SELECT SUM Silver FROM table WHERE Gold = 4 AND Nation = belarus (blr) AND Bronze > 4
Translate the following into a SQL query
What rank is Belarus (BLR), which earned 15 medals total?
SELECT MAX Rank FROM table WHERE Nation = belarus (blr) AND Total < 15
Translate the following into a SQL query
What was the name of the race on 24 September?
SELECT Name FROM table WHERE Date = 24 september
Translate the following into a SQL query
What is the name of the race on 9 July?
SELECT Name FROM table WHERE Date = 9 july
Translate the following into a SQL query
What was the race that was won by a Maserati being driven by Giuseppe Campari?
SELECT Circuit FROM table WHERE Winning constructor = maserati AND Winning drivers = giuseppe campari
Translate the following into a SQL query
What date was the race won by Louis Chiron?
SELECT Date FROM table WHERE Winning drivers = louis chiron
Translate the following into a SQL query
What brand of vehicle won a race driven by Tazio Nuvolari?
SELECT Winning constructor FROM table WHERE Winning drivers = tazio nuvolari
Translate the following into a SQL query
What race was won by Tazio Nuvolari?
SELECT Name FROM table WHERE Winning drivers = tazio nuvolari
Translate the following into a SQL query
Tell me the result for week less than 4 and september 7, 1986
SELECT Result FROM table WHERE Week < 4 AND Date = september 7, 1986
Translate the following into a SQL query
Tell me the result for week of 3
SELECT Result FROM table WHERE Week = 3
Translate the following into a SQL query
Tell me the lowest week for attedance less thaan 32,738
SELECT MIN Week FROM table WHERE Attendance < 32,738
Translate the following into a SQL query
Tell me the ship for lieutenant montagu verling
SELECT Ship FROM table WHERE Captain = lieutenant montagu verling
Translate the following into a SQL query
Tell me the class for admiral and hms frobisher
SELECT Class FROM table WHERE Rank = admiral AND Ship = hms frobisher
Translate the following into a SQL query
Tell me the guns for third-rate ship of the line and rank of vice-admiral with year of 1802
SELECT Guns FROM table WHERE Class = third-rate ship of the line AND Rank = vice-admiral AND Year = 1802
Translate the following into a SQL query
Tell me the captain for 1774 and guns of 14
SELECT Captain FROM table WHERE Year = 1774 AND Guns = 14
Translate the following into a SQL query
Tell me the captain for guns of 28
SELECT Captain FROM table WHERE Guns = 28
Translate the following into a SQL query
Tell me the status of eliminated of anton dela paz
SELECT Status FROM table WHERE Eliminated = anton dela paz
Translate the following into a SQL query
Tell me the finalists for week # less than 2
SELECT Finalists FROM table WHERE Week # < 2
Translate the following into a SQL query
Tell me the eliminated for week # larger than 4
SELECT Eliminated FROM table WHERE Week # > 4
Translate the following into a SQL query
At the UFC 78, what is the average round when the time is 5:00?
SELECT AVG Round FROM table WHERE Time = 5:00 AND Event = ufc 78
Translate the following into a SQL query
When there was a draw, what was the time?
SELECT Time FROM table WHERE Res. = draw
Translate the following into a SQL query
What is the sum of points in 2010 when the driver had more than 14 races and an F.L. of less than 0?
SELECT SUM Points FROM table WHERE Year = 2010 AND Races > 14 AND F.L. < 0
Translate the following into a SQL query
What day was the game that had an attendance of more than 46,551 people and had a week number of less than 4?
SELECT Date FROM table WHERE Attendance > 46,551 AND Week < 4
Translate the following into a SQL query
What was the outcome of the game that had a week number of less than 2?
SELECT Result FROM table WHERE Week < 2
Translate the following into a SQL query
What heat and what lane is thi hue pham in?
SELECT Heat & Lane FROM table WHERE Name = thi hue pham
Translate the following into a SQL query
What Heat & Lane is the person who has a time of 1:01.12?
SELECT Heat & Lane FROM table WHERE Time = 1:01.12
Translate the following into a SQL query
How many laps did Fernando Alonso do?
SELECT Laps FROM table WHERE Driver = fernando alonso
Translate the following into a SQL query
What was Jenson Button's constructor?
SELECT Constructor FROM table WHERE Driver = jenson button
Translate the following into a SQL query
Tell me the package for EEPROM less than 128
SELECT Package FROM table WHERE EEPROM < 128
Translate the following into a SQL query
Tell me the chip with frequency larger than 10
SELECT Chip FROM table WHERE Frequency [MHz] > 10
Translate the following into a SQL query
I want the highest Grid for Toyota and jarno trulli
SELECT MAX Grid FROM table WHERE Constructor = toyota AND Driver = jarno trulli
Translate the following into a SQL query
Tell me the average Laps for grid larger than 22
SELECT AVG Laps FROM table WHERE Grid > 22
Translate the following into a SQL query
Tell me the constructor for grid of 17
SELECT Constructor FROM table WHERE Grid = 17
Translate the following into a SQL query
What years had a manager who lost more than 1 and drawn more than 11?
SELECT Ukraine career FROM table WHERE Lost > 1 AND Drawn > 11
Translate the following into a SQL query
what is the total win % of manager viktor prokopenko, when he lost fewer than 2?
SELECT COUNT Win % FROM table WHERE Manager = viktor prokopenko AND Lost < 2
Translate the following into a SQL query
When 4 clubs are involved, what is the average number of fixtures?
SELECT AVG Fixtures FROM table WHERE Clubs involved = 4
Translate the following into a SQL query
In the sixth round, what is the sum of fixtures when there were more than 15 clubs involved?
SELECT SUM Fixtures FROM table WHERE Round = sixth round AND Clubs involved > 15
Translate the following into a SQL query
Tell me the league for year of 1915/16
SELECT League FROM table WHERE Year = 1915/16
Translate the following into a SQL query
What is the make of the car that drove 54 laps?
SELECT Constructor FROM table WHERE Laps = 54
Translate the following into a SQL query
Who has a 59 cap?
SELECT Name FROM table WHERE Caps = 59
Translate the following into a SQL query
Tell me the sum of frequency for ERP W less than 1
SELECT SUM Frequency MHz FROM table WHERE ERP W < 1
Translate the following into a SQL query
Tell me the lowest ties played with a debut of 1936
SELECT MIN Ties played FROM table WHERE Debut = 1936
Translate the following into a SQL query
Where did the Paris Marathon occur?
SELECT Venue FROM table WHERE Competition = paris marathon
Translate the following into a SQL query
Tell me the capacity for city park stadium
SELECT Capacity FROM table WHERE Stadium = city park stadium
Translate the following into a SQL query
Tell me the tournament for opponents of andrei pavel rogier wassen
SELECT Tournament FROM table WHERE Opponents in the final = andrei pavel rogier wassen
Translate the following into a SQL query
Tell me the tournament for score in the final of 1–6, 3–6
SELECT Tournament FROM table WHERE Score in the final = 1–6, 3–6
Translate the following into a SQL query
Tell me the opponents for score in the final of 1–6, 2–6
SELECT Opponents in the final FROM table WHERE Score in the final = 1–6, 2–6
Translate the following into a SQL query
Tell me the surface for 16 april 2007
SELECT Surface FROM table WHERE Date = 16 april 2007
Translate the following into a SQL query
I want the average pages for ISBN of 978-0-9766580-5-4
SELECT AVG Pages FROM table WHERE ISBN = 978-0-9766580-5-4
Translate the following into a SQL query
Tell me the sum of year for 244 pages
SELECT SUM Year FROM table WHERE Pages = 244
Translate the following into a SQL query
Tell me the title for pages of 96
SELECT Title FROM table WHERE Pages = 96
Translate the following into a SQL query
What was the date of birth of a republican member of the United States House of Representatives who held the term of 1863-1865?
SELECT Date of birth FROM table WHERE Party = republican AND House term = 1863-1865
Translate the following into a SQL query
What was the age of the member of the United States House of Representatives that began their term on May 7, 1886?
SELECT Age (years, days) FROM table WHERE Begin Date = may 7, 1886
Translate the following into a SQL query
What was the date of birth of the member of the United States House of Representatives that began their term on April 24, 1902?
SELECT Date of birth FROM table WHERE Begin Date = april 24, 1902
Translate the following into a SQL query
Which member of the United States House of Representatives began their term on January 4, 1997?
SELECT Representative FROM table WHERE Begin Date = january 4, 1997
Translate the following into a SQL query
Which state did Samuel Thatcher of the Federalist party represent?
SELECT State served FROM table WHERE Party = federalist AND Representative = samuel thatcher
Translate the following into a SQL query
What position does Hedo Türkoğlu play?
SELECT Position FROM table WHERE Player = hedo türkoğlu
Translate the following into a SQL query
How long has Sebastian Telfair played for Toronto?
SELECT Years in Toronto FROM table WHERE Player = sebastian telfair
Translate the following into a SQL query
Tell me the title for japan august 23, 2012
SELECT Title FROM table WHERE Japan = august 23, 2012
Translate the following into a SQL query
Tell me the title for japan august 23, 2012
SELECT Title FROM table WHERE Japan = august 23, 2012
Translate the following into a SQL query
Tell me the Australia march 17, 2005
SELECT Australia FROM table WHERE Japan = march 17, 2005
Translate the following into a SQL query
Tell me the Europe for z.h.p. unlosing ranger vs darkdeath evilman
SELECT Europe FROM table WHERE Title = z.h.p. unlosing ranger vs darkdeath evilman
Translate the following into a SQL query
Name the total losses for 4 place and ties less than 0
SELECT COUNT Losses FROM table WHERE Place = 4 AND Ties < 0
Translate the following into a SQL query
Name the average place for ties less than 1 and losess more than 3 with points of 6 qc
SELECT AVG Place FROM table WHERE Ties < 1 AND Points = 6 qc AND Losses > 3
Translate the following into a SQL query
Name the most wins for losses more than 2 and points of two with place larger than 7
SELECT MAX Wins FROM table WHERE Losses > 2 AND Points = 2 AND Place > 7
Translate the following into a SQL query
Name the sum of place with ties larger than 0 and point sof 7 qc and losses more than 2
SELECT SUM Place FROM table WHERE Ties > 0 AND Points = 7 qc AND Losses > 2
Translate the following into a SQL query
Tell me the number range for 4vip
SELECT No. range FROM table WHERE Type = 4vip
Translate the following into a SQL query
Name the heat rank for senegal
SELECT Heat Rank FROM table WHERE Country = senegal
Translate the following into a SQL query
What is the value for 2010 when the 2012 value is Q2?
SELECT 2010 FROM table WHERE 2012 = q2
Translate the following into a SQL query
What is the value for 2010 when the value for 2006 is A and the value for 2009 is 1R?
SELECT 2010 FROM table WHERE 2006 = a AND 2009 = 1r
Translate the following into a SQL query
What is the value for 2012 when the value for 2009 is 1R and the vale for 2007 is 2R?
SELECT 2012 FROM table WHERE 2009 = 1r AND 2007 = 2r
Translate the following into a SQL query
What is the value for 2008 for the US Open Tournament?
SELECT 2008 FROM table WHERE Tournament = us open
Translate the following into a SQL query
What is the value for 2009 when the value for 2011 is 138?
SELECT 2009 FROM table WHERE 2011 = 138
Translate the following into a SQL query
Tell me the highest series # for september 22, 1976
SELECT MAX Series # FROM table WHERE Original air date = september 22, 1976
Translate the following into a SQL query
What is the screen size and pixel value when the lens aperture is 26–678mm (26×) f /2.8–5?
SELECT Screen size,pixels FROM table WHERE Lens(35mmequiv.) zoom, aperture = 26–678mm (26×) f /2.8–5
Translate the following into a SQL query
What is the screen size and pixel value when the dimensions are 115.5×83.7×102.5?
SELECT Screen size,pixels FROM table WHERE Dimensions W×H×D (mm) = 115.5×83.7×102.5
Translate the following into a SQL query
What is the screen size and pixel amount of model p5000 when the dimensions are 98×64.5×41?
SELECT Screen size,pixels FROM table WHERE Dimensions W×H×D (mm) = 98×64.5×41 AND Model = p5000
Translate the following into a SQL query
What is the lowest number for all children when the child labour percentage is greater than 15.5 and the number of children in hazardous work is 170,500 while the number of economically active children is more than 351,700?
SELECT MIN All Children ('000s) FROM table WHERE Child Labour (%) > 15.5 AND Children In Hazardous Work ('000s) = 170,500 AND Economically Active Children ('000s) > 351,700
Translate the following into a SQL query
What is the lowest total number of children when there are more than 15.2% in child labour, less than 23.4% economically active, and the number economically active is 210,800?
SELECT MIN All Children ('000s) FROM table WHERE Child Labour (%) > 15.2 AND Economically Active Children (%) < 23.4 AND Economically Active Children ('000s) = 210,800
Translate the following into a SQL query
Tell me the championship game for big eight
SELECT Championship Game FROM table WHERE Conference = big eight
Translate the following into a SQL query
Name the lowest total for rank of 13 with bronze less than 1
SELECT MIN Total FROM table WHERE Rank = 13 AND Bronze < 1
Translate the following into a SQL query
Tell me the sum of original week for september 16, 1982
SELECT SUM Original week FROM table WHERE Date = september 16, 1982
Translate the following into a SQL query
Tell me the average original week for soldier field
SELECT AVG Original week FROM table WHERE Venue = soldier field
Translate the following into a SQL query
Tell me the date for original week less than 16 and result of l 23–22
SELECT Date FROM table WHERE Original week < 16 AND Result = l 23–22
Translate the following into a SQL query
Tell me the call sign for frequency of 0 97.3 fm
SELECT Call sign FROM table WHERE Frequency = 0 97.3 fm
Translate the following into a SQL query
Tell me the owner for classical
SELECT Owner FROM table WHERE Format = classical
Translate the following into a SQL query
Tell me the city of license for 0 106.9 fm
SELECT City of License FROM table WHERE Frequency = 0 106.9 fm
Translate the following into a SQL query
What year(s) did Hakeem Olajuwon play Center for Toronto?
SELECT Years in Toronto FROM table WHERE Player = hakeem olajuwon
Translate the following into a SQL query
What position did Jimmy Oliver of the United States play?
SELECT Position FROM table WHERE Nationality = united states AND Player = jimmy oliver
Translate the following into a SQL query
Tell me the total number of crest length for year construction larger than 1957 for mattmark
SELECT COUNT Crest length (meters) FROM table WHERE Year of construction > 1957 AND Name = mattmark
Translate the following into a SQL query
Tell me the name of lake for crest length of 430
SELECT Name of the Lake FROM table WHERE Crest length (meters) = 430
Translate the following into a SQL query
Tell me the % of wt 2nd for bp 3rd comp of 98.4
SELECT % wt 2nd FROM table WHERE b.p. 3rd comp. (˚C) = 98.4
Translate the following into a SQL query
Tell me the 3rd component for bp azeo of 62.1
SELECT 3rd component FROM table WHERE b.p. azeo. (˚C) = 62.1
Translate the following into a SQL query
Tell me the name with sør-trøndelag
SELECT Name FROM table WHERE County = sør-trøndelag