instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the first number in series that had the production code 1ACX03? | SELECT MAX No. in series FROM table WHERE Production code = 1ACX03 |
Translate the following into a SQL query | Which title had the production code 1ACX04? | SELECT Title FROM table WHERE Production code = 1ACX04 |
Translate the following into a SQL query | When did the show directed by Michael Dimartino first air? | SELECT Original air date FROM table WHERE Directed by = Michael DiMartino |
Translate the following into a SQL query | Which series numbers were directed by Monte Young? | SELECT No. in series FROM table WHERE Directed by = Monte Young |
Translate the following into a SQL query | How many people directed the show written by Chris Sheridan? | SELECT COUNT Directed by FROM table WHERE Written by = Chris Sheridan |
Translate the following into a SQL query | What regular seasons occurred in 2011? | SELECT Regular Season FROM table WHERE Year = 2011 |
Translate the following into a SQL query | What is the largest numbered? | SELECT MAX Division FROM table |
Translate the following into a SQL query | How many positions does rene villemure play? | SELECT COUNT Position FROM table WHERE Player = Rene Villemure |
Translate the following into a SQL query | What is the pick# for the medicine hat tigers (wchl)? | SELECT MIN Pick # FROM table WHERE College/junior/club team = Medicine Hat Tigers (WCHL) |
Translate the following into a SQL query | What nhl team does stan weir play for? | SELECT NHL team FROM table WHERE Player = Stan Weir |
Translate the following into a SQL query | What nhl team does dwight bialowas play for? | SELECT NHL team FROM table WHERE Player = Dwight Bialowas |
Translate the following into a SQL query | Lorne Henning has the lowest pick# of? | SELECT MIN Pick # FROM table |
Translate the following into a SQL query | Jack Lynch played for the oshawa generals (omjhl) before playing for what nhl team? | SELECT NHL team FROM table WHERE College/junior/club team = Oshawa Generals (OMJHL) |
Translate the following into a SQL query | Which colle/junior/club team did Michel Boudreau play for? | SELECT College/junior/club team FROM table WHERE Player = Michel Boudreau |
Translate the following into a SQL query | Which players played right wing? | SELECT Player FROM table WHERE Position = Right Wing |
Translate the following into a SQL query | Which nationality is the player from the Philadelphia Flyers? | SELECT Nationality FROM table WHERE NHL team = Philadelphia Flyers |
Translate the following into a SQL query | Which position did the player hold that played for the Philadelphia Flyers in NHL? | SELECT Position FROM table WHERE NHL team = Philadelphia Flyers |
Translate the following into a SQL query | Which college/junior/club team did the player play on that played for the Buffalo Sabres in NHL? | SELECT College/junior/club team FROM table WHERE NHL team = Buffalo Sabres |
Translate the following into a SQL query | Name the number of teams for college/junior club for philadelphia flyers | SELECT COUNT College/junior/club team FROM table WHERE NHL team = Philadelphia Flyers |
Translate the following into a SQL query | Name the position for ron lalonde | SELECT Position FROM table WHERE Player = Ron Lalonde |
Translate the following into a SQL query | Name the college/junior club team for pick number 63 | SELECT College/junior/club team FROM table WHERE Pick # = 63 |
Translate the following into a SQL query | How many positions did 1972 NHL Draft pick Rene Lambert play? | SELECT COUNT Position FROM table WHERE Player = Rene Lambert |
Translate the following into a SQL query | what's the college/junior/club team with nhl team being california golden seals | SELECT College/junior/club team FROM table WHERE NHL team = California Golden Seals |
Translate the following into a SQL query | what's the nhl team with college/junior/club team being brandon wheat kings (wchl) | SELECT NHL team FROM table WHERE College/junior/club team = Brandon Wheat Kings (WCHL) |
Translate the following into a SQL query | who is the the player with pick # being 132 | SELECT Player FROM table WHERE Pick # = 132 |
Translate the following into a SQL query | how many player with nhl team being vancouver canucks | SELECT COUNT Player FROM table WHERE NHL team = Vancouver Canucks |
Translate the following into a SQL query | what's the position with player being ray boutin | SELECT Position FROM table WHERE Player = Ray Boutin |
Translate the following into a SQL query | what is the name of the borough where station uses is 28702? | SELECT Borough FROM table WHERE Station users 2008/9 = 28702 |
Translate the following into a SQL query | what are the lines served where station users is 210076? | SELECT Lines served FROM table WHERE Station users 2008/9 = 210076 |
Translate the following into a SQL query | whatis hte station code where users are 130368? | SELECT Station (and code) FROM table WHERE Station users 2008/9 = 130368 |
Translate the following into a SQL query | Which is the class A when Weslaco was the class AAAAA and brownwood was the class AAAA | SELECT Class A FROM table WHERE Class AAAAA = Weslaco AND Class AAAA = Brownwood |
Translate the following into a SQL query | Which is the class A when Marion was the class AA | SELECT Class A FROM table WHERE Class AA = Marion |
Translate the following into a SQL query | Which is the class AA when graford was the class A | SELECT Class AA FROM table WHERE Class A = Graford |
Translate the following into a SQL query | How many class AA in the year 2002-03 | SELECT COUNT Class AA FROM table WHERE School Year = 2002-03 |
Translate the following into a SQL query | Who was the class AAAA when class AAAAA was Weslaco in 1994-95 | SELECT Class AAAA FROM table WHERE Class AAAAA = Weslaco AND School Year = 1994-95 |
Translate the following into a SQL query | What was the class AAAA when San Angelo Lake View was the class AAAA | SELECT Class AAAAA FROM table WHERE Class AAAA = San Angelo Lake View |
Translate the following into a SQL query | What are the changes from 2009 to 2010 in Tunisia? | SELECT Change (2009 to 2010) FROM table WHERE Country = Tunisia |
Translate the following into a SQL query | What are the international tourist arrivals in 2010 where change from 2010 to 2011 is +11.2% ? | SELECT International tourist arrivals (2010) FROM table WHERE Change (2010 to 2011) = +11.2% |
Translate the following into a SQL query | What are the changes (2010 to 2011) where the International Tourist Arrivals is 1.7 million? | SELECT Change (2010 to 2011) FROM table WHERE International tourist arrivals (2011) = 1.7 million |
Translate the following into a SQL query | What are the international tourist arrivals(2010) where change from 2009 to 2010 is +11.1%? | SELECT International tourist arrivals (2010) FROM table WHERE Change (2009 to 2010) = +11.1% |
Translate the following into a SQL query | What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15% | SELECT International tourist arrivals (2010) FROM table WHERE Change (2010 to 2011) = +15% |
Translate the following into a SQL query | How many international tourist arrivals were in Senegal in 2011? | SELECT International tourist arrivals (2011) FROM table WHERE Country = Senegal |
Translate the following into a SQL query | When the change (2010 to 2011) is +1.0% what is the change (2011 to 2012)? | SELECT Change (2011 to 2012) FROM table WHERE Change (2010 to 2011) = +1.0% |
Translate the following into a SQL query | When the change (2011 to 2012) is -0.1% what is the country? | SELECT Country FROM table WHERE Change (2011 to 2012) = -0.1% |
Translate the following into a SQL query | When the change (2011 to 2012) is +13.4% what is the country? | SELECT Country FROM table WHERE Change (2011 to 2012) = +13.4% |
Translate the following into a SQL query | When 24.1 million is international tourist arrivals (2012) what is the change (2010 to 2011) ? | SELECT Change (2010 to 2011) FROM table WHERE International tourist arrivals (2012) = 24.1 million |
Translate the following into a SQL query | United kingdom is the country what is the change (2011 to 2012)? | SELECT Change (2011 to 2012) FROM table WHERE Country = United Kingdom |
Translate the following into a SQL query | When the 1 is the rank what is the overall amount of international tourist arrivals in 2012? | SELECT COUNT International tourist arrivals (2012) FROM table WHERE Rank = 1 |
Translate the following into a SQL query | What is the enrollment amount where Hispanic (%) is 3.6? | SELECT Enrollment FROM table WHERE Hispanic (%) = 3.6 |
Translate the following into a SQL query | What percentage of Asians are there in the year 2009? | SELECT Asian (%) FROM table WHERE Year = 2009 |
Translate the following into a SQL query | What percentage of Asians are there in the year 2004? | SELECT Asian (%) FROM table WHERE Year = 2004 |
Translate the following into a SQL query | What percentage of hispanics are there when the free/reduced lunch percentage is 81.4? | SELECT Hispanic (%) FROM table WHERE Free/reduced lunch (%) = 81.4 |
Translate the following into a SQL query | What percentage of free/reduced lunch are there when the hispanic percentage is 3.7? | SELECT Free/reduced lunch (%) FROM table WHERE Hispanic (%) = 3.7 |
Translate the following into a SQL query | Who was the arranger for the track written by Nizar Francis ? | SELECT Arranger FROM table WHERE Writer = Nizar Francis |
Translate the following into a SQL query | Who was the writer for the song 4:29 in length? | SELECT Writer FROM table WHERE Length = 4:29 |
Translate the following into a SQL query | What track number is 4:29 in length? | SELECT # FROM table WHERE Length = 4:29 |
Translate the following into a SQL query | What is the female rank in Karnataka? | SELECT Females rank FROM table WHERE States = Karnataka |
Translate the following into a SQL query | What is the English title when the original title is Die Qual Der Wahl? | SELECT Title (English) FROM table WHERE Title (original) = Die Qual der Wahl |
Translate the following into a SQL query | What is the episode number where the English title is Pilot? | SELECT Number of episode FROM table WHERE Title (English) = Pilot |
Translate the following into a SQL query | What was the original air date for episode number 6? | SELECT Original air date FROM table WHERE Number of episode = 6 |
Translate the following into a SQL query | What is the original title of season number 3? | SELECT Title (original) FROM table WHERE Number of season = 3 |
Translate the following into a SQL query | What municipality where the human development index in the year 2000 was 0.7827? | SELECT Municipality FROM table WHERE Human Development Index (2000) = 0.7827 |
Translate the following into a SQL query | What is the total number of population in the year 2005 where the population density 35.9 (/km 2)? | SELECT COUNT Population (2005) FROM table WHERE Population density (/km 2 ) = 35.9 |
Translate the following into a SQL query | What is the human development index for the year 2000 where the ingei code is 10? | SELECT Human Development Index (2000) FROM table WHERE INEGI code = 10 |
Translate the following into a SQL query | What is the area (km 2) where the population density (/mk2) is 84.3? | SELECT Area (km 2 ) FROM table WHERE Population density (/km 2 ) = 84.3 |
Translate the following into a SQL query | Name the mandate for list pct 12.39% | SELECT Mandate FROM table WHERE List Pct = 12.39% |
Translate the following into a SQL query | Name the total number of list votes for 20.95% | SELECT COUNT List Votes FROM table WHERE List Pct = 20.95% |
Translate the following into a SQL query | What was the scoring rank for Angela Stanford in 2009? | SELECT Scoring rank FROM table WHERE Year = 2009 |
Translate the following into a SQL query | What was the highest number on money list rank for Angela Stanford's career? | SELECT MAX Money list rank FROM table |
Translate the following into a SQL query | In the year where Angela Stanford had a scoring average of 71.62, how many times did she take second place? | SELECT COUNT 2nd FROM table WHERE Scoring average = 71.62 |
Translate the following into a SQL query | who is hte player with a 3 dart avg of 89.57? | SELECT Player FROM table WHERE 3-dart Average = 89.57 |
Translate the following into a SQL query | what are all played with a 3 dart avg is 92.06? | SELECT Played FROM table WHERE 3-dart Average = 92.06 |
Translate the following into a SQL query | Namw the minimum production code for 16.04 million viewers | SELECT MIN Production Code FROM table WHERE U.S. viewers (millions) = 16.04 |
Translate the following into a SQL query | Name the written by for 16.32 million viewers | SELECT Written by FROM table WHERE U.S. viewers (millions) = 16.32 |
Translate the following into a SQL query | What is the highest number of cuts made when her best finish is t4? | SELECT MAX Cuts made FROM table WHERE Best finish = T4 |
Translate the following into a SQL query | How many total earnings are recorded when her best finish is t2 with a 71.25 scoring average? | SELECT COUNT Earnings ( $ ) FROM table WHERE Best finish = T2 AND Scoring average = 71.25 |
Translate the following into a SQL query | What is the lowest number of cuts made when her best finish is t4? | SELECT MIN Cuts made FROM table WHERE Best finish = T4 |
Translate the following into a SQL query | How many years has she ranked 56 on the money list? | SELECT COUNT Year FROM table WHERE Money list rank = 56 |
Translate the following into a SQL query | What is the lowest number of wins? | SELECT MIN Wins FROM table |
Translate the following into a SQL query | When steve gomer is the director who is the writer? | SELECT Written by FROM table WHERE Directed by = Steve Gomer |
Translate the following into a SQL query | What is the air date for "there goes the bride"? | SELECT Original air date FROM table WHERE Title = "There Goes the Bride" |
Translate the following into a SQL query | 15.03 million u.s viewers seen what episode? | SELECT Title FROM table WHERE U.S. viewers (millions) = 15.03 |
Translate the following into a SQL query | Name the most 3 credits | SELECT MIN 3 credits FROM table |
Translate the following into a SQL query | Name the least 2 credits for straight hand | SELECT MIN 2 credits FROM table WHERE Hand = Straight |
Translate the following into a SQL query | Name the least 2 credits for flush | SELECT MIN 2 credits FROM table WHERE Hand = Flush |
Translate the following into a SQL query | Name the hand for 1 credit 200 | SELECT Hand FROM table WHERE 1 credit = 200 |
Translate the following into a SQL query | Name the most 1 credit for three of a kind | SELECT MAX 1 credit FROM table WHERE Hand = Three of a Kind |
Translate the following into a SQL query | Name the points classification for mark renshaw and team csc | SELECT Points Classification FROM table WHERE General Classification = Mark Renshaw AND Team Classification = Team CSC |
Translate the following into a SQL query | How many episodes were released on DVD in the US on October 13, 2009? | SELECT Episodes FROM table WHERE Region 1 (US) = October 13, 2009 |
Translate the following into a SQL query | How many episodes were put out in Region 4 on March 4, 2010? | SELECT MAX Episodes FROM table WHERE Region 4 = March 4, 2010 |
Translate the following into a SQL query | How many episodes were released in the season 1 DVD? | SELECT MIN Episodes FROM table WHERE DVD name = Season 1 |
Translate the following into a SQL query | What is the original air date for "runaway"? | SELECT Original air date FROM table WHERE Title = "Runaway" |
Translate the following into a SQL query | What was the altitude of the explosion Hardtack Teak? | SELECT Altitude (km) FROM table WHERE Explosion = Hardtack Teak |
Translate the following into a SQL query | What was the altitude of the event on 1962-07-09? | SELECT Altitude (km) FROM table WHERE Date = 1962-07-09 |
Translate the following into a SQL query | What was the altitude of the yield of 1.4 megatons? | SELECT Altitude (km) FROM table WHERE Yield (approximate) = 1.4 megatons |
Translate the following into a SQL query | What was the yield of the K-4 explosion? | SELECT Yield (approximate) FROM table WHERE Explosion = K-4 |
Translate the following into a SQL query | What explosion had an altitude of 539 km? | SELECT Explosion FROM table WHERE Altitude (km) = 539 |
Translate the following into a SQL query | List all opponents in the September 23, 1984 game? | SELECT Opponent FROM table WHERE Date = September 23, 1984 |
Translate the following into a SQL query | What was the score in the game played on December 2, 1984? | SELECT Record FROM table WHERE Date = December 2, 1984 |
Translate the following into a SQL query | How many scores were there in week 11? | SELECT COUNT Record FROM table WHERE Week = 11 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.