instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
what is the least capacity (mw) when the rank is less than 46 and the province is newfoundland and labrador?
SELECT MIN Capacity ( MW ) FROM table WHERE Rank < 46 AND Province = newfoundland and labrador
Translate the following into a SQL query
what is the lowest rank when the type is hydro, the name is grand rapids generating station and the capacity (mw) is more than 479?
SELECT MIN Rank FROM table WHERE Type = hydro AND Name = grand rapids generating station AND Capacity ( MW ) > 479
Translate the following into a SQL query
what is the province when the rank is higher than 24 and the name is laforge-2?
SELECT Province FROM table WHERE Rank > 24 AND Name = laforge-2
Translate the following into a SQL query
what is the name when the type is hydro, the capacity (mw) is less than 478, the rank is more than 85 and the province is quebec?
SELECT Name FROM table WHERE Type = hydro AND Capacity ( MW ) < 478 AND Rank > 85 AND Province = quebec
Translate the following into a SQL query
How many years have toyota team tom's as the team, with Laps greater than 64?
SELECT COUNT Year FROM table WHERE Team = toyota team tom's AND Laps > 64
Translate the following into a SQL query
What round was on 11/11/1992?
SELECT Round FROM table WHERE Date = 11/11/1992
Translate the following into a SQL query
What is the total against on 08/12/1992?
SELECT SUM Against FROM table WHERE Date = 08/12/1992
Translate the following into a SQL query
What is the venue of 24/11/1992?
SELECT Venue FROM table WHERE Date = 24/11/1992
Translate the following into a SQL query
What round has less than 1 against?
SELECT Round FROM table WHERE Against < 1
Translate the following into a SQL query
How many gold medals for germany (GER) having a rank less than 15?
SELECT COUNT Gold FROM table WHERE Nation = germany (ger) AND Rank < 15
Translate the following into a SQL query
How many silver medals when the bronze is more than 2 and having a rank more than 5?
SELECT MAX Silver FROM table WHERE Rank > 5 AND Bronze > 2
Translate the following into a SQL query
What's the average number of silver medals when bronze is less than 0?
SELECT AVG Silver FROM table WHERE Bronze < 0
Translate the following into a SQL query
What's the average number of silver medals for germany (GER) having more than 3 bronze?
SELECT AVG Silver FROM table WHERE Nation = germany (ger) AND Bronze > 3
Translate the following into a SQL query
What are the notes for 6:31.16?
SELECT Notes FROM table WHERE Time = 6:31.16
Translate the following into a SQL query
What rowers have a 6:29.56 time?
SELECT Rowers FROM table WHERE Time = 6:29.56
Translate the following into a SQL query
What is the time with FB notes for Canada?
SELECT Time FROM table WHERE Notes = fb AND Country = canada
Translate the following into a SQL query
What country has a time of 6:49.28?
SELECT Country FROM table WHERE Time = 6:49.28
Translate the following into a SQL query
Which Tries for has Points against larger than 87, and Tries against smaller than 28, and Points diff of +63?
SELECT AVG Tries for FROM table WHERE Points against > 87 AND Tries against < 28 AND Points diff = +63
Translate the following into a SQL query
Which Points for has Points against smaller than 93, and Tries for larger than 25?
SELECT MIN Points for FROM table WHERE Points against < 93 AND Tries for > 25
Translate the following into a SQL query
Which Tries for has Points against smaller than 124, and Points for smaller than 241, and Tries against smaller than 11?
SELECT MAX Tries for FROM table WHERE Points against < 124 AND Points for < 241 AND Tries against < 11
Translate the following into a SQL query
How many Tries against have a Team of dinamo bucureşti, and Tries for smaller than 19?
SELECT COUNT Tries against FROM table WHERE Team = dinamo bucureşti AND Tries for < 19
Translate the following into a SQL query
What week had attendance of 48,667?
SELECT COUNT Week FROM table WHERE Attendance = 48,667
Translate the following into a SQL query
What Song has a Draw of less than 4 with a Percentage of 32.22%?
SELECT Song FROM table WHERE Draw < 4 AND Percentage = 32.22%
Translate the following into a SQL query
What Artist has a Place of 3 or less with a Percentage of 38.60%?
SELECT Artist FROM table WHERE Place < 3 AND Percentage = 38.60%
Translate the following into a SQL query
What is the Place of Draw 1 by Artist Monika Kirovska?
SELECT AVG Place FROM table WHERE Artist = monika kirovska AND Draw < 1
Translate the following into a SQL query
What were the most byes of Terang-Mortlake when they had more than 11 wins and more than 1118 against?
SELECT MAX Byes FROM table WHERE Wins > 11 AND Against > 1118 AND Hampden FL = terang-mortlake
Translate the following into a SQL query
How many wins did South Warrambool have?
SELECT AVG Wins FROM table WHERE Hampden FL = south warrambool
Translate the following into a SQL query
How many byes when there are more than 16 wins?
SELECT AVG Byes FROM table WHERE Wins > 16
Translate the following into a SQL query
What is the least amount of Byes when there are more than 2 wins and 1946 against?
SELECT MIN Byes FROM table WHERE Against = 1946 AND Wins > 2
Translate the following into a SQL query
How many wins when the draws are less than 1 and more than 4 losses?
SELECT AVG Wins FROM table WHERE Draws < 1 AND Losses > 4
Translate the following into a SQL query
What was the lowest population of the GEO ID 3805373380 and the water square mileage smaller than 5.729?
SELECT MIN Pop. (2010) FROM table WHERE GEO ID = 3805373380 AND Water (sqmi) < 5.729
Translate the following into a SQL query
What is the lowest GEO ID for the longitude of -102.158045 and the water in square miles larger than 0.979?
SELECT MIN GEO ID FROM table WHERE Longitude = -102.158045 AND Water (sqmi) > 0.979
Translate the following into a SQL query
What is the average ANSI code for the town of Sherman and the smaller of the water area in square miles than 0.005?
SELECT AVG ANSI code FROM table WHERE Township = sherman AND Water (sqmi) < 0.005
Translate the following into a SQL query
What is the average longitude for the water area of 0.093 and has a GEO ID tag larger than 3808174460?
SELECT AVG Longitude FROM table WHERE Water (sqmi) = 0.093 AND GEO ID > 3808174460
Translate the following into a SQL query
Which Country's Author is based on Sophocles and Euripides?
SELECT country FROM table WHERE author = based on sophocles and euripides
Translate the following into a SQL query
Which Author's Company is Ruth Kanner Theatre Group?
SELECT author FROM table WHERE company = ruth kanner theatre group
Translate the following into a SQL query
Which Play is from Cyprus, from the Company Magdalena Zira Theatre?
SELECT play FROM table WHERE country = cyprus AND company = magdalena zira theatre
Translate the following into a SQL query
Which Country is the Play Electra and Orestes, The Trial from?
SELECT country FROM table WHERE play = electra and orestes, the trial
Translate the following into a SQL query
How much total time was in lane 4?
SELECT COUNT Time FROM table WHERE Lane = 4
Translate the following into a SQL query
Which Rank has a Reaction time larger than 0.20400000000000001, and a Time larger than 45.56?
SELECT MAX Rank FROM table WHERE React > 0.20400000000000001 AND Time > 45.56
Translate the following into a SQL query
How many ranks have more than 7 lanes, and an Athlete of michael mathieu, and a Reaction time larger than 0.203?
SELECT SUM Rank FROM table WHERE Lane > 7 AND Athlete = michael mathieu AND React > 0.203
Translate the following into a SQL query
Which Time has a Reaction smaller than 0.20400000000000001, and a Rank of 1?
SELECT SUM Time FROM table WHERE React < 0.20400000000000001 AND Rank = 1
Translate the following into a SQL query
What's the average Top-25, that has an Events that's smaller than 12, and has a Top-5 that is larger than 0?
SELECT AVG Top-25 FROM table WHERE Events < 12 AND Top-5 > 0
Translate the following into a SQL query
What's the listed average of Cuts made that has a Top-5 of 3, and a Top-10 that's smaller than 5?
SELECT AVG Cuts made FROM table WHERE Top-5 = 3 AND Top-10 < 5
Translate the following into a SQL query
What's the sum of Top-25 that has an Events that is smaller than 10?
SELECT COUNT Top-25 FROM table WHERE Events < 10
Translate the following into a SQL query
What's the sum of Top-10 that has Events that's larger than 16, and has a Top-5 that's also larger than 5?
SELECT COUNT Top-10 FROM table WHERE Events > 16 AND Top-5 > 5
Translate the following into a SQL query
What is the lowest Cuts made that has a Tournament of PGA Championship, and has a Top-5 that is smaller than 2?
SELECT MIN Cuts made FROM table WHERE Tournament = pga championship AND Top-5 < 2
Translate the following into a SQL query
When the nominee(s) is john wells what is the episode for a year before 2004?
SELECT Episode FROM table WHERE Year < 2004 AND Nominee(s) = john wells
Translate the following into a SQL query
What is the result when the nominee(s) of janine sherman?
SELECT Result FROM table WHERE Nominee(s) = janine sherman
Translate the following into a SQL query
What is the result for a year after 2003, when the nominee(s) is john wells?
SELECT Result FROM table WHERE Year > 2003 AND Nominee(s) = john wells
Translate the following into a SQL query
What is the earliest year with a result of nominated, and a nominee(s) of john wells, for an episode of "makemba"?
SELECT MIN Year FROM table WHERE Result = nominated AND Nominee(s) = john wells AND Episode = "makemba"
Translate the following into a SQL query
What is the purse in 2003, which had a 1-1/16 distance?
SELECT Purse FROM table WHERE Distance = 1-1/16 AND Year = 2003
Translate the following into a SQL query
Who is the trainer of the winner skylighter?
SELECT Trainer FROM table WHERE Winner = skylighter
Translate the following into a SQL query
What is the distance with a 1:46.32 time?
SELECT Distance FROM table WHERE Time = 1:46.32
Translate the following into a SQL query
What is the average year with a 1:42.85 time?
SELECT AVG Year FROM table WHERE Time = 1:42.85
Translate the following into a SQL query
What is the distance in 2006?
SELECT Distance FROM table WHERE Year = 2006
Translate the following into a SQL query
Who was the director of Clean Pastures?
SELECT Director FROM table WHERE Title = clean pastures
Translate the following into a SQL query
What was the release date for Production Number 8181?
SELECT Release date FROM table WHERE Production Num. = 8181
Translate the following into a SQL query
What series was directed by Frank Tashlin and has the production number, 8053?
SELECT Series FROM table WHERE Director = frank tashlin AND Production Num. = 8053
Translate the following into a SQL query
What series was called Egghead Rides Again?
SELECT Series FROM table WHERE Title = egghead rides again
Translate the following into a SQL query
What is the Tie no of the Port Vale Away game?
SELECT Tie no FROM table WHERE Away team = port vale
Translate the following into a SQL query
What is the Score of the Halifax Town Home game?
SELECT Score FROM table WHERE Home team = halifax town
Translate the following into a SQL query
What is the Score of the Scarborough Home game?
SELECT Score FROM table WHERE Home team = scarborough
Translate the following into a SQL query
Which college did the player who went to the Boston Patriots go to?
SELECT College FROM table WHERE Team = boston patriots
Translate the following into a SQL query
What was the highest pick number of the player who went to LSU in college?
SELECT MAX Pick FROM table WHERE College = lsu
Translate the following into a SQL query
Which college did the player picked number 136 go to?
SELECT College FROM table WHERE Pick = 136
Translate the following into a SQL query
Which college did the player picked larger than 130 by the New York Jets go to?
SELECT College FROM table WHERE Pick > 130 AND Team = new york jets
Translate the following into a SQL query
What lane was Emily Seebohm in?
SELECT COUNT Lane FROM table WHERE Name = emily seebohm
Translate the following into a SQL query
What is the quantity for railway 263?
SELECT Quantity FROM table WHERE Railway number(s) = 263
Translate the following into a SQL query
What are the year(s) of manufacture for railway number(s) 26 (ii) …63 (ii) , 188–193?
SELECT Year(s) of manufacture FROM table WHERE Railway number(s) = 26 (ii) …63 (ii) , 188–193
Translate the following into a SQL query
What are the railway number(s) for year(s) of manufacture of 1905–1906?
SELECT Railway number(s) FROM table WHERE Year(s) of manufacture = 1905–1906
Translate the following into a SQL query
Who is the rb player from team oakland?
SELECT Player FROM table WHERE Position = rb AND Team = oakland
Translate the following into a SQL query
What is the team of the player from ohio state?
SELECT Team FROM table WHERE College = ohio state
Translate the following into a SQL query
What is the highest rank in Uzbekistan with a time larger than 11.44?
SELECT MAX Rank FROM table WHERE Country = uzbekistan AND Time > 11.44
Translate the following into a SQL query
What is the average heat ranked at 30?
SELECT AVG Heat FROM table WHERE Rank = 30
Translate the following into a SQL query
What is the average time in a rank of 61?
SELECT AVG Time FROM table WHERE Rank = 61
Translate the following into a SQL query
How much Capacity has a Vehicle of 2003 holden commodore ute?
SELECT COUNT Capacity FROM table WHERE Vehicle = 2003 holden commodore ute
Translate the following into a SQL query
Which Navigator has a Total Time of 08:29?
SELECT Navigator FROM table WHERE Total Time = 08:29
Translate the following into a SQL query
Which Capacity has a Class of cm22, and a Vehicle of 1999 subaru impreza wrx sti?
SELECT MIN Capacity FROM table WHERE Class = cm22 AND Vehicle = 1999 subaru impreza wrx sti
Translate the following into a SQL query
Which Driver has a Capacity smaller than 5700, and a Total Time of 08:29?
SELECT Driver FROM table WHERE Capacity < 5700 AND Total Time = 08:29
Translate the following into a SQL query
What is the total number of losses for teams with more than 0 byes?
SELECT COUNT Losses FROM table WHERE Byes > 0
Translate the following into a SQL query
What is the sum of draws for teams with against of 1731 and under 10 losses?
SELECT SUM Draws FROM table WHERE Against = 1731 AND Losses < 10
Translate the following into a SQL query
When was Tree Cornered Tweety, directed by Friz Freleng, released?
SELECT Release date FROM table WHERE Director = friz freleng AND Title = tree cornered tweety
Translate the following into a SQL query
When was Too Hop to Handle released?
SELECT Release date FROM table WHERE Title = too hop to handle
Translate the following into a SQL query
From which series is the title Barbary Coast Bunny?
SELECT Series FROM table WHERE Title = barbary coast bunny
Translate the following into a SQL query
Who did the Lyrics (l) / Music (m) for the song in 23 Place?
SELECT Lyrics (l) / Music (m) FROM table WHERE Place = 23
Translate the following into a SQL query
What are the Votes for the Song by Artist Filipa Batista?
SELECT Votes FROM table WHERE Artist = filipa batista
Translate the following into a SQL query
What is the Votes for the Song in Place 9?
SELECT Votes FROM table WHERE Place = 9
Translate the following into a SQL query
What is the Artist of the Song "Procuro-Me Em Mim"?
SELECT Artist FROM table WHERE Song = "procuro-me em mim"
Translate the following into a SQL query
What is the Artist of the Song with a Place of withdrawn?
SELECT Artist FROM table WHERE Place = withdrawn
Translate the following into a SQL query
Which week had a result of L 38-21?
SELECT Week FROM table WHERE Result = l 38-21
Translate the following into a SQL query
Who was the opponent after week 8 that had 72,190 people in attendance?
SELECT Opponent FROM table WHERE Week > 8 AND Attendance = 72,190
Translate the following into a SQL query
Who won the Gold Medal in Moscow after the year 1982?
SELECT Gold FROM table WHERE Year > 1982 AND Place = moscow
Translate the following into a SQL query
What is the lowest total that has a rank less than 8, a silver greater than 6, and 20 as the bronze?
SELECT MIN Total FROM table WHERE Rank < 8 AND Silver > 6 AND Bronze = 20
Translate the following into a SQL query
What is the average silver that has a gold greater than 3, with soviet union (urs) as the nation, and a bronze greater than 26?
SELECT AVG Silver FROM table WHERE Gold > 3 AND Nation = soviet union (urs) AND Bronze > 26
Translate the following into a SQL query
What is the highest silver that has 57 as the total, with a bronze greater than 20?
SELECT MAX Silver FROM table WHERE Total = 57 AND Bronze > 20
Translate the following into a SQL query
What rank has a gold greater than 0, 0 as the bronze, with germany (ger) as the nation?
SELECT Rank FROM table WHERE Gold > 0 AND Bronze = 0 AND Nation = germany (ger)
Translate the following into a SQL query
How many bronzes have 1 as the total, with spain (esp) as the nation, and a gold greater than 0?
SELECT COUNT Bronze FROM table WHERE Total = 1 AND Nation = spain (esp) AND Gold > 0
Translate the following into a SQL query
Which Prominence (m) has a Peak of nakanai mountains high point, and an Elevation (m) smaller than 2,316?
SELECT AVG Prominence (m) FROM table WHERE Peak = nakanai mountains high point AND Elevation (m) < 2,316
Translate the following into a SQL query
How much Col (m) has a Prominence (m) larger than 1,897, and a Rank smaller than 6?
SELECT COUNT Col (m) FROM table WHERE Prominence (m) > 1,897 AND Rank < 6