instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is the Date of Tie no 21?
SELECT Date FROM table WHERE Tie no = 21
Translate the following into a SQL query
Which race happened in 1948?
SELECT Race Title FROM table WHERE Year = 1948
Translate the following into a SQL query
Was the Grand Prix Watkins GLen that Miles Collier raced in before 1952 a championship?
SELECT Championship FROM table WHERE Year < 1952 AND Race Title = grand prix watkins glen AND Drivers = miles collier
Translate the following into a SQL query
Who drove in races in 1949?
SELECT Drivers FROM table WHERE Year = 1949
Translate the following into a SQL query
What is the lowest Total, when Silver is greater than 7, and when Gold is greater than 73?
SELECT MIN Total FROM table WHERE Silver > 7 AND Gold > 73
Translate the following into a SQL query
What is Total, when Silver is less than 65, when Bronze is greater than 4, and when Rank is "4"?
SELECT Total FROM table WHERE Silver < 65 AND Bronze > 4 AND Rank = 4
Translate the following into a SQL query
What is the average Silver, when Gold is less than 0?
SELECT AVG Silver FROM table WHERE Gold < 0
Translate the following into a SQL query
What is Height, when Name is "Manuela Zanchi"?
SELECT Height FROM table WHERE Name = manuela zanchi
Translate the following into a SQL query
What is Pos., when Height is "m (ft 6in)", and when Name is "Martina Miceli"?
SELECT Pos. FROM table WHERE Height = m (ft 6in) AND Name = martina miceli
Translate the following into a SQL query
Which opponent has a week less than 2?
SELECT Opponent FROM table WHERE Week < 2
Translate the following into a SQL query
How many kills did basobas, florentino have?
SELECT MAX Killed FROM table WHERE Perpetrator = basobas, florentino
Translate the following into a SQL query
What is the average number of people killed with a Perpetrator of wirjo, 42?
SELECT AVG Killed FROM table WHERE Perpetrator = wirjo, 42
Translate the following into a SQL query
How many are injured in Borneo?
SELECT Injured FROM table WHERE Location = borneo
Translate the following into a SQL query
How many points were scored by the player with 79 goals and who played 38 games?
SELECT Points FROM table WHERE Goals = 79 AND Games = 38
Translate the following into a SQL query
How many games were played by the player with 127 assists?
SELECT Games FROM table WHERE Assists = 127
Translate the following into a SQL query
How many games were played by the player who had 22 penalty minutes?
SELECT Games FROM table WHERE Pen. Min. = 22
Translate the following into a SQL query
How many assists did the player with 54 penalty minutes have?
SELECT Assists FROM table WHERE Pen. Min. = 54
Translate the following into a SQL query
What is John Davis's home town?
SELECT Hometown FROM table WHERE Name = john davis
Translate the following into a SQL query
What is the date of the 1500m freestyle event?
SELECT Date FROM table WHERE Event = 1500m freestyle
Translate the following into a SQL query
What is the nationality of the event with a 1:51.51 time?
SELECT Nationality FROM table WHERE Time = 1:51.51
Translate the following into a SQL query
What is the time of the 100m freestyle event?
SELECT Time FROM table WHERE Event = 100m freestyle
Translate the following into a SQL query
What is the date of the event with a 1:54.00 time?
SELECT Date FROM table WHERE Time = 1:54.00
Translate the following into a SQL query
What event is on 18 December 2009?
SELECT Event FROM table WHERE Date = 18 december 2009
Translate the following into a SQL query
Jimmie Lee Sloas was the composer for what album?
SELECT Album FROM table WHERE Composer(s) = jimmie lee sloas
Translate the following into a SQL query
Which composer had a CHR chart peak at #2?
SELECT Composer(s) FROM table WHERE CHR chart peak = 2
Translate the following into a SQL query
What was the date for Westport?
SELECT Date FROM table WHERE Venue = westport
Translate the following into a SQL query
What is the home team in week 1?
SELECT Home team FROM table WHERE Week = 1
Translate the following into a SQL query
In what week was the away team Auckland?
SELECT Week FROM table WHERE Away team = auckland
Translate the following into a SQL query
What is the venue for week 1?
SELECT Venue FROM table WHERE Week = 1
Translate the following into a SQL query
What is the sum of men's wheelchair from Ireland and more than 1 total?
SELECT SUM Men's Wheelchair FROM table WHERE Country = ireland AND Total > 1
Translate the following into a SQL query
What is the average total for the Men's Open of 7, and the men's wheelchair more than 0?
SELECT AVG Total FROM table WHERE Men's Open = 7 AND Men's Wheelchair > 0
Translate the following into a SQL query
What is the title in 1991?
SELECT Title FROM table WHERE Year = 1991
Translate the following into a SQL query
In what City/State did the ATCC Round 4 series take place?
SELECT City / State FROM table WHERE Series = atcc round 4
Translate the following into a SQL query
In what City/State did the ATCC Round 4 series take place?
SELECT City / State FROM table WHERE Series = atcc round 4
Translate the following into a SQL query
Which series was won by Paul Morris?
SELECT Series FROM table WHERE Winner = paul morris
Translate the following into a SQL query
On which date did the Winfield Triple Challenge series take place?
SELECT Date FROM table WHERE Series = winfield triple challenge
Translate the following into a SQL query
What was the circuit for Team Peter Jackson Racing in the ATCC Round 4 series?
SELECT Circuit FROM table WHERE Team = peter jackson racing AND Series = atcc round 4
Translate the following into a SQL query
Which 2008/ 09 has a 1999/ 00 of non-ranking tournaments?
SELECT 2008/ 09 FROM table WHERE 1999/ 00 = non-ranking tournaments
Translate the following into a SQL query
Which 1999/ 00 has a 2001/ 02 of lq, a 2006/ 07 of qf, and a 2005/ 06 of 1r?
SELECT 1999/ 00 FROM table WHERE 2001/ 02 = lq AND 2006/ 07 = qf AND 2005/ 06 = 1r
Translate the following into a SQL query
Which 2001/ 02 has a 2002/ 03 of tournament not held, a 2007/ 08 of tournament not held, and a 2008/ 09 of non-ranking?
SELECT 2001/ 02 FROM table WHERE 2002/ 03 = tournament not held AND 2007/ 08 = tournament not held AND 2008/ 09 = non-ranking
Translate the following into a SQL query
Which 2006/ 07 has a 2011/ 12 of tournament not held, a 2005/ 06 of tournament not held, and a 2002/ 03 of 1r?
SELECT 2006/ 07 FROM table WHERE 2011/ 12 = tournament not held AND 2005/ 06 = tournament not held AND 2002/ 03 = 1r
Translate the following into a SQL query
Which 2010/ 11 has a 2011/ 12 of former non-ranking tournaments?
SELECT 2010/ 11 FROM table WHERE 2011/ 12 = former non-ranking tournaments
Translate the following into a SQL query
Which 2007/ 08 has a 2008/ 09 of tournament not held, a 2005/ 06 of tournament not held, and a 1999/ 00 of tournament not held?
SELECT 2007/ 08 FROM table WHERE 2008/ 09 = tournament not held AND 2005/ 06 = tournament not held AND 1999/ 00 = tournament not held
Translate the following into a SQL query
Which Player has a Team from of south shore kings?
SELECT Player FROM table WHERE Team from = south shore kings
Translate the following into a SQL query
Which NHL team has a League from of western hockey league and a Pick # smaller than 23 and a Team from of prince george cougars?
SELECT NHL team FROM table WHERE League from = western hockey league AND Pick # < 23 AND Team from = prince george cougars
Translate the following into a SQL query
Which Position has a Pick # smaller than 26 and a Player of jack campbell?
SELECT Position FROM table WHERE Pick # < 26 AND Player = jack campbell
Translate the following into a SQL query
How much money did Willie Klein take home from the game in which he had a to par score larger than 13?
SELECT SUM Money ( $ ) FROM table WHERE Player = willie klein AND To par > 13
Translate the following into a SQL query
What week had an attendance more than 63,268 and Kansas City Chiefs as the opponent?
SELECT COUNT Week FROM table WHERE Attendance > 63,268 AND Opponent = kansas city chiefs
Translate the following into a SQL query
What was the attendance on September 11, 1988?
SELECT AVG Attendance FROM table WHERE Date = september 11, 1988
Translate the following into a SQL query
What was the attendance on week 1?
SELECT Attendance FROM table WHERE Week = 1
Translate the following into a SQL query
What was the lowest win when there were 34 points and more than 13 draws?
SELECT MIN Wins FROM table WHERE Points = 34 AND Draws > 13
Translate the following into a SQL query
What was the highest win when there were more than 64 goals scored and a position smaller than 2?
SELECT MAX Wins FROM table WHERE Goals scored > 64 AND Position < 2
Translate the following into a SQL query
Who is the Outgoing Manager replaced by Sandy Clark?
SELECT Outgoing manager FROM table WHERE Replaced by = sandy clark
Translate the following into a SQL query
What is the Date of vacancy for Tommy McLean?
SELECT Date of vacancy FROM table WHERE Outgoing manager = tommy mclean
Translate the following into a SQL query
What is the total number of Goals scored that has more than 45 Points?
SELECT COUNT Goals scored FROM table WHERE Points > 45
Translate the following into a SQL query
What was the total number of Goals conceded when there were more than 4 losses, less than 5 draws, and more than 9 wins?
SELECT COUNT Goals conceded FROM table WHERE Draws < 5 AND Loses > 4 AND Wins > 9
Translate the following into a SQL query
What is the sum of Goals scored when there was less than 20 Games played?
SELECT SUM Goals scored FROM table WHERE Games played < 20
Translate the following into a SQL query
Which Country has a To par of –2, and a Player of jim thorpe?
SELECT Country FROM table WHERE To par = –2 AND Player = jim thorpe
Translate the following into a SQL query
Name the Place which has To par of –5, in united states?
SELECT Place FROM table WHERE Country = united states AND To par = –5
Translate the following into a SQL query
Name the To par of payne stewart?
SELECT To par FROM table WHERE Player = payne stewart
Translate the following into a SQL query
WHo has a Country of united states and a To par of –3?
SELECT Player FROM table WHERE Country = united states AND To par = –3
Translate the following into a SQL query
What is the sum of cents that has 53ET cents less than 113.21, and a harmonic more than 1?
SELECT SUM Cents FROM table WHERE 53ET Cents < 113.21 AND Harmonic > 1
Translate the following into a SQL query
What is the sum of cents that has 12ET cents of 100, and less than 17 harmonic?
SELECT SUM Cents FROM table WHERE 12ET Cents = 100 AND Harmonic < 17
Translate the following into a SQL query
What power plant was commissioned in 2008?
SELECT Power Plant FROM table WHERE year of commission = 2008
Translate the following into a SQL query
What is the Nominated work of popularity award (actor in a motion picture)?
SELECT Nominated work FROM table WHERE Category = popularity award (actor in a motion picture)
Translate the following into a SQL query
What is the game site of the game with the san diego chargers as the opponent?
SELECT Game site FROM table WHERE Opponent = san diego chargers
Translate the following into a SQL query
What is the first round when team 1 was toulouse fc (d1)?
SELECT 1st round FROM table WHERE Team 1 = toulouse fc (d1)
Translate the following into a SQL query
What is Shahar Pe'er's record?
SELECT Record FROM table WHERE Player = shahar pe'er
Translate the following into a SQL query
Which country placed t3 and had the player Fred Couples?
SELECT Country FROM table WHERE Place = t3 AND Player = fred couples
Translate the following into a SQL query
What is the to par for Fred Couples when the score is 68-66=134?
SELECT To par FROM table WHERE Score = 68-66=134 AND Player = fred couples
Translate the following into a SQL query
Which country scored 66-68=134?
SELECT Country FROM table WHERE Score = 66-68=134
Translate the following into a SQL query
What did Fred Couples place?
SELECT Place FROM table WHERE Player = fred couples
Translate the following into a SQL query
What player scored 68-66=134?
SELECT Player FROM table WHERE Score = 68-66=134
Translate the following into a SQL query
What Player has a To par of +5 with a Score of 70-70-71-74=285?
SELECT Player FROM table WHERE To par = +5 AND Score = 70-70-71-74=285
Translate the following into a SQL query
What is the Place of the Player with a Score of 73-67-74-71=285?
SELECT Place FROM table WHERE Score = 73-67-74-71=285
Translate the following into a SQL query
What T9 Place Player had a Score of 73-67-74-71=285?
SELECT Player FROM table WHERE Place = t9 AND Score = 73-67-74-71=285
Translate the following into a SQL query
Who is the player with a t8 place?
SELECT Player FROM table WHERE Place = t8
Translate the following into a SQL query
What is the average amount of money of players in t8 place with a 68-71-69-72=280 score?
SELECT AVG Money ( $ ) FROM table WHERE Place = t8 AND Score = 68-71-69-72=280
Translate the following into a SQL query
What is the country of player vijay singh?
SELECT Country FROM table WHERE Player = vijay singh
Translate the following into a SQL query
What is the Result F-A that was the quarter-final first leg round with a H/A of h?
SELECT Result F–A FROM table WHERE H / A = h AND Round = quarter-final first leg
Translate the following into a SQL query
What was the score when the decision was Raycroft, with attendance larger than 18,277, on February 11?
SELECT Score FROM table WHERE Decision = raycroft AND Attendance > 18,277 AND Date = february 11
Translate the following into a SQL query
What was the opponent when the score was 3 - 2, and the decision was Raycroft, with a record of 25-29-1?
SELECT Opponent FROM table WHERE Score = 3 - 2 AND Decision = raycroft AND Record = 25-29-1
Translate the following into a SQL query
Which Position has a League from of western hockey league, and a Team from of everett silvertips?
SELECT Position FROM table WHERE League from = western hockey league AND Team from = everett silvertips
Translate the following into a SQL query
Which Player has a Position of rw, and a League from of western hockey league?
SELECT Player FROM table WHERE Position = rw AND League from = western hockey league
Translate the following into a SQL query
Which Pick # has a Nationality of canada, and a Team from of sudbury wolves?
SELECT MIN Pick # FROM table WHERE Nationality = canada AND Team from = sudbury wolves
Translate the following into a SQL query
Which Pick # has a League from of ontario hockey league, a Nationality of united states, and a Team from of brampton battalion?
SELECT COUNT Pick # FROM table WHERE League from = ontario hockey league AND Nationality = united states AND Team from = brampton battalion
Translate the following into a SQL query
Which League from has a Position of lw, a Pick # larger than 34, and a Player of bradley ross?
SELECT League from FROM table WHERE Position = lw AND Pick # > 34 AND Player = bradley ross
Translate the following into a SQL query
Which Position has a Team from of ottawa 67's, and a Pick # smaller than 47?
SELECT Position FROM table WHERE Team from = ottawa 67's AND Pick # < 47
Translate the following into a SQL query
Who is the republican Incumbent for Pennsylvania 9?
SELECT Incumbent FROM table WHERE Party = republican AND District = pennsylvania 9
Translate the following into a SQL query
What are the results for Bill Shuster?
SELECT Results FROM table WHERE Incumbent = bill shuster
Translate the following into a SQL query
What is the greatest first elected for Pennsylvania 10?
SELECT MAX First elected FROM table WHERE District = pennsylvania 10
Translate the following into a SQL query
What country had a Finish of t8?
SELECT Country FROM table WHERE Finish = t8
Translate the following into a SQL query
What Player had a To Par of +2?
SELECT Player FROM table WHERE To par = +2
Translate the following into a SQL query
What is the To Par of the player with a t8 Finish?
SELECT To par FROM table WHERE Finish = t8
Translate the following into a SQL query
How tall is the building built in 1985 with 22 floors?
SELECT Height ft (m) FROM table WHERE Floors = 22 AND Year = 1985
Translate the following into a SQL query
How many floors are in the building built after 2007, and ranked #10=?
SELECT AVG Floors FROM table WHERE Rank = 10= AND Year > 2007
Translate the following into a SQL query
How tall is the building ranked #13?
SELECT Height ft (m) FROM table WHERE Rank = 13
Translate the following into a SQL query
Who won Miss Universe Philippines when the first runner-up was Danielle Castaño and Janina San Miguel won Binibining Pilipinas-World?
SELECT Miss Universe Philippines FROM table WHERE First runner-up = danielle castaño AND Binibining Pilipinas-World = janina san miguel
Translate the following into a SQL query
Who won Miss Universe Philippines when Regina Hahn was second runner-up?
SELECT Miss Universe Philippines FROM table WHERE Second runner-up = regina hahn
Translate the following into a SQL query
When Bianca Manalo won Miss Universe Philippines who was the second runner-up?
SELECT Second runner-up FROM table WHERE Miss Universe Philippines = bianca manalo