instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query
|
What is the dissolved date of the parliament assembled on 4 November 1461 with an unknown 2nd member?
|
SELECT Dissolved FROM table WHERE 2nd member = unknown AND Assembled = 4 november 1461
|
Translate the following into a SQL query
|
Who is the 2nd member elected in 1461?
|
SELECT 2nd member FROM table WHERE Elected = 1461
|
Translate the following into a SQL query
|
What is the dissolved date of the parliament summoned on 28 February 1467?
|
SELECT Dissolved FROM table WHERE Summoned = 28 february 1467
|
Translate the following into a SQL query
|
What is 2nd Member, when Assembled is "30 March 1298"?
|
SELECT 2nd member FROM table WHERE Assembled = 30 march 1298
|
Translate the following into a SQL query
|
What is Assembled, when 2nd Member is "Unknown"?
|
SELECT Assembled FROM table WHERE 2nd member = unknown
|
Translate the following into a SQL query
|
What is 1st Member, when Summoned is "14 July 1302"?
|
SELECT 1st member FROM table WHERE Summoned = 14 july 1302
|
Translate the following into a SQL query
|
What is Assembled, when Summoned is "6 October 1297"?
|
SELECT Assembled FROM table WHERE Summoned = 6 october 1297
|
Translate the following into a SQL query
|
What is 1st Member, when 2nd Member is "William Benne", and when Elected is "1300/01"?
|
SELECT 1st member FROM table WHERE 2nd member = william benne AND Elected = 1300/01
|
Translate the following into a SQL query
|
What is Summoned, when Elected is "March 1298"?
|
SELECT Summoned FROM table WHERE Elected = march 1298
|
Translate the following into a SQL query
|
Which Planet has a Sanskrit word of budha?
|
SELECT Planet FROM table WHERE Sanskrit word = budha
|
Translate the following into a SQL query
|
WHich Thai name has a Transcription of wan phruehatsabodi?
|
SELECT Thai name FROM table WHERE Transcription = wan phruehatsabodi
|
Translate the following into a SQL query
|
Show the Thai name of wan phruehatsabodi?
|
SELECT Thai name FROM table WHERE Transcription = wan phruehatsabodi
|
Translate the following into a SQL query
|
Show the Color which has a Thai name of วันพฤหัสบดี?
|
SELECT Color FROM table WHERE Thai name = วันพฤหัสบดี
|
Translate the following into a SQL query
|
Which Color has a Transcription of wan suk?
|
SELECT Color FROM table WHERE Transcription = wan suk
|
Translate the following into a SQL query
|
Which English name has a Color of green?
|
SELECT English name FROM table WHERE Color = green
|
Translate the following into a SQL query
|
What is Gil Morgan's Place?
|
SELECT Place FROM table WHERE Player = gil morgan
|
Translate the following into a SQL query
|
What is the Place of the Player with a To par of –5?
|
SELECT Place FROM table WHERE To par = –5
|
Translate the following into a SQL query
|
Which Player has a Money ($) of 137, and a Score of 73-70-73-74=290?
|
SELECT Player FROM table WHERE Money ( $ ) = 137 AND Score = 73-70-73-74=290
|
Translate the following into a SQL query
|
Which To Par has a Money ($) of 350, and a Player of henry picard?
|
SELECT To Par FROM table WHERE Money ( $ ) = 350 AND Player = henry picard
|
Translate the following into a SQL query
|
What year had Best Actor in a Musical as a category?
|
SELECT SUM Year FROM table WHERE Category = best actor in a musical
|
Translate the following into a SQL query
|
What Secretary has a Social AO of lieke de boer?
|
SELECT Secretary FROM table WHERE Social AO = lieke de boer
|
Translate the following into a SQL query
|
What Social AO has an External CO of elena buscher, and a President of harm van leeuwen?
|
SELECT Social AO FROM table WHERE External CO = elena buscher AND President = harm van leeuwen
|
Translate the following into a SQL query
|
What Social AO has an External CO of simonas savickas, and an Internal CO of pieter kuijsten?
|
SELECT Social AO FROM table WHERE External CO = simonas savickas AND Internal CO = pieter kuijsten
|
Translate the following into a SQL query
|
What Secretary has an Internal CO of isabel voets?
|
SELECT Secretary FROM table WHERE Internal CO = isabel voets
|
Translate the following into a SQL query
|
What Academic AO has a President of harm van leeuwen?
|
SELECT Academic AO FROM table WHERE President = harm van leeuwen
|
Translate the following into a SQL query
|
What Social AO has a President of harm van leeuwen?
|
SELECT Social AO FROM table WHERE President = harm van leeuwen
|
Translate the following into a SQL query
|
Which country has a to par of +2 for Bernhard Langer?
|
SELECT Country FROM table WHERE To par = +2 AND Player = bernhard langer
|
Translate the following into a SQL query
|
Which country has a score of 72 by Andrew Brooks?
|
SELECT Country FROM table WHERE Score = 72 AND Player = andrew brooks
|
Translate the following into a SQL query
|
What is Anders Forsbrand's score with a to par of +1?
|
SELECT Score FROM table WHERE To par = +1 AND Player = anders forsbrand
|
Translate the following into a SQL query
|
What is the rad number for the dead end in rank 22?
|
SELECT Road number FROM table WHERE Type = dead end AND Rank = 22
|
Translate the following into a SQL query
|
What is the name of the dead end type ranked 22?
|
SELECT Name FROM table WHERE Type = dead end AND Rank = 22
|
Translate the following into a SQL query
|
What is the type ranked 13?
|
SELECT Type FROM table WHERE Rank = 13
|
Translate the following into a SQL query
|
Who had 1344 points?
|
SELECT Name FROM table WHERE Points = 1344
|
Translate the following into a SQL query
|
What was the total number of wins that had an against greater than 1136 but losses less than 15 with Ultima with less than 2 byes?
|
SELECT SUM Wins FROM table WHERE Against > 1136 AND Losses < 15 AND Golden Rivers = ultima AND Byes < 2
|
Translate the following into a SQL query
|
What's the average number of wins for those with less than 2 byes?
|
SELECT AVG Wins FROM table WHERE Byes < 2
|
Translate the following into a SQL query
|
What's the greatest losses for those with more than 13 wins?
|
SELECT MAX Losses FROM table WHERE Wins > 13
|
Translate the following into a SQL query
|
What was the greatest number of wins for a team that had 7 losses and more than 0 draws?
|
SELECT MAX Wins FROM table WHERE Losses = 7 AND Draws > 0
|
Translate the following into a SQL query
|
What's the number of byes for someone who had 7 wins and an against number greater than 1412?
|
SELECT SUM Byes FROM table WHERE Wins = 7 AND Against > 1412
|
Translate the following into a SQL query
|
What's the total wins of a team with more than 2 byes?
|
SELECT COUNT Wins FROM table WHERE Byes > 2
|
Translate the following into a SQL query
|
Who had a finish of t16?
|
SELECT Player FROM table WHERE Finish = t16
|
Translate the following into a SQL query
|
What country is jack nicklaus from?
|
SELECT Country FROM table WHERE Player = jack nicklaus
|
Translate the following into a SQL query
|
Who has a total of 272?
|
SELECT Player FROM table WHERE Total = 272
|
Translate the following into a SQL query
|
What country won in 1977?
|
SELECT Country FROM table WHERE Year(s) won = 1977
|
Translate the following into a SQL query
|
Can you tell me the total number of Draw that has the Artist of de spelbrekers, and the Points smaller than 0?
|
SELECT COUNT Draw FROM table WHERE Artist = de spelbrekers AND Points < 0
|
Translate the following into a SQL query
|
Can you tell me the Artist that has the Draw smaller than 16, and the English translation of lullaby?
|
SELECT Artist FROM table WHERE Draw < 16 AND English translation = lullaby
|
Translate the following into a SQL query
|
Can you tell me the English translation that has the Artist of camillo felgen?
|
SELECT English translation FROM table WHERE Artist = camillo felgen
|
Translate the following into a SQL query
|
What is the population of the town with an area larger than 3.09?
|
SELECT AVG Population FROM table WHERE Area km 2 > 3.09 AND Status = town
|
Translate the following into a SQL query
|
What is the area of the community with a census ranking of 636 of 5,008?
|
SELECT AVG Area km 2 FROM table WHERE Census Ranking = 636 of 5,008
|
Translate the following into a SQL query
|
What is the area of drummond village?
|
SELECT MAX Area km 2 FROM table WHERE Status = village AND Official Name = drummond
|
Translate the following into a SQL query
|
What is the status of the community with a census ranking of 2,418 of 5,008?
|
SELECT Status FROM table WHERE Census Ranking = 2,418 of 5,008
|
Translate the following into a SQL query
|
What is the area of the village with a census ranking of 1,442 of 5,008 and a population less than 1,778?
|
SELECT MAX Area km 2 FROM table WHERE Status = village AND Census Ranking = 1,442 of 5,008 AND Population < 1,778
|
Translate the following into a SQL query
|
WHAT YEAR HAS A TO PAR SMALLER THAN 16, TOTAL 151?
|
SELECT Year(s) won FROM table WHERE To par < 16 AND Total = 151
|
Translate the following into a SQL query
|
WHAT IS THE TOTAL WITH A TO PAR OF 10?
|
SELECT MAX Total FROM table WHERE To par = 10
|
Translate the following into a SQL query
|
WHAT IS THE PLAYER WITH TOTAL LESS THAN 151, TO PAR OF 8?
|
SELECT Player FROM table WHERE Total < 151 AND To par = 8
|
Translate the following into a SQL query
|
Who is the player who has a total less than 4, no scottish cups, and a league cup greater than 0?
|
SELECT Player FROM table WHERE Total < 4 AND Scottish Cup = 0 AND League Cup > 0
|
Translate the following into a SQL query
|
What is the sum of the scottish cup of the forward player with less than 2 league cups and a total greater than 6?
|
SELECT SUM Scottish Cup FROM table WHERE League Cup < 2 AND Total > 6 AND Position = forward
|
Translate the following into a SQL query
|
What was Kilgore's percentage when Potts (I) had 4% and Kaine (D) 47%, in the poll from October 30, 2005?
|
SELECT Kilgore (R) FROM table WHERE Potts (I) = 4% AND Kaine (D) = 47% AND Date = october 30, 2005
|
Translate the following into a SQL query
|
On which date did Potts (I) poll at 9%?
|
SELECT Date FROM table WHERE Potts (I) = 9%
|
Translate the following into a SQL query
|
What was Kaine's (D) percentage in the Rasmussen poll on October 24, 2005?
|
SELECT Kaine (D) FROM table WHERE Source = rasmussen AND Date = october 24, 2005
|
Translate the following into a SQL query
|
What was Kaine's (D) percentage in the poll on October 30, 2005?
|
SELECT Kaine (D) FROM table WHERE Date = october 30, 2005
|
Translate the following into a SQL query
|
What was Kilgore's (R) percentage when Potts (I) polled at 1%?
|
SELECT Kilgore (R) FROM table WHERE Potts (I) = 1%
|
Translate the following into a SQL query
|
What was Kaine's (D) percentage in the poll on september 19, 2005?
|
SELECT Kaine (D) FROM table WHERE Date = september 19, 2005
|
Translate the following into a SQL query
|
What is To par, when Country is "United States", and when Player is "Jay Haas"?
|
SELECT To par FROM table WHERE Country = united states AND Player = jay haas
|
Translate the following into a SQL query
|
What is Player, when Score is "68-67-75-70=280"?
|
SELECT Player FROM table WHERE Score = 68-67-75-70=280
|
Translate the following into a SQL query
|
What is the result of the friendly competition on 23 January 2010?
|
SELECT Result FROM table WHERE Competition = friendly AND Date = 23 january 2010
|
Translate the following into a SQL query
|
What is the venue of the match with a w result on 3 March 2010?
|
SELECT Venue FROM table WHERE Result = w AND Date = 3 march 2010
|
Translate the following into a SQL query
|
What is the lowest Year, when Notes is "5.19km, 18controls"?
|
SELECT MIN Year FROM table WHERE Notes = 5.19km, 18controls
|
Translate the following into a SQL query
|
What is Notes, when Year is "2010"?
|
SELECT Notes FROM table WHERE Year = 2010
|
Translate the following into a SQL query
|
What winning score has in-kyung kim as the runner(s)-up?
|
SELECT Winning score FROM table WHERE Runner(s)-up = in-kyung kim
|
Translate the following into a SQL query
|
What winning score has kraft nabisco championship as the tournament?
|
SELECT Winning score FROM table WHERE Tournament = kraft nabisco championship
|
Translate the following into a SQL query
|
What Winning constructor has a Name of grand prix de la marne?
|
SELECT Winning constructor FROM table WHERE Name = grand prix de la marne
|
Translate the following into a SQL query
|
What kind of the Winning driver has a Circuit of saint-raphaël?
|
SELECT Winning driver FROM table WHERE Circuit = saint-raphaël
|
Translate the following into a SQL query
|
Name the Report with Winning constructor of maserati, and a Name of monza grand prix?
|
SELECT Report FROM table WHERE Winning constructor = maserati AND Name = monza grand prix
|
Translate the following into a SQL query
|
Name the Report has a Name of lyon grand prix?
|
SELECT Report FROM table WHERE Name = lyon grand prix
|
Translate the following into a SQL query
|
Name the Report which has heinrich-joachim von morgen?
|
SELECT Report FROM table WHERE Winning driver = heinrich-joachim von morgen
|
Translate the following into a SQL query
|
Which player had a draft before 1975 and before round 6?
|
SELECT Player FROM table WHERE Draft < 1975 AND Round < 6
|
Translate the following into a SQL query
|
What is Score, when Opponent Team is Belgium, and when Opponent is Kirsten Flipkens?
|
SELECT Score FROM table WHERE Opponent Team = belgium AND Opponent = kirsten flipkens
|
Translate the following into a SQL query
|
What is Opponent, when Round is World Group?
|
SELECT Opponent FROM table WHERE Round = world group
|
Translate the following into a SQL query
|
What is Surface, when Edition is 2012, and when Outcome is Winner?
|
SELECT Surface FROM table WHERE Edition = 2012 AND Outcome = winner
|
Translate the following into a SQL query
|
What is Score, when Outcome is Loser, and when Edition is 2011?
|
SELECT Score FROM table WHERE Outcome = loser AND Edition = 2011
|
Translate the following into a SQL query
|
What is Score, when Edition is 2011, and when Surface is Hard (i)?
|
SELECT Score FROM table WHERE Edition = 2011 AND Surface = hard (i)
|
Translate the following into a SQL query
|
What is Round, when Opponent Team is Slovakia, when Outcome is Loser, and when Edition is greater than 2010?
|
SELECT Round FROM table WHERE Opponent Team = slovakia AND Outcome = loser AND Edition > 2010
|
Translate the following into a SQL query
|
In what Week was the Record 4–7–1?
|
SELECT MIN Week FROM table WHERE Record = 4–7–1
|
Translate the following into a SQL query
|
On what Date was the Attendance 63,546?
|
SELECT Date FROM table WHERE Attendance = 63,546
|
Translate the following into a SQL query
|
In what Week was the Attendance 17,737?
|
SELECT COUNT Week FROM table WHERE Attendance = 17,737
|
Translate the following into a SQL query
|
What is the Result of the game after Week 10 against Philadelphia Eagles?
|
SELECT Result FROM table WHERE Week > 10 AND Opponent = philadelphia eagles
|
Translate the following into a SQL query
|
What is the Opponent on Week 11?
|
SELECT Opponent FROM table WHERE Week = 11
|
Translate the following into a SQL query
|
What is the largest WNBA game average with 9,290 (4th) is the average, and less than 157,934 is the total for the year?
|
SELECT MAX WNBA game average FROM table WHERE Average = 9,290 (4th) AND Total for year < 157,934
|
Translate the following into a SQL query
|
How many years in all was less than 105,005 the total for the year?
|
SELECT COUNT Year FROM table WHERE Total for year < 105,005
|
Translate the following into a SQL query
|
What is the total for year average that less than 7,742 is the WNBA game average, and 7,625 (10th) is the average, and before the year 1999?
|
SELECT AVG Total for year FROM table WHERE WNBA game average < 7,742 AND Average = 7,625 (10th) AND Year < 1999
|
Translate the following into a SQL query
|
What is the total of the year that more than 13,142 is the high, and 10,387 (2nd) is the average, and there was less than 0 sellouts?
|
SELECT SUM Year FROM table WHERE High > 13,142 AND Average = 10,387 (2nd) AND Sellouts < 0
|
Translate the following into a SQL query
|
What is the maximum sellouts for the 2008 year, with less than 161,369 total for year?
|
SELECT MAX Sellouts FROM table WHERE Year = 2008 AND Total for year < 161,369
|
Translate the following into a SQL query
|
What is the highest First Elected, when Party is "Republican", and when District is "Louisiana 7"?
|
SELECT MAX First elected FROM table WHERE Party = republican AND District = louisiana 7
|
Translate the following into a SQL query
|
What is Party, when Results is "Re-Elected", and when District is "Louisiana 5"?
|
SELECT Party FROM table WHERE Results = re-elected AND District = louisiana 5
|
Translate the following into a SQL query
|
What is Party, when Incumbent is "Rodney Alexander"?
|
SELECT Party FROM table WHERE Incumbent = rodney alexander
|
Translate the following into a SQL query
|
What is Results, when First Elected is less than 1988?
|
SELECT Results FROM table WHERE First elected < 1988
|
Translate the following into a SQL query
|
What is Incumbent, when District is "Louisiana 4"?
|
SELECT Incumbent FROM table WHERE District = louisiana 4
|
Translate the following into a SQL query
|
What's the finish for car number 6?
|
SELECT Finish FROM table WHERE Car number = 6
|
Translate the following into a SQL query
|
What's the speed rank in 1963?
|
SELECT Speed rank FROM table WHERE Year = 1963
|
Translate the following into a SQL query
|
What is the total of Losses with a Result of runner-up, Wins of 1, and a Year smaller than 2006?
|
SELECT SUM Losses FROM table WHERE Result = runner-up AND Wins = 1 AND Year < 2006
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.