instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Which Matches is on 24 march 1963 with a Rank larger than 44? | SELECT MAX Matches as champion FROM table WHERE Title last held = 24 march 1963 AND Rank > 44 |
Translate the following into a SQL query | what game was on may 24 | SELECT Game FROM table WHERE Date = may 24 |
Translate the following into a SQL query | what game was on may 29 | SELECT Result FROM table WHERE Date = may 29 |
Translate the following into a SQL query | what team played on may 20 on the home side | SELECT Home Team FROM table WHERE Date = may 20 |
Translate the following into a SQL query | what team played in game 2 | SELECT Road Team FROM table WHERE Game = game 2 |
Translate the following into a SQL query | Which Raison Blue has the highest nicotine? | SELECT MAX Nicotine FROM table WHERE Name = raison blue |
Translate the following into a SQL query | For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity? | SELECT MIN Quantity FROM table WHERE Name = raison blue AND Nicotine > 0.30000000000000004 |
Translate the following into a SQL query | What was the result for the fil Paljas? | SELECT Result FROM table WHERE Film title = paljas |
Translate the following into a SQL query | In what year was the rank less than 6 for Damac Heights? | SELECT Year FROM table WHERE Rank < 6 AND Name = damac heights |
Translate the following into a SQL query | What is the height for rank greater than 10 in Tameer Tower? | SELECT Height m (ft) FROM table WHERE Rank > 10 AND Name = tameer tower |
Translate the following into a SQL query | What was the earliest year with rank 20 and less than 60 floors? | SELECT MIN Year FROM table WHERE Rank = 20 AND Floors < 60 |
Translate the following into a SQL query | What is the highest floors with rank greater than 1 in Conrad Dubai? | SELECT MAX Floors FROM table WHERE Rank > 1 AND Name = conrad dubai |
Translate the following into a SQL query | How many Laps have a Driver of satrio hermanto? | SELECT SUM Laps FROM table WHERE Driver = satrio hermanto |
Translate the following into a SQL query | Which Time has a Grid of 19? | SELECT Time FROM table WHERE Grid = 19 |
Translate the following into a SQL query | Which Grid is the lowest one that has a Team of germany, and Laps smaller than 45? | SELECT MIN Grid FROM table WHERE Team = germany AND Laps < 45 |
Translate the following into a SQL query | WHich team draft the player who went to college in Washington? | SELECT NFL Team FROM table WHERE College = washington |
Translate the following into a SQL query | What position did the palyer drafted out of Washington play? | SELECT Position FROM table WHERE College = washington |
Translate the following into a SQL query | What is the average number of Gold medals when there are 5 bronze medals? | SELECT AVG Gold FROM table WHERE Bronze = 5 |
Translate the following into a SQL query | What is the highest amount of bronze medals when the rank was larger than 9? | SELECT MAX Bronze FROM table WHERE Rank > 9 |
Translate the following into a SQL query | What is the leowest number of Bronze medals for Jamaica who ranked less than 4 and had more than 0 silver medals and a total of less than 22 medals? | SELECT MIN Bronze FROM table WHERE Silver > 0 AND Rank < 4 AND Nation = jamaica AND Total < 22 |
Translate the following into a SQL query | Nation of bulgaria, and a Place larger than 1 had what highest 3 Balls, 2 Ribbons? | SELECT MAX 3 Balls, 2 Ribbons FROM table WHERE Nation = bulgaria AND Place > 1 |
Translate the following into a SQL query | 5 Hoops that has a Place larger than 7, and a Total larger than 38.525 had what sum? | SELECT SUM 5 Hoops FROM table WHERE Place > 7 AND Total > 38.525 |
Translate the following into a SQL query | 5 Hoops larger than 19.325, and a Total of 39.4, and a Place larger than 2 had what total number of 3 balls and 2 ribbons? | SELECT COUNT 3 Balls, 2 Ribbons FROM table WHERE 5 Hoops > 19.325 AND Total = 39.4 AND Place > 2 |
Translate the following into a SQL query | Total of 38.55, and a 3 Balls, 2 Ribbons smaller than 19.4 had what lowest place? | SELECT MIN Place FROM table WHERE Total = 38.55 AND 3 Balls, 2 Ribbons < 19.4 |
Translate the following into a SQL query | what voice acter played tien | SELECT Voice Actor (Japanese) FROM table WHERE Character Name = tien |
Translate the following into a SQL query | what character did Laara sadiq play | SELECT Character Name FROM table WHERE Voice Actor (English 1998 / Pioneer) = laara sadiq |
Translate the following into a SQL query | what character did Masaharu satou play | SELECT Character Name FROM table WHERE Voice Actor (Japanese) = masaharu satou |
Translate the following into a SQL query | what character did dave ward play | SELECT Voice Actor (English 1998 / Pioneer) FROM table WHERE Voice Actor (English 1997 / Saban) = dave ward |
Translate the following into a SQL query | what character did naoko watanabe play | SELECT Character Name FROM table WHERE Voice Actor (Japanese) = naoko watanabe |
Translate the following into a SQL query | At what Location was Miss World 2009? | SELECT Location FROM table WHERE Year = 2009 |
Translate the following into a SQL query | What is the score of the 1996 Emarate cup on March 25, 1996? | SELECT Score FROM table WHERE Competition = 1996 emarate cup AND Date = march 25, 1996 |
Translate the following into a SQL query | Which competition was on August 11, 1996? | SELECT Competition FROM table WHERE Date = august 11, 1996 |
Translate the following into a SQL query | Which competition was in Dubai? | SELECT Competition FROM table WHERE Venue = dubai |
Translate the following into a SQL query | What is the result of the match in Bangkok? | SELECT Result FROM table WHERE Venue = bangkok |
Translate the following into a SQL query | What is the date of the match with a result of 4-0? | SELECT Date FROM table WHERE Result = 4-0 |
Translate the following into a SQL query | What is the score of the match with a 4-0 result? | SELECT Score FROM table WHERE Result = 4-0 |
Translate the following into a SQL query | Which name has an overall number of more than 164, when the pick number is more than 2, the position is running back, and the round is 16? | SELECT Name FROM table WHERE Overall > 164 AND Pick # > 2 AND Position = running back AND Round = 16 |
Translate the following into a SQL query | Which college's round is more than 4, when the overall is less than 237 and Ted Cottrell was the name? | SELECT College FROM table WHERE Round > 4 AND Overall < 237 AND Name = ted cottrell |
Translate the following into a SQL query | What is the smallest overall for Oregon State? | SELECT MIN Overall FROM table WHERE College = oregon state |
Translate the following into a SQL query | What is the class of the qb, Josh Riddell? | SELECT Class FROM table WHERE Position = qb AND Name = josh riddell |
Translate the following into a SQL query | What position does Jamar Chaney play? | SELECT Position FROM table WHERE Name = jamar chaney |
Translate the following into a SQL query | What hometown is Kyle love from? | SELECT Hometown FROM table WHERE Name = kyle love |
Translate the following into a SQL query | Which Attendance has a Home of philadelphia, and Points smaller than 23? | SELECT SUM Attendance FROM table WHERE Home = philadelphia AND Points < 23 |
Translate the following into a SQL query | Which Visitor has a Record of 9–12–5? | SELECT Visitor FROM table WHERE Record = 9–12–5 |
Translate the following into a SQL query | Which Date has a Visitor of boston? | SELECT Date FROM table WHERE Visitor = boston |
Translate the following into a SQL query | What is the date for the grass surface final against Nathan Healey? | SELECT Date FROM table WHERE Surface = grass AND Opponent in the final = nathan healey |
Translate the following into a SQL query | What was the score of the final against Dane Propoggia? | SELECT Score FROM table WHERE Opponent in the final = dane propoggia |
Translate the following into a SQL query | What was the total score when the E score was larger than 9.6 and the A score was 6? | SELECT Total FROM table WHERE E Score > 9.6 AND A Score = 6 |
Translate the following into a SQL query | What was the average E score when the T score was less than 4? | SELECT AVG E Score FROM table WHERE T Score < 4 |
Translate the following into a SQL query | What was the average T score when the E score was larger than 9.6 and the team was from Spain? | SELECT AVG T Score FROM table WHERE Nation = spain AND E Score > 9.6 |
Translate the following into a SQL query | What was the total number of A scores for Japan when the T score was more than 4? | SELECT COUNT A Score FROM table WHERE Nation = japan AND T Score > 4 |
Translate the following into a SQL query | What was the sum of the E scores when the total score was 19.466? | SELECT SUM E Score FROM table WHERE Total = 19.466 |
Translate the following into a SQL query | What is the total number of E scores when the total score was 19.7 and the A score was more than 6? | SELECT COUNT E Score FROM table WHERE Total = 19.7 AND A Score > 6 |
Translate the following into a SQL query | What is the highest number of draws with 14 points and less than 7 games? | SELECT MAX Drawn FROM table WHERE Points = 14 AND Games < 7 |
Translate the following into a SQL query | What was the attendance at the game with a record of 4-5? | SELECT Attendance FROM table WHERE Record = 4-5 |
Translate the following into a SQL query | What was the date of the week 16 game? | SELECT Date FROM table WHERE Week = 16 |
Translate the following into a SQL query | What was the record at the game with a result of W 13-12 after week 4? | SELECT Record FROM table WHERE Week > 4 AND Result = w 13-12 |
Translate the following into a SQL query | Who was the opponent at the game attended by 62,019 before week 17? | SELECT Opponent FROM table WHERE Week < 17 AND Attendance = 62,019 |
Translate the following into a SQL query | Name the surface for january 8, 2001 | SELECT Surface FROM table WHERE Date = january 8, 2001 |
Translate the following into a SQL query | Name the outcome for jordan kerr july 19, 2004 | SELECT Outcome FROM table WHERE Partnering = jordan kerr AND Date = july 19, 2004 |
Translate the following into a SQL query | Name the score for opponents of nathan healey igor kunitsyn | SELECT Score FROM table WHERE Opponents in the final = nathan healey igor kunitsyn |
Translate the following into a SQL query | Name the outcome for opponents of jonas björkman john mcenroe | SELECT Outcome FROM table WHERE Opponents in the final = jonas björkman john mcenroe |
Translate the following into a SQL query | Name the surface for paul goldstein and date of october 2, 2006 | SELECT Surface FROM table WHERE Partnering = paul goldstein AND Date = october 2, 2006 |
Translate the following into a SQL query | Which Games have a Drawn smaller than 1, and a Lost smaller than 1? | SELECT Games FROM table WHERE Drawn < 1 AND Lost < 1 |
Translate the following into a SQL query | Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4? | SELECT MIN Drawn FROM table WHERE Lost = 5 AND Points > 4 |
Translate the following into a SQL query | Which Government has 57 seats? | SELECT Government FROM table WHERE Seats = 57 |
Translate the following into a SQL query | How many seats does the 6th Dail have? | SELECT COUNT Seats FROM table WHERE Dáil = 6th |
Translate the following into a SQL query | What is the number of the dail with 61 seats? | SELECT Dáil FROM table WHERE Seats = 61 |
Translate the following into a SQL query | What is the lowest number of seats from the election with 27.0% of votes? | SELECT MIN Seats FROM table WHERE Share of votes = 27.0% |
Translate the following into a SQL query | What is the 6th dail share of votes? | SELECT Share of votes FROM table WHERE Dáil = 6th |
Translate the following into a SQL query | What was the highest week when the record was 1-3? | SELECT MAX Week FROM table WHERE Record = 1-3 |
Translate the following into a SQL query | Who was the opponent at the game attended by 62,657? | SELECT Opponent FROM table WHERE Attendance = 62,657 |
Translate the following into a SQL query | What is the year built for the Fay No. 4? | SELECT MAX Year Built FROM table WHERE Name = fay no. 4 |
Translate the following into a SQL query | Where the length is 91', what is the year built? | SELECT Year Built FROM table WHERE Length = 91' |
Translate the following into a SQL query | What is the address for the Scorpions' mascot? | SELECT Address FROM table WHERE Mascot = scorpions |
Translate the following into a SQL query | What is the address for the assistant principal named Kelly Papke? | SELECT Address FROM table WHERE Assistant Principal (2013-2014) = kelly papke |
Translate the following into a SQL query | What was the mascot for the 2013-2014 principal named Frank Hendricsen? | SELECT Mascot FROM table WHERE Principal (2013-2014) = frank hendricsen |
Translate the following into a SQL query | Who were the assistant and main principals of Kat Hughes? | SELECT Assistant Principal (2013-2014) FROM table WHERE Principal (2013-2014) = kat hughes |
Translate the following into a SQL query | What is the address for the school that has the coyotes mascot? | SELECT Address FROM table WHERE Mascot = coyotes |
Translate the following into a SQL query | What is the result of the game played at Jinan? | SELECT Result FROM table WHERE Venue = jinan |
Translate the following into a SQL query | What is the score of the game on November 10, 2006? | SELECT Score FROM table WHERE Date = november 10, 2006 |
Translate the following into a SQL query | What is the date of the game held at Lahore? | SELECT Date FROM table WHERE Venue = lahore |
Translate the following into a SQL query | What were the total number of entries in 2001 that had a front row smaller than 13? | SELECT COUNT Entries FROM table WHERE Season = 2001 AND Front row starts < 13 |
Translate the following into a SQL query | What are the lowest entries for a front row smaller than 15 where Michael Schumacher was driving? | SELECT MIN Entries FROM table WHERE Front row starts < 15 AND Driver = michael schumacher |
Translate the following into a SQL query | What was the highest front row starts for Alain Prost? | SELECT MAX Front row starts FROM table WHERE Driver = alain prost |
Translate the following into a SQL query | Which Against has Losses larger than 2, and Wins of 8, and Byes smaller than 0? | SELECT SUM Against FROM table WHERE Losses > 2 AND Wins = 8 AND Byes < 0 |
Translate the following into a SQL query | Which Draws have Wins larger than 14? | SELECT SUM Draws FROM table WHERE Wins > 14 |
Translate the following into a SQL query | How many Losses have an NTFA Div 2 of perth, and Wins smaller than 10? | SELECT COUNT Losses FROM table WHERE NTFA Div 2 = perth AND Wins < 10 |
Translate the following into a SQL query | Which Byes have an Against smaller than 1647, and an NTFA Div 2 of fingal valley, and Wins smaller than 14? | SELECT MAX Byes FROM table WHERE Against < 1647 AND NTFA Div 2 = fingal valley AND Wins < 14 |
Translate the following into a SQL query | How many grids were there races with more than 10 laps and a time of +34.121? | SELECT COUNT Grid FROM table WHERE Time = +34.121 AND Laps > 10 |
Translate the following into a SQL query | What is the smallest grid number that had 10 laps listed with Jonathan Summerton as the driver? | SELECT MIN Grid FROM table WHERE Laps = 10 AND Driver = jonathan summerton |
Translate the following into a SQL query | What is the average grid number that had Team China with less than 10 laps? | SELECT AVG Grid FROM table WHERE Laps < 10 AND Team = china |
Translate the following into a SQL query | Which Creator has the Latest stable release of unknown, and a Name of myeclipse? | SELECT Creator FROM table WHERE Latest stable release = unknown AND Name = myeclipse |
Translate the following into a SQL query | Which Platform / OS has a Name of altova umodel? | SELECT Platform / OS FROM table WHERE Name = altova umodel |
Translate the following into a SQL query | Which Programming language used has a First public release of 1997? | SELECT Programming language used FROM table WHERE First public release = 1997 |
Translate the following into a SQL query | Which First public release has a Name of rational software modeler? | SELECT First public release FROM table WHERE Name = rational software modeler |
Translate the following into a SQL query | What is the College of Rice's highest overall for the guard position? | SELECT MAX Overall FROM table WHERE Position = guard AND College = rice |
Translate the following into a SQL query | What is Tommy Nobis' position that has fewer than 16 picks? | SELECT Position FROM table WHERE Pick # < 16 AND Name = tommy nobis |
Translate the following into a SQL query | What was the score when the Rangers were playing against the Vancouver Canucks? | SELECT Score FROM table WHERE Opponent = vancouver canucks |
Translate the following into a SQL query | Who were the opponents on January 27? | SELECT Opponent FROM table WHERE January = 27 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.