instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
When has Attendances of 45,795?
SELECT Date FROM table WHERE Attendance = 45,795
Translate the following into a SQL query
In what Week has a Result of l 24–20, and a Opponent of at new england patriots?
SELECT MAX Week FROM table WHERE Result = l 24–20 AND Opponent = at new england patriots
Translate the following into a SQL query
What years were the goals less then 160?
SELECT Years FROM table WHERE Goals < 160
Translate the following into a SQL query
What is the IATA code for the airport with an ICAO code of HLLS?
SELECT IATA FROM table WHERE ICAO = hlls
Translate the following into a SQL query
What airport is in Sabha?
SELECT Airport FROM table WHERE City = sabha
Translate the following into a SQL query
What is the ICAO code for the airport with RBA as its IATA code?
SELECT ICAO FROM table WHERE IATA = rba
Translate the following into a SQL query
What country is Istanbul in?
SELECT Country FROM table WHERE City = istanbul
Translate the following into a SQL query
Which airport has SEB as its IATA code?
SELECT Airport FROM table WHERE IATA = seb
Translate the following into a SQL query
What position does the player from Winston-Salem State play?
SELECT Position FROM table WHERE School/Club Team = winston-salem state
Translate the following into a SQL query
What was the sum of the points for the song "why did you have to go?"
SELECT SUM Points FROM table WHERE Song = "why did you have to go?"
Translate the following into a SQL query
What is the total number of points for the song that was ranked 6th and had a draw number smaller than 5?
SELECT COUNT Points FROM table WHERE Rank = 6th AND Draw < 5
Translate the following into a SQL query
When was the average year that the number of floors was greater than 75?
SELECT AVG Year FROM table WHERE Floors > 75
Translate the following into a SQL query
What is the average number of floors of the Venetian tower?
SELECT AVG Floors FROM table WHERE Name = venetian tower
Translate the following into a SQL query
Which arena was founded in 2000?
SELECT Arena FROM table WHERE Founded = 2000
Translate the following into a SQL query
Can you tell me the total number of Rank that has the Matches of 427, and the Goals smaller than 320?
SELECT COUNT Rank FROM table WHERE Matches = 427 AND Goals < 320
Translate the following into a SQL query
Can you tell me the Matches that has the Rank of 1?
SELECT Matches FROM table WHERE Rank = 1
Translate the following into a SQL query
Can you tell me the Matches that has the Rank smaller than 6, and the Years of 1943-62?
SELECT Matches FROM table WHERE Rank < 6 AND Years = 1943-62
Translate the following into a SQL query
Which class had a number under 4 and was built in 1988?
SELECT Class FROM table WHERE Number < 4 AND Built = 1988
Translate the following into a SQL query
How many items withdrawn had numbers over 5?
SELECT COUNT Withdrawn FROM table WHERE Number > 5
Translate the following into a SQL query
What is the sum of numbers that had a type of Driving Van Trailer?
SELECT SUM Number FROM table WHERE Type = driving van trailer
Translate the following into a SQL query
What rank has 1 silver, more than 2 gold, and a total larger than 3?
SELECT COUNT Rank FROM table WHERE Silver = 1 AND Total > 3 AND Gold > 2
Translate the following into a SQL query
What is the most gold where silver is 0?
SELECT MAX Gold FROM table WHERE Silver < 0
Translate the following into a SQL query
What is the number of silver where the rank is higher than 4 and bronze is smaller than 1?
SELECT COUNT Silver FROM table WHERE Rank > 4 AND Bronze < 1
Translate the following into a SQL query
What is the rank where the gold is 0?
SELECT AVG Rank FROM table WHERE Gold < 0
Translate the following into a SQL query
What is the rank that has 1 bronze and 1 silver?
SELECT COUNT Rank FROM table WHERE Bronze = 1 AND Silver > 1
Translate the following into a SQL query
What is the total launch failures when there are 4 launches, and the not usable is greater than 0?
SELECT SUM Launch Failures FROM table WHERE Launched = 4 AND Not usable > 0
Translate the following into a SQL query
What is the highest number of not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I?
SELECT MAX Not usable FROM table WHERE Launch Failures > 0 AND Retired < 30 AND Block = block i
Translate the following into a SQL query
What is the average number of not usable satellited when there are 0 retired, and the launch failures are less than 1?
SELECT AVG Not usable FROM table WHERE Retired = 0 AND Launch Failures < 1
Translate the following into a SQL query
What is the lowest number of members on the Cultural and Educational Panel, when the University of Dublin had 3 members, when the Industrial and Commercial Panel had more than 0 members, and when the Agricultural Panel had more than 4 members?
SELECT MIN Cultural and Educational Panel FROM table WHERE University of Dublin < 3 AND Industrial and Commercial Panel > 0 AND Agricultural Panel > 4
Translate the following into a SQL query
What was the average number of members Nominated by the Taoiseach, when the Agricultural Panel had less than 1 member, and when the Administrative Panel had fewer than 0 members?
SELECT AVG Nominated by the Taoiseach FROM table WHERE Agricultural Panel < 1 AND Administrative Panel < 0
Translate the following into a SQL query
What was the lowest number of members on the Agricultural Panel, when the Industrial and Commercial Panel had 9 members, and when the National University of Ireland had more than 3 members?
SELECT MIN Agricultural Panel FROM table WHERE Industrial and Commercial Panel = 9 AND National University of Ireland > 3
Translate the following into a SQL query
What was the greatest number of members for the National University of Ireland, when the Total number of members in the Seanad was 60, and when the Administrative Panel had more than 7 members?
SELECT MAX National University of Ireland FROM table WHERE Total = 60 AND Administrative Panel > 7
Translate the following into a SQL query
What is Final round, when Player is Danilo Gallinari?
SELECT Final round FROM table WHERE Player = danilo gallinari
Translate the following into a SQL query
For the film with director listed as 1998, what was the gross in Singapore?
SELECT Singapore Gross FROM table WHERE Director = 1998
Translate the following into a SQL query
Who was the director for the film produced by River Films?
SELECT Director FROM table WHERE Producer = river films
Translate the following into a SQL query
Who was the producer for the film directed by 1998?
SELECT Producer FROM table WHERE Director = 1998
Translate the following into a SQL query
For the film titled 1997, what was the gross in Singapore?
SELECT Singapore Gross FROM table WHERE Title = 1997
Translate the following into a SQL query
Who was the producer for the film directed by 1997?
SELECT Producer FROM table WHERE Director = 1997
Translate the following into a SQL query
For the directed by 1991, what was the gross in Singapore?
SELECT Singapore Gross FROM table WHERE Director = 1991
Translate the following into a SQL query
What is the most points scored for teams with under 25 goals scored, 3 draws, and more than 21 games played?
SELECT MAX Points FROM table WHERE Goals scored < 25 AND Draws = 3 AND Games played > 21
Translate the following into a SQL query
What day was there a set 1 of 25-18?
SELECT Date FROM table WHERE Set 1 = 25-18
Translate the following into a SQL query
What is the Week when the kick off was at 4:05 pm, and the result was w 31–14?
SELECT Week FROM table WHERE Kickoff ( ET ) = 4:05 pm AND Result = w 31–14
Translate the following into a SQL query
What time was the kickoff when the miami dolphins were the opponent?
SELECT Kickoff ( ET ) FROM table WHERE Opponent = miami dolphins
Translate the following into a SQL query
What is Round 2 when Round 4 is Double and Round 3 is Single?
SELECT Round 2 FROM table WHERE Round 4 = double AND Round 3 = single
Translate the following into a SQL query
What is Round 5 when Round 4 is Triple, Round 3 is Double and Round 6+ is Triple?
SELECT Round 5 FROM table WHERE Round 4 = triple AND Round 3 = double AND Round 6+ = triple
Translate the following into a SQL query
What is Round 1 from 1977 where Round 3 is Double and Round 4 is Double?
SELECT Round 1 FROM table WHERE Round 4 = double AND From = 1977 AND Round 3 = double
Translate the following into a SQL query
What is Round 2 from 1999?
SELECT Round 2 FROM table WHERE From = 1999
Translate the following into a SQL query
What is Round 4 when Round 6+ is triple, Round 5 is triple and Round 3 is single?
SELECT Round 4 FROM table WHERE Round 6+ = triple AND Round 5 = triple AND Round 3 = single
Translate the following into a SQL query
What is round 3 where From is earlier than 1990 and the Goal is 400?
SELECT Round 3 FROM table WHERE From < 1990 AND Goal = 400
Translate the following into a SQL query
What points has united kingdom as the country, and 10 as the place?
SELECT Points FROM table WHERE Country = united kingdom AND Place = 10
Translate the following into a SQL query
What machine has tony rutter as the rider?
SELECT Machine FROM table WHERE Rider = tony rutter
Translate the following into a SQL query
What machine has 5 as the place?
SELECT Machine FROM table WHERE Place = 5
Translate the following into a SQL query
How many places have yamaha as the machine, and 89.85mph as the speed?
SELECT SUM Place FROM table WHERE Machine = yamaha AND Speed = 89.85mph
Translate the following into a SQL query
How many places did the artist Big Hit have with less than 2934 votes?
SELECT COUNT Place FROM table WHERE Artist = big hit AND Votes < 2934
Translate the following into a SQL query
How many average votes did producer carlos coelho have in a higher place than 6 and with a draw larger than 5?
SELECT AVG Votes FROM table WHERE Place < 6 AND Producer = carlos coelho AND Draw > 5
Translate the following into a SQL query
What is the name of the MySpace Band with an Original Airdate of 19 february 2008?
SELECT MySpace Band FROM table WHERE Original Airdate = 19 february 2008
Translate the following into a SQL query
What is the Musical Guest/Song with a pilot of 3?
SELECT Musical Guest/Song performed FROM table WHERE Pilot = 3
Translate the following into a SQL query
What is the Original Airdate for the YouTube Hero greg pattillo?
SELECT Original Airdate FROM table WHERE YouTube Hero = greg pattillo
Translate the following into a SQL query
What is the Musical Guest/Song with an original airdate of january 2008?
SELECT Musical Guest/Song performed FROM table WHERE Original Airdate = january 2008
Translate the following into a SQL query
What is the Pilot number for the YouTube Hero greg pattillo?
SELECT Pilot FROM table WHERE YouTube Hero = greg pattillo
Translate the following into a SQL query
What is the name of the MySpace Band with an Original Airdate of 25 march 2008?
SELECT MySpace Band FROM table WHERE Original Airdate = 25 march 2008
Translate the following into a SQL query
What is the total number of top-25s for tournaments that had 0 wins, 1 cut made, and more than 5 events?
SELECT COUNT Top-25 FROM table WHERE Wins = 0 AND Cuts made = 1 AND Events > 5
Translate the following into a SQL query
What is the fewest number of top-5s for events with more than 1 win?
SELECT MIN Top-5 FROM table WHERE Wins > 1
Translate the following into a SQL query
What is the highest number of top-25s for events with 0 wins?
SELECT MAX Top-25 FROM table WHERE Wins < 0
Translate the following into a SQL query
What is the home leg who are opponents of rotor volgograd
SELECT Home leg FROM table WHERE Opponents = rotor volgograd
Translate the following into a SQL query
What is the round with ajax opponents
SELECT Round FROM table WHERE Opponents = ajax
Translate the following into a SQL query
Which acquisition via has a position of forward and is on the state school or club?
SELECT Acquisition via FROM table WHERE Position = forward AND School/Club Team = state
Translate the following into a SQL query
Which is the acquisition via that has a school or club team of state?
SELECT Acquisition via FROM table WHERE School/Club Team = state
Translate the following into a SQL query
What is the position of Allen Gamboa?
SELECT Position FROM table WHERE Name = allen gamboa
Translate the following into a SQL query
Which position is number 16?
SELECT Position FROM table WHERE Number = 16
Translate the following into a SQL query
What year had a date of TBA where the Oakland raiders were the home team?
SELECT AVG Year FROM table WHERE Date = tba AND Designated Home = oakland raiders
Translate the following into a SQL query
Who was the home team on October 28 when the new england patriots were the visitors?
SELECT Designated Home FROM table WHERE Date = october 28 AND Designated Visitors = new england patriots
Translate the following into a SQL query
Who were the visitors when the Atlanta Falcons were the home team?
SELECT Designated Visitors FROM table WHERE Designated Home = atlanta falcons
Translate the following into a SQL query
Who were the home team during the game that aired on Fox after 2007 on October 23?
SELECT Designated Home FROM table WHERE Television = fox AND Year > 2007 AND Date = october 23
Translate the following into a SQL query
What was the birthplace of the player who weighs 98 KG and was born on May 1, 1984?
SELECT Birthplace FROM table WHERE Weight (kg) = 98 AND Birthdate = may 1, 1984
Translate the following into a SQL query
What was the average Jersey number of the player for the Calgary Flames, whose Weight (kg) was greater than 84?
SELECT AVG Jersey number FROM table WHERE 1995-96 team = calgary flames AND Weight (kg) > 84
Translate the following into a SQL query
What was the average Height (cm), for a player who had the Position, C, and whose 1995-96 team was the Buffalo Sabres, and whose Weight (kg) was less than 82?
SELECT AVG Height (cm) FROM table WHERE Position = c AND 1995-96 team = buffalo sabres AND Weight (kg) < 82
Translate the following into a SQL query
What was the Name v t e, of the player whose Weight (kg) was 84, whose Position was D, and whose Jersey number was 2?
SELECT Name v t e FROM table WHERE Weight (kg) = 84 AND Position = d AND Jersey number = 2
Translate the following into a SQL query
What is the lowest win percentage for when Perth Scorchers is the opposition?
SELECT MIN Win % FROM table WHERE Opposition = perth scorchers
Translate the following into a SQL query
On which date was the game played on Week 13?
SELECT Date FROM table WHERE Week = 13
Translate the following into a SQL query
What is the total number of Std SAPs with 0-11 Opt SAPS?
SELECT COUNT Std SAPs FROM table WHERE Opt SAPs = 0-11
Translate the following into a SQL query
For Model e64 what is the zAAPs/zIIPs?
SELECT zAAPs / zIIPs FROM table WHERE Model = e64
Translate the following into a SQL query
For Model e12 what is the IFLs/uIFLs?
SELECT IFLs / uIFLs FROM table WHERE Model = e12
Translate the following into a SQL query
What is the average Natural Change (Per 1000), when Crude Death Rate (Per 1000) is greater than 13.2, when Deaths is 4,142, and when Natural Change is less than 752?
SELECT AVG Natural change (per 1000) FROM table WHERE Crude death rate (per 1000) > 13.2 AND Deaths = 4,142 AND Natural change < 752
Translate the following into a SQL query
What is the highest Crude Death Rate (per 1000), when Natural Change (Per 1000) is greater than 16.1, when Natural Change is 5,049, and when Crude Birth Rate (Per 1000) is less than 27.1?
SELECT MAX Crude death rate (per 1000) FROM table WHERE Natural change (per 1000) > 16.1 AND Natural change = 5,049 AND Crude birth rate (per 1000) < 27.1
Translate the following into a SQL query
What is the sum of Natural Change, when Natural Change (Per 1000) is greater than 5.4, when Crude Death Rate (Per 1000) is less than 14.3, when Live Births is less than 6,950, and when Crude Birth Rate (Per 1000) is less than 28.2?
SELECT SUM Natural change FROM table WHERE Natural change (per 1000) > 5.4 AND Crude death rate (per 1000) < 14.3 AND Live births < 6,950 AND Crude birth rate (per 1000) < 28.2
Translate the following into a SQL query
What is the highest Crude Death Rate (Per 1000), when Natural Change (Per 1000) is less than 5.2, when Average Population (x 1000) is 305, when Crude Birth Rate (Per 1000) is 16.1, and when Natural Change is greater than 954?
SELECT MAX Crude death rate (per 1000) FROM table WHERE Natural change (per 1000) < 5.2 AND Average population (x 1000) = 305 AND Crude birth rate (per 1000) = 16.1 AND Natural change > 954
Translate the following into a SQL query
What is the lowest Natural Change, when Natural Change (Per 1000) is 19.1, and when Crude Birth Rate (Per 1000) is less than 28.3?
SELECT MIN Natural change FROM table WHERE Natural change (per 1000) = 19.1 AND Crude birth rate (per 1000) < 28.3
Translate the following into a SQL query
Which Player has a School/Club Team of Illinois?
SELECT Player FROM table WHERE School/Club Team = illinois
Translate the following into a SQL query
Which Player plays Guard-Forward Position for School/Club Team Pepperdine?
SELECT Player FROM table WHERE Position = guard-forward AND School/Club Team = pepperdine
Translate the following into a SQL query
What Position does the Player Vince Carter hold?
SELECT Position FROM table WHERE Player = vince carter
Translate the following into a SQL query
Which School/Club Team does Vince Carter Play for?
SELECT School/Club Team FROM table WHERE Player = vince carter
Translate the following into a SQL query
Who is the Player for School/Club Team Illinois?
SELECT Player FROM table WHERE School/Club Team = illinois
Translate the following into a SQL query
What score has 7-0 as the result?
SELECT Score FROM table WHERE Result = 7-0
Translate the following into a SQL query
What competition has 17-1 as the result?
SELECT Competition FROM table WHERE Result = 17-1
Translate the following into a SQL query
What competition has 17-1 as the result?
SELECT Competition FROM table WHERE Result = 17-1
Translate the following into a SQL query
What is the set 2 with a 25-23 set 1 and a 17-19 set 5?
SELECT Set 2 FROM table WHERE Set 1 = 25-23 AND Set 5 = 17-19
Translate the following into a SQL query
What is the set 5 with a 25-23 set 3?
SELECT Set 5 FROM table WHERE Set 3 = 25-23
Translate the following into a SQL query
Who had the high pick of the round of 10 for Fairmont State college?
SELECT MAX Pick FROM table WHERE College = fairmont state AND Round > 10
Translate the following into a SQL query
What was the name of the player for pick 402?
SELECT Player FROM table WHERE Pick = 402