instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | Where did Jim Furyk place? | SELECT Place FROM table WHERE Player = jim furyk |
Translate the following into a SQL query | What was Jim Furyk's score? | SELECT Score FROM table WHERE Player = jim furyk |
Translate the following into a SQL query | What was the score for the To par of +1? | SELECT Score FROM table WHERE To par = +1 |
Translate the following into a SQL query | Who placed in t5 and scored 73-69-68=210? | SELECT Player FROM table WHERE Place = t5 AND Score = 73-69-68=210 |
Translate the following into a SQL query | Who was the opponent when the record was 11-6-2? | SELECT Opponent FROM table WHERE Record = 11-6-2 |
Translate the following into a SQL query | What is the home team of the match with an attendance greater than 202? | SELECT Home team FROM table WHERE Attendance > 202 |
Translate the following into a SQL query | What is the average attendance of the match with arlesey town as the home team? | SELECT AVG Attendance FROM table WHERE Home team = arlesey town |
Translate the following into a SQL query | When was the Lakeside race where Paul Morris won? | SELECT Date FROM table WHERE Race Title = lakeside AND Winner = paul morris |
Translate the following into a SQL query | What was the score of the game against the phoenix suns? | SELECT Score FROM table WHERE Opponent = phoenix suns |
Translate the following into a SQL query | What was the opponent of the game when the reocrd was 0-12? | SELECT Opponent FROM table WHERE Record = 0-12 |
Translate the following into a SQL query | How many years had a location at Forest Hills and a score of 6β3, 6β3 for John McEnroe? | SELECT COUNT Year FROM table WHERE Location = forest hills AND Runner-up = john mcenroe AND Score = 6β3, 6β3 |
Translate the following into a SQL query | Who is the champion with a score of 7β6, 6β0? | SELECT Champion FROM table WHERE Score = 7β6, 6β0 |
Translate the following into a SQL query | Who is the runner-up in 1990? | SELECT Runner-up FROM table WHERE Year = 1990 |
Translate the following into a SQL query | When was the earliest year that Guillermo Vilas was the runner-up? | SELECT MIN Year FROM table WHERE Runner-up = guillermo vilas |
Translate the following into a SQL query | What source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of ben adriaenssen / ben van den bogaart, for the date of 1 april? | SELECT Source FROM table WHERE Race winners = ben adriaenssen / ben van den bogaart AND GP winner = ben adriaenssen / ben van den bogaart AND Date = 1 april |
Translate the following into a SQL query | What is the GP winner for the Race winners valentin giraud / nicolas musset, and a place genk? | SELECT GP winner FROM table WHERE Race winners = valentin giraud / nicolas musset AND Place = genk |
Translate the following into a SQL query | What is the date for a source of result and a place of iffendic? | SELECT Date FROM table WHERE Source = result AND Place = iffendic |
Translate the following into a SQL query | What date has a place of chernivtsi, and a race winners of etienne bax / kaspars stupelis? What | SELECT Date FROM table WHERE Place = chernivtsi AND Race winners = etienne bax / kaspars stupelis |
Translate the following into a SQL query | What is the GP winner with a place of genk, with race winners ben adriaenssen / ben van den bogaart? | SELECT GP winner FROM table WHERE Place = genk AND Race winners = ben adriaenssen / ben van den bogaart |
Translate the following into a SQL query | What is the race winners for the date of 23 june? | SELECT Race winners FROM table WHERE Date = 23 june |
Translate the following into a SQL query | What date was the opponent in the final Barbara Paulus? | SELECT Date FROM table WHERE Opponent in the final = barbara paulus |
Translate the following into a SQL query | What was the surface that Laura Golarsa and her opponent played on in the final? | SELECT Surface FROM table WHERE Opponent in the final = laura golarsa |
Translate the following into a SQL query | What was the score for the opponent against Katerina Maleeva in the final? | SELECT Score FROM table WHERE Opponent in the final = katerina maleeva |
Translate the following into a SQL query | What's the name that had a moving to Anorthosis Famagusta and a transfer window of winter? | SELECT Name FROM table WHERE Transfer window = winter AND Moving to = anorthosis famagusta |
Translate the following into a SQL query | What is the Nat with a mutual consent loan return and has a free transfer fee? | SELECT Nat. FROM table WHERE Transfer fee = free AND Type = mutual consent loan return |
Translate the following into a SQL query | What is the type of POR? | SELECT Type FROM table WHERE Nat. = por |
Translate the following into a SQL query | What's the name of MKD? | SELECT Name FROM table WHERE Nat. = mkd |
Translate the following into a SQL query | What is the sum of the attendance on November 24? | SELECT SUM Attendance FROM table WHERE Date = november 24 |
Translate the following into a SQL query | What team did the Flames play against when 526 people attended the game? | SELECT Opponent FROM table WHERE Attendance = 526 |
Translate the following into a SQL query | Rick Plant was the man of the match in what competition? | SELECT Competition FROM table WHERE Man of the Match = rick plant |
Translate the following into a SQL query | Who did the Flames play against when Stephen Lee was the man of the match? | SELECT Opponent FROM table WHERE Man of the Match = stephen lee |
Translate the following into a SQL query | How many people attended the game when the game was won 4-2? | SELECT COUNT Attendance FROM table WHERE Result = won 4-2 |
Translate the following into a SQL query | For what competition was the venue away the n/a the man of the match? | SELECT Competition FROM table WHERE Venue = away AND Man of the Match = n/a |
Translate the following into a SQL query | What is BP's lowest sales? | SELECT MIN Sales (billion $) FROM table WHERE Company = bp |
Translate the following into a SQL query | What was the record of the Denver Broncos when they play at Mile High Stadium against the Minnesota Vikings and 38,494 fans were in attendance? | SELECT Record FROM table WHERE Attendance > 38,494 AND Game site = mile high stadium AND Opponent = minnesota vikings |
Translate the following into a SQL query | What was the final game result that was played on December 2? | SELECT Result FROM table WHERE Date = december 2 |
Translate the following into a SQL query | What week was the game played at Rich Stadium? | SELECT Week FROM table WHERE Game site = rich stadium |
Translate the following into a SQL query | What is the sum of FA Cup goals when there are 19 league goals? | SELECT SUM FA Cup goals FROM table WHERE League goals = 19 |
Translate the following into a SQL query | Which club has 16 league goals for a total of 20? | SELECT Club FROM table WHERE League goals = 16 AND Total = 20 |
Translate the following into a SQL query | How many League Cup goals correspond to 3 FA Cup Goals and a total over 15 for Chesterfield? | SELECT League Cup goals FROM table WHERE Total > 15 AND FA Cup goals = 3 AND Club = chesterfield |
Translate the following into a SQL query | What was the result of the april 6, 2002 game against the greensboro prowlers? | SELECT Result FROM table WHERE Opponent = greensboro prowlers AND Date = april 6, 2002 |
Translate the following into a SQL query | Which Location has Floors smaller than 27, and a Building of 150 elgin? | SELECT Location FROM table WHERE Floors < 27 AND Building = 150 elgin |
Translate the following into a SQL query | Which Status has a Building of the rhombus? | SELECT Status FROM table WHERE Building = the rhombus |
Translate the following into a SQL query | How many floors are in little Italy? | SELECT COUNT Floors FROM table WHERE Location = little italy |
Translate the following into a SQL query | What is Country, when Class is "15 meters", and when Qualifying Grand Prix is "Soaring Grand Prix Of United Kingdom"? | SELECT Country FROM table WHERE Class = 15 meters AND Qualifying Grand Prix = soaring grand prix of united kingdom |
Translate the following into a SQL query | What is Class, when Dates is "22 April - 3 May 2009"? | SELECT Class FROM table WHERE Dates = 22 april - 3 may 2009 |
Translate the following into a SQL query | What is Country, when Class is "club"? | SELECT Country FROM table WHERE Class = club |
Translate the following into a SQL query | What is Country, when Place is "Torino"? | SELECT Country FROM table WHERE Place = torino |
Translate the following into a SQL query | WHAT IS THE AVERAGE SQUAD NUMBER WITH MARTIN SMITH, AND LEAGUE GOALS LESS THAN 17? | SELECT AVG Squad No. FROM table WHERE Name = martin smith AND League Goals < 17 |
Translate the following into a SQL query | What is No. 5, when No. 9 is Michael, and when Region (Year) is New Hampshire (2010)? | SELECT No. 5 FROM table WHERE No. 9 = michael AND Region (year) = new hampshire (2010) |
Translate the following into a SQL query | What is Region (Year), when No. 7 is William, and when No. 2 is Alexander? | SELECT Region (year) FROM table WHERE No. 7 = william AND No. 2 = alexander |
Translate the following into a SQL query | What is No. 10, when No. 1 is Noah, and when No. 9 is Carter? | SELECT No. 10 FROM table WHERE No. 1 = noah AND No. 9 = carter |
Translate the following into a SQL query | What is No. 7, when Region (Year) is Arizona (2010)? | SELECT No. 7 FROM table WHERE Region (year) = arizona (2010) |
Translate the following into a SQL query | What is No. 1, when Region (Year) is Mississippi (2010)? | SELECT No. 1 FROM table WHERE Region (year) = mississippi (2010) |
Translate the following into a SQL query | What is No. 8, when No. 10 is Hunter? | SELECT No. 8 FROM table WHERE No. 10 = hunter |
Translate the following into a SQL query | How much did Larry Nelson win? | SELECT Money ( $ ) FROM table WHERE Player = larry nelson |
Translate the following into a SQL query | What is Tournament, when Date is "Sep 12, 1976"? | SELECT Tournament FROM table WHERE Date = sep 12, 1976 |
Translate the following into a SQL query | What is Tournament, when Date is "Sep 25, 1977"? | SELECT Tournament FROM table WHERE Date = sep 25, 1977 |
Translate the following into a SQL query | What is Margin of Victory, when Tournament is "Women's Kemper Open"? | SELECT Margin of victory FROM table WHERE Tournament = women's kemper open |
Translate the following into a SQL query | What is the No. 8 of the person with a No. 4 of Noah? | SELECT No. 8 FROM table WHERE No. 4 = noah |
Translate the following into a SQL query | What is the No. 8 of the person with a No. 4 of Matthew and a No. 7 of Anthony? | SELECT No. 8 FROM table WHERE No. 4 = matthew AND No. 7 = anthony |
Translate the following into a SQL query | What is the No. 1 of the person with a No. 2 of John? | SELECT No. 1 FROM table WHERE No. 2 = john |
Translate the following into a SQL query | What is the No. 6 of the person with a No. 10 of Joshua and a No. 8 of Andrew? | SELECT No. 6 FROM table WHERE No. 10 = joshua AND No. 8 = andrew |
Translate the following into a SQL query | What is the No. 2 of the person with a No. 5 of Ethan and NO. 7 of Jackson? | SELECT No. 2 FROM table WHERE No. 4 = ethan AND No. 7 = jackson |
Translate the following into a SQL query | What is the No 1 from the Maryland (2008) Region (year)? | SELECT No. 1 FROM table WHERE Region (year) = maryland (2008) |
Translate the following into a SQL query | What was the draw of Maggie Toal? | SELECT AVG Draw FROM table WHERE Artist = maggie toal |
Translate the following into a SQL query | What is the highest point total that placed 3rd and has a draw larger than 5? | SELECT MAX Points FROM table WHERE Place = 3rd AND Draw > 5 |
Translate the following into a SQL query | Who won the gold in 1958? | SELECT Gold FROM table WHERE Year = 1958 |
Translate the following into a SQL query | What was the host country when the silver was [[|]] (2) and bronze is czechoslovakia (3)? | SELECT Host country / countries FROM table WHERE Silver = [[|]] (2) AND Bronze = czechoslovakia (3) |
Translate the following into a SQL query | Who was the host country in 2007? | SELECT Host country / countries FROM table WHERE Year = 2007 |
Translate the following into a SQL query | Who was the host country when bronze is [[|]] (1) and host city is Krynica? | SELECT Host country / countries FROM table WHERE Bronze = [[|]] (1) AND Host city / cities = krynica |
Translate the following into a SQL query | What is the result for Boston's road team in game 4? | SELECT Result FROM table WHERE Road Team = boston AND Game = game 4 |
Translate the following into a SQL query | Which road team has a result of 117-114? | SELECT Road Team FROM table WHERE Result = 117-114 |
Translate the following into a SQL query | What is the road team playing against Boston on April 16? | SELECT Road Team FROM table WHERE Home Team = boston AND Date = april 16 |
Translate the following into a SQL query | Which home team is on April 21? | SELECT Home Team FROM table WHERE Date = april 21 |
Translate the following into a SQL query | Which game has a result of 113-106? | SELECT Game FROM table WHERE Result = 113-106 |
Translate the following into a SQL query | Which home team played against Los Angeles in game 1? | SELECT Home Team FROM table WHERE Road Team = los angeles AND Game = game 1 |
Translate the following into a SQL query | What is the lowest rank of 5-year peak bobby fischer, 2841? | SELECT MIN Rank FROM table WHERE 5-year peak = bobby fischer, 2841 |
Translate the following into a SQL query | What is the 1-year peak with anatoly karpov, 2821 as the 10-year peak? | SELECT 1-year peak FROM table WHERE 10-year peak = anatoly karpov, 2821 |
Translate the following into a SQL query | What is the 20-year peak with emanuel lasker, 2816 as the 15-year peak? | SELECT 20-year peak FROM table WHERE 15-year peak = emanuel lasker, 2816 |
Translate the following into a SQL query | What percentage of other candidates did the county which voted 52.1% for Kerry vote for? | SELECT MAX Others# FROM table WHERE Kerry% = 52.1% |
Translate the following into a SQL query | How many votes did Kerry get in the county that gave Bush 189,605 votes? | SELECT AVG Kerry# FROM table WHERE Bush# = 189,605 |
Translate the following into a SQL query | How many votes went to other candidates in the county that gave 1.9% votes to them, and 160,390 total votes to Bush? | SELECT MIN Others# FROM table WHERE Others% = 1.9% AND Bush# < 160,390 |
Translate the following into a SQL query | How many Seats 2005 has a Percentage in/de-crease of 50.0%, and a Governorate of dhi qar governorate, and a In/de-creased by larger than 6? | SELECT SUM Seats 2005 FROM table WHERE Percentage in/de-crease = 50.0% AND Governorate = dhi qar governorate AND In/de-creased by > 6 |
Translate the following into a SQL query | Name the lowest Seats 2010 which has Seats 2005 smaller than 9, and a Governorate of al muthanna governorate, and an In/de-creased by larger than 2? | SELECT MIN Seats 2010 FROM table WHERE Seats 2005 < 9 AND Governorate = al muthanna governorate AND In/de-creased by > 2 |
Translate the following into a SQL query | Name the average In/de-creased by which has a Governorate of al anbar governorate, and Seats 2005 smaller than 9? | SELECT AVG In/de-creased by FROM table WHERE Governorate = al anbar governorate AND Seats 2005 < 9 |
Translate the following into a SQL query | Name the highest In/de-creased which has a Percentage in/de-crease of 100%, and Seats 2010 larger than 8? | SELECT MAX In/de-creased by FROM table WHERE Percentage in/de-crease = 100% AND Seats 2010 > 8 |
Translate the following into a SQL query | What player has a score larger than 67? | SELECT Player FROM table WHERE Score > 67 |
Translate the following into a SQL query | What is the celtics record after game 33 when they score of the game was 111-108? | SELECT Record FROM table WHERE Game > 33 AND Score = 111-108 |
Translate the following into a SQL query | Which Rider is grid 7? | SELECT Rider FROM table WHERE Grid = 7 |
Translate the following into a SQL query | What is the total number of laps done by Massimo Roccoli when his grid was smaller than 4? | SELECT COUNT Laps FROM table WHERE Rider = massimo roccoli AND Grid < 4 |
Translate the following into a SQL query | What is the time recorded by David Salom on his Yamaha yzf-r6 when his grid was larger than 1? | SELECT Time FROM table WHERE Bike = yamaha yzf-r6 AND Grid > 1 AND Rider = david salom |
Translate the following into a SQL query | What is Stop No., when Destination is [2778] Claisebrook Station Platforms? | SELECT Stop no. FROM table WHERE Destination = [2778] claisebrook station platforms |
Translate the following into a SQL query | What is Stopping Pattern, when Platform is 4? | SELECT Stopping pattern FROM table WHERE Platform = 4 |
Translate the following into a SQL query | What is Stop No., when Destination is Perth, and when Line is Midland? | SELECT Stop no. FROM table WHERE Destination = perth AND Line = midland |
Translate the following into a SQL query | What year did the Turku Airport have a total of 116,631 domestic passengers and a total of 308,782 passengers? | SELECT MAX Year FROM table WHERE Domestic passengers > 116,631 AND Total passengers = 308,782 |
Translate the following into a SQL query | Which coach founded the Western Strikers team after 1963? | SELECT Coach FROM table WHERE Founded > 1963 AND Team = western strikers |
Translate the following into a SQL query | Who is the coach located in Oakden? | SELECT Coach FROM table WHERE Location = oakden |
Translate the following into a SQL query | Which team has coach John Kosmina? | SELECT Team FROM table WHERE Coach = john kosmina |
Translate the following into a SQL query | Who is the coach for the Adelaide Galaxy team? | SELECT Coach FROM table WHERE Team = adelaide galaxy |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.