instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What was the aggregate for the match with a team 2 of Kenya?
SELECT Agg. FROM table WHERE Team 2 = kenya
Translate the following into a SQL query
What was the aggregate for the match with Sierra Leone as team 1?
SELECT Agg. FROM table WHERE Team 1 = sierra leone
Translate the following into a SQL query
What was the 1st leg score for the match with Lesotho as team 1?
SELECT 1st leg FROM table WHERE Team 1 = lesotho
Translate the following into a SQL query
What was the 2nd leg score for the match with Lesotho as team 1?
SELECT 2nd leg FROM table WHERE Team 1 = lesotho
Translate the following into a SQL query
What is the total number of ladies ranked who had less than 3 silvers, less than 2 total medals, and more than 0 bronze medals?
SELECT COUNT Rank FROM table WHERE Silver < 3 AND Total < 2 AND Bronze > 0
Translate the following into a SQL query
What is the total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11?
SELECT COUNT Gold FROM table WHERE Bronze < 3 AND Rank < 11 AND Silver > 0
Translate the following into a SQL query
What was Matthew Warchus' Award?
SELECT Award FROM table WHERE Nominee = matthew warchus
Translate the following into a SQL query
What is the Format of the French Frequency with a Call sign of CKRL-FM?
SELECT Format FROM table WHERE Notes = french AND Call sign = ckrl-fm
Translate the following into a SQL query
What is the Format of the Frequency owned by Laval University?
SELECT Format FROM table WHERE Owner = laval university
Translate the following into a SQL query
What is the Notes of the Frequency with Format of talk radio?
SELECT Notes FROM table WHERE Format = talk radio
Translate the following into a SQL query
What is the Notes of the Frequency with a Format of soft adult contemporary?
SELECT Notes FROM table WHERE Format = soft adult contemporary
Translate the following into a SQL query
How many chart runs had a debut position of more than 7 when peak position was 11?
SELECT COUNT Chart run FROM table WHERE Debut position > 7 AND Peak position = 11
Translate the following into a SQL query
Which Spoofed title had Mort Drucker as the artist in issue 88?
SELECT Spoofed Title FROM table WHERE Artist = mort drucker AND Issue = 88
Translate the following into a SQL query
Who was the artist for Spoofed title Genteel Ben in an issue later than 74?
SELECT Artist FROM table WHERE Issue > 74 AND Spoofed Title = genteel ben
Translate the following into a SQL query
Which issue was the Spoofed title Route 67 for which Mort Drucker was the artist?
SELECT SUM Issue FROM table WHERE Artist = mort drucker AND Spoofed Title = route 67
Translate the following into a SQL query
What is the earliest issue Arnie Kogen wrote for in December 1964?
SELECT MIN Issue FROM table WHERE Writer = arnie kogen AND Date = december 1964
Translate the following into a SQL query
What are the highest points that have a difference of 8, with a position less than 4?
SELECT MAX Points FROM table WHERE Difference = 8 AND Position < 4
Translate the following into a SQL query
How many losses have corinthians as the team, with an against greater than 26?
SELECT SUM Lost FROM table WHERE Team = corinthians AND Against > 26
Translate the following into a SQL query
How many points have a difference of 23, with a drawn less than 5?
SELECT COUNT Points FROM table WHERE Difference = 23 AND Drawn < 5
Translate the following into a SQL query
How many positions have 15 for the points, with a drawn less than 3?
SELECT SUM Position FROM table WHERE Points = 15 AND Drawn < 3
Translate the following into a SQL query
What was the result of the match held when his record was 7-0-0?
SELECT Result FROM table WHERE Record = 7-0-0
Translate the following into a SQL query
What do the notes say for 1989 May 7?
SELECT Notes FROM table WHERE Date = 1989 may 7
Translate the following into a SQL query
How did he beat Alberto Rodriguez?
SELECT Method FROM table WHERE Opponent = alberto rodriguez
Translate the following into a SQL query
What was his record in 1987?
SELECT Record FROM table WHERE Date = 1987
Translate the following into a SQL query
What is the lowest total that has barbados as the nation with a bronze greater than 0?
SELECT MIN Total FROM table WHERE Nation = barbados AND Bronze > 0
Translate the following into a SQL query
How many silvers have a gold greater than 2, a bronze less than 35, china as the nation, with a total greater than 26?
SELECT COUNT Silver FROM table WHERE Gold > 2 AND Bronze < 35 AND Nation = china AND Total > 26
Translate the following into a SQL query
What is the largest total that has a gold less than 0?
SELECT MAX Total FROM table WHERE Gold < 0
Translate the following into a SQL query
How many golds have a silver greater than 1, vietnam as the nation, with a bronze less than 3?
SELECT COUNT Gold FROM table WHERE Silver > 1 AND Nation = vietnam AND Bronze < 3
Translate the following into a SQL query
Which Wins has a Country of new zealand and a Last title larger than 1968?
SELECT MIN Wins FROM table WHERE Country = new zealand AND Last title > 1968
Translate the following into a SQL query
What is the total of Last title that has Wins smaller than 71 and a First title larger than 1968 and a Country of fiji?
SELECT COUNT Last title FROM table WHERE Wins < 71 AND First title > 1968 AND Country = fiji
Translate the following into a SQL query
Which First title has Wins smaller than 8 and in Canada?
SELECT COUNT First title FROM table WHERE Wins < 8 AND Country = canada
Translate the following into a SQL query
How many Winners have Wins of 1 and a Country of fiji and a First title smaller than 2004?
SELECT AVG Winners FROM table WHERE Wins = 1 AND Country = fiji AND First title < 2004
Translate the following into a SQL query
What is the latest opened year of the team in Glasgow, Scotland?
SELECT MAX Opened FROM table WHERE City = glasgow, scotland
Translate the following into a SQL query
What is the average opened year of Mini Estadi stadium in Barcelona, Spain?
SELECT AVG Opened FROM table WHERE City = barcelona, spain AND Stadium = mini estadi
Translate the following into a SQL query
What is the lowest win percentage for teams with more than 23 losses and more than 386 goals for?
SELECT MIN Winning % FROM table WHERE Lost > 23 AND Goals for > 386
Translate the following into a SQL query
What is the total number of losses for teams with less than 5 ties and more than 330 goals for?
SELECT COUNT Lost FROM table WHERE Tied < 5 AND Goals for > 330
Translate the following into a SQL query
What is the Score of the Competition with a Result of 5-0?
SELECT Score FROM table WHERE Result = 5-0
Translate the following into a SQL query
What is the Score of the Competition with a 5-0 Result?
SELECT Score FROM table WHERE Result = 5-0
Translate the following into a SQL query
What is the Date of the Competition with a Score of 4-0 and 5-0 Result?
SELECT Date FROM table WHERE Result = 5-0 AND Score = 4-0
Translate the following into a SQL query
What is the title for YI?
SELECT Title FROM table WHERE Name = yi
Translate the following into a SQL query
What is the state song from?
SELECT From FROM table WHERE State = song
Translate the following into a SQL query
What is the state Yi?
SELECT State FROM table WHERE Name = yi
Translate the following into a SQL query
What state has the king title?
SELECT State FROM table WHERE Title = king
Translate the following into a SQL query
What was the score when the partner was arnaud clément?
SELECT Score FROM table WHERE Partner = arnaud clément
Translate the following into a SQL query
What is the Outcome when the partner was kristof vliegen?
SELECT Outcome FROM table WHERE Partner = kristof vliegen
Translate the following into a SQL query
What is the Surface of the match with winner as outcome and a score of 7–5, 7–5?
SELECT Surface FROM table WHERE Outcome = winner AND Score = 7–5, 7–5
Translate the following into a SQL query
What is the Outcome when christophe rochus was partner, on 31 july 2005?
SELECT Outcome FROM table WHERE Partner = christophe rochus AND Date = 31 july 2005
Translate the following into a SQL query
What is the Opponents on a clay surface with christophe rochus as partner?
SELECT Opponents FROM table WHERE Surface = clay AND Partner = christophe rochus
Translate the following into a SQL query
What is the Date when christophe rochus was partner, and the score was 2–6, 7–6 (7–5) , 0–6?
SELECT Date FROM table WHERE Partner = christophe rochus AND Score = 2–6, 7–6 (7–5) , 0–6
Translate the following into a SQL query
In what City/town was their institution founded in 1860?
SELECT City/ town FROM table WHERE Year founded = 1860
Translate the following into a SQL query
What year was Waynesburg University founded in Pennsylvania?
SELECT Year founded FROM table WHERE State/ province = pennsylvania AND Institution name = waynesburg university
Translate the following into a SQL query
What is Howard Payne University's total enrollment?
SELECT Total enrollment FROM table WHERE Institution name = howard payne university
Translate the following into a SQL query
What is the To par when fredrik andersson hed was runner-up?
SELECT To par FROM table WHERE Runner(s)-up = fredrik andersson hed
Translate the following into a SQL query
What is the Margin of victory when rhys davies was runner-up?
SELECT Margin of victory FROM table WHERE Runner(s)-up = rhys davies
Translate the following into a SQL query
What is the Winning score when the To par was −21?
SELECT Winning score FROM table WHERE To par = −21
Translate the following into a SQL query
What is the Date for the wgc-accenture match play championship?
SELECT Date FROM table WHERE Tournament = wgc-accenture match play championship
Translate the following into a SQL query
What is the Margin of victory on 27 feb 2011?
SELECT Margin of victory FROM table WHERE Date = 27 feb 2011
Translate the following into a SQL query
What is the Tournament when the winning score was 65-67-68-67=267?
SELECT Tournament FROM table WHERE Winning score = 65-67-68-67=267
Translate the following into a SQL query
Which Mission has a Apogee of 705 km?
SELECT Mission FROM table WHERE Apogee = 705 km
Translate the following into a SQL query
What kind of Motor has a Apogee of 713 km?
SELECT Motor FROM table WHERE Apogee = 713 km
Translate the following into a SQL query
What kind of Mission has a Apogee of 707 km?
SELECT Mission FROM table WHERE Apogee = 707 km
Translate the following into a SQL query
Which Apogee has a Mission of maxus 3?
SELECT Apogee FROM table WHERE Mission = maxus 3
Translate the following into a SQL query
Which Mission is on 2003 apr 1?
SELECT Mission FROM table WHERE Date = 2003 apr 1
Translate the following into a SQL query
What was the ranking for the episode number before 24 that had a rating of 25.7?
SELECT Ranking FROM table WHERE Ep # < 24 AND Rating = 25.7
Translate the following into a SQL query
How many million viewers watched the season finale on March 12, 1979?
SELECT Viewers (Households in millions) FROM table WHERE Season Finale = march 12, 1979
Translate the following into a SQL query
What is the rating of the season 10?
SELECT Rating FROM table WHERE Season = season 10
Translate the following into a SQL query
What was the rating of the season that had 18.17 million household viewers?
SELECT Rating FROM table WHERE Viewers (Households in millions) = 18.17
Translate the following into a SQL query
How many totals have 2 for the bronze?
SELECT COUNT Total FROM table WHERE Bronze = 2
Translate the following into a SQL query
What is the smallest silver that has a bronze less than 0?
SELECT MIN Silver FROM table WHERE Bronze < 0
Translate the following into a SQL query
What college received Pick 5?
SELECT College FROM table WHERE Pick = 5
Translate the following into a SQL query
For the United States International University, what was the highest pick number allowed?
SELECT MAX Pick FROM table WHERE College = united states international university
Translate the following into a SQL query
what was the date of the game on week 2?
SELECT Date FROM table WHERE Week = 2
Translate the following into a SQL query
What is the subjunctive present that is associated with a plural preterite of u, a singular preterite of ou, and a singular present of û?
SELECT Subj. Pres. FROM table WHERE Plur. Pret. = u AND Sing. Pret. = ou AND Sing. Pres. = û
Translate the following into a SQL query
What is the plural present that has a past participle of e and an infinitive stem of e?
SELECT Plur. Pres. FROM table WHERE Past Part. = e AND Inf. Stem = e
Translate the following into a SQL query
What is the infinitive stem that has a subjunctive present of ou?
SELECT Inf. Stem FROM table WHERE Subj. Pres. = ou
Translate the following into a SQL query
What is the infinitive stem that is associated with a subjunctive present of a and a plural preterite of uo?
SELECT Inf. Stem FROM table WHERE Subj. Pres. = a AND Plur. Pret. = uo
Translate the following into a SQL query
What is the singular present that is associated with a singular preterite of ou and a subjunctive present of ie?
SELECT Sing. Pres. FROM table WHERE Sing. Pret. = ou AND Subj. Pres. = ie
Translate the following into a SQL query
What is the plural preterite that is associated with a subjunctive preterite of ü and has an infinitive stem of e + l/r + cons.?
SELECT Plur. Pret. FROM table WHERE Subj. Pret. = ü AND Inf. Stem = e + l/r + cons.
Translate the following into a SQL query
What is the history behind the vessel Speedrunner IV (SSC4) built after 1997?
SELECT History FROM table WHERE Built > 1997 AND Name = speedrunner iv (ssc4)
Translate the following into a SQL query
What is the most recent year that Queen Nefertiti (pegasus two) was built?
SELECT MAX Built FROM table WHERE Name = queen nefertiti (pegasus two)
Translate the following into a SQL query
What is the history behind Speedrunner III (SSC3)?
SELECT History FROM table WHERE Name = speedrunner iii (ssc3)
Translate the following into a SQL query
What was the opponent on november 8, 1981?
SELECT Opponent FROM table WHERE Date = november 8, 1981
Translate the following into a SQL query
What is the longest Time (seconds), when the Nation - athlete(s) is Sylke Otto - Germany?
SELECT MAX Time (seconds) FROM table WHERE Nation - athlete(s) = sylke otto - germany
Translate the following into a SQL query
What is the Date, when the Sport is luge - men's doubles, and when the Record is, "start"?
SELECT Date FROM table WHERE Sport = luge - men's doubles AND Record = start
Translate the following into a SQL query
What is the Nation - athlete(s), when the Sport is luge - men's singles, and when the Record is, "track"?
SELECT Nation - athlete(s) FROM table WHERE Sport = luge - men's singles AND Record = track
Translate the following into a SQL query
What is the Date, when the Record is, "track", when the Time (seconds) is longer than 43.564, and when the Sport is luge - women's singles?
SELECT Date FROM table WHERE Record = track AND Time (seconds) > 43.564 AND Sport = luge - women's singles
Translate the following into a SQL query
What is the highest Z (p) when arsenic is the element, and the N (n) is more than 42
SELECT MAX Z ( p ) FROM table WHERE Element = arsenic AND N ( n ) > 42
Translate the following into a SQL query
What is the highest Z (p) when the N (n) is less than 30, and scandium is the element?
SELECT AVG Z ( p ) FROM table WHERE N ( n ) < 30 AND Element = scandium
Translate the following into a SQL query
What is the isotopic mass (u) when the nuclide is 89 y?
SELECT isotopic mass ( u ) FROM table WHERE Nuclide = 89 y
Translate the following into a SQL query
What is the Element when the Nuclide is 55 mn?
SELECT Element FROM table WHERE Nuclide = 55 mn
Translate the following into a SQL query
What is Venue, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
SELECT Venue FROM table WHERE Date = 23,24,26,27,28,29 feb, 1 mar 1912
Translate the following into a SQL query
What is Date, when Venue is Melbourne Cricket Ground, and when Result is Eng By Inns&225 Runs?
SELECT Date FROM table WHERE Venue = melbourne cricket ground AND Result = eng by inns&225 runs
Translate the following into a SQL query
What is Result, when Venue is Sydney Cricket Ground, and when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
SELECT Result FROM table WHERE Venue = sydney cricket ground AND Date = 23,24,26,27,28,29 feb, 1 mar 1912
Translate the following into a SQL query
What is Away Captain, when Date is 30 Dec, 1,2,3 Jan 1911/2?
SELECT Away captain FROM table WHERE Date = 30 dec, 1,2,3 jan 1911/2
Translate the following into a SQL query
What is Venue, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
SELECT Venue FROM table WHERE Date = 23,24,26,27,28,29 feb, 1 mar 1912
Translate the following into a SQL query
What is Home Captain, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
SELECT Home captain FROM table WHERE Date = 23,24,26,27,28,29 feb, 1 mar 1912
Translate the following into a SQL query
What is Catalog, when the Region is UK, and when Label is Razor Records?
SELECT Catalog FROM table WHERE Region = uk AND Label = razor records
Translate the following into a SQL query
What is the latest Date, when Label is Captain Oi! Records?
SELECT MAX Date FROM table WHERE Label = captain oi! records
Translate the following into a SQL query
What is Region, when Date is 2004?
SELECT Region FROM table WHERE Date = 2004
Translate the following into a SQL query
What is Catalog, when Format is CD, when Region is US, when Date is before 2004, and when Label is Taang! Records?
SELECT Catalog FROM table WHERE Format = cd AND Region = us AND Date < 2004 AND Label = taang! records