instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is the Home team with an Away team that is oxford united?
SELECT Home team FROM table WHERE Away team = oxford united
Translate the following into a SQL query
What is the Home team with an Away team that is wrexham?
SELECT Home team FROM table WHERE Away team = wrexham
Translate the following into a SQL query
Which Gold has a Silver of 7, and a Bronze smaller than 7?
SELECT MIN Gold FROM table WHERE Silver = 7 AND Bronze < 7
Translate the following into a SQL query
Which Bronze has a Silver of 15, and a Gold smaller than 20?
SELECT SUM Bronze FROM table WHERE Silver = 15 AND Gold < 20
Translate the following into a SQL query
Which Bronze has a Silver of 7, and a Total larger than 25?
SELECT MIN Bronze FROM table WHERE Silver = 7 AND Total > 25
Translate the following into a SQL query
Which Gold has a Bronze larger than 1, and a Total larger than 80?
SELECT SUM Gold FROM table WHERE Bronze > 1 AND Total > 80
Translate the following into a SQL query
Which Total has a Silver larger than 8, and a Bronze of 20, and a Gold smaller than 20?
SELECT COUNT Total FROM table WHERE Silver > 8 AND Bronze = 20 AND Gold < 20
Translate the following into a SQL query
What is the total of NA for set 4, a score of 3-0 and a 26-24 for set 2?
SELECT Total FROM table WHERE Set 4 = na AND Score = 3-0 AND Set 2 = 26-24
Translate the following into a SQL query
What is the total of the 3-0 score with a set 2 of 25-12 and a set 3 of 25-18?
SELECT Total FROM table WHERE Score = 3-0 AND Set 3 = 25-18 AND Set 2 = 25-12
Translate the following into a SQL query
What is the set 5 of the match with a set 2 of 26-24 and a set 1 of 27-25?
SELECT Set 5 FROM table WHERE Set 2 = 26-24 AND Set 1 = 27-25
Translate the following into a SQL query
Who has a total number of 76 silver medals?
SELECT COUNT Silver FROM table WHERE Total = 76
Translate the following into a SQL query
What score has ipswich town as the home team, and replay as the tie no.?
SELECT Score FROM table WHERE Home team = ipswich town AND Tie no = replay
Translate the following into a SQL query
What score has grays athletic as the home team?
SELECT Score FROM table WHERE Home team = grays athletic
Translate the following into a SQL query
What date has 6 as the tie no.?
SELECT Date FROM table WHERE Tie no = 6
Translate the following into a SQL query
What is Fastest Lap, when Winning Team is Team BRM, when Race is 1, when Pole Position is Leanne Tander, and when Circuit is Phillip Island?
SELECT Fastest Lap FROM table WHERE Winning team = team brm AND Race = 1 AND Pole Position = leanne tander AND Circuit = phillip island
Translate the following into a SQL query
What is Fastest Lap, when Round is 5, and when Winning Driver is James Winslow?
SELECT Fastest Lap FROM table WHERE Round = 5 AND Winning driver = james winslow
Translate the following into a SQL query
What is Date, when Fastest Lap is James Winslow, when Race is 1, and when Winning Driver is Leanne Tander?
SELECT Date FROM table WHERE Fastest Lap = james winslow AND Race = 1 AND Winning driver = leanne tander
Translate the following into a SQL query
What is Pole Position, when Circuit is Adelaide Street Circuit, and when Winning Team is Piccola Scuderia Corse?
SELECT Pole Position FROM table WHERE Circuit = adelaide street circuit AND Winning team = piccola scuderia corse
Translate the following into a SQL query
What country was the game played in when the location was trestles?
SELECT Country FROM table WHERE Location = trestles
Translate the following into a SQL query
What date was the game played when it was located at bells beach?
SELECT Date FROM table WHERE Location = bells beach
Translate the following into a SQL query
What country was the game played when it was played from April 11-April 21?
SELECT Country FROM table WHERE Date = april 11-april 21
Translate the following into a SQL query
Who was the Runner-up when the game was played at Bells Beach?
SELECT Runner-up FROM table WHERE Location = bells beach
Translate the following into a SQL query
Which Accolade had a publication of Under the Radar?
SELECT Accolade FROM table WHERE Publication = under the radar
Translate the following into a SQL query
Which year had a publication of Pazz & Jop?
SELECT Year FROM table WHERE Publication = pazz & jop
Translate the following into a SQL query
How many districts featured the democrat nicholas von stein?
SELECT COUNT District FROM table WHERE Democratic = nicholas von stein
Translate the following into a SQL query
Which incumbent's democratic candidate was mike carroll?
SELECT Incumbent FROM table WHERE Democratic = mike carroll
Translate the following into a SQL query
Who ran under the Democratic ticket when Edward R. Dudley ran under the Liberal ticket?
SELECT Democratic ticket FROM table WHERE Liberal ticket = edward r. dudley
Translate the following into a SQL query
When John Emanuel ran under the Socialist Labor ticket who ran under the Democratic ticket?
SELECT Democratic ticket FROM table WHERE Socialist Labor ticket = john emanuel
Translate the following into a SQL query
What was the office up for election when Sylvia Weinstein ran under the Socialist Workers ticket?
SELECT Office FROM table WHERE Socialist Workers ticket = sylvia weinstein
Translate the following into a SQL query
Who ran under the Socialist Labor ticket when Robert M. Morgenthau ran for the Democratic ticket?
SELECT Socialist Labor ticket FROM table WHERE Democratic ticket = robert m. morgenthau
Translate the following into a SQL query
When Republican ticket was John P. Lomenzo who ran for the Socialist Workers ticket?
SELECT Socialist Workers ticket FROM table WHERE Republican ticket = john p. lomenzo
Translate the following into a SQL query
What is the area km2 of the area with a pop density people/km2 larger than 91, is a member state of Italy, and had less than 58.8 population in millions?
SELECT SUM Area km 2 FROM table WHERE Pop. density People/km 2 > 91 AND Member State = italy AND Population in millions < 58.8
Translate the following into a SQL query
What is the area % of EU with 16.4 population in millions?
SELECT Area % of EU FROM table WHERE Population in millions = 16.4
Translate the following into a SQL query
What is the total number of area km2 with a 4.2 population in millions and is a member state of the Czech Republic?
SELECT COUNT Area km 2 FROM table WHERE Population in millions > 4.2 AND Member State = czech republic
Translate the following into a SQL query
What is the sum of the pop density people/km2 with a population % of EU of 0.1%, an area % of EU of 0.1%, and has more than 0.5 population in millions?
SELECT SUM Pop. density People/km 2 FROM table WHERE Population % of EU = 0.1% AND Area % of EU = 0.1% AND Population in millions > 0.5
Translate the following into a SQL query
What is the lowest area km2 of the member state of the Czech Republic and has a population in millions lesss than 10.3?
SELECT MIN Area km 2 FROM table WHERE Member State = czech republic AND Population in millions < 10.3
Translate the following into a SQL query
Weighing less than 85, with less than 340 Spikes, what is Gilberto Godoy Filho's Height
SELECT COUNT Height FROM table WHERE Spike < 340 AND Name = gilberto godoy filho AND Weight < 85
Translate the following into a SQL query
What is the Attendance for Opponent Boston Patriots and Week is greater than 14?
SELECT COUNT Attendance FROM table WHERE Opponent = boston patriots AND Week > 14
Translate the following into a SQL query
Which Nominated work has a Year of 1997?
SELECT Nominated work FROM table WHERE Year = 1997
Translate the following into a SQL query
Which Award has a Category of music video acting award?
SELECT Award FROM table WHERE Category = music video acting award
Translate the following into a SQL query
What name has a CONCACAF Champions League of 2 (0) and also a Canadian Championship of 8 (0)?
SELECT Name FROM table WHERE CONCACAF Champions League = 2 (0) AND Canadian Championship = 8 (0)
Translate the following into a SQL query
When the league is 84 (4) what is the Canadian Championship?
SELECT Canadian Championship FROM table WHERE League = 84 (4)
Translate the following into a SQL query
What Canadian Championship has 84 (4) as the league?
SELECT Canadian Championship FROM table WHERE League = 84 (4)
Translate the following into a SQL query
What Canadian Championship has Ashtone Morgan Category:Articles with hcards as the name?
SELECT Canadian Championship FROM table WHERE Name = ashtone morgan category:articles with hcards
Translate the following into a SQL query
What is the total when the name is Carl Robinson Category:Articles with hcards?
SELECT Total FROM table WHERE Name = carl robinson category:articles with hcards
Translate the following into a SQL query
What CONCACAF Champions League has 57 (27) as the league?
SELECT CONCACAF Champions League FROM table WHERE League = 57 (27)
Translate the following into a SQL query
What is Name, when Games are less than 38, when Rank is less than 4, and when Points are 357?
SELECT Name FROM table WHERE Games < 38 AND Rank < 4 AND Points = 357
Translate the following into a SQL query
What is Team, when Rank is greater than 2, and when Points are greater than 259?
SELECT Team FROM table WHERE Rank > 2 AND Points > 259
Translate the following into a SQL query
What are the Highest Games, when Team is Ciudad De La Laguna, and when Points are greater than 357?
SELECT MAX Games FROM table WHERE Team = ciudad de la laguna AND Points > 357
Translate the following into a SQL query
What is Points, when Name is Ondrej Starosta?
SELECT Points FROM table WHERE Name = ondrej starosta
Translate the following into a SQL query
What is the lowest value for Points, when Games is greater than 34, and when Name is Andrew Panko?
SELECT MIN Points FROM table WHERE Games > 34 AND Name = andrew panko
Translate the following into a SQL query
What is the highest value for Points, when Games is 21, and when Rank is greater than 2?
SELECT MAX Points FROM table WHERE Games = 21 AND Rank > 2
Translate the following into a SQL query
What is the average rank of the record on 2007-06-21 with a mark less than 91.29?
SELECT AVG Rank FROM table WHERE Date = 2007-06-21 AND Mark < 91.29
Translate the following into a SQL query
What is the lowest mark of the rank 8 record?
SELECT MIN Mark FROM table WHERE Rank = 8
Translate the following into a SQL query
What is the place of the record on 1996-05-25 with a mark greater than 90.73?
SELECT Place FROM table WHERE Mark > 90.73 AND Date = 1996-05-25
Translate the following into a SQL query
What is the place of the rank 6 record, which has a mark greater than 91.29?
SELECT Place FROM table WHERE Mark > 91.29 AND Rank = 6
Translate the following into a SQL query
What competition has a venue in Hampden Park, Glasgow?
SELECT Competition FROM table WHERE Venue = hampden park, glasgow
Translate the following into a SQL query
What was the score in Hampden Park, Glasgow?
SELECT Score FROM table WHERE Venue = hampden park, glasgow
Translate the following into a SQL query
Which Venue has a Notes of 2:28:31?
SELECT Venue FROM table WHERE Notes = 2:28:31
Translate the following into a SQL query
Which Venue has a Competition of venice marathon?
SELECT Venue FROM table WHERE Competition = venice marathon
Translate the following into a SQL query
Which Year that has Notes of dnf?
SELECT MIN Year FROM table WHERE Notes = dnf
Translate the following into a SQL query
Which Competition has a Year larger than 2000?
SELECT Competition FROM table WHERE Year > 2000
Translate the following into a SQL query
What date has a set 4 of 25-19?
SELECT Date FROM table WHERE Set 4 = 25-19
Translate the following into a SQL query
What is the total for the set 2 of 25-18?
SELECT Total FROM table WHERE Set 2 = 25-18
Translate the following into a SQL query
What is the total for set 2 of 25-19?
SELECT Total FROM table WHERE Set 2 = 25-19
Translate the following into a SQL query
What is set 3 when set 5 is na, set 1 is 21-25, and set 2 is 25-16?
SELECT Set 3 FROM table WHERE Set 5 = na AND Set 1 = 21-25 AND Set 2 = 25-16
Translate the following into a SQL query
What is the set 1 for the date jun 26, and a set 2 of 25-16?
SELECT Set 1 FROM table WHERE Date = jun 26 AND Set 2 = 25-16
Translate the following into a SQL query
What is the total for set 2 17-25?
SELECT Total FROM table WHERE Set 2 = 17-25
Translate the following into a SQL query
What Opponent has a Score that is 1-6, 3-6?
SELECT Opponent FROM table WHERE Score = 1-6, 3-6
Translate the following into a SQL query
What writer has mort drucker as the artist, an issue greater than 470, and law & order: svu as an actual title?
SELECT Writer FROM table WHERE Artist = mort drucker AND Issue > 470 AND Actual Title = law & order: svu
Translate the following into a SQL query
What date has ed as an actual title?
SELECT Date FROM table WHERE Actual Title = ed
Translate the following into a SQL query
What isssue has 7th heaven as an actual title?
SELECT Issue FROM table WHERE Actual Title = 7th heaven
Translate the following into a SQL query
What issue has mort drucker as the artist and february 2001 as the date?
SELECT Issue FROM table WHERE Artist = mort drucker AND Date = february 2001
Translate the following into a SQL query
In what Week was the Attendance 39,434?
SELECT COUNT Week FROM table WHERE Attendance < 39,434
Translate the following into a SQL query
What is the first Week against Cincinnati Bengals with an Attendance greater than 58,615?
SELECT MIN Week FROM table WHERE Attendance > 58,615 AND Opponent = cincinnati bengals
Translate the following into a SQL query
What year was the match were xavier malisse was the runner-up against lleyton hewitt?
SELECT Year FROM table WHERE Outcome = runner-up AND Opponent = lleyton hewitt
Translate the following into a SQL query
What year was the match against filippo volandri where xavier malisse was runner-up?
SELECT Year FROM table WHERE Outcome = runner-up AND Opponent = filippo volandri
Translate the following into a SQL query
How many against have a difference of 6, with a played greater than 19?
SELECT SUM Against FROM table WHERE Difference = 6 AND Played > 19
Translate the following into a SQL query
What is the lowest drawn that has a played greater than 19, with a position less than 2?
SELECT MIN Drawn FROM table WHERE Played > 19 AND Position < 2
Translate the following into a SQL query
What is the average against that has a drawn less than 7, points greater than 22, and 19 for the played?
SELECT AVG Against FROM table WHERE Drawn < 7 AND Points > 22 AND Played = 19
Translate the following into a SQL query
When has a TV Time of fox 12:00 pm cdt?
SELECT Date FROM table WHERE TV Time = fox 12:00 pm cdt
Translate the following into a SQL query
When has a Week of 8?
SELECT Date FROM table WHERE Week = 8
Translate the following into a SQL query
Which Week has a Result of l 13-16 and an Opponent of at buffalo bills?
SELECT AVG Week FROM table WHERE Result = l 13-16 AND Opponent = at buffalo bills
Translate the following into a SQL query
What kind of TV Time that has a Result of w 24–10?
SELECT TV Time FROM table WHERE Result = w 24–10
Translate the following into a SQL query
What played at 8:00 when Grey's Anatomy played at 9:00 and Ugly Betty played at 8:30?
SELECT 8:00 FROM table WHERE 9:00 = grey's anatomy AND 8:30 = ugly betty
Translate the following into a SQL query
What played at 8:00 when there was local programming at 10:00 and Supernatural played at 9:00?
SELECT 8:00 FROM table WHERE 10:00 = local programming AND 9:00 = supernatural
Translate the following into a SQL query
What show played at 8:00 when Ugly Betty played at 8:30?
SELECT 8:00 FROM table WHERE 8:30 = ugly betty
Translate the following into a SQL query
When Grey's Anatomy aired at 9:30 what aired at 9:00?
SELECT 9:00 FROM table WHERE 9:30 = grey's anatomy
Translate the following into a SQL query
When My Name is Earl played at 8:00 what aired at 9:30?
SELECT 9:30 FROM table WHERE 8:00 = my name is earl
Translate the following into a SQL query
What was the division when Jim O'Brien was the head coach and the team finished 2nd in the division?
SELECT Div. FROM table WHERE Div. Finish = 2nd AND Head coach = jim o'brien
Translate the following into a SQL query
What is the name of the conference that K. C. Jones was a head coach in?
SELECT Conf. FROM table WHERE Head coach = k. c. jones
Translate the following into a SQL query
Who had the highest assists of the game on March 5?
SELECT High assists FROM table WHERE Date = march 5
Translate the following into a SQL query
What is the least amount of appearances by new zealand when they scored 4 goals?
SELECT MIN Appearances FROM table WHERE Goals = 4 AND Nationality = new zealand
Translate the following into a SQL query
how many appearances did batram suri category:articles with hcards have scoring less than 2 goals?
SELECT COUNT Appearances FROM table WHERE Name = batram suri category:articles with hcards AND Goals < 2
Translate the following into a SQL query
What region has a 2002 population greater than 132,798, an area larger than 5,528.3, and the cachapoal province?
SELECT Region FROM table WHERE 2002 Population > 132,798 AND Area > 5,528.3 AND Province = cachapoal
Translate the following into a SQL query
What is the total 2002 population of the province with putre as the capital, less than 3 communes, and an area larger than 11,919.5?
SELECT COUNT 2002 Population FROM table WHERE No. of Communes < 3 AND Area > 11,919.5 AND Capital = putre
Translate the following into a SQL query
What province has a v valparaíso region and an area of 927.2?
SELECT Province FROM table WHERE Region = v valparaíso AND Area = 927.2
Translate the following into a SQL query
What is the average area with valparaíso as the capital?
SELECT AVG Area FROM table WHERE Capital = valparaíso
Translate the following into a SQL query
WHich Category in White has a Amerindian of 4,87%?
SELECT White FROM table WHERE Amerindian = 4,87%
Translate the following into a SQL query
WHich Category in White has a Black of 38,05%?
SELECT White FROM table WHERE Black = 38,05%