instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Who plays halfback?
SELECT Player FROM table WHERE Position = halfback
Translate the following into a SQL query
Who is the team for Washington College?
SELECT Team FROM table WHERE College = washington
Translate the following into a SQL query
What is the Rank of the game with an Attendance of 93,039?
SELECT COUNT Rank FROM table WHERE Attendance = 93,039
Translate the following into a SQL query
What fuel system does the diesel engines model have?
SELECT Fuel system FROM table WHERE Model = diesel engines
Translate the following into a SQL query
What is the displacement for the petrol engines model?
SELECT Displacement FROM table WHERE Model = petrol engines
Translate the following into a SQL query
What is the size of the 2009 electorate for Gwalior Rural?
SELECT Number of electorates (2009) FROM table WHERE Name = gwalior rural
Translate the following into a SQL query
Who was eliminated that entered after number 3 and lasted 35:55?
SELECT Eliminated FROM table WHERE Entered > 3 AND Time = 35:55
Translate the following into a SQL query
What is the average year in which the finish position was 13th?
SELECT AVG Year FROM table WHERE Position = 13th
Translate the following into a SQL query
What is the average year for the Olympic Games?
SELECT AVG Year FROM table WHERE Competition = olympic games
Translate the following into a SQL query
What is the Label of the September 20, 2008 release with Catalog number RTRADCD491?
SELECT Label FROM table WHERE Catalog = rtradcd491 AND Date = september 20, 2008
Translate the following into a SQL query
What is the Format of the September 22, 2008 release with Catalog number RTRADCD491?
SELECT Format FROM table WHERE Catalog = rtradcd491 AND Date = september 22, 2008
Translate the following into a SQL query
What is the Format of the release with Catalog number RTRADLP491?
SELECT Format FROM table WHERE Catalog = rtradlp491
Translate the following into a SQL query
What is the Label of the Release with Catalog number 2508668?
SELECT Label FROM table WHERE Catalog = 2508668
Translate the following into a SQL query
What is the Format of the release with Catalog number 2508668?
SELECT Format FROM table WHERE Catalog = 2508668
Translate the following into a SQL query
What is the Region of the Warner Music Canada Label release?
SELECT Region FROM table WHERE Label = warner music canada
Translate the following into a SQL query
Who were the developers for Portal?
SELECT Developer(s) FROM table WHERE Game = portal
Translate the following into a SQL query
Who were the developers for the Action RPG made after 2010?
SELECT Developer(s) FROM table WHERE Year > 2010 AND Genre = action rpg
Translate the following into a SQL query
Which Callsign has an IATA of tr?
SELECT Callsign FROM table WHERE IATA = tr
Translate the following into a SQL query
Which Commenced operations have an Airline of valuair?
SELECT Commenced operations FROM table WHERE Airline = valuair
Translate the following into a SQL query
Which Commenced operations have an Airline of valuair?
SELECT MAX Commenced operations FROM table WHERE Airline = valuair
Translate the following into a SQL query
Which IATA has a ICAO of slk?
SELECT IATA FROM table WHERE ICAO = slk
Translate the following into a SQL query
How many Viewers have a Rank smaller than 2?
SELECT SUM Viewers FROM table WHERE Rank < 2
Translate the following into a SQL query
What is the longitude for the Township that has a ANSI code less than 1036534, a water (sqmi) of 0, and a GEO ID greater than 3809959540?
SELECT COUNT Longitude FROM table WHERE ANSI code < 1036534 AND Water (sqmi) = 0 AND GEO ID > 3809959540
Translate the following into a SQL query
What is the population in 2010 for the longitude of -97.578927?
SELECT COUNT Pop. (2010) FROM table WHERE Longitude = -97.578927
Translate the following into a SQL query
What is the total population in 2010 for the township located in Mountrail which has land less than 34.424 sq miles and a GEO ID less than 3806159940?
SELECT SUM Pop. (2010) FROM table WHERE Land ( sqmi ) < 34.424 AND County = mountrail AND GEO ID < 3806159940
Translate the following into a SQL query
What is the highest recorded latitude for the township that has an ANSI code greater than 1759541 and a population in 2010 of 72?
SELECT MAX Latitude FROM table WHERE ANSI code > 1759541 AND Pop. (2010) = 72
Translate the following into a SQL query
Which Athlete has a Rank larger than 1, and a Lane larger than 7, and a Nationality of china?
SELECT Athlete FROM table WHERE Rank > 1 AND Lane > 7 AND Nationality = china
Translate the following into a SQL query
How many Lanes have a Time larger than 13.59, and a Rank larger than 8?
SELECT SUM Lane FROM table WHERE Time > 13.59 AND Rank > 8
Translate the following into a SQL query
How many lanes have a Nationality of france, and a Rank larger than 8?
SELECT SUM Lane FROM table WHERE Nationality = france AND Rank > 8
Translate the following into a SQL query
What game was developed by Nintendo for the Gamecube platform?
SELECT Game FROM table WHERE Developer(s) = nintendo AND Platform(s) = gamecube
Translate the following into a SQL query
What is the genre of Super Mario Galaxy?
SELECT Genre FROM table WHERE Game = super mario galaxy
Translate the following into a SQL query
What is the average year having a rank among provinces over 5 and ten-year percentage change of 67.3?
SELECT AVG Year FROM table WHERE Ten Year % change = 67.3 AND Rank Among Provinces > 5
Translate the following into a SQL query
What is the highest population for the province having a rank under 5?
SELECT MAX Population FROM table WHERE Rank Among Provinces < 5
Translate the following into a SQL query
What is the number of population values having a rank among provinces under 5 with a five-year percentage change of 3.6?
SELECT COUNT Population FROM table WHERE Five Year % change = 3.6 AND Rank Among Provinces < 5
Translate the following into a SQL query
What is the highest year having a ten-year percentage change of 7.9?
SELECT MAX Year FROM table WHERE Ten Year % change = 7.9
Translate the following into a SQL query
What's the comp for 1998-04-22?
SELECT Comp FROM table WHERE Date = 1998-04-22
Translate the following into a SQL query
What's the score at Olympic Stadium Tokyo, Japan?
SELECT Score FROM table WHERE Venue = olympic stadium tokyo, japan
Translate the following into a SQL query
What's the comp in Olympic Stadium Tokyo, Japan?
SELECT Comp FROM table WHERE Venue = olympic stadium tokyo, japan
Translate the following into a SQL query
What's the report in King Baudouin Stadium Brussels, Belgium?
SELECT Report FROM table WHERE Venue = king baudouin stadium brussels, belgium
Translate the following into a SQL query
What is the Percentage Lost for the contestant with a starting weight above 102 kg who lost 46.9 kg?
SELECT Percentage Lost FROM table WHERE Starting Weight (kg) > 102 AND Weight Lost (kg) = 46.9
Translate the following into a SQL query
What lane has a time of 1:57.71?
SELECT SUM Lane FROM table WHERE Time = 1:57.71
Translate the following into a SQL query
Who had a larger rank than 3, less than 6 lanes, and a time of 1:58.15?
SELECT Name FROM table WHERE Rank > 3 AND Lane < 6 AND Time = 1:58.15
Translate the following into a SQL query
Which Crude death rate (per 1000) has Deaths of 768, and a Crude birth rate (per 1000) smaller than 29.7?
SELECT MIN Crude death rate (per 1000) FROM table WHERE Deaths = 768 AND Crude birth rate (per 1000) < 29.7
Translate the following into a SQL query
Which Attendance has an Opponent of perth glory, and a Round of 9?
SELECT MIN Attendance FROM table WHERE Opponent = perth glory AND Round = 9
Translate the following into a SQL query
What is the lowest rank of rider darren gilpin?
SELECT MIN Rank FROM table WHERE Rider = darren gilpin
Translate the following into a SQL query
What is the highest rank of rider colin martin?
SELECT MAX Rank FROM table WHERE Rider = colin martin
Translate the following into a SQL query
What is shown on Tuesday when Monday is showing Fox Sports Primetime?
SELECT Tuesday FROM table WHERE Monday = fox sports primetime
Translate the following into a SQL query
What is shown on Friday when Tuesday is Jay Mohr Sports?
SELECT Friday FROM table WHERE Tuesday = jay mohr sports
Translate the following into a SQL query
What is shown on Friday when Monday is Fox Sports Primetime?
SELECT Friday FROM table WHERE Monday = fox sports primetime
Translate the following into a SQL query
What is shown on Tuesday when Thursday shows Fox Sports Tonight (ends 1 am next day)?
SELECT Tuesday FROM table WHERE Thursday = fox sports tonight (ends 1 am next day)
Translate the following into a SQL query
What is shown on Tuesday when Wednesday is Fox Sports Tonight (ends 1 am next day)?
SELECT Tuesday FROM table WHERE Wednesday = fox sports tonight (ends 1 am next day)
Translate the following into a SQL query
Which capacity has the class 4c3h?
SELECT Capacity FROM table WHERE Class = 4c3h
Translate the following into a SQL query
What is the navigator for James?
SELECT Navigator FROM table WHERE Driver = james
Translate the following into a SQL query
How much time did Coad make when the margin was 04:02?
SELECT Total Time FROM table WHERE Margin = 04:02 AND Driver = coad
Translate the following into a SQL query
What class has a capacity smaller than 3384 for Ferguson?
SELECT Class FROM table WHERE Capacity < 3384 AND Navigator = ferguson
Translate the following into a SQL query
Which 1990 has a 2005 smaller than 5,361, and a 2007 smaller than 4,841, and a 2006 smaller than 618, and a 2004 smaller than 389?
SELECT 1990 FROM table WHERE 2005 < 5,361 AND 2007 < 4,841 AND 2006 < 618 AND 2004 < 389
Translate the following into a SQL query
What is the total number of places for a song with a draw of 21 and more than 36 points?
SELECT COUNT Place FROM table WHERE Draw = 21 AND Points > 36
Translate the following into a SQL query
What is the lowest numbered game against Phoenix with a record of 29-17?
SELECT MIN Game FROM table WHERE Opponent = phoenix AND Record = 29-17
Translate the following into a SQL query
what is the soap opera when the duration is 18 years and the character is miley byrne?
SELECT Soap Opera FROM table WHERE Duration = 18 years AND Character = miley byrne
Translate the following into a SQL query
what is the years when the duration is 13 years and the character is renee phelan?
SELECT Years FROM table WHERE Duration = 13 years AND Character = renee phelan
Translate the following into a SQL query
what is the years when the soap opera is glenroe and the actor is mick lally?
SELECT Years FROM table WHERE Soap Opera = glenroe AND Actor = mick lally
Translate the following into a SQL query
who is the actor when the character is dinny byrne?
SELECT Actor FROM table WHERE Character = dinny byrne
Translate the following into a SQL query
what is the soap opera when the actor is dave duffy?
SELECT Soap Opera FROM table WHERE Actor = dave duffy
Translate the following into a SQL query
What is the score for the game with an 11 tie number?
SELECT Score FROM table WHERE Tie no = 11
Translate the following into a SQL query
What date was Ipswich Town the away team?
SELECT Date FROM table WHERE Away team = ipswich town
Translate the following into a SQL query
Who is the owner with a Hot Adult Contemporary format?
SELECT Owner FROM table WHERE Format = hot adult contemporary
Translate the following into a SQL query
What's the call sign of The Q?
SELECT Call sign FROM table WHERE Branding = the q
Translate the following into a SQL query
What's the call sign for Jack FM?
SELECT Call sign FROM table WHERE Branding = jack fm
Translate the following into a SQL query
What is the average year for a Saar of FK Pirmasens and Hessen of Wormatia Worms?
SELECT AVG Year FROM table WHERE Saar = fk pirmasens AND Hessen = wormatia worms
Translate the following into a SQL query
What is the smallest year for a Main of Eintracht Frankfurt, Rhein of Waldhof Mannheim, Sarr of FK Pirmasens, and Hessen of Wormatia Worms?
SELECT MIN Year FROM table WHERE Main = eintracht frankfurt AND Rhein = waldhof mannheim AND Saar = fk pirmasens AND Hessen = wormatia worms
Translate the following into a SQL query
Which year has a Main of Eintracht Frankfurt and Hessen of FSV Mainz 05?
SELECT Year FROM table WHERE Main = eintracht frankfurt AND Hessen = fsv mainz 05
Translate the following into a SQL query
Who was the Hessen the year that Saar was FK Pirmasens?
SELECT Hessen FROM table WHERE Saar = fk pirmasens
Translate the following into a SQL query
What's the series of Buddy The Woodsman by director Jack King?
SELECT Series FROM table WHERE Director = jack king AND Title = buddy the woodsman
Translate the following into a SQL query
Who was the director of the movie having a release date of 1934-09-15, an MM Series and a production number less than 6494?
SELECT Director FROM table WHERE Series = mm AND Production Num. < 6494 AND Release date = 1934-09-15
Translate the following into a SQL query
Who's the director of Buddy of the Apes?
SELECT Director FROM table WHERE Title = buddy of the apes
Translate the following into a SQL query
What's the title of the film directed by Friz Freleng with an MM Series, production number greater than 6209 and a release date of 1934-11-03?
SELECT Title FROM table WHERE Production Num. > 6209 AND Series = mm AND Director = friz freleng AND Release date = 1934-11-03
Translate the following into a SQL query
What is the lowest time for Paulo Villar in lane 9?
SELECT MIN Time FROM table WHERE Athlete = paulo villar AND Lane < 9
Translate the following into a SQL query
What is the nationality of lane 4?
SELECT Nationality FROM table WHERE Lane = 4
Translate the following into a SQL query
What is the nationality with a 13.21 time?
SELECT Nationality FROM table WHERE Time = 13.21
Translate the following into a SQL query
With an increase in net assets of $211,418, what are the net assets at end of year?
SELECT Net Assets at End of Year FROM table WHERE Increase in Net Assets = $211,418
Translate the following into a SQL query
What increase in net assets also has $5,617,236 as the total expenses?
SELECT Increase in Net Assets FROM table WHERE Total Expenses = $5,617,236
Translate the following into a SQL query
With the net assets at end of year of $8,231,767, what is the increase in net assets?
SELECT Increase in Net Assets FROM table WHERE Net Assets at End of Year = $8,231,767
Translate the following into a SQL query
What net assets at end of year has $6,310,964 as the increase in net assets?
SELECT Net Assets at End of Year FROM table WHERE Increase in Net Assets = $6,310,964
Translate the following into a SQL query
When the increase in net assets is $654,066, what is the net assets at end of year?
SELECT Net Assets at End of Year FROM table WHERE Increase in Net Assets = $654,066
Translate the following into a SQL query
What net assets at end of year also has $736,132 as the increase in net assets?
SELECT Net Assets at End of Year FROM table WHERE Increase in Net Assets = $736,132
Translate the following into a SQL query
How many Gold medals did Puerto Rico receive with 1 Silver and a Total of 1 or less?
SELECT COUNT Gold FROM table WHERE Silver = 1 AND Nation = puerto rico AND Total < 1
Translate the following into a SQL query
What is the Total number of medals for the Nation with 7 or less Bronze medals and 1 Silver medal with a Rank of 9 or larger?
SELECT MIN Total FROM table WHERE Bronze < 7 AND Silver = 1 AND Rank > 9
Translate the following into a SQL query
How many Silver medals did the Nation with 10 or more Bronze receive?
SELECT MIN Silver FROM table WHERE Bronze > 10
Translate the following into a SQL query
what is the average wins when draws is less than 0?
SELECT AVG Wins FROM table WHERE Draws < 0
Translate the following into a SQL query
what is the average losses when the club is warrnambool and wins is less than 12?
SELECT AVG Losses FROM table WHERE Club = warrnambool AND Wins < 12
Translate the following into a SQL query
what is the most losses when the club is terang and draws is less than 0?
SELECT MAX Losses FROM table WHERE Club = terang AND Draws < 0
Translate the following into a SQL query
What is the sum of losses when wins is more than 6, club is camperdown and against is more than 1238?
SELECT SUM Losses FROM table WHERE Wins > 6 AND Club = camperdown AND Against > 1238
Translate the following into a SQL query
What is the drew for the 1999-2000 season when they were in third place?
SELECT Drew FROM table WHERE Round = third place AND Season = 1999-2000
Translate the following into a SQL query
What competition did they have 1 lost, 3 draws, and played 9 games?
SELECT Competition FROM table WHERE Lost = 1 AND Drew = 3 AND Played = 9
Translate the following into a SQL query
What is the number of draws when the played 9 and lost 3?
SELECT Drew FROM table WHERE Played = 9 AND Lost = 3
Translate the following into a SQL query
How many cable channels have callsign CBFT-DT?
SELECT COUNT Cable channel FROM table WHERE Call sign = cbft-dt
Translate the following into a SQL query
What is the lowest Digital PSIP for channels over 29 with callsign CFTU-DT?
SELECT MIN Digital PSIP FROM table WHERE Call sign = cftu-dt AND Broadcast channel > 29
Translate the following into a SQL query
What is the Digital PSIP for channels over 15 with callsign CFTU-DT?
SELECT Digital PSIP FROM table WHERE Broadcast channel > 15 AND Call sign = cftu-dt
Translate the following into a SQL query
Where was the location of the Mong Kok Stadium?
SELECT Location FROM table WHERE Home Ground = mong kok stadium
Translate the following into a SQL query
Which club, had a home ground of n/a?
SELECT Club FROM table WHERE Home Ground = n/a