instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Who was the opponent for game number less than 47 and a record of 24-13-4?
SELECT Opponent FROM table WHERE Game < 47 AND Record = 24-13-4
Translate the following into a SQL query
What is the average january number when the game number was higher than 39 and the opponent was the Vancouver Canucks?
SELECT AVG January FROM table WHERE Opponent = vancouver canucks AND Game > 39
Translate the following into a SQL query
What is the Drawn number with a Points against of correct as of 08:50 10 may 2009?
SELECT Drawn FROM table WHERE Points against = correct as of 08:50 10 may 2009
Translate the following into a SQL query
What is the Tries against when lost shows 12 for pontycymmer rfc?
SELECT Tries against FROM table WHERE Lost = 12 AND Club = pontycymmer rfc
Translate the following into a SQL query
What is the Points against for the ystradgynlais rfc club?
SELECT Points against FROM table WHERE Club = ystradgynlais rfc
Translate the following into a SQL query
What is the Club name what shows 405 for the Points against?
SELECT Club FROM table WHERE Points against = 405
Translate the following into a SQL query
What shows for Try bonus when the points against are 451?
SELECT Try bonus FROM table WHERE Points against = 451
Translate the following into a SQL query
Which Pos has a Make of chevrolet, and a Driver of jack sprague, and a Car # smaller than 2?
SELECT SUM Pos. FROM table WHERE Make = chevrolet AND Driver = jack sprague AND Car # < 2
Translate the following into a SQL query
How many Car numbers have a Driver of erik darnell, and a Pos smaller than 2?
SELECT COUNT Car # FROM table WHERE Driver = erik darnell AND Pos. < 2
Translate the following into a SQL query
Which Pos has a Car # of 33?
SELECT SUM Pos. FROM table WHERE Car # = 33
Translate the following into a SQL query
Which Pos has a Team of circle bar racing, and a Car # smaller than 14?
SELECT MAX Pos. FROM table WHERE Team = circle bar racing AND Car # < 14
Translate the following into a SQL query
Which Pos has a Car # larger than 2, and a Team of billy ballew motorsports?
SELECT AVG Pos. FROM table WHERE Car # > 2 AND Team = billy ballew motorsports
Translate the following into a SQL query
What is the lowest points that has 135 as 2nd (m)?
SELECT MIN Points FROM table WHERE 2nd (m) = 135
Translate the following into a SQL query
What is the overall WC points (rank) that has 139 as the 2nd (m)?
SELECT Overall WC points (Rank) FROM table WHERE 2nd (m) = 139
Translate the following into a SQL query
How many 2nd (m) have aut as the nationality, with 4 as the rank, and a 1st less than 122.5?
SELECT SUM 2nd (m) FROM table WHERE Nationality = aut AND Rank = 4 AND 1st (m) < 122.5
Translate the following into a SQL query
What name has a 1st (m) greater than 124.5, and a 2nd (m) greater than 136?
SELECT Name FROM table WHERE 1st (m) > 124.5 AND 2nd (m) > 136
Translate the following into a SQL query
What Rank is the Director(s) of satoko okita?
SELECT Rank FROM table WHERE Director(s) = satoko okita
Translate the following into a SQL query
What country is the film hi no tsugi ha rekishi from?
SELECT Country FROM table WHERE Film = hi no tsugi ha rekishi
Translate the following into a SQL query
Which Director(s) made the film hanzubon no ojisan and received a prize of ¥300,000?
SELECT Director(s) FROM table WHERE Prize = ¥300,000 AND Film = hanzubon no ojisan
Translate the following into a SQL query
Which country did the Director(s) of kota nagaoka come from and win ¥300,000?
SELECT Country FROM table WHERE Prize = ¥300,000 AND Director(s) = kota nagaoka
Translate the following into a SQL query
What Director won a prize of ¥2,000,000?
SELECT Director(s) FROM table WHERE Prize = ¥2,000,000
Translate the following into a SQL query
What Rank is the director of maximilian jezo-parovsky?
SELECT Rank FROM table WHERE Director(s) = maximilian jezo-parovsky
Translate the following into a SQL query
Who had the most high assists from Milwaukee?
SELECT High assists FROM table WHERE Team = milwaukee
Translate the following into a SQL query
Who scored the most point on December 13?
SELECT High points FROM table WHERE Date = december 13
Translate the following into a SQL query
What's the Loss for the game that had a 22-24 record?
SELECT Loss FROM table WHERE Record = 22-24
Translate the following into a SQL query
What was the date that Elvir Krehmic made a high jump record?
SELECT Date FROM table WHERE Athlete = elvir krehmic
Translate the following into a SQL query
Which spine has 12 issues?
SELECT Spine FROM table WHERE Number of issues = 12
Translate the following into a SQL query
How many issues end on jan–72?
SELECT SUM Number of issues FROM table WHERE End month = jan–72
Translate the following into a SQL query
Which masthead ends on oct–69?
SELECT Masthead FROM table WHERE End month = oct–69
Translate the following into a SQL query
What is the game number held on May 2?
SELECT AVG Game FROM table WHERE Date = may 2
Translate the following into a SQL query
Which Season has a Postseason of promoted runner-up?
SELECT Season FROM table WHERE Postseason = promoted runner-up
Translate the following into a SQL query
What is the attendance of the match with a record 20-11?
SELECT Attendance FROM table WHERE Record = 20-11
Translate the following into a SQL query
What is the date of the match with a 28-15 record?
SELECT Date FROM table WHERE Record = 28-15
Translate the following into a SQL query
Which opponent did they play against on April 16?
SELECT Opponent FROM table WHERE Date = april 16
Translate the following into a SQL query
What circuit was after round 2 in Victoria?
SELECT Circuit FROM table WHERE Round > 2 AND State/Territory = victoria
Translate the following into a SQL query
What is the state the winning driver Jamie Whincup from in round 2?
SELECT State/Territory FROM table WHERE Winning driver = jamie whincup AND Round = 2
Translate the following into a SQL query
What date in October did the Flyers play against the Toronto Maple Leafs?
SELECT October FROM table WHERE Opponent = toronto maple leafs
Translate the following into a SQL query
What was the score of the game that had more than 8 points?
SELECT Score FROM table WHERE Points > 8
Translate the following into a SQL query
The round that had the final, what was the result?
SELECT Result FROM table WHERE Round = final
Translate the following into a SQL query
Opponent of andry laffita had what score?
SELECT Score FROM table WHERE Opponent = andry laffita
Translate the following into a SQL query
Opponent of igor samoilenco had what result?
SELECT Result FROM table WHERE Opponent = igor samoilenco
Translate the following into a SQL query
Score of 33-22 had what round?
SELECT Round FROM table WHERE Score = 33-22
Translate the following into a SQL query
Round of first had what opponent?
SELECT Opponent FROM table WHERE Round = first
Translate the following into a SQL query
Result of win, and a Score of 33-22 involved what event?
SELECT Event FROM table WHERE Result = win AND Score = 33-22
Translate the following into a SQL query
What were the lowest points of game 60?
SELECT MIN Points FROM table WHERE Game = 60
Translate the following into a SQL query
What championship had Francesca Schiavone in the finals?
SELECT Championship FROM table WHERE Opponent in the final = francesca schiavone
Translate the following into a SQL query
What is the total number of national titles for the team with doane tigers as the mascot?
SELECT COUNT National Titles FROM table WHERE Mascot = doane tigers
Translate the following into a SQL query
Which year's crew is varsity 8+ when the record is 7-3?
SELECT Year FROM table WHERE Crew = varsity 8+ AND Record = 7-3
Translate the following into a SQL query
What is the total number of win % when John Gartin is coach, the crew is varsity 8+, and the year is 2005?
SELECT SUM Win % FROM table WHERE Coach = john gartin AND Crew = varsity 8+ AND Year = 2005
Translate the following into a SQL query
What is the largest win percentage when John Gartin is coach, the record is 11-0, and the year is 2009?
SELECT MAX Win % FROM table WHERE Coach = john gartin AND Record = 11-0 AND Year = 2009
Translate the following into a SQL query
What is the total of win percentages when the year is 2008 and the crew is varsity 8+?
SELECT SUM Win % FROM table WHERE Year = 2008 AND Crew = varsity 8+
Translate the following into a SQL query
What is the pick number for the tight end who was picked after round 6?
SELECT COUNT Pick FROM table WHERE Round > 6 AND Position = tight end
Translate the following into a SQL query
What is the lowest round for the player whose position is guard and had a pick number smaller than 144?
SELECT MIN Round FROM table WHERE Position = guard AND Pick < 144
Translate the following into a SQL query
What was the position of terry jones whose pick number was after 256?
SELECT Position FROM table WHERE Pick > 256 AND Player = terry jones
Translate the following into a SQL query
Which Loss has a Record of 30-32?
SELECT Loss FROM table WHERE Record = 30-32
Translate the following into a SQL query
Which Attendance is the highest one that has a Record of 37-38?
SELECT MAX Attendance FROM table WHERE Record = 37-38
Translate the following into a SQL query
Which Score has a Loss of buehrle (7-2)?
SELECT Score FROM table WHERE Loss = buehrle (7-2)
Translate the following into a SQL query
Which Overall is the average one that has a Pick # larger than 7, and a Round larger than 4, and a Name of glen howe?
SELECT AVG Overall FROM table WHERE Pick # > 7 AND Round > 4 AND Name = glen howe
Translate the following into a SQL query
Which Round is the lowest one that has a Pick # larger than 10, and a Position of tight end, and an Overall smaller than 132?
SELECT MIN Round FROM table WHERE Pick # > 10 AND Position = tight end AND Overall < 132
Translate the following into a SQL query
Which Round is the highest one that has an Overall of 32, and a Pick # smaller than 4?
SELECT MAX Round FROM table WHERE Overall = 32 AND Pick # < 4
Translate the following into a SQL query
How many Picks have a Round larger than 8, and a College of fresno state?
SELECT COUNT Pick # FROM table WHERE Round > 8 AND College = fresno state
Translate the following into a SQL query
Which Overall is the highest one that has a College of oklahoma, and a Pick # smaller than 4?
SELECT MAX Overall FROM table WHERE College = oklahoma AND Pick # < 4
Translate the following into a SQL query
What is the result of the match on 30 July 2004?
SELECT Result FROM table WHERE Date = 30 july 2004
Translate the following into a SQL query
What is the result of the match on 3 March 2004?
SELECT Result FROM table WHERE Date = 3 march 2004
Translate the following into a SQL query
What is the score of the friendly match?
SELECT Score FROM table WHERE Competition = friendly match
Translate the following into a SQL query
Which Week had a Result of w 10-0, and an Attendance smaller than 58,571?
SELECT COUNT Week FROM table WHERE Result = w 10-0 AND Attendance < 58,571
Translate the following into a SQL query
Which Week had a Result of w 23-17?
SELECT SUM Week FROM table WHERE Result = w 23-17
Translate the following into a SQL query
What was the Attendance on october 2, 1977?
SELECT Attendance FROM table WHERE Date = october 2, 1977
Translate the following into a SQL query
Bronze of 2, and a Silver smaller than 0 then what is the sum of the gold?
SELECT SUM Gold FROM table WHERE Bronze = 2 AND Silver < 0
Translate the following into a SQL query
Smaller than 4, and a Silver larger than 0, and a Rank of 3, and a Bronze smaller than 6 then what is the sum of the gold?
SELECT SUM Total FROM table WHERE Gold < 4 AND Silver > 0 AND Rank = 3 AND Bronze < 6
Translate the following into a SQL query
Total larger than 3, and a Rank of 4, and a Silver larger than 0 has what average gold?
SELECT AVG Gold FROM table WHERE Total > 3 AND Rank = 4 AND Silver > 0
Translate the following into a SQL query
Total smaller than 10, and a Gold larger than 1 then what is the lowest silver?
SELECT MIN Silver FROM table WHERE Total < 10 AND Gold > 1
Translate the following into a SQL query
What was the date of the week 9 game?
SELECT Date FROM table WHERE Week = 9
Translate the following into a SQL query
What class has over 0 wins and 42 points?
SELECT Class FROM table WHERE Wins > 0 AND Points = 42
Translate the following into a SQL query
What team was the bike with a 350cc class, over 2 points, and 1 win?
SELECT Team FROM table WHERE Class = 350cc AND Points > 2 AND Wins = 1
Translate the following into a SQL query
What is the earliest year associated with 0 wins and 42 points?
SELECT MIN Year FROM table WHERE Wins > 0 AND Points = 42
Translate the following into a SQL query
What Nationality has the Player of Marcus Walker?
SELECT Nationality FROM table WHERE Player = marcus walker
Translate the following into a SQL query
What Season is listed for the Player of Jon Stefansson?
SELECT Season FROM table WHERE Player = jon stefansson
Translate the following into a SQL query
Which Team has the Player of A.J. Moye?
SELECT Team FROM table WHERE Player = a.j. moye
Translate the following into a SQL query
What Position does the Team of KR and the Player of Marcus Walker have listed?
SELECT Position FROM table WHERE Team = kr AND Player = marcus walker
Translate the following into a SQL query
What building is in ljubljana, proposed in 2010, and has 15 floors?
SELECT Name FROM table WHERE Location = ljubljana AND Year Proposed = 2010 AND Floors = 15
Translate the following into a SQL query
What is the Revenue of the population of more than 1,499,402, with Spending (millions) of $13,986?
SELECT Revenue (millions) FROM table WHERE Population > 1,499,402 AND Spending (millions) = $13,986
Translate the following into a SQL query
What is the Revenue per capita for Vermont?
SELECT Revenue per capita FROM table WHERE State = vermont
Translate the following into a SQL query
What state has a Net contribution per capita of $-171?
SELECT State FROM table WHERE Net contribution per capita = $-171
Translate the following into a SQL query
Who is the PBA team with Mlqu college?
SELECT PBA team FROM table WHERE College = mlqu
Translate the following into a SQL query
Which country of origin corresponds to Far Eastern college?
SELECT Country of origin* FROM table WHERE College = far eastern
Translate the following into a SQL query
Who is the player with the PBA team of Barangay Ginebra Kings?
SELECT Player FROM table WHERE PBA team = barangay ginebra kings
Translate the following into a SQL query
Who was the opponent on April 28?
SELECT Opponent FROM table WHERE Date = april 28
Translate the following into a SQL query
What is the highest position the album Where we belong, which had an issue date higher than 9, had?
SELECT COUNT Highest Position FROM table WHERE Issue Date < 9 AND Album Title = where we belong
Translate the following into a SQL query
What is the biggest issue date Madonna, who had less than 1,060,000 sales, had?
SELECT MAX Issue Date FROM table WHERE Artist = madonna AND Sales < 1,060,000
Translate the following into a SQL query
What is the highest position Talk on Corners, which had an issue date greater than 1, had?
SELECT COUNT Highest Position FROM table WHERE Album Title = talk on corners AND Issue Date > 1
Translate the following into a SQL query
What is the highest sales All Saints had?
SELECT MAX Sales FROM table WHERE Album Title = all saints
Translate the following into a SQL query
Who is the Driver that has Car Model Commodore VS?
SELECT Driver FROM table WHERE Car model = commodore vs
Translate the following into a SQL query
What Car Model has the Manufacturer of Saab, and Driver Dean Randle?
SELECT Car model FROM table WHERE Manufacturer = saab AND Driver = dean randle
Translate the following into a SQL query
Who is the Driver with the Team of P & L Mechanical Services?
SELECT Driver FROM table WHERE Team = p & l mechanical services
Translate the following into a SQL query
What Car Model has the Engine of Ford 6.0 V8?
SELECT Car model FROM table WHERE Engine = ford 6.0 v8
Translate the following into a SQL query
What Team has the Engine of Chevrolet 6.0 V8, the Manufacturer of Opel, and the Driver Chris Jackson?
SELECT Team FROM table WHERE Engine = chevrolet 6.0 v8 AND Manufacturer = opel AND Driver = chris jackson
Translate the following into a SQL query
What is the Segment A entry for the episode that has an entry of Diesel filters for Segment D?
SELECT Segment A FROM table WHERE Segment D = diesel filters
Translate the following into a SQL query
What is the series episode number that is larger than 262 and has a Segment A entry of Aluminium s canoe?
SELECT Series Ep. FROM table WHERE Episode > 262 AND Segment A = aluminium s canoe
Translate the following into a SQL query
Which First elected has a District of south carolina 2?
SELECT MIN First elected FROM table WHERE District = south carolina 2