instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
How many golds have denmark as the nation, with a total less than 1?
SELECT COUNT Gold FROM table WHERE Nation = denmark AND Total < 1
Translate the following into a SQL query
How many totals have 1 for the gold, 12 for the rank, and a sliver greater than 0?
SELECT COUNT Total FROM table WHERE Gold = 1 AND Rank = 12 AND Silver > 0
Translate the following into a SQL query
What is the lowest silver that has 1 for the bronze, 1 as the total, 17 as the rank, with a gold less than 0?
SELECT MIN Silver FROM table WHERE Bronze = 1 AND Total = 1 AND Rank = 17 AND Gold < 0
Translate the following into a SQL query
What is the First Publisher prior to 1999?
SELECT First publisher FROM table WHERE Year < 1999
Translate the following into a SQL query
What is the ISBN in 1999?
SELECT ISBN FROM table WHERE Year = 1999
Translate the following into a SQL query
What is the ISBN of Japanese Title of 霧の訪問者 (kiri no hōmonsha)?
SELECT ISBN FROM table WHERE Japanese Title = 霧の訪問者 (kiri no hōmonsha)
Translate the following into a SQL query
What is the First Publisher in 2007?
SELECT First publisher FROM table WHERE Year = 2007
Translate the following into a SQL query
What is the Year of Kodansha Novels' Tokyo Nightmare?
SELECT Year FROM table WHERE First publisher = kodansha novels AND English Title = tokyo nightmare
Translate the following into a SQL query
What Year has an ISBN OF ISBN 4-06-182042-7?
SELECT AVG Year FROM table WHERE ISBN = isbn 4-06-182042-7
Translate the following into a SQL query
What is the bronze number for the nation with less than 0 gold?
SELECT MIN Bronze FROM table WHERE Gold < 0
Translate the following into a SQL query
What is the January climate figure for Eastman?
SELECT January FROM table WHERE Region = eastman
Translate the following into a SQL query
In what city is the July temperature 23/9°c (73/48°f)?
SELECT City FROM table WHERE July = 23/9°c (73/48°f)
Translate the following into a SQL query
What is the July temperature where the annual precipitation is 514mm (20.2in)?
SELECT July FROM table WHERE Annual Precipitation = 514mm (20.2in)
Translate the following into a SQL query
What is the July temperature where plant hardiness zone is 2B and January figure is −12/−23°c (10-9°f)?
SELECT July FROM table WHERE Plant Hardiness Zone = 2b AND January = −12/−23°c (10-9°f)
Translate the following into a SQL query
What is the plant hardiness zone in the Northern region where the annual precipitation is 443mm (17.4in)?
SELECT Plant Hardiness Zone FROM table WHERE Region = northern AND Annual Precipitation = 443mm (17.4in)
Translate the following into a SQL query
In what city is the plant hardiness zone 2B and January temp is −12/−23°c (10/-9°f)?
SELECT City FROM table WHERE Plant Hardiness Zone = 2b AND January = −12/−23°c (10/-9°f)
Translate the following into a SQL query
What is the Total Apps listing for Paul Wilson?
SELECT Total Apps FROM table WHERE Name = paul wilson
Translate the following into a SQL query
Who was the winner at Milan Circuit Race?
SELECT Winner FROM table WHERE Course = milan circuit race
Translate the following into a SQL query
Who was the winner at Rest Day course?
SELECT Winner FROM table WHERE Course = rest day
Translate the following into a SQL query
What's the type on Sestri Levante to Riomaggiore?
SELECT Type FROM table WHERE Course = sestri levante to riomaggiore
Translate the following into a SQL query
Which player competed in 12 events?
SELECT Player FROM table WHERE Events = 12
Translate the following into a SQL query
what is the highest finishes when the points is less than 337, the stage wins is 2 and the wins is more than 0?
SELECT MAX Finishes FROM table WHERE Points < 337 AND Stage wins = 2 AND Wins > 0
Translate the following into a SQL query
what is the average starts when the chassis is focus rs wrc 08 and finishes is more than 27?
SELECT AVG Starts FROM table WHERE Chassis = focus rs wrc 08 AND Finishes > 27
Translate the following into a SQL query
what is the finishes when points is more than 337 and starts is more than 26?
SELECT SUM Finishes FROM table WHERE Points > 337 AND Starts > 26
Translate the following into a SQL query
what is the average starts when the podiums is more than 0, stage wins is more than 39 and points is more than 456?
SELECT AVG Starts FROM table WHERE Podiums > 0 AND Stage wins > 39 AND Points > 456
Translate the following into a SQL query
Which School has a Mascot of squires?
SELECT School FROM table WHERE Mascot = squires
Translate the following into a SQL query
Which School has a #/ County of 85 wabash, and an IHSAA Football Class of A, and a Mascot of norsemen?
SELECT School FROM table WHERE # / County = 85 wabash AND IHSAA Football Class = a AND Mascot = norsemen
Translate the following into a SQL query
Which IHSAA Football Class has a School of whitko?
SELECT IHSAA Football Class FROM table WHERE School = whitko
Translate the following into a SQL query
Which IHSAA Football Class has a Location of wabash, and a School of wabash?
SELECT IHSAA Football Class FROM table WHERE Location = wabash AND School = wabash
Translate the following into a SQL query
With a Total of more than 149, what is Davis Love III's To par?
SELECT AVG To par FROM table WHERE Player = davis love iii AND Total > 149
Translate the following into a SQL query
What is the Total of the Player with a To par of 6 and Year won after 1993?
SELECT MIN Total FROM table WHERE Year won > 1993 AND To par = 6
Translate the following into a SQL query
What is the Year won of Davis Love III with a Total of less than 149?
SELECT COUNT Year won FROM table WHERE Player = davis love iii AND Total < 149
Translate the following into a SQL query
What is the genre of the Mass Effect game?
SELECT Genre FROM table WHERE Game = mass effect
Translate the following into a SQL query
What is the genre of the game from 2006?
SELECT Genre FROM table WHERE Year = 2006
Translate the following into a SQL query
What is the genre of the game developed by Nintendo EAD?
SELECT Genre FROM table WHERE Developer(s) = nintendo ead
Translate the following into a SQL query
What is the platform of the game built in 2006?
SELECT Platform(s) FROM table WHERE Year = 2006
Translate the following into a SQL query
What game was developed by Ubisoft Montreal?
SELECT Game FROM table WHERE Developer(s) = ubisoft montreal
Translate the following into a SQL query
What is the genre for Portal 2?
SELECT Genre FROM table WHERE Game = portal 2
Translate the following into a SQL query
Which platforms can you play Portal 2 on?
SELECT Platform(s) FROM table WHERE Game = portal 2
Translate the following into a SQL query
What event had the 1500m freestyle?
SELECT Meet FROM table WHERE Event = 1500m freestyle
Translate the following into a SQL query
Who is from italy has 0 giro wins, 0 young rider and less than 3 maglia rosa?
SELECT Name FROM table WHERE Country = italy AND Giro Wins = 0 AND Young rider = 0 AND Maglia Rosa < 3
Translate the following into a SQL query
what is the least maglia rosa when the rank is 108=, the country is united kingdom and young rider is less than 0?
SELECT MIN Maglia Rosa FROM table WHERE Rank = 108= AND Country = united kingdom AND Young rider < 0
Translate the following into a SQL query
How many bronze medals for the United Kingdom when the silver was less than 0?
SELECT AVG Bronze FROM table WHERE Nation = united kingdom AND Silver < 0
Translate the following into a SQL query
How many bronze medals for West Germany having a total more than 2?
SELECT COUNT Bronze FROM table WHERE Total > 2 AND Nation = west germany
Translate the following into a SQL query
What is the amount of silver for rank 11 having less than 0 gold?
SELECT MIN Silver FROM table WHERE Rank = 11 AND Gold < 0
Translate the following into a SQL query
What rank is Bulgaria with less than 3 silver and more than 1 bronze?
SELECT Rank FROM table WHERE Silver < 3 AND Bronze > 1 AND Nation = bulgaria
Translate the following into a SQL query
What is the mountains classification when stage is 17?
SELECT Mountains classification FROM table WHERE Stage = 17
Translate the following into a SQL query
Who was the winner when points classification is Robbie Mcewen, and a Mountains classification is José Rujano?
SELECT Winner FROM table WHERE Points classification = robbie mcewen AND Mountains classification = josé rujano
Translate the following into a SQL query
What is the Trofeo Fast Team when stage is 19?
SELECT Trofeo Fast Team FROM table WHERE Stage = 19
Translate the following into a SQL query
What is the points classification when the Intergiro classification is Sven Krauß, and the mountains classification is koldo gil, Trofeo Super Team is Liquigas-Bianchi, and stage is 9?
SELECT Points classification FROM table WHERE Intergiro classification = sven krauß AND Mountains classification = koldo gil AND Trofeo Super Team = liquigas-bianchi AND Stage = 9
Translate the following into a SQL query
What is the Intergiro classification when the points classification is Paolo Bettini, Trofeo Super Team is Davitamon-Lotto, and the Mountains classification is José Rujano?
SELECT Intergiro classification FROM table WHERE Points classification = paolo bettini AND Trofeo Super Team = davitamon-lotto AND Mountains classification = josé rujano
Translate the following into a SQL query
What is the Stage when the points classification is Danilo Di Luca, Mountains classification is José Rujano, and general classification is Danilo Di Luca?
SELECT Stage FROM table WHERE Points classification = danilo di luca AND Mountains classification = josé rujano AND General classification = danilo di luca
Translate the following into a SQL query
What is the average GEO ID with a latitude less than 46.57958, a latitude of -102.109898 and more than 35.99 square miles of land?
SELECT AVG GEO ID FROM table WHERE Latitude < 46.57958 AND Longitude = -102.109898 AND Land ( sqmi ) > 35.99
Translate the following into a SQL query
What GEO ID has a longitude of -102.693028?
SELECT GEO ID FROM table WHERE Longitude = -102.693028
Translate the following into a SQL query
What is the highest latitude when there are more than 0.518 square miles of water, a longitude less than -99.830606, and a population of 18?
SELECT MAX Latitude FROM table WHERE Water (sqmi) > 0.518 AND Longitude < -99.830606 AND Pop. (2010) = 18
Translate the following into a SQL query
What is the average lane for Australia?
SELECT AVG Lane FROM table WHERE Nationality = australia
Translate the following into a SQL query
What is the highest rank for Josefin Lillhage?
SELECT MAX Rank FROM table WHERE Name = josefin lillhage
Translate the following into a SQL query
What was the attendance for the final quarter (1)?
SELECT Attendance FROM table WHERE Final = quarter (1)
Translate the following into a SQL query
What stadium had the score 1 - 1 dodd 38'?
SELECT Stadium FROM table WHERE Score = 1 - 1 dodd 38'
Translate the following into a SQL query
What method was used in the Pride 17 event?
SELECT Method FROM table WHERE Event = pride 17
Translate the following into a SQL query
What is the Rank of the building that has a Highest floor larger than 50?
SELECT Rank FROM table WHERE Highest floor > 50
Translate the following into a SQL query
what is the most free when the total is 81.167 and the rank is higher than 23?
SELECT MAX Free FROM table WHERE Total = 81.167 AND Rank > 23
Translate the following into a SQL query
How many tracks have an unformatted capacity per side of 2000kb?
SELECT COUNT Tracks FROM table WHERE Unformatted capacity per side = 2000kb
Translate the following into a SQL query
What is the unformatted capacity per side if the size is 8in?
SELECT Unformatted capacity per side FROM table WHERE Size = 8in
Translate the following into a SQL query
How many tracks have a single density?
SELECT COUNT Tracks FROM table WHERE Density = single
Translate the following into a SQL query
What's listed for Elevatated that has Cardinalatial title of Priest of SS. XII Apostoli?
SELECT Elevated FROM table WHERE Cardinalatial title = priest of ss. xii apostoli
Translate the following into a SQL query
What Elector has the Place of birth of San Severino?
SELECT Elector FROM table WHERE Place of birth = san severino
Translate the following into a SQL query
What's the Cardinalatial Title has the Elevated of December 18, 1182, the Place of birth of Lucca, and the Electo rof Pandolfo?
SELECT Cardinalatial title FROM table WHERE Elevated = december 18, 1182 AND Place of birth = lucca AND Elector = pandolfo
Translate the following into a SQL query
What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento?
SELECT Elevated FROM table WHERE Cardinalatial title = priest of s. eusebio and archbishop of benevento
Translate the following into a SQL query
What Elector has the Place of Birth listed as Bavaria?
SELECT Elector FROM table WHERE Place of birth = bavaria
Translate the following into a SQL query
What are the total apps that have 41 as the League apps, with total goals greater than 1?
SELECT Total Apps FROM table WHERE League Apps = 41 AND Total Goals > 1
Translate the following into a SQL query
What are the average league goals that have 2 (1) as the total apps?
SELECT AVG League Goals FROM table WHERE Total Apps = 2 (1)
Translate the following into a SQL query
What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?
SELECT MAX League Goals FROM table WHERE Name = barry endean AND FA Cup Apps > 0
Translate the following into a SQL query
Which school left in 1968 and has the team name of Panthers?
SELECT School FROM table WHERE Team Name = panthers AND Year Left = 1968
Translate the following into a SQL query
What year did a team from North Dearborn leave?
SELECT Year Left FROM table WHERE School = north dearborn
Translate the following into a SQL query
Which city has a school of North Vernon and a county of 40 Jennings?
SELECT City FROM table WHERE County = 40 jennings AND School = north vernon
Translate the following into a SQL query
What year did a school from Jennings County join?
SELECT Year Joined FROM table WHERE School = jennings county
Translate the following into a SQL query
Which school are the Red Devils from?
SELECT School FROM table WHERE Team Name = red devils
Translate the following into a SQL query
Which school comes from Brookville?
SELECT School FROM table WHERE City = brookville
Translate the following into a SQL query
What's the lowest rank of Lane 3?
SELECT MIN Rank FROM table WHERE Lane = 3
Translate the following into a SQL query
What's the highest lane of rank 4 with a time less than 24.72?
SELECT MAX Lane FROM table WHERE Time < 24.72 AND Rank = 4
Translate the following into a SQL query
What's the time of Britta Steffen in a lane less than 4?
SELECT SUM Time FROM table WHERE Lane < 4 AND Name = britta steffen
Translate the following into a SQL query
What's the lowest rank of the United States with a time less than 24.63?
SELECT MIN Rank FROM table WHERE Nationality = united states AND Time < 24.63
Translate the following into a SQL query
What's the duration of the Archers with Norman Painting as an actor?
SELECT Duration FROM table WHERE Soap Opera = the archers AND Actor = norman painting
Translate the following into a SQL query
What's the duration of the Archers with Pauline Seville acting?
SELECT Duration FROM table WHERE Soap Opera = the archers AND Actor = pauline seville
Translate the following into a SQL query
Who's the actor for the Archers having a character of Martha Woodford?
SELECT Actor FROM table WHERE Soap Opera = the archers AND Character = martha woodford
Translate the following into a SQL query
Who's the character when Margot Boyd was acting?
SELECT Character FROM table WHERE Actor = margot boyd
Translate the following into a SQL query
What were the notes for the time of 6:34.51?
SELECT Notes FROM table WHERE Time = 6:34.51
Translate the following into a SQL query
What is the rank for the rowers with the time of 6:24.35?
SELECT Rank FROM table WHERE Time = 6:24.35
Translate the following into a SQL query
Which rowers represented portugal and had notes of r?
SELECT Rowers FROM table WHERE Notes = r AND Country = portugal
Translate the following into a SQL query
Which rowers represented the country of portugal?
SELECT Rowers FROM table WHERE Country = portugal
Translate the following into a SQL query
what is the average races when points is 9 and poles is less than 0?
SELECT AVG Races FROM table WHERE Points = 9 AND Poles < 0
Translate the following into a SQL query
what is the series when wins is less than 3, points is 9 and podiums is 1?
SELECT Series FROM table WHERE Wins < 3 AND Points = 9 AND Podiums = 1
Translate the following into a SQL query
how many times is races more than 14, position is 9th and wins less than 0?
SELECT COUNT Season FROM table WHERE Races > 14 AND Position = 9th AND Wins < 0
Translate the following into a SQL query
Who was the runner-up during the Mac Ice Classic?
SELECT Runner-up skip FROM table WHERE Event = mac ice classic
Translate the following into a SQL query
What's the date when Stu Harris was the Runner-up?
SELECT Date FROM table WHERE Runner-up skip = stu harris
Translate the following into a SQL query
What's the location of the Ramada Perth Masters event?
SELECT Location FROM table WHERE Event = ramada perth masters
Translate the following into a SQL query
What's the location of the National event with Kevin Martin winning?
SELECT Location FROM table WHERE Winning skip = kevin martin AND Event = the national
Translate the following into a SQL query
What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up?
SELECT Event FROM table WHERE Runner-up skip = randy ferbey AND Location = gander, newfoundland and labrador
Translate the following into a SQL query
What's the location of the National event?
SELECT Location FROM table WHERE Event = the national