question
stringlengths 12
244
| sql
stringlengths 22
468
|
|---|---|
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
|
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
|
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
|
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
|
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
|
What round was on 11/11/1992?
|
SELECT Round FROM table WHERE Date = 11/11/1992
|
What is the total against on 08/12/1992?
|
SELECT SUM Against FROM table WHERE Date = 08/12/1992
|
What is the venue of 24/11/1992?
|
SELECT Venue FROM table WHERE Date = 24/11/1992
|
What round has less than 1 against?
|
SELECT Round FROM table WHERE Against < 1
|
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
|
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
|
What's the average number of silver medals when bronze is less than 0?
|
SELECT AVG Silver FROM table WHERE Bronze < 0
|
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
|
What are the notes for 6:31.16?
|
SELECT Notes FROM table WHERE Time = 6:31.16
|
What rowers have a 6:29.56 time?
|
SELECT Rowers FROM table WHERE Time = 6:29.56
|
What is the time with FB notes for Canada?
|
SELECT Time FROM table WHERE Notes = fb AND Country = canada
|
What country has a time of 6:49.28?
|
SELECT Country FROM table WHERE Time = 6:49.28
|
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
|
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
|
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
|
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
|
What week had attendance of 48,667?
|
SELECT COUNT Week FROM table WHERE Attendance = 48,667
|
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%
|
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%
|
What is the Place of Draw 1 by Artist Monika Kirovska?
|
SELECT AVG Place FROM table WHERE Artist = monika kirovska AND Draw < 1
|
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
|
How many wins did South Warrambool have?
|
SELECT AVG Wins FROM table WHERE Hampden FL = south warrambool
|
How many byes when there are more than 16 wins?
|
SELECT AVG Byes FROM table WHERE Wins > 16
|
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
|
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
|
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
|
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
|
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
|
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
|
Which Country's Author is based on Sophocles and Euripides?
|
SELECT country FROM table WHERE author = based on sophocles and euripides
|
Which Author's Company is Ruth Kanner Theatre Group?
|
SELECT author FROM table WHERE company = ruth kanner theatre group
|
Which Play is from Cyprus, from the Company Magdalena Zira Theatre?
|
SELECT play FROM table WHERE country = cyprus AND company = magdalena zira theatre
|
Which Country is the Play Electra and Orestes, The Trial from?
|
SELECT country FROM table WHERE play = electra and orestes, the trial
|
How much total time was in lane 4?
|
SELECT COUNT Time FROM table WHERE Lane = 4
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
What is the result when the nominee(s) of janine sherman?
|
SELECT Result FROM table WHERE Nominee(s) = janine sherman
|
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
|
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"
|
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
|
Who is the trainer of the winner skylighter?
|
SELECT Trainer FROM table WHERE Winner = skylighter
|
What is the distance with a 1:46.32 time?
|
SELECT Distance FROM table WHERE Time = 1:46.32
|
What is the average year with a 1:42.85 time?
|
SELECT AVG Year FROM table WHERE Time = 1:42.85
|
What is the distance in 2006?
|
SELECT Distance FROM table WHERE Year = 2006
|
Who was the director of Clean Pastures?
|
SELECT Director FROM table WHERE Title = clean pastures
|
What was the release date for Production Number 8181?
|
SELECT Release date FROM table WHERE Production Num. = 8181
|
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
|
What series was called Egghead Rides Again?
|
SELECT Series FROM table WHERE Title = egghead rides again
|
What is the Tie no of the Port Vale Away game?
|
SELECT Tie no FROM table WHERE Away team = port vale
|
What is the Score of the Halifax Town Home game?
|
SELECT Score FROM table WHERE Home team = halifax town
|
What is the Score of the Scarborough Home game?
|
SELECT Score FROM table WHERE Home team = scarborough
|
Which college did the player who went to the Boston Patriots go to?
|
SELECT College FROM table WHERE Team = boston patriots
|
What was the highest pick number of the player who went to LSU in college?
|
SELECT MAX Pick FROM table WHERE College = lsu
|
Which college did the player picked number 136 go to?
|
SELECT College FROM table WHERE Pick = 136
|
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
|
What lane was Emily Seebohm in?
|
SELECT COUNT Lane FROM table WHERE Name = emily seebohm
|
What is the quantity for railway 263?
|
SELECT Quantity FROM table WHERE Railway number(s) = 263
|
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
|
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
|
Who is the rb player from team oakland?
|
SELECT Player FROM table WHERE Position = rb AND Team = oakland
|
What is the team of the player from ohio state?
|
SELECT Team FROM table WHERE College = ohio state
|
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
|
What is the average heat ranked at 30?
|
SELECT AVG Heat FROM table WHERE Rank = 30
|
What is the average time in a rank of 61?
|
SELECT AVG Time FROM table WHERE Rank = 61
|
How much Capacity has a Vehicle of 2003 holden commodore ute?
|
SELECT COUNT Capacity FROM table WHERE Vehicle = 2003 holden commodore ute
|
Which Navigator has a Total Time of 08:29?
|
SELECT Navigator FROM table WHERE Total Time = 08:29
|
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
|
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
|
What is the total number of losses for teams with more than 0 byes?
|
SELECT COUNT Losses FROM table WHERE Byes > 0
|
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
|
When was Tree Cornered Tweety, directed by Friz Freleng, released?
|
SELECT Release date FROM table WHERE Director = friz freleng AND Title = tree cornered tweety
|
When was Too Hop to Handle released?
|
SELECT Release date FROM table WHERE Title = too hop to handle
|
From which series is the title Barbary Coast Bunny?
|
SELECT Series FROM table WHERE Title = barbary coast bunny
|
Who did the Lyrics (l) / Music (m) for the song in 23 Place?
|
SELECT Lyrics (l) / Music (m) FROM table WHERE Place = 23
|
What are the Votes for the Song by Artist Filipa Batista?
|
SELECT Votes FROM table WHERE Artist = filipa batista
|
What is the Votes for the Song in Place 9?
|
SELECT Votes FROM table WHERE Place = 9
|
What is the Artist of the Song "Procuro-Me Em Mim"?
|
SELECT Artist FROM table WHERE Song = "procuro-me em mim"
|
What is the Artist of the Song with a Place of withdrawn?
|
SELECT Artist FROM table WHERE Place = withdrawn
|
Which week had a result of L 38-21?
|
SELECT Week FROM table WHERE Result = l 38-21
|
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
|
Who won the Gold Medal in Moscow after the year 1982?
|
SELECT Gold FROM table WHERE Year > 1982 AND Place = moscow
|
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
|
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
|
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
|
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)
|
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
|
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
|
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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.