instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Who was in Human Resources & Operations when David Hornsby was in Academic & University Affairs?
SELECT Human Resources & Operations FROM table WHERE Academic & University Affairs = david hornsby
Translate the following into a SQL query
Who was in external affairs when Jakki Doyle was in Human Resources & Operations?
SELECT External Affairs FROM table WHERE Human Resources & Operations = jakki doyle
Translate the following into a SQL query
Who was in local affairs in 2012-2013?
SELECT Local Affairs FROM table WHERE Year = 2012-2013
Translate the following into a SQL query
Who was in Academic & University Affairs when Andrew Langille was in local affairs?
SELECT Academic & University Affairs FROM table WHERE Local Affairs = andrew langille
Translate the following into a SQL query
Which Perth's gold coast and Adelaide were yes when Auckland was no?
SELECT Perth FROM table WHERE Gold Coast = yes AND Adelaide = yes AND Auckland = no
Translate the following into a SQL query
Which Melbourne had a gold coast and sydney which were yes, but an adelaide that was no?
SELECT Melbourne FROM table WHERE Gold Coast = yes AND Adelaide = no AND Sydney = yes
Translate the following into a SQL query
Which Adelaide's Melbourne and Perth were yes when Auckland was no?
SELECT Adelaide FROM table WHERE Melbourne = yes AND Auckland = no AND Perth = yes
Translate the following into a SQL query
Which Sydney's Melbourne was no, when Auckland was yes?
SELECT Sydney FROM table WHERE Melbourne = no AND Auckland = yes
Translate the following into a SQL query
Which Syndney's Gold coast, Adelaide, Melbourne, and Auckland were all no?
SELECT Sydney FROM table WHERE Gold Coast = no AND Adelaide = no AND Melbourne = no AND Auckland = no
Translate the following into a SQL query
Which Adelaide's Melbourne, Sydney, and Gold Coast were all no?
SELECT Adelaide FROM table WHERE Melbourne = no AND Sydney = no AND Gold Coast = no
Translate the following into a SQL query
Name the date which has type of plain stage
SELECT Date FROM table WHERE Type = plain stage
Translate the following into a SQL query
Name the distance for Course of vittorio veneto to marina romea
SELECT Distance FROM table WHERE Course = vittorio veneto to marina romea
Translate the following into a SQL query
Who was the partner that played a match on a grass court?
SELECT Partner FROM table WHERE Surface = grass
Translate the following into a SQL query
What was the score of the match in which mardy fish was the partner?
SELECT Score FROM table WHERE Partner = mardy fish
Translate the following into a SQL query
Who were the opponents in the match that was played on a hard court and had a runner-up outcome?
SELECT Opponents FROM table WHERE Surface = hard AND Outcome = runner-up
Translate the following into a SQL query
What is the time when the opponent is phil collins?
SELECT Time FROM table WHERE Opponent = phil collins
Translate the following into a SQL query
what is the total number of rounds when method is tko (punches) and time is 0:40?
SELECT COUNT Round FROM table WHERE Method = tko (punches) AND Time = 0:40
Translate the following into a SQL query
what is the method when the time is 0:51?
SELECT Method FROM table WHERE Time = 0:51
Translate the following into a SQL query
what is the time when the event is bellator 89?
SELECT Time FROM table WHERE Event = bellator 89
Translate the following into a SQL query
Name the average debt as % of value for operating income more than -16 and % change on year being 62
SELECT AVG Debt as % of value FROM table WHERE % change on year = 62 AND Operating income ($m) > -16
Translate the following into a SQL query
Name the country where % change on year is 21 and value is less than 86
SELECT Country FROM table WHERE Debt as % of value < 86 AND % change on year = 21
Translate the following into a SQL query
Name the total number of revenue for italy with team of internazionale with operating income less than 27
SELECT COUNT Revenue ($M) FROM table WHERE Country = italy AND Team = internazionale AND Operating income ($m) < 27
Translate the following into a SQL query
Name the most revenue for operating income more than 27 for hamburg and debt as % of value less than 0
SELECT MAX Revenue ($M) FROM table WHERE Operating income ($m) > 27 AND Team = hamburg AND Debt as % of value < 0
Translate the following into a SQL query
What is the result for an H/A of H and a round value of R6 replay?
SELECT Result FROM table WHERE H / A = h AND Round = r6 replay
Translate the following into a SQL query
What was the kickoff date for the round value of R4?
SELECT Kick Off FROM table WHERE Round = r4
Translate the following into a SQL query
What country was Henry Picard from?
SELECT Country FROM table WHERE Player = henry picard
Translate the following into a SQL query
Name the sum of inversions for opened of april 20, 2002
SELECT SUM Inversions FROM table WHERE Opened = april 20, 2002
Translate the following into a SQL query
Name the opened for spain
SELECT Opened FROM table WHERE Country = spain
Translate the following into a SQL query
Name the status for six flags new england
SELECT Status FROM table WHERE Park = six flags new england
Translate the following into a SQL query
Name the to par with money of 200,000 for australia
SELECT To par FROM table WHERE Money ( £ ) = 200,000 AND Country = australia
Translate the following into a SQL query
Name the money for ireland
SELECT Money ( £ ) FROM table WHERE Country = ireland
Translate the following into a SQL query
Name the money for pádraig harrington
SELECT Money ( £ ) FROM table WHERE Player = pádraig harrington
Translate the following into a SQL query
Name the to par for score of 69-73-68-70=280
SELECT To par FROM table WHERE Score = 69-73-68-70=280
Translate the following into a SQL query
Name the money for the to par of -6
SELECT Money ( £ ) FROM table WHERE To par = -6
Translate the following into a SQL query
On what date or dates did the term with the Centre Party end?
SELECT Term end FROM table WHERE Party = centre party
Translate the following into a SQL query
When did the term end for the term that had government 27 and Minister Tzachi Hanegbi?
SELECT Term end FROM table WHERE Governments = 27 AND Minister = tzachi hanegbi
Translate the following into a SQL query
What is the location/state of the race on the Wanneroo raceway?
SELECT Location / State FROM table WHERE Circuit = wanneroo raceway
Translate the following into a SQL query
What is the location/state of the Launceston race?
SELECT Location / State FROM table WHERE Race Title = launceston
Translate the following into a SQL query
What is the team of winner Dick Johnson?
SELECT Team FROM table WHERE Winner = dick johnson
Translate the following into a SQL query
What is the race title of the Oran Park raceway circuit with team jps team bmw?
SELECT Race Title FROM table WHERE Team = jps team bmw AND Circuit = oran park raceway
Translate the following into a SQL query
Name the total number of population hervey bay with population woocoo less than 640 and population of maryborough less than 19,257
SELECT COUNT Population (Hervey Bay) FROM table WHERE Population (Woocoo) < 640 AND Population (Maryborough) < 19,257
Translate the following into a SQL query
Name the average population hervey bay with population maryborough more than 11,415 and population region total less than 48,308 and population tiaro less than 2,066 and population woocoo of 491
SELECT AVG Population (Hervey Bay) FROM table WHERE Population (Maryborough) > 11,415 AND Population (Region total) < 48,308 AND Population (Tiaro) < 2,066 AND Population (Woocoo) = 491
Translate the following into a SQL query
Name the most population hervey bay for when population maryborough of 22,977 and population tiaro less than 3,287
SELECT MAX Population (Hervey Bay) FROM table WHERE Population (Maryborough) = 22,977 AND Population (Tiaro) < 3,287
Translate the following into a SQL query
Name the least year for population woocoo more than 750 and population region total more than 74,210 with population tiaro of 4,449 and population maryborough less than 24,465
SELECT MIN Year FROM table WHERE Population (Woocoo) > 750 AND Population (Region total) > 74,210 AND Population (Tiaro) = 4,449 AND Population (Maryborough) < 24,465
Translate the following into a SQL query
Which manufacturer made Shoya Tomizawa's motorcycle?
SELECT Manufacturer FROM table WHERE Rider = shoya tomizawa
Translate the following into a SQL query
How many laps were ridden in the race that had a Time/Retired of +37.351?
SELECT COUNT Laps FROM table WHERE Time/Retired = +37.351
Translate the following into a SQL query
How many laps did Mattia Pasini ride?
SELECT MIN Laps FROM table WHERE Rider = mattia pasini
Translate the following into a SQL query
What position does the player who has made 244 appearances with a Leeds career of 1981–1989 play?
SELECT Position FROM table WHERE Appearances = 244 AND Leeds career = 1981–1989
Translate the following into a SQL query
What position does the Wales player who made more than 167 appearances, had more than 0 goals, and had a Leeds career from 1977–1982 play?
SELECT Position FROM table WHERE Appearances > 167 AND Nationality = wales AND Goals > 0 AND Leeds career = 1977–1982
Translate the following into a SQL query
What is the average number of goals for a player who had a Leeds career from 1960–1964 and made fewer than 120 appearances?
SELECT AVG Goals FROM table WHERE Leeds career = 1960–1964 AND Appearances < 120
Translate the following into a SQL query
Who attended the school in 2008, that Deandria Hill attended in 2005?
SELECT 2008 FROM table WHERE 2005 = deandria hill
Translate the following into a SQL query
Who attended the school in 2006, that Jasmine Wilson attended in 2005?
SELECT 2006 FROM table WHERE 2005 = jasmine wilson
Translate the following into a SQL query
Who attended the school in 2009, that Lakita Hall attended in 2007?
SELECT 2009 FROM table WHERE 2007 = lakita hall
Translate the following into a SQL query
Who attended the school in 2007, that Kiara Spivey attended in 2008?
SELECT 2007 FROM table WHERE 2008 = kiara spivey
Translate the following into a SQL query
Who attended the school in 2006, that Whitney Powell attended in 2007?
SELECT 2006 FROM table WHERE 2007 = whitney powell
Translate the following into a SQL query
Who attended the school in 2008, that Brikajdri Wilson attended in 2006?
SELECT 2008 FROM table WHERE 2006 = brikajdri wilson
Translate the following into a SQL query
What is the lowest rank of a swimmer named Elizabeth Van Welie with a lane larger than 5?
SELECT MIN Rank FROM table WHERE Lane > 5 AND Name = elizabeth van welie
Translate the following into a SQL query
What is the rank of the swimmer with a time of 2:11.83?
SELECT Rank FROM table WHERE Time = 2:11.83
Translate the following into a SQL query
What is the lowest lane of a swimmer with a time of 2:07.57 and a rank larger than 1?
SELECT MIN Lane FROM table WHERE Time = 2:07.57 AND Rank > 1
Translate the following into a SQL query
What is the rank of the swimmer named Petria Thomas?
SELECT Rank FROM table WHERE Name = petria thomas
Translate the following into a SQL query
How many people were in attendance when the group position was 3rd?
SELECT Attendance FROM table WHERE Group position = 3rd
Translate the following into a SQL query
What was the final score agains Dynamo Kyiv, when the group position was 1st?
SELECT Result F – A FROM table WHERE Group position = 1st AND Opponents = dynamo kyiv
Translate the following into a SQL query
What was the average attendance on 18 October 2000?
SELECT AVG Attendance FROM table WHERE Date = 18 october 2000
Translate the following into a SQL query
In 2007, what player won player of the year?
SELECT Player FROM table WHERE Year(s) won = 2007
Translate the following into a SQL query
What year(s) did Mike Weir win player of the year?
SELECT Year(s) won FROM table WHERE Player = mike weir
Translate the following into a SQL query
The To par of +14 was won in what year(s)?
SELECT Year(s) won FROM table WHERE To par = +14
Translate the following into a SQL query
What is the result when the competition is 1982 president's cup?
SELECT Result FROM table WHERE Competition = 1982 president's cup
Translate the following into a SQL query
What is the score when the date is December 14, 1985?
SELECT Score FROM table WHERE Date = december 14, 1985
Translate the following into a SQL query
What is the venue when the date is September 24, 1980?
SELECT Venue FROM table WHERE Date = september 24, 1980
Translate the following into a SQL query
What is the venue when the result is 2-0, and the score is 1 goal, and the competition is 1980 afc asian cup?
SELECT Venue FROM table WHERE Result = 2-0 AND Score = 1 goal AND Competition = 1980 afc asian cup
Translate the following into a SQL query
What is the venue when the score is 1 goal, and the date is August 27, 1980?
SELECT Venue FROM table WHERE Score = 1 goal AND Date = august 27, 1980
Translate the following into a SQL query
What is the result when the date is August 27, 1980?
SELECT Result FROM table WHERE Date = august 27, 1980
Translate the following into a SQL query
What year shows the Entrant of bmw motorsport?
SELECT SUM Year FROM table WHERE Entrant = bmw motorsport
Translate the following into a SQL query
Which Entrant of stp march engineering scored the lowest points?
SELECT MIN Points FROM table WHERE Entrant = stp march engineering
Translate the following into a SQL query
What year had the Chassis of march 762 and more than 0 points?
SELECT COUNT Year FROM table WHERE Chassis = march 762 AND Points > 0
Translate the following into a SQL query
Which engine of bmw had the lowest points and chassis of march 792 that is newer than 1979?
SELECT MIN Points FROM table WHERE Engine = bmw AND Chassis = march 792 AND Year > 1979
Translate the following into a SQL query
Name the record when the attendance was more than 20,228 and rockies was the opponent on june 8
SELECT Record FROM table WHERE Attendance > 20,228 AND Opponent = rockies AND Date = june 8
Translate the following into a SQL query
Which Conference has a City of boca raton, and a School of florida atlantic university?
SELECT Conference FROM table WHERE City = boca raton AND School = florida atlantic university
Translate the following into a SQL query
Which School has a National Championships of 2, and a City of orlando?
SELECT School FROM table WHERE National Championships = 2 AND City = orlando
Translate the following into a SQL query
Which school has National Championships smaller than 2, and a Nickname of lions?
SELECT School FROM table WHERE National Championships < 2 AND Nickname = lions
Translate the following into a SQL query
What is the win percentage when 2011 shows 1r in the Paris tournament?
SELECT Win % FROM table WHERE 2011 = 1r AND Tournament = paris
Translate the following into a SQL query
What shows for 2009 when 25 shows for 2011?
SELECT 2009 FROM table WHERE 2011 = 25
Translate the following into a SQL query
What shows for 2010 when 2011 is 1r at the US Open tournament?
SELECT 2010 FROM table WHERE 2011 = 1r AND Tournament = us open
Translate the following into a SQL query
What is the win percentage when 2010 was 98?
SELECT Win % FROM table WHERE 2010 = 98
Translate the following into a SQL query
What shows for 2008 at the Shanghai tournament?
SELECT 2008 FROM table WHERE Tournament = shanghai
Translate the following into a SQL query
What is the win percentage for the 2012 of olympic games?
SELECT Win % FROM table WHERE 2012 = olympic games
Translate the following into a SQL query
Who was the opponent in the match that lasted 1:22?
SELECT Opponent FROM table WHERE Time = 1:22
Translate the following into a SQL query
Which round did the bout against Jonatas Novaes end in?
SELECT Round FROM table WHERE Opponent = jonatas novaes
Translate the following into a SQL query
Name the average established for championships less than 1 and club of erie seawolves
SELECT AVG Established FROM table WHERE Championships < 1 AND Club = erie seawolves
Translate the following into a SQL query
Name the most championships for club of erie seawolves
SELECT MAX Championships FROM table WHERE Club = erie seawolves
Translate the following into a SQL query
Name the sport with championships less than 1 and club of erie bayhawks
SELECT Sport FROM table WHERE Championships < 1 AND Club = erie bayhawks
Translate the following into a SQL query
what is the date for game 3?
SELECT Date FROM table WHERE Game = 3
Translate the following into a SQL query
What is the English title of 餓狼伝説バトルアーカイブズ2?
SELECT English title FROM table WHERE Japanese title = 餓狼伝説バトルアーカイブズ2
Translate the following into a SQL query
Who was the opponent when there was a loss of Francisco (1-1)?
SELECT Opponent FROM table WHERE Loss = francisco (1-1)
Translate the following into a SQL query
On what date was the attendance 17,136?
SELECT Date FROM table WHERE Attendance = 17,136
Translate the following into a SQL query
Who was the opponent during the game with a score of 6-5 and a loss of White (2-1)?
SELECT Opponent FROM table WHERE Score = 6-5 AND Loss = white (2-1)
Translate the following into a SQL query
What was the score for the game that had an attendance of 41,087?
SELECT Score FROM table WHERE Attendance = 41,087
Translate the following into a SQL query
When the game had a loss of Koch (0-1) what was the attendance?
SELECT Attendance FROM table WHERE Loss = koch (0-1)
Translate the following into a SQL query
What is the inegi code for mexicali with 13,700 km area?
SELECT AVG INEGI code FROM table WHERE Municipal seat = mexicali AND Area (Km2) > 13,700
Translate the following into a SQL query
What is the date of the away game when the team has a league position of 9th?
SELECT Date FROM table WHERE H / A = a AND League position = 9th