instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What date was the loss of ponson (4–3)?
SELECT Date FROM table WHERE Loss = ponson (4–3)
Translate the following into a SQL query
What date was the loss of sparks (0–1)?
SELECT Date FROM table WHERE Loss = sparks (0–1)
Translate the following into a SQL query
What is the position of the competition in Tampere, Finland?
SELECT Position FROM table WHERE Venue = tampere, finland
Translate the following into a SQL query
What is the lowest total that has draws less than 2 and wins less than 1, losses bigger than 1 with a goal difference of 1:2
SELECT MIN Total FROM table WHERE Draws < 2 AND Wins < 1 AND Goal difference = 1:2 AND Losses > 1
Translate the following into a SQL query
What is the average number of draws that have a total of 1 and a goal difference of 2:0?
SELECT AVG Draws FROM table WHERE Total = 1 AND Goal difference = 2:0
Translate the following into a SQL query
What is the lowest number of draws that have a goal difference of 0:2 and wins greater than 0?
SELECT MIN Draws FROM table WHERE Goal difference = 0:2 AND Wins > 0
Translate the following into a SQL query
What regular season had an average attendance of 1,242?
SELECT Reg. Season FROM table WHERE Avg. attendance † = 1,242
Translate the following into a SQL query
What league has an average attendance of 244?
SELECT League FROM table WHERE Avg. attendance † = 244
Translate the following into a SQL query
On what date was the opponent the White Sox and the record 18-13?
SELECT Date FROM table WHERE Opponent = white sox AND Record = 18-13
Translate the following into a SQL query
What was the average attendance when the record was 19-13?
SELECT AVG Attendance FROM table WHERE Record = 19-13
Translate the following into a SQL query
What was the Loss when the opponent was the Rangers and the attendance was greater than 43,211?
SELECT Loss FROM table WHERE Opponent = rangers AND Attendance > 43,211
Translate the following into a SQL query
What was the 2012 result associated with a 2007 finish of 2R and a 2009 of 1R?
SELECT 2012 FROM table WHERE 2007 = 2r AND 2009 = 1r
Translate the following into a SQL query
What was the 2009 result associated with a 2012 of 1R and a 2007 of 2R?
SELECT 2009 FROM table WHERE 2012 = 1r AND 2007 = 2r
Translate the following into a SQL query
What was the 2008 result associated with a 2009 of A and a 2011 of 2R?
SELECT 2008 FROM table WHERE 2009 = a AND 2011 = 2r
Translate the following into a SQL query
In which tournament did Pauline Parmentier finish LQ in 2007?
SELECT Tournament FROM table WHERE 2007 = lq
Translate the following into a SQL query
Name the player name with matches of 51
SELECT Player name FROM table WHERE Matches = 51
Translate the following into a SQL query
Name the position for brazil 2008 with goals of 0 1
SELECT Position FROM table WHERE Country = brazil AND Period = 2008 AND Goals = 0 1
Translate the following into a SQL query
Name the goals with matches of 21
SELECT Goals FROM table WHERE Matches = 21
Translate the following into a SQL query
Name the period with matches of 0 0 of portugal
SELECT Period FROM table WHERE Matches = 0 0 AND Country = portugal
Translate the following into a SQL query
Name the opponents for round of round 5
SELECT Opponents FROM table WHERE Round = round 5
Translate the following into a SQL query
Name the attendance for 4 january 2004
SELECT Attendance FROM table WHERE Date = 4 january 2004
Translate the following into a SQL query
Name the most attendance for 25 january 2004
SELECT MAX Attendance FROM table WHERE Date = 25 january 2004
Translate the following into a SQL query
What is the average Attendance for the final round?
SELECT AVG Attendance FROM table WHERE Round = final
Translate the following into a SQL query
What is the smallest number of people to attend a game with an H/A of h and the opponent was Roma?
SELECT MIN Attendance FROM table WHERE H / A = h AND Opponents = roma
Translate the following into a SQL query
Which game does the quentyn martell have?
SELECT Game FROM table WHERE POV character = quentyn martell
Translate the following into a SQL query
Which storm has a clash of 3 and a dance of 4?
SELECT Storm FROM table WHERE Dance = 4 AND Clash = 3
Translate the following into a SQL query
Name the melbourne with perth, adelaide and auckland of no with sydney of yes
SELECT Melbourne FROM table WHERE Perth = no AND Adelaide = no AND Auckland = no AND Sydney = yes
Translate the following into a SQL query
Name the gold coast which has an auckland of no and melbourne of yes
SELECT Gold Coast FROM table WHERE Auckland = no AND Melbourne = yes
Translate the following into a SQL query
Name the sydney with perth of no, adelaide of no with melbourne of yes and gold coast of yes
SELECT Sydney FROM table WHERE Perth = no AND Adelaide = no AND Melbourne = yes AND Gold Coast = yes
Translate the following into a SQL query
Name the Adelaide for Sydney of yes and Perth of yes
SELECT Adelaide FROM table WHERE Sydney = yes AND Perth = yes
Translate the following into a SQL query
Name the melbourne for adelaide of no with auckland of yes and gold coast of yes
SELECT Melbourne FROM table WHERE Adelaide = no AND Auckland = yes AND Gold Coast = no
Translate the following into a SQL query
What is the total population of Rosenthal that's less than 24,300 for the population and has a population for Glengallan less than 3,410?
SELECT SUM Population (Rosenthal) FROM table WHERE Population (Region total) < 24,300 AND Population (Glengallan) < 3,410
Translate the following into a SQL query
What is the greatest Rosenthal poulation for a region that has 30,554 people and a Glegallan population less than 4,088?
SELECT MAX Population (Rosenthal) FROM table WHERE Population (Region total) = 30,554 AND Population (Glengallan) < 4,088
Translate the following into a SQL query
How many people are there for Glengallan having a Rosenthal population less than 1,582 for years before 1976 with a total population of 25,917?
SELECT COUNT Population (Glengallan) FROM table WHERE Population (Rosenthal) < 1,582 AND Year < 1976 AND Population (Region total) = 25,917
Translate the following into a SQL query
How many people live in an area that has a population in Rosenthal smaller than 2,460 while having a population of 4,639 for Glegallan as well as having an Allora population greater than 2,106?
SELECT COUNT Population (Region total) FROM table WHERE Population (Rosenthal) < 2,460 AND Population (Glengallan) = 4,639 AND Population (Allora) > 2,106
Translate the following into a SQL query
When were the years on which warwick had a population greater than 10,956 and allora had a population bigger than 2,439?
SELECT SUM Year FROM table WHERE Population (Warwick) = 10,956 AND Population (Allora) > 2,439
Translate the following into a SQL query
How many people in Stanthorpe had a population matching Rosenthan of 1,553 and a population greater than 25,917?
SELECT COUNT Population (Stanthorpe) FROM table WHERE Population (Rosenthal) = 1,553 AND Population (Region total) > 25,917
Translate the following into a SQL query
Who is the Prime Minister of Antoine Wehenkel?
SELECT Prime Minister FROM table WHERE Minister = antoine wehenkel
Translate the following into a SQL query
What is the least amount of wins earlier than 1964 with more than 7 points?
SELECT MIN Wins FROM table WHERE Year < 1964 AND Points > 7
Translate the following into a SQL query
What is the least points for class 125cc with 1 win earlier than 1961?
SELECT MIN Points FROM table WHERE Class = 125cc AND Wins = 1 AND Year < 1961
Translate the following into a SQL query
What is the number of wins when there are 7 points?
SELECT Wins FROM table WHERE Points = 7
Translate the following into a SQL query
What is the least amount of points when there is 1 win?
SELECT MIN Points FROM table WHERE Wins = 1
Translate the following into a SQL query
What club has more than 35 goals, more than 7 draws, and 20 losses?
SELECT Club FROM table WHERE Goals for > 35 AND Draws > 7 AND Losses = 20
Translate the following into a SQL query
How many goals have more than 38 played and more than 9 draws?
SELECT SUM Goals for FROM table WHERE Draws > 9 AND Played > 38
Translate the following into a SQL query
How many losses has more than 59 goals against and more than 17 position?
SELECT MIN Losses FROM table WHERE Goals against > 59 AND Position > 17
Translate the following into a SQL query
On what Date was the Meet of 2007 Pan American Games with a Time of 1:07.78?
SELECT Date FROM table WHERE Meet = 2007 pan american games AND Time = 1:07.78
Translate the following into a SQL query
What Nationality's time is 2:07.64?
SELECT Nationality FROM table WHERE Time = 2:07.64
Translate the following into a SQL query
What Event's Time is 4:01.00?
SELECT Event FROM table WHERE Time = 4:01.00
Translate the following into a SQL query
In what Location in the United States the Time 2:25.62?
SELECT Location FROM table WHERE Nationality = united states AND Time = 2:25.62
Translate the following into a SQL query
Year larger than 1975, and a Record of 13–11 is what playoffs?
SELECT Playoffs FROM table WHERE Year > 1975 AND Record = 13–11
Translate the following into a SQL query
Which 9:30 has a 10:30 of le journal weekend?
SELECT 9:30 FROM table WHERE 10:30 = le journal weekend
Translate the following into a SQL query
Which 9:00 has an 8:00 behind the movies?
SELECT 9:00 FROM table WHERE 8:00 = behind the movies
Translate the following into a SQL query
What 10:00 has a 7:30 of da kink in my hair?
SELECT 10:00 FROM table WHERE 7:30 = da kink in my hair
Translate the following into a SQL query
What 7:00 has a 9:30 of tout le monde en parle?
SELECT 7:00 FROM table WHERE 9:30 = tout le monde en parle
Translate the following into a SQL query
What 7:00 has a 10:00 of dirty sexy money?
SELECT 7:00 FROM table WHERE 10:00 = dirty sexy money
Translate the following into a SQL query
What 10:00 has a 8:00 of movies?
SELECT 10:00 FROM table WHERE 8:00 = movies
Translate the following into a SQL query
What are the venues prior to 2005 in the World Class category that resulted in a bronze?
SELECT Venue FROM table WHERE Year < 2005 AND Category = world class AND Result = bronze
Translate the following into a SQL query
What are the competitions that occurred before 2006 in SVK Nitra?
SELECT Competition FROM table WHERE Year < 2006 AND Venue = svk nitra
Translate the following into a SQL query
What are the categories of events that occurred after 2007 that were World Championships?
SELECT Category FROM table WHERE Year > 2007 AND Competition = world championships
Translate the following into a SQL query
What was the result of events held at Nor Elverum, prior to 2010?
SELECT Result FROM table WHERE Year < 2010 AND Venue = nor elverum
Translate the following into a SQL query
What was the competition held in 2003?
SELECT Competition FROM table WHERE Year = 2003
Translate the following into a SQL query
What chassis type does a scuderia ferrari with more than 1 point have?
SELECT Chassis FROM table WHERE Entrant = scuderia ferrari AND Points > 1
Translate the following into a SQL query
A ferrari flat-12 engine with more than 1 point has what kind of chassis?
SELECT Chassis FROM table WHERE Engine = ferrari flat-12 AND Points > 1
Translate the following into a SQL query
What is the average year for a merzario a2 chassis?
SELECT AVG Year FROM table WHERE Chassis = merzario a2
Translate the following into a SQL query
What was the team's record when they played visitor team Chicago Black Hawks on November 24?
SELECT Record FROM table WHERE Visitor = chicago black hawks AND Date = november 24
Translate the following into a SQL query
What is the name of the visitor team who played home team Chicago Black Hawks on March 20?
SELECT Visitor FROM table WHERE Home = chicago black hawks AND Date = march 20
Translate the following into a SQL query
What was the team's record on November 12?
SELECT Record FROM table WHERE Date = november 12
Translate the following into a SQL query
What champion has 1981 as the year?
SELECT Champion FROM table WHERE Year = 1981
Translate the following into a SQL query
What date final has 1982 as the year?
SELECT Date Final FROM table WHERE Year = 1982
Translate the following into a SQL query
What prize money has michelob light challenge of champions as the commercial name?
SELECT Prize Money FROM table WHERE Commercial name = michelob light challenge of champions
Translate the following into a SQL query
What date final has 1989 as the year?
SELECT Date Final FROM table WHERE Year = 1989
Translate the following into a SQL query
What score in final has boris becker as the champion?
SELECT Score in final FROM table WHERE Champion = boris becker
Translate the following into a SQL query
What is the greatest point of an Entrant of connaught engineering alta straight-4 engine before 1957
SELECT MAX Points FROM table WHERE Engine = alta straight-4 AND Entrant = connaught engineering AND Year < 1957
Translate the following into a SQL query
What 1957 engine has a Chassis of connaught type b?
SELECT Engine FROM table WHERE Chassis = connaught type b AND Year > 1957
Translate the following into a SQL query
Name the least year for david eddy
SELECT MIN Year FROM table WHERE Men's singles = david eddy
Translate the following into a SQL query
Name the mixed doubles for year before 1991 and men's doubles of david jepson buck ryan
SELECT Mixed doubles FROM table WHERE Year < 1991 AND Men's doubles = david jepson buck ryan
Translate the following into a SQL query
Name the women's doubles for year less than 1972
SELECT Women's doubles FROM table WHERE Year < 1972
Translate the following into a SQL query
When was the winning score βˆ’9 (72-68-64-67=271)?
SELECT Date FROM table WHERE Winning score = βˆ’9 (72-68-64-67=271)
Translate the following into a SQL query
What was the margin of victory for the Mississippi Gulf Resort Classic?
SELECT Margin of victory FROM table WHERE Tournament = mississippi gulf resort classic
Translate the following into a SQL query
What was the margin of victory when Mark Calcavecchia was the runner-up?
SELECT Margin of victory FROM table WHERE Runner(s)-up = mark calcavecchia
Translate the following into a SQL query
What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory?
SELECT Date FROM table WHERE Margin of victory = 1 stroke AND Tournament = the ace group classic
Translate the following into a SQL query
What was the margin of victory when the winning score was βˆ’9 (72-68-64-67=271)?
SELECT Margin of victory FROM table WHERE Winning score = βˆ’9 (72-68-64-67=271)
Translate the following into a SQL query
What is the average round for te position?
SELECT AVG Round FROM table WHERE Position = te
Translate the following into a SQL query
Name the average overall for james davis
SELECT AVG Overall FROM table WHERE Player = james davis
Translate the following into a SQL query
Name the most overall for james davis and round more than 5
SELECT MAX Overall FROM table WHERE Player = james davis AND Round > 5
Translate the following into a SQL query
Name the total number of overall for villanova and round less than 2
SELECT COUNT Overall FROM table WHERE College = villanova AND Round < 2
Translate the following into a SQL query
Which state is Mount Chiginagak located in?
SELECT State FROM table WHERE Mountain Peak = mount chiginagak
Translate the following into a SQL query
What were the circumstances for the Baghlan location?
SELECT Circumstances FROM table WHERE Location = baghlan
Translate the following into a SQL query
What were the casualties in the Baghlan location?
SELECT Casualties FROM table WHERE Location = baghlan
Translate the following into a SQL query
What was the date of natural cause situation?
SELECT Date FROM table WHERE Circumstances = natural cause
Translate the following into a SQL query
Which Gold Coast has a Perth of no, a Sydney of yes, and an Auckland of yes?
SELECT Gold Coast FROM table WHERE Perth = no AND Sydney = yes AND Auckland = yes
Translate the following into a SQL query
Which Melbourne has an Auckland of no, and a Gold Coast of no?
SELECT Melbourne FROM table WHERE Auckland = no AND Gold Coast = no
Translate the following into a SQL query
Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes?
SELECT Adelaide FROM table WHERE Melbourne = yes AND Auckland = yes AND Perth = yes
Translate the following into a SQL query
Which Sydney has a Perth of no, a Melbourne of yes, and a Gold Coast of no?
SELECT Sydney FROM table WHERE Perth = no AND Melbourne = yes AND Gold Coast = no
Translate the following into a SQL query
Which Auckland has an Adelaide of no, a Melbourne of yes, and a Sydney of yes?
SELECT Auckland FROM table WHERE Adelaide = no AND Melbourne = yes AND Sydney = yes
Translate the following into a SQL query
Which Adelaide has an Auckland of yes, a Melbourne of yes, a Perth of yes, and a Sydney of cancelled?
SELECT Adelaide FROM table WHERE Auckland = yes AND Melbourne = yes AND Perth = yes AND Sydney = cancelled
Translate the following into a SQL query
Who is the owner of RSS Racing that driver Ryan Sieg belongs to?
SELECT Owner(s) FROM table WHERE Team = rss racing AND Driver(s) = ryan sieg
Translate the following into a SQL query
Parts Plus sponsors what driver?
SELECT Driver(s) FROM table WHERE Primary Sponsor(s) = parts plus
Translate the following into a SQL query
Who is the owner of NTS Motorsports sponsored by Qore-24?
SELECT Owner(s) FROM table WHERE Team = nts motorsports AND Primary Sponsor(s) = qore-24
Translate the following into a SQL query
Who is the crew chief, of driver Matt kurzejewski?
SELECT Crew Chief FROM table WHERE Driver(s) = matt kurzejewski