instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Who's the Fourth District with a First District of beverly bodem?
SELECT Fourth District FROM table WHERE First District = beverly bodem
Translate the following into a SQL query
Who's the Fourth District with a Second District of kurt van koevering?
SELECT Fourth District FROM table WHERE Second District = kurt van koevering
Translate the following into a SQL query
Who's the Fifth District with a Second District of paul leidig?
SELECT Fifth District FROM table WHERE Second District = paul leidig
Translate the following into a SQL query
Who's the Fourth District with a Third District of sharon yentsch?
SELECT Fourth District FROM table WHERE Third District = sharon yentsch
Translate the following into a SQL query
How many Sets did Gary Muller have?
SELECT COUNT Sets FROM table WHERE Player = gary muller
Translate the following into a SQL query
What Player in 2005 Wimbledon had less than 5 Sets?
SELECT Player FROM table WHERE Sets < 5 AND Event = 2005 wimbledon
Translate the following into a SQL query
At the 2001 Davis Cup, what Opponent had less than 50 Aces?
SELECT Opponent FROM table WHERE Aces < 50 AND Event = 2001 davis cup
Translate the following into a SQL query
What is Channel 4 and Channel 4+1's rating in E4 and E4+1 when the ratings were 780,200?
SELECT Position in Channel 4 and Channel 4+1's ratings FROM table WHERE Position in E4 and E4+1's ratings = 780,200
Translate the following into a SQL query
What time did Channel 4 air an episode number larger than 106 with the title of Marry Me A Little?
SELECT Time of airing on Channel 4 FROM table WHERE Episode number > 106 AND Title = marry me a little
Translate the following into a SQL query
What is the total number of sunk by U-boats with less than 2 German submarines lost, 56328 sunk by aircrafts, and more than 8269 sunk by mines?
SELECT COUNT Sunk by U-Boat FROM table WHERE German submarines lost < 2 AND Sunk by aircraft = 56328 AND Sunk by mines > 8269
Translate the following into a SQL query
What is the total number sunk by warship or raider with 20 German submarines lost and more than 21616 sunk by aircraft?
SELECT COUNT Sunk by warship or raider FROM table WHERE German submarines lost = 20 AND Sunk by aircraft > 21616
Translate the following into a SQL query
What is the total number of German submarines lost with more than 120958 sunk by mines?
SELECT COUNT German submarines lost FROM table WHERE Sunk by mines > 120958
Translate the following into a SQL query
What is the month and year less than 5 German submarines were lost, less than 6893 were sunk by warship or raider, less than 133746 were sunk by aircraft, and more than 111263 were sunk by U-boat?
SELECT Month, year FROM table WHERE German submarines lost < 5 AND Sunk by warship or raider < 6893 AND Sunk by aircraft < 133746 AND Sunk by U-Boat > 111263
Translate the following into a SQL query
What is the month and year less than 106005 were sunk by aircraft and 61857 were sunk by warship or raider?
SELECT Month, year FROM table WHERE Sunk by aircraft < 106005 AND Sunk by warship or raider = 61857
Translate the following into a SQL query
What is the post-1986 provinces with a 全羅道 Hanja?
SELECT Post-1896 Provinces FROM table WHERE Hanja = 全羅道
Translate the following into a SQL query
What is the Korean dialect in the daegu capital?
SELECT Korean dialect FROM table WHERE Capital = daegu
Translate the following into a SQL query
What is the Korean dialect with a jeolla RR Romaja?
SELECT Korean dialect FROM table WHERE RR Romaja = jeolla
Translate the following into a SQL query
What is the Hanja for the hamgyeong RR Romaja?
SELECT Hanja FROM table WHERE RR Romaja = hamgyeong
Translate the following into a SQL query
What is the mean huc example code when the example name's lower snake, there are 6 digits, and less than 3 levels?
SELECT AVG Example code (HUC) FROM table WHERE Example name = lower snake AND Digits = 6 AND Level < 3
Translate the following into a SQL query
What's the approximate number of HUs when there are more than 2 digits, and 6 levels?
SELECT COUNT Number of HUs (approximate) FROM table WHERE Digits > 2 AND Level = 6
Translate the following into a SQL query
How many HUC example codes have 1 level?
SELECT COUNT Example code (HUC) FROM table WHERE Level = 1
Translate the following into a SQL query
What is the mean level number when the example name is lower snake and the approximate number is hus is less than 370?
SELECT AVG Level FROM table WHERE Example name = lower snake AND Number of HUs (approximate) < 370
Translate the following into a SQL query
What is the losses average when the against is greater than 1255 and wins is 0 and the draws less than 0?
SELECT AVG Losses FROM table WHERE Against > 1255 AND Wins = 0 AND Draws < 0
Translate the following into a SQL query
What is the smallest losses when the wins are 5 and the against less than 1852?
SELECT MIN Losses FROM table WHERE Wins = 5 AND Against < 1852
Translate the following into a SQL query
What is the total against that has wins less than 9, and losses less than 16, and 2 as the byes, and Ballarat FL of ballarat?
SELECT SUM Against FROM table WHERE Wins < 9 AND Losses < 16 AND Byes = 2 AND Ballarat FL = ballarat
Translate the following into a SQL query
What is the fewest losses that Ballarat FL of Lake Wendouree has when the wins are smaller than 9?
SELECT MIN Losses FROM table WHERE Ballarat FL = lake wendouree AND Wins < 9
Translate the following into a SQL query
What is the smallest byes when the wins are 3?
SELECT MIN Byes FROM table WHERE Wins = 3
Translate the following into a SQL query
Can you tell me the total number of Zone than has the Station users 2007-08 larger than 243,800, and the Year opened of 1855?
SELECT COUNT Zone FROM table WHERE Station users 2007–08 > 243,800 AND Year opened = 1855
Translate the following into a SQL query
What is the highest Attendance when the away team was Wrexham?
SELECT MAX Attendance FROM table WHERE Away team = wrexham
Translate the following into a SQL query
What is the Away team when the home team was wycombe wanderers?
SELECT Away team FROM table WHERE Home team = wycombe wanderers
Translate the following into a SQL query
What is the lowest Attendance when the home team was slough town?
SELECT MIN Attendance FROM table WHERE Home team = slough town
Translate the following into a SQL query
What is the sum of Attendance when macclesfield town was the way team?
SELECT SUM Attendance FROM table WHERE Away team = macclesfield town
Translate the following into a SQL query
How many Spins sources have a CCM Chart of CHR with a peak position less than 1?
SELECT COUNT Spins (since 1998) source: Mediabase FROM table WHERE CCM Chart = chr AND Peak Pos < 1
Translate the following into a SQL query
What CCM Chart had 18 total weeks?
SELECT CCM Chart FROM table WHERE Total Wks = 18
Translate the following into a SQL query
What is Opponent, when Date is December 18, 1988?
SELECT Opponent FROM table WHERE Date = december 18, 1988
Translate the following into a SQL query
What is Attendance, when Opponent is Pittsburgh Steelers?
SELECT Attendance FROM table WHERE Opponent = pittsburgh steelers
Translate the following into a SQL query
What is the average Week, when Result is l 37–34?
SELECT AVG Week FROM table WHERE Result = l 37–34
Translate the following into a SQL query
When was Shannon Long the Centerfold model?
SELECT Date FROM table WHERE Centerfold model = shannon long
Translate the following into a SQL query
Who was the Centerfold model on 5-88?
SELECT Centerfold model FROM table WHERE Date = 5-88
Translate the following into a SQL query
On which date was the interview subject 20 Questions of Judge Reinhold?
SELECT Date FROM table WHERE 20 Questions = judge reinhold
Translate the following into a SQL query
Who was the Centerfild model that used Bruce Willis as her Interview subject?
SELECT Centerfold model FROM table WHERE Interview subject = bruce willis
Translate the following into a SQL query
What is Series, when Launch Date is 23 February 2013?
SELECT Series FROM table WHERE Launch date = 23 february 2013
Translate the following into a SQL query
What is Series, when Days is greater than 99, and when Prize is €50,000?
SELECT Series FROM table WHERE Days > 99 AND Prize = €50,000
Translate the following into a SQL query
What is Series, when Winner is Jetmir Salaj?
SELECT Series FROM table WHERE Winner = jetmir salaj
Translate the following into a SQL query
What is Highest Days, when Launch Date is 23 January 2010?
SELECT MAX Days FROM table WHERE Launch date = 23 january 2010
Translate the following into a SQL query
What is the lowest Rank, when Name is Jeremiah Massey, and when Games is less than 20?
SELECT MIN Rank FROM table WHERE Name = jeremiah massey AND Games < 20
Translate the following into a SQL query
What is the lowest Games, when Name is Jeremiah Massey, and when Points is less than 340?
SELECT MIN Games FROM table WHERE Name = jeremiah massey AND Points < 340
Translate the following into a SQL query
What is the lowest Points, when Games is greater than 20, and when Team is Partizan Belgrade?
SELECT MIN Points FROM table WHERE Games > 20 AND Team = partizan belgrade
Translate the following into a SQL query
What is Games, when Points is less than 340, and when Rank is greater than 3?
SELECT Games FROM table WHERE Points < 340 AND Rank > 3
Translate the following into a SQL query
What is the sum of Rank, when Name is Will Solomon, and when Games is greater than 21?
SELECT SUM Rank FROM table WHERE Name = will solomon AND Games > 21
Translate the following into a SQL query
What was the first leg score in the match against Twente?
SELECT First leg FROM table WHERE Opposition = twente
Translate the following into a SQL query
What was the first leg score in the 2nd round?
SELECT First leg FROM table WHERE Round = 2nd
Translate the following into a SQL query
What were the Bills points on Nov. 11?
SELECT SUM Bills points FROM table WHERE Date = nov. 11
Translate the following into a SQL query
What was the Bills first downs on Oct. 29 with more the 23 Bills points?
SELECT MIN Bills first downs FROM table WHERE Date = oct. 29 AND Bills points > 23
Translate the following into a SQL query
What was the Bill's attendance on December 6?
SELECT Attendance FROM table WHERE Date = december 6
Translate the following into a SQL query
On what date did the Bills play the Houston Oilers before week 12?
SELECT Date FROM table WHERE Week < 12 AND Opponent = houston oilers
Translate the following into a SQL query
Which team won on the day when attendance was 42,308?
SELECT Result FROM table WHERE Attendance = 42,308
Translate the following into a SQL query
What week of the season was December 13?
SELECT Week FROM table WHERE Date = december 13
Translate the following into a SQL query
What is the highest Points in Position 2 with more than 3 Drawn games?
SELECT MAX Points FROM table WHERE Position = 2 AND Drawn > 3
Translate the following into a SQL query
What is the goal Difference at Position 5?
SELECT Difference FROM table WHERE Position = 5
Translate the following into a SQL query
What is the average games Played with positions higher than 3 that have goals Against less than 27 and a Lost games smaller than 6?
SELECT AVG Played FROM table WHERE Position > 3 AND Against < 27 AND Lost < 6
Translate the following into a SQL query
What is the highest Points with a Lost total of 8?
SELECT MAX Points FROM table WHERE Lost = 8
Translate the following into a SQL query
Which average Points has a Lost higher than 20?
SELECT AVG Points FROM table WHERE Lost > 20
Translate the following into a SQL query
What are the Cuts made with a Top-10 smaller than 2?
SELECT SUM Cuts made FROM table WHERE Top-10 < 2
Translate the following into a SQL query
What is the Top-25 with a Top-10 of 8, and an Events of 45?
SELECT AVG Top-25 FROM table WHERE Top-10 = 8 AND Events = 45
Translate the following into a SQL query
What is the Top-25 with an Events of 20, and a Wins larger than 2?
SELECT AVG Top-25 FROM table WHERE Events = 20 AND Wins > 2
Translate the following into a SQL query
Which Top-10 has a Top-25 smaller than 18, and a Top-5 of 6, and a Cuts made smaller than 20?
SELECT MAX Top-10 FROM table WHERE Top-25 < 18 AND Top-5 = 6 AND Cuts made < 20
Translate the following into a SQL query
What is Top Par, when Score is less than 68, and when Country is England?
SELECT To par FROM table WHERE Score < 68 AND Country = england
Translate the following into a SQL query
What is Sum of Score, when Player is Vijay Singh?
SELECT SUM Score FROM table WHERE Player = vijay singh
Translate the following into a SQL query
What is Sum of Score, when Place is T2, and when Player is Justin Leonard?
SELECT SUM Score FROM table WHERE Place = t2 AND Player = justin leonard
Translate the following into a SQL query
What is Place, when Score is less than 67, and when Country is South Africa?
SELECT Place FROM table WHERE Score < 67 AND Country = south africa
Translate the following into a SQL query
What show was on at 8:00 when american idol was on at 9:00?
SELECT 8:00 FROM table WHERE 9:00 = american idol
Translate the following into a SQL query
What was on at 8:30 when dancing with the stars: the results was on at 9:30?
SELECT 8:30 FROM table WHERE 9:30 = dancing with the stars: the results
Translate the following into a SQL query
What was on at 8:30 when dancing with the stars: the results was on at 9:30?
SELECT 8:30 FROM table WHERE 9:00 = dancing with the stars: the results
Translate the following into a SQL query
What was on at 10:00 when ncis was on at 8:00?
SELECT 10:00 FROM table WHERE 8:00 = ncis
Translate the following into a SQL query
Can you tell me the Team that has the Laps of 379?
SELECT Team FROM table WHERE Laps = 379
Translate the following into a SQL query
What is the Tournament with a Margin of victory that was 4 strokes?
SELECT Tournament FROM table WHERE Margin of victory = 4 strokes
Translate the following into a SQL query
What is 1999, when 1998 is 2R?
SELECT 1999 FROM table WHERE 1998 = 2r
Translate the following into a SQL query
What is 1998, when 1994 is Grand Slam Tournaments?
SELECT 1998 FROM table WHERE 1994 = grand slam tournaments
Translate the following into a SQL query
What is 2009, when 2000 is 1R, and when 1998 is 3R?
SELECT 2009 FROM table WHERE 2000 = 1r AND 1998 = 3r
Translate the following into a SQL query
What is 2009, when 2008 is 1R, and when Tournament is French Open?
SELECT 2009 FROM table WHERE 2008 = 1r AND Tournament = french open
Translate the following into a SQL query
What is 2009, when 2004 is 2R, and when 1993 is A?
SELECT 2009 FROM table WHERE 2004 = 2r AND 1993 = a
Translate the following into a SQL query
What is the average amount of gold medals for a country with more than 12 total medals?
SELECT AVG Gold FROM table WHERE Total > 12
Translate the following into a SQL query
Who were the Visitor when the Nets were the Home team?
SELECT Visitor FROM table WHERE Home = nets
Translate the following into a SQL query
What Leading scorer had a Score of 80–112?
SELECT Leading scorer FROM table WHERE Score = 80–112
Translate the following into a SQL query
What is the name of the tournament played on Sep 20, 1981, ending with a margin of vicroty of 2 strokes?
SELECT Tournament FROM table WHERE Margin of victory = 2 strokes AND Date = sep 20, 1981
Translate the following into a SQL query
For the tournament played on Jul 4, 1982, what was the winning score?
SELECT Winning score FROM table WHERE Date = jul 4, 1982
Translate the following into a SQL query
What was the winning score for the Andy Williams-San Diego Open Invitational tournament?
SELECT Winning score FROM table WHERE Tournament = andy williams-san diego open invitational
Translate the following into a SQL query
Who was the runner(s)-up for the tournament played on Jun 3, 1973?
SELECT Runner(s)-up FROM table WHERE Date = jun 3, 1973
Translate the following into a SQL query
What was the winning score for the tournament played on Jul 14, 1973?
SELECT Winning score FROM table WHERE Date = jul 14, 1973
Translate the following into a SQL query
In which tournament was Gil Morgan the runner-up?
SELECT Tournament FROM table WHERE Runner(s)-up = gil morgan
Translate the following into a SQL query
What was the highest attendance when the Atlanta Falcons played for a week smaller than 10?
SELECT MAX Attendance FROM table WHERE Opponent = atlanta falcons AND Week < 10
Translate the following into a SQL query
What is the Result when the Theme was by Dolly Parton?
SELECT Result FROM table WHERE Theme = dolly parton
Translate the following into a SQL query
What is the Order # when the song choice was " you're so vain "?
SELECT Order # FROM table WHERE Song choice = " you're so vain "
Translate the following into a SQL query
What is the Theme when the Original artist was carole king, and a Week # shows hollywood?
SELECT Theme FROM table WHERE Original artist = carole king AND Week # = hollywood
Translate the following into a SQL query
What is the Result when the Song choice was "beautiful"?
SELECT Result FROM table WHERE Song choice = "beautiful"
Translate the following into a SQL query
What Week # that is there an Order # of 7, and the Song choice was " let it be "?
SELECT Week # FROM table WHERE Order # = 7 AND Song choice = " let it be "
Translate the following into a SQL query
What is the Song choice when there is an Order # of 4?
SELECT Song choice FROM table WHERE Order # = 4
Translate the following into a SQL query
What proto-oceanic has louse as the animal?
SELECT Proto-Oceanic FROM table WHERE Animal = louse
Translate the following into a SQL query
What is the total number of delegate that have 4 counties carries and more than 1,903 state delegates?
SELECT SUM Delegates FROM table WHERE Counties Carries = 4 AND State Delegate > 1,903