instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What games have colomiers as the club? | SELECT Games FROM table WHERE Club = colomiers |
Translate the following into a SQL query | Which lost has 84 as the match points? | SELECT Lost FROM table WHERE Match points = 84 |
Translate the following into a SQL query | How many constituents does udaipura have? | SELECT Constituency number FROM table WHERE Name = udaipura |
Translate the following into a SQL query | What lane was Henrique Barbosa in? | SELECT COUNT Lane FROM table WHERE Name = henrique barbosa |
Translate the following into a SQL query | What game was before 2010 and was a role-playing game? | SELECT Game FROM table WHERE Year < 2010 AND Genre = role-playing game |
Translate the following into a SQL query | What was the platform of Red Dead Redemption? | SELECT Platform(s) FROM table WHERE Game = red dead redemption |
Translate the following into a SQL query | Who was the developer of Wii? | SELECT Developer(s) FROM table WHERE Platform(s) = wii |
Translate the following into a SQL query | What year was The Walking Dead? | SELECT COUNT Year FROM table WHERE Game = the walking dead |
Translate the following into a SQL query | What was the platform when the developer was Telltale Games? | SELECT Platform(s) FROM table WHERE Developer(s) = telltale games |
Translate the following into a SQL query | What is the game of developer Rockstar Games? | SELECT Game FROM table WHERE Developer(s) = rockstar games |
Translate the following into a SQL query | Which Elevation (m) has a Prominence (m) of 2,876, and a Col (m) larger than 0? | SELECT SUM Elevation (m) FROM table WHERE Prominence (m) = 2,876 AND Col (m) > 0 |
Translate the following into a SQL query | How much Elevation (m) has a Prominence (m) larger than 2,876? | SELECT COUNT Elevation (m) FROM table WHERE Prominence (m) > 2,876 |
Translate the following into a SQL query | When was millwall the home team? | SELECT Date FROM table WHERE Home team = millwall |
Translate the following into a SQL query | What was the score when Arsenal was the away team? | SELECT Score FROM table WHERE Away team = arsenal |
Translate the following into a SQL query | Which away team had a Score of 2–0? | SELECT Away team FROM table WHERE Score = 2–0 |
Translate the following into a SQL query | When was Arsenal was the away team? | SELECT Date FROM table WHERE Away team = arsenal |
Translate the following into a SQL query | What's the date released when there was 9.7% of Green communist? | SELECT Date Released FROM table WHERE Green-Communist = 9.7% |
Translate the following into a SQL query | What's the green communist when Euroteste/JN is the polling Institute? | SELECT Green-Communist FROM table WHERE Polling institute = euroteste/jn |
Translate the following into a SQL query | What is the most silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 44? | SELECT MAX Silver FROM table WHERE Total > 2 AND Rank = total AND Gold > 44 |
Translate the following into a SQL query | What is the fewest gold medals when there is 0 bronze medals, and the rank is 19, and silver medals are less than 1? | SELECT MIN Gold FROM table WHERE Bronze = 0 AND Rank = 19 AND Silver < 1 |
Translate the following into a SQL query | What is the largest amount of bronze medals when the silver medals are less than 1, and Belgium (BEL) is the nation, and the gold medals are less than 0? | SELECT MAX Bronze FROM table WHERE Silver < 1 AND Nation = belgium (bel) AND Gold < 0 |
Translate the following into a SQL query | With silver medals less than 1, and total medals less than 2, what is the most bronze medals? | SELECT MAX Bronze FROM table WHERE Silver < 1 AND Total < 2 |
Translate the following into a SQL query | What is the weight for the 2008 club Dynamo Moscow? | SELECT Weight FROM table WHERE 2008 club = dynamo moscow |
Translate the following into a SQL query | What is the spike for the 2008 club Zenit Kazan? | SELECT Spike FROM table WHERE 2008 club = zenit kazan |
Translate the following into a SQL query | Can you tell me the total number of Byes that has the Wins of 14, and the Losses larger than 2? | SELECT COUNT Byes FROM table WHERE Wins = 14 AND Losses > 2 |
Translate the following into a SQL query | Can you tell me the average Wins that has the Against of 1132, and the Losses smaller than 7? | SELECT AVG Wins FROM table WHERE Against = 1132 AND Losses < 7 |
Translate the following into a SQL query | What was the date for the game that had a Location/Attendance of the spectrum? | SELECT Date FROM table WHERE Location/Attendance = the spectrum |
Translate the following into a SQL query | Who was the opponent when they played at the Skydome? | SELECT Opponent FROM table WHERE Location/Attendance = skydome |
Translate the following into a SQL query | What was the record on January 17? | SELECT Record FROM table WHERE Date = january 17 |
Translate the following into a SQL query | What was the location and attendance when the record was 19-17? | SELECT Location/Attendance FROM table WHERE Record = 19-17 |
Translate the following into a SQL query | What city joined the Independents conference after 1963? | SELECT City FROM table WHERE Year joined > 1963 AND Conference Joined = independents |
Translate the following into a SQL query | What is the year that the Gary team with mascot of the Tornado joined? | SELECT MIN Year joined FROM table WHERE City = gary AND Mascot = tornado |
Translate the following into a SQL query | What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference? | SELECT Previous Conference FROM table WHERE Conference Joined = indiana lake shore AND Mascot = governors |
Translate the following into a SQL query | What is the year that the Roughriders left the conference? | SELECT MAX Year Left FROM table WHERE Mascot = roughriders |
Translate the following into a SQL query | What conference did the city of Valparaiso join? | SELECT Conference Joined FROM table WHERE City = valparaiso |
Translate the following into a SQL query | What is the mascot of Hammond Tech? | SELECT Mascot FROM table WHERE City = hammond AND School = hammond tech |
Translate the following into a SQL query | What is the duration of the character Bartha Zsolt? | SELECT Duration FROM table WHERE Character = bartha zsolt |
Translate the following into a SQL query | How many losses have jake sharp as the name, with a long less than 30? | SELECT COUNT Loss FROM table WHERE Name = jake sharp AND Long < 30 |
Translate the following into a SQL query | What is the average long that has 1581 as a gain, with a loss less than 308? | SELECT AVG Long FROM table WHERE Gain = 1581 AND Loss < 308 |
Translate the following into a SQL query | How many gains have a long greater than 8, with avg/g of 124.9? | SELECT SUM Gain FROM table WHERE Long > 8 AND Avg/G = 124.9 |
Translate the following into a SQL query | How many longs have a gain less than 379, and 0.8 as an avg/g? | SELECT SUM Long FROM table WHERE Gain < 379 AND Avg/G = 0.8 |
Translate the following into a SQL query | What is the lowest gain that has toben opurum as the name, with an avg/g less than 54.1? | SELECT MIN Gain FROM table WHERE Name = toben opurum AND Avg/G < 54.1 |
Translate the following into a SQL query | Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023? | SELECT Driver FROM table WHERE Grid < 17 AND Points > 0 AND Laps = 87 AND Time/Retired = 1:48:11.023 |
Translate the following into a SQL query | Which Points have a Grid larger than 7, and a Driver of alex tagliani, and a Lapse smaller than 85? | SELECT MAX Points FROM table WHERE Grid > 7 AND Driver = alex tagliani AND Laps < 85 |
Translate the following into a SQL query | What is the total number of wins for a nation that played fewer than 8 matches and a Wins percentage of 62.5%? | SELECT COUNT Wins FROM table WHERE Wins % = 62.5% AND Matches < 8 |
Translate the following into a SQL query | What is the highest number of matches for a nation with a Loses percentage of 26.67% and fewer than 90 draws? | SELECT MAX Matches FROM table WHERE Loses % = 26.67% AND Draws < 90 |
Translate the following into a SQL query | What date has uefa euro 2008 qualification as the competition? | SELECT Date FROM table WHERE Competition = uefa euro 2008 qualification |
Translate the following into a SQL query | What date has friendly as the competition, with pretoria, South Africa as the venue? | SELECT Date FROM table WHERE Competition = friendly AND Venue = pretoria, south africa |
Translate the following into a SQL query | What is the lowest final score of the American Cup competition before 2009? | SELECT MIN Score-Final FROM table WHERE Competition Description = american cup AND Year < 2009 |
Translate the following into a SQL query | What is the result for the game before week 7 against BYE? | SELECT Result FROM table WHERE Week < 7 AND Opponent = bye |
Translate the following into a SQL query | What was the date for the game after week 16? | SELECT Date FROM table WHERE Week > 16 |
Translate the following into a SQL query | What was the attendance for the game against tampa bay buccaneers? | SELECT Attendance FROM table WHERE Opponent = tampa bay buccaneers |
Translate the following into a SQL query | What was the date of the game after week 5 with 62,262 fans attending? | SELECT Date FROM table WHERE Week > 5 AND Attendance = 62,262 |
Translate the following into a SQL query | Which Location has a Record of 5–2–1? | SELECT Location FROM table WHERE Record = 5–2–1 |
Translate the following into a SQL query | Which Record has an Event of inoki bom-ba-ye 2002? | SELECT Record FROM table WHERE Event = inoki bom-ba-ye 2002 |
Translate the following into a SQL query | Which Opponent has a Record of 2–0? | SELECT Opponent FROM table WHERE Record = 2–0 |
Translate the following into a SQL query | Which Record has a Round larger than 2, and an Event of bellator 38? | SELECT Record FROM table WHERE Round > 2 AND Event = bellator 38 |
Translate the following into a SQL query | What was John Jones's pick#? | SELECT SUM Pick FROM table WHERE Player = john jones |
Translate the following into a SQL query | What was the pick # of the player who has a hometown/school of Atlanta, GA? | SELECT AVG Pick FROM table WHERE Hometown/School = atlanta, ga |
Translate the following into a SQL query | What is the El Canal de las Estrellas held from June 14, 2009 to February 23, 2010? | SELECT El Canal de las Estrellas FROM table WHERE June 14, 2009 = february 23, 2010 |
Translate the following into a SQL query | What is Mañana es para siempre of impreuna pentru totdeauna from Monday to Friday? | SELECT Monday to Friday FROM table WHERE Mañana es para siempre = impreuna pentru totdeauna |
Translate the following into a SQL query | When does the El Canal de las Estrellas of pop tv show from Monday to Friday? | SELECT Monday to Friday FROM table WHERE El Canal de las Estrellas = pop tv |
Translate the following into a SQL query | What is the enrollment for the AAAA class in IHSAA? | SELECT SUM Enrollment FROM table WHERE IHSAA Football Class = aaaa |
Translate the following into a SQL query | What is the IHSAA Football class at Culver? | SELECT IHSAA Football Class FROM table WHERE Location = culver |
Translate the following into a SQL query | What school has the Lancers as their mascot? | SELECT Location FROM table WHERE Mascot = lancers |
Translate the following into a SQL query | What is the total enrollment at Laville? | SELECT COUNT Enrollment FROM table WHERE School = laville |
Translate the following into a SQL query | What is the highest average for teams ranked higher than 9? | SELECT MAX Avg. FROM table WHERE Rank > 9 |
Translate the following into a SQL query | What is the name of the 2008 club with Nadia Centoni Category:Articles with hCards? | SELECT 2008 club FROM table WHERE Name = nadia centoni category:articles with hcards |
Translate the following into a SQL query | What is the name for the 2008 club Despar Sirio Perugia? | SELECT Name FROM table WHERE 2008 club = despar sirio perugia |
Translate the following into a SQL query | What is the spike for the 2008 club Despar Sirio Perugia? | SELECT Spike FROM table WHERE 2008 club = despar sirio perugia |
Translate the following into a SQL query | What is the spike for 2008 club Yamamay Busto Arsizio? | SELECT Spike FROM table WHERE 2008 club = yamamay busto arsizio |
Translate the following into a SQL query | Which 2008 club has the name Francesca Piccinini Category:Articles with hCards? | SELECT 2008 club FROM table WHERE Name = francesca piccinini category:articles with hcards |
Translate the following into a SQL query | What is the least amount of wins when against is 1314? | SELECT MIN Wins FROM table WHERE Against = 1314 |
Translate the following into a SQL query | What is the number of against when the wins were 8, and a Club of South Warrnambool, with less than 0 draws? | SELECT SUM Against FROM table WHERE Wins = 8 AND Club = south warrnambool AND Draws < 0 |
Translate the following into a SQL query | What is the number of wins when the against is larger than 1155, for Warrnambool, with more than 0 draws? | SELECT AVG Wins FROM table WHERE Against > 1155 AND Club = warrnambool AND Draws > 0 |
Translate the following into a SQL query | What score has 15.0% as the 2012? | SELECT Score FROM table WHERE 2012 = 15.0% |
Translate the following into a SQL query | What 2012 has 2 as the score? | SELECT 2012 FROM table WHERE Score = 2 |
Translate the following into a SQL query | What 2008 has 14.2% as the 2009? | SELECT 2008 FROM table WHERE 2009 = 14.2% |
Translate the following into a SQL query | What score has 15.0% as the 2012? | SELECT Score FROM table WHERE 2012 = 15.0% |
Translate the following into a SQL query | What 2009 has 18.5% as the 2007? | SELECT 2009 FROM table WHERE 2007 = 18.5% |
Translate the following into a SQL query | What 2011 has 12.7% as the 2010? | SELECT 2011 FROM table WHERE 2010 = 12.7% |
Translate the following into a SQL query | What is the Week of the game with a Result of L 24-0? | SELECT MAX Week FROM table WHERE Result = l 24-0 |
Translate the following into a SQL query | What is the Week number on December 18, 1960? | SELECT COUNT Week FROM table WHERE Date = december 18, 1960 |
Translate the following into a SQL query | Which Draws % has Wins larger than 1, and Loses % of 0%, and a Team of al-zawraa? | SELECT Draws % FROM table WHERE Wins > 1 AND Loses % = 0% AND Team = al-zawraa |
Translate the following into a SQL query | Which pick played the Defensive End position? | SELECT Pick FROM table WHERE Position = defensive end |
Translate the following into a SQL query | How many picks were taken before round 3 and played Linebacker? | SELECT COUNT Pick FROM table WHERE Position = linebacker AND Round < 3 |
Translate the following into a SQL query | What is the average number of silver medals won among nations that won 9 medals total? | SELECT AVG Silver FROM table WHERE Total = 9 |
Translate the following into a SQL query | Which Round has a Pick larger than 179? | SELECT MAX Round FROM table WHERE Pick > 179 |
Translate the following into a SQL query | What is jamar martin's highest pick? | SELECT MAX Pick FROM table WHERE Player = jamar martin |
Translate the following into a SQL query | What teams rank is higher than 4 with a speed of 104.574mph? | SELECT Team FROM table WHERE Rank > 4 AND Speed = 104.574mph |
Translate the following into a SQL query | What team does Anthony Redmond ride for? | SELECT Team FROM table WHERE Rider = anthony redmond |
Translate the following into a SQL query | What was the speed with a time of 1:03.41.86 and a rank smaller than 3? | SELECT Speed FROM table WHERE Rank < 3 AND Time = 1:03.41.86 |
Translate the following into a SQL query | What school in 72 Scott county has an enrollment more than 473 with an AAA IHSAA Class? | SELECT School FROM table WHERE Enrollment > 473 AND IHSAA Class = aaa AND # / County = 72 scott |
Translate the following into a SQL query | What's the mascot of Eastern Pekin having less than 627 enrolled and an AA for their IHSAA Class? | SELECT Mascot FROM table WHERE Enrollment < 627 AND IHSAA Class = aa AND School = eastern pekin |
Translate the following into a SQL query | What's the most enrolled having the dragons for a mascot and an AAA for the IHSAA Class? | SELECT MAX Enrollment FROM table WHERE IHSAA Class = aaa AND Mascot = dragons |
Translate the following into a SQL query | What's the county of Eastern Pekin school with fewer than 774 enrolled? | SELECT # / County FROM table WHERE Enrollment < 774 AND School = eastern pekin |
Translate the following into a SQL query | What's the location of the school having the panthers as a mascot with an AAA for the IHSAA Class? | SELECT Location FROM table WHERE IHSAA Class = aaa AND Mascot = panthers |
Translate the following into a SQL query | What's the IHSAA Class when the mascot was the Musketeers? | SELECT IHSAA Class FROM table WHERE Mascot = musketeers |
Translate the following into a SQL query | Who was the director of Chaser on the Rocks? | SELECT Director FROM table WHERE Title = chaser on the rocks |
Translate the following into a SQL query | What are the characters from the movie Suppressed Duck? | SELECT Characters FROM table WHERE Title = suppressed duck |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.