instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
In 1996, what was the value for Inglewood when Goondiwindi had more than 4,374, and there is a region total higher than 9,114?
SELECT AVG Inglewood FROM table WHERE Region total > 9,114 AND Year = 1996 AND Goondiwindi > 4,374
Translate the following into a SQL query
What is the region total after 2001 when Goondiwindi had more than 4,103 and Inglewood was at 2,613?
SELECT COUNT Region total FROM table WHERE Goondiwindi > 4,103 AND Inglewood = 2,613 AND Year > 2001
Translate the following into a SQL query
What is the nature of the incident in Kabul on 2004-01-28?
SELECT Nature of incident FROM table WHERE Location = kabul AND Date = 2004-01-28
Translate the following into a SQL query
What is the nature of the incident that's a bomb attack?
SELECT Nature of incident FROM table WHERE Circumstances = bomb attack
Translate the following into a SQL query
What is the nature of the incident with Casualties of 3 wia, and Circumstances of ied?
SELECT Nature of incident FROM table WHERE Casualties = 3 wia AND Circumstances = ied
Translate the following into a SQL query
Which Casualties have a Location of kunduz, and Circumstances of suicide?
SELECT Casualties FROM table WHERE Location = kunduz AND Circumstances = suicide
Translate the following into a SQL query
Which Casualties have a hostile Nature of incident and Circumstances of mortar attack?
SELECT Casualties FROM table WHERE Nature of incident = hostile AND Circumstances = mortar attack
Translate the following into a SQL query
When was the delegate who has previous experience as a commissioner of health born?
SELECT Born In FROM table WHERE Former Experience = commissioner of health
Translate the following into a SQL query
What is the name of the airport in the city of Kota Kinabalu?
SELECT Airport FROM table WHERE City = kota kinabalu
Translate the following into a SQL query
What is the IATA for the city of Amsterdam?
SELECT IATA FROM table WHERE City = amsterdam
Translate the following into a SQL query
Which country has an IATA of JFK?
SELECT Country FROM table WHERE IATA = jfk
Translate the following into a SQL query
Which city has an IATA of AUH?
SELECT City FROM table WHERE IATA = auh
Translate the following into a SQL query
Which airport has an IATA of AMS?
SELECT Airport FROM table WHERE IATA = ams
Translate the following into a SQL query
Which city has an ICAO of Kiah?
SELECT City FROM table WHERE ICAO = kiah
Translate the following into a SQL query
What Genre did Sándor Simó direct?
SELECT Genre FROM table WHERE Directed by = sándor simó
Translate the following into a SQL query
What is the Genre for Malina (ger.-aus.-fr.), an Original Title?
SELECT Genre FROM table WHERE Original title = malina (ger.-aus.-fr.)
Translate the following into a SQL query
The Last Metro refers to which Original Title?
SELECT Original title FROM table WHERE Title in English = the last metro
Translate the following into a SQL query
What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi?
SELECT Genre FROM table WHERE Role = episode actor AND Original title = franciska vasárnapjai (hungarian)
Translate the following into a SQL query
What is the Original title for an Episode Actor role which was Directed by Géza Bereményi?
SELECT Original title FROM table WHERE Role = episode actor AND Directed by = géza bereményi
Translate the following into a SQL query
What is the round for bob randall?
SELECT AVG Round FROM table WHERE Name = bob randall
Translate the following into a SQL query
what is the position when signed is yes, round is less than 24 and name is charlie hough?
SELECT Position FROM table WHERE Signed = yes AND Round < 24 AND Name = charlie hough
Translate the following into a SQL query
what is the school when signed is no and round is 50?
SELECT School FROM table WHERE Signed = no AND Round = 50
Translate the following into a SQL query
what is the school for round 8?
SELECT School FROM table WHERE Round = 8
Translate the following into a SQL query
what is the position for robert johnson?
SELECT Position FROM table WHERE Name = robert johnson
Translate the following into a SQL query
Was position ss from carson city high school signed?
SELECT Signed FROM table WHERE Position = ss AND School = carson city high school
Translate the following into a SQL query
What was the average number of yards Michael Henig had in a year when he had more than 12 starts/
SELECT AVG Yards FROM table WHERE Starts > 12
Translate the following into a SQL query
What was the average number of starts Michael Henig had in a year when he had more than 1201 yards?
SELECT AVG Starts FROM table WHERE Yards > 1201
Translate the following into a SQL query
Name the airport with IATA of cxb
SELECT Airport FROM table WHERE IATA = cxb
Translate the following into a SQL query
Name the airport with IATA of dmk
SELECT Airport FROM table WHERE IATA = dmk
Translate the following into a SQL query
Name the city that has singapore changi airport
SELECT City FROM table WHERE Airport = singapore changi airport
Translate the following into a SQL query
Name the ICAO for when IATA is zyl
SELECT ICAO FROM table WHERE IATA = zyl
Translate the following into a SQL query
Name the ICAO for IATA of rgn
SELECT ICAO FROM table WHERE IATA = rgn
Translate the following into a SQL query
Name the ICAO for IATA of ccu
SELECT ICAO FROM table WHERE IATA = ccu
Translate the following into a SQL query
What is the largest gold with a Total larger than 16?
SELECT MAX Gold FROM table WHERE Total > 16
Translate the following into a SQL query
What is the largest silver with a Total smaller than 2, a Bronze smaller than 1, and a Nation of yugoslavia?
SELECT MAX Silver FROM table WHERE Total < 2 AND Bronze < 1 AND Nation = yugoslavia
Translate the following into a SQL query
What is the smallest bronze with a Nation of west germany, and a Gold larger than 0?
SELECT MIN Bronze FROM table WHERE Nation = west germany AND Gold > 0
Translate the following into a SQL query
What was the record on July 2?
SELECT Record FROM table WHERE Date = july 2
Translate the following into a SQL query
What is the largest silver with less than 0 gold?
SELECT MAX Silver FROM table WHERE Gold < 0
Translate the following into a SQL query
What's the average total viewers that has 17.6% Share?
SELECT AVG Total Viewers FROM table WHERE Share = 17.6%
Translate the following into a SQL query
What's the share of Episode 1?
SELECT Share FROM table WHERE Episode No. = 1
Translate the following into a SQL query
How many locomotives were made that were withdrawn in 1913?
SELECT Quantity made FROM table WHERE Withdrawn = 1913
Translate the following into a SQL query
What is the date of creation for the locomotive having a type of 0-4-2
SELECT Date made FROM table WHERE Type = 0-4-2
Translate the following into a SQL query
What is the date of creation of the locomotive of type 0-6-0 and GSR class of 441?
SELECT Date made FROM table WHERE Type = 0-6-0 AND GSR Class = 441
Translate the following into a SQL query
In Round 19, where did Tony Lockett play?
SELECT Venue FROM table WHERE Round = 19 AND Player = tony lockett
Translate the following into a SQL query
Who is the opponent in 1992?
SELECT Opponent FROM table WHERE Year = 1992
Translate the following into a SQL query
What club had a score of 18.1?
SELECT Club FROM table WHERE Score = 18.1
Translate the following into a SQL query
What is the number for year built of W27 that was withdrawn in 1967 with a To LoW year earlier than 1926?
SELECT COUNT Built FROM table WHERE Withdrawn = 1967 AND BR/SR No. = w27 AND To IoW < 1926
Translate the following into a SQL query
What is the number of the year withdrawn for a LSWR number greater than 210 and a To LoW year of 1923?
SELECT COUNT Withdrawn FROM table WHERE LSWR No. > 210 AND To IoW = 1923
Translate the following into a SQL query
What is the BR/SR number of Freshwater which was withdrawn in 1967 and built before 1892 with a To LoW year after 1927?
SELECT BR/SR No. FROM table WHERE Withdrawn = 1967 AND Built < 1892 AND To IoW > 1927 AND SR Name = freshwater
Translate the following into a SQL query
Name the engine for year less than 1977
SELECT Engine FROM table WHERE Year < 1977
Translate the following into a SQL query
Name the start for year less than 1977
SELECT Start FROM table WHERE Year < 1977
Translate the following into a SQL query
Name the least year for start of 17th
SELECT MIN Year FROM table WHERE Start = 17th
Translate the following into a SQL query
Name the start for finish being 21st
SELECT Start FROM table WHERE Finish = 21st
Translate the following into a SQL query
What is the Call sign of the Omni television network with a Digitial PSIP of 14.1?
SELECT Call sign FROM table WHERE Network = omni television AND Digital PSIP = 14.1
Translate the following into a SQL query
What's the total number of Rogers Cable (Ottawa) channels that have a Digital PSIP greater than 9.1, and a Vidéotron (Gatineau) of channel 14?
SELECT COUNT Rogers Cable (Ottawa) FROM table WHERE Digital PSIP > 9.1 AND Vidéotron (Gatineau) = 14
Translate the following into a SQL query
Which Network is on a Vidéotron (Gatineau) channel lower than 8 and a Rogers Cable (Ottawa) channel lower than 8 and has a Call Sign of cjoh-dt?
SELECT Network FROM table WHERE Vidéotron (Gatineau) < 8 AND Rogers Cable (Ottawa) < 8 AND Call sign = cjoh-dt
Translate the following into a SQL query
What was the record after the fight that lasted 8:17?
SELECT Record FROM table WHERE Time = 8:17
Translate the following into a SQL query
What was the result of the fight with Tony Halme?
SELECT Res. FROM table WHERE Opponent = tony halme
Translate the following into a SQL query
What was the score of the game when the record was 63-59 and the attendance was larger than 32,027?
SELECT Score FROM table WHERE Attendance > 32,027 AND Record = 63-59
Translate the following into a SQL query
Who did they play on August 26?
SELECT Opponent FROM table WHERE Date = august 26
Translate the following into a SQL query
What was the attendance for the game on August 16?
SELECT SUM Attendance FROM table WHERE Date = august 16
Translate the following into a SQL query
What team did Johnson (11-7) play for?
SELECT Opponent FROM table WHERE Loss = johnson (11-7)
Translate the following into a SQL query
What is the highest number of points the cosworth straight-4 engine scored?
SELECT MAX Pts. FROM table WHERE Engine = cosworth straight-4
Translate the following into a SQL query
What is the latest year that shadow racing team scored more than 0 points?
SELECT MAX Year FROM table WHERE Entrant = shadow racing team AND Pts. > 0
Translate the following into a SQL query
What round was held in palavas-les-flots , herault , france?
SELECT Round FROM table WHERE Location = palavas-les-flots , herault , france
Translate the following into a SQL query
Who played in the men's singles during the tournament where Ragna Ingolfsdottir played in the women's singles?
SELECT Men's singles FROM table WHERE Women's singles = ragna ingolfsdottir
Translate the following into a SQL query
Who won the men's doubles in 1995?
SELECT Men's doubles FROM table WHERE Year = 1995
Translate the following into a SQL query
What is the second leg that Valencia was on?
SELECT 2nd leg FROM table WHERE Team 2 = valencia
Translate the following into a SQL query
Name the loss with record of 14-19
SELECT Loss FROM table WHERE Record = 14-19
Translate the following into a SQL query
Name the score with record of 17-27
SELECT Score FROM table WHERE Record = 17-27
Translate the following into a SQL query
Name the opponent with record of 12-18
SELECT Opponent FROM table WHERE Record = 12-18
Translate the following into a SQL query
Who was the General classification when Pascal Richard was the winner?
SELECT General classification FROM table WHERE Winner = pascal richard
Translate the following into a SQL query
Who had the Points classification for Stage 13?
SELECT Points classification FROM table WHERE Stage = 13
Translate the following into a SQL query
What was the Stage when Pascal Richard had the Mountains classification and Vladimir Poulnikov won?
SELECT Stage FROM table WHERE Mountains classification = pascal richard AND Winner = vladimir poulnikov
Translate the following into a SQL query
What's the total score of Danny Edwards?
SELECT SUM Score FROM table WHERE Player = danny edwards
Translate the following into a SQL query
Where was the place in Australia that had a score of 70?
SELECT Place FROM table WHERE Score = 70 AND Country = australia
Translate the following into a SQL query
The entrepreneur Adam Weaver was featured in which episode?
SELECT Episode FROM table WHERE Entrepreneur(s) = adam weaver
Translate the following into a SQL query
The entrepreneur Layla Bennett was featured in which episode?
SELECT Episode FROM table WHERE Entrepreneur(s) = layla bennett
Translate the following into a SQL query
What is the lowest rank of the region with an area larger than 3,185,263 and a population of 16,760,000?
SELECT MIN Rank FROM table WHERE Area (km 2 ) > 3,185,263 AND Population = 16,760,000
Translate the following into a SQL query
What is the lowest area of the region with a population less than 22,955,395 in Bangladesh with a density less than 1034?
SELECT MIN Area (km 2 ) FROM table WHERE Population < 22,955,395 AND Country/Region = bangladesh AND Density (Pop. per km 2 ) < 1034
Translate the following into a SQL query
What is the highest population of the region with a rank bigger than 9?
SELECT MAX Population FROM table WHERE Rank > 9
Translate the following into a SQL query
What is the average population of the region with a density less than 487, a rank of 9, and an area larger than 377,944?
SELECT AVG Population FROM table WHERE Density (Pop. per km 2 ) < 487 AND Rank = 9 AND Area (km 2 ) > 377,944
Translate the following into a SQL query
What is the rank of the region with an area larger than 41,526, a density greater than 345, and a population larger than 48,456,369?
SELECT COUNT Rank FROM table WHERE Area (km 2 ) > 41,526 AND Density (Pop. per km 2 ) > 345 AND Population > 48,456,369
Translate the following into a SQL query
What is the TDP (w) of the chipset with a codename sb850?
SELECT COUNT TDP ( W ) FROM table WHERE Codename = sb850
Translate the following into a SQL query
What is the average Fab (nm) of the chipset released in q4 2008 with a RAID larger than 0,1,5,10?
SELECT AVG Fab ( nm ) FROM table WHERE Released = q4 2008 AND RAID > 0,1,5,10
Translate the following into a SQL query
Which round is a lower score than 21.5?
SELECT Round FROM table WHERE Score < 21.5
Translate the following into a SQL query
Which round status is in with this song: 叶良俊 - 爱你不是爱给别人看?
SELECT Round FROM table WHERE Status = in AND Song = 叶良俊 - 爱你不是爱给别人看
Translate the following into a SQL query
Which status accompanies the score 21.5?
SELECT Status FROM table WHERE Score = 21.5
Translate the following into a SQL query
Wjat score is greater than 22 with this song: 林俊杰 - 木乃伊?
SELECT Name FROM table WHERE Score > 22 AND Song = 林俊杰 - 木乃伊
Translate the following into a SQL query
What round has this song: 陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你?
SELECT Round FROM table WHERE Song = 陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你
Translate the following into a SQL query
What is the artist with less than a 2 draw?
SELECT Artist FROM table WHERE Draw < 2
Translate the following into a SQL query
What is the average issue price with from Toronto maple leafs gift set, and a Mintage of 3527?
SELECT AVG Issue price FROM table WHERE Special notes = from toronto maple leafs gift set AND Mintage = 3527
Translate the following into a SQL query
What theme has a mintage of 3527?
SELECT Theme FROM table WHERE Mintage = 3527
Translate the following into a SQL query
When was a mintage of 1264 with more than 24.95 issued?
SELECT MAX Year FROM table WHERE Mintage = 1264 AND Issue price > 24.95
Translate the following into a SQL query
Name the most year for team motul brm and chassis of brm p201 and points less than 0
SELECT MAX Year FROM table WHERE Entrant = team motul brm AND Chassis = brm p201 AND Points < 0
Translate the following into a SQL query
Name the entrant for 1975 and chassis of hill gh1
SELECT Entrant FROM table WHERE Year = 1975 AND Chassis = hill gh1
Translate the following into a SQL query
Name the chassis for engine of brm v12
SELECT Chassis FROM table WHERE Engine = brm v12
Translate the following into a SQL query
Name the most year for points more than 0
SELECT MAX Year FROM table WHERE Points > 0
Translate the following into a SQL query
Name the sum of points for chassis of brm p160e and year more than 1974
SELECT SUM Points FROM table WHERE Chassis = brm p160e AND Year > 1974
Translate the following into a SQL query
What is the chassis after 1991?
SELECT Chassis FROM table WHERE Year > 1991