instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Which Year has a Category of best film?
SELECT MAX Year FROM table WHERE Category = best film
Translate the following into a SQL query
Who is the incumbent from the democratic party in the washington 7 district?
SELECT Incumbent FROM table WHERE Party = democratic AND District = washington 7
Translate the following into a SQL query
When was the earliest incumbent dave reichert was first elected?
SELECT MIN First elected FROM table WHERE Incumbent = dave reichert
Translate the following into a SQL query
What is the total of the first elected year of incumbent norm dicks?
SELECT COUNT First elected FROM table WHERE Incumbent = norm dicks
Translate the following into a SQL query
What is the total of the first elected year of the incumbent from the washington 8 district?
SELECT COUNT First elected FROM table WHERE District = washington 8
Translate the following into a SQL query
WHAT IS THE START THAT HAS A FINISH BIGGER THAN 3, FROM FORD, AFTER 1969?
SELECT MAX Start FROM table WHERE Finish > 3 AND Manufacturer = ford AND Year > 1969
Translate the following into a SQL query
WHAT MANUFACTURER AFTER 1966 HAD A START SMALLER THAN 5, A WOOD TEAM AND FINISHED 35?
SELECT Manufacturer FROM table WHERE Year > 1966 AND Start < 5 AND Team = wood AND Finish = 35
Translate the following into a SQL query
WHAT WAS THE FINISH NUMBER WITH A START SMALLER THAN 20 IN 1969?
SELECT COUNT Finish FROM table WHERE Start < 20 AND Year = 1969
Translate the following into a SQL query
What is the total number of Pleasure(s), when Psychological Dependence is greater than 1.9, and when Drug is "Benzodiazepines"?
SELECT COUNT Pleasure FROM table WHERE Psychological dependence > 1.9 AND Drug = benzodiazepines
Translate the following into a SQL query
What is the highest Psychological Dependence, when Pleasure is less than 2.3, when Drug is "Cannabis", and when Physical Dependence is less than 0.8?
SELECT MAX Psychological dependence FROM table WHERE Pleasure < 2.3 AND Drug = cannabis AND Physical dependence < 0.8
Translate the following into a SQL query
What is the average Mean, when Drug is "Alcohol", and when Psychological Dependence is greater than 1.9?
SELECT AVG Mean FROM table WHERE Drug = alcohol AND Psychological dependence > 1.9
Translate the following into a SQL query
What is the total number of Psychological Dependence, when Pleasure is "2.3", and when Mean is less than 1.9300000000000002?
SELECT COUNT Psychological dependence FROM table WHERE Pleasure = 2.3 AND Mean < 1.9300000000000002
Translate the following into a SQL query
What is the sum of Pleasure, when Drug is "LSD", and when Psychological Dependence is greater than 1.1?
SELECT SUM Pleasure FROM table WHERE Drug = lsd AND Psychological dependence > 1.1
Translate the following into a SQL query
What Country's team is Rajasthan Royals at the 2008 Indian Premier League?
SELECT Country FROM table WHERE Domestic tournament = 2008 indian premier league AND Team = rajasthan royals
Translate the following into a SQL query
What is the Domestic Tournament with Chennai Super Kings Team?
SELECT Domestic tournament FROM table WHERE Team = chennai super kings
Translate the following into a SQL query
What is the Dolphins Group?
SELECT Group FROM table WHERE Team = dolphins
Translate the following into a SQL query
Who is the player that won in the year 1978?
SELECT Player FROM table WHERE Year(s) won = 1978
Translate the following into a SQL query
What is the Country of the Player with a Score of 73-71-76-70=290?
SELECT Country FROM table WHERE Score = 73-71-76-70=290
Translate the following into a SQL query
What is Lawson Little's Money ($) amount?
SELECT Money ( $ ) FROM table WHERE Player = lawson little
Translate the following into a SQL query
What is the Money ($) amount of the Player with a To par of e?
SELECT Money ( $ ) FROM table WHERE To par = e
Translate the following into a SQL query
What Country has a Player with Playoff Money with a Score of 72-69-73-73=287?
SELECT Country FROM table WHERE Money ( $ ) = playoff AND Score = 72-69-73-73=287
Translate the following into a SQL query
What is Ben Hogan's Place?
SELECT Place FROM table WHERE Player = ben hogan
Translate the following into a SQL query
What is the Place of the Player with a Score of 73-75-71-73=292?
SELECT Place FROM table WHERE Score = 73-75-71-73=292
Translate the following into a SQL query
How many byes when there are 11 wins and fewer than 5 losses?
SELECT SUM Byes FROM table WHERE Wins = 11 AND Losses < 5
Translate the following into a SQL query
How many losses when there are less than 0 wins?
SELECT COUNT Losses FROM table WHERE Wins < 0
Translate the following into a SQL query
What are the most againsts with more than 11 losses and central murray is Nyah Nyah West Utd?
SELECT MAX Against FROM table WHERE Central Murray = nyah nyah west utd AND Losses > 11
Translate the following into a SQL query
What is the To par of the player with Money of 7,750 or more?
SELECT To par FROM table WHERE Money ( Β£ ) > 7,750
Translate the following into a SQL query
who is the provider when up (up to kbit/s) is 1180?
SELECT Provider FROM table WHERE Up (up to kbit/s) = 1180
Translate the following into a SQL query
what is the highest down (up to kbits/s) when resale is yes, up ( up to kbit/s) is 1180 and provider is 1&1?
SELECT MAX Down (up to kbit/s) FROM table WHERE Resale = yes AND Up (up to kbit/s) = 1180 AND Provider = 1&1
Translate the following into a SQL query
what is the resale when the down (up to kbit/s) is 24000?
SELECT Resale FROM table WHERE Down (up to kbit/s) = 24000
Translate the following into a SQL query
What is the average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984?
SELECT AVG Down (up to kbit/s) FROM table WHERE Provider = willy.tel AND Up (up to kbit/s) > 1984
Translate the following into a SQL query
How many totals have a Gold larger than 0, and a Bronze smaller than 0?
SELECT COUNT Total FROM table WHERE Gold > 0 AND Bronze < 0
Translate the following into a SQL query
Which Total has a Bronze larger than 1, and a Gold larger than 0?
SELECT MAX Total FROM table WHERE Bronze > 1 AND Gold > 0
Translate the following into a SQL query
What country is Eugene McDowell from?
SELECT Nationality FROM table WHERE Player = eugene mcdowell
Translate the following into a SQL query
When was Mario Elie picked in a round before 7?
SELECT MAX Pick FROM table WHERE Player = mario elie AND Round < 7
Translate the following into a SQL query
In what round did someone from North Carolina State get picked larger than 91?
SELECT COUNT Round FROM table WHERE School/Club Team = north carolina state AND Pick > 91
Translate the following into a SQL query
Which Results have a Category of the best new actor in lead role(female)?
SELECT Results FROM table WHERE Category = best new actor in lead role(female)
Translate the following into a SQL query
What was the category in 2008?
SELECT Category FROM table WHERE Year = 2008
Translate the following into a SQL query
Which Character has a Category of favourite naya sadasya?
SELECT Character FROM table WHERE Category = favourite naya sadasya
Translate the following into a SQL query
Which Show has an Award of indian television academy awards?
SELECT Show FROM table WHERE Award = indian television academy awards
Translate the following into a SQL query
What award was won after 2008?
SELECT Award FROM table WHERE Year > 2008
Translate the following into a SQL query
On what Date did the massacre result with 21 Injured?
SELECT Date FROM table WHERE Injured = 21
Translate the following into a SQL query
What is City / State, when Winner is "Rohan Onslow", and when Circuit is "Oran Park Raceway"?
SELECT City / State FROM table WHERE Winner = rohan onslow AND Circuit = oran park raceway
Translate the following into a SQL query
What is Winner, when City / State is "Mallala , South Australia", and when Team is "Elfin Sports Cars"?
SELECT Winner FROM table WHERE City / State = mallala , south australia AND Team = elfin sports cars
Translate the following into a SQL query
What is Circuit, when Team is "R.J.MacArthur Onslow", and when City / State is "Sydney , New South Wales"?
SELECT Circuit FROM table WHERE Team = r.j.macarthur onslow AND City / State = sydney , new south wales
Translate the following into a SQL query
What is Winner, when Team is "R.J.MacArthur Onslow", and when Circuit is "Oran Park Raceway"?
SELECT Winner FROM table WHERE Team = r.j.macarthur onslow AND Circuit = oran park raceway
Translate the following into a SQL query
What is Date, when City / State is "Mallala , South Australia", and when Team is "R.J.MacArthur Onslow"?
SELECT Date FROM table WHERE City / State = mallala , south australia AND Team = r.j.macarthur onslow
Translate the following into a SQL query
What is Winner, when Date is "20 August"?
SELECT Winner FROM table WHERE Date = 20 august
Translate the following into a SQL query
What is the total number of points with less than 49 points in 2008-09, and 46 points in 2006-07?
SELECT COUNT Total Pts FROM table WHERE 2008–09 Pts < 49 AND 2006–07 Pts = 46
Translate the following into a SQL query
What is the total pld that has 36 points in 2007-08, and less than 55 points in 2008-09?
SELECT SUM Total Pld FROM table WHERE 2007–08 Pts = 36 AND 2008–09 Pts < 55
Translate the following into a SQL query
What is the lowest total pld with 57 points in 2006-07, and more than 39 points in 2008-09
SELECT MIN Total Pld FROM table WHERE 2006–07 Pts = 57 AND 2008–09 Pts > 39
Translate the following into a SQL query
What actor was nominated for best actress?
SELECT Actor FROM table WHERE Result = nominated AND Category = best actress
Translate the following into a SQL query
What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category?
SELECT Year FROM table WHERE Film = bullets over broadway AND Category = best supporting actress AND Actor = jennifer tilly
Translate the following into a SQL query
What is the result of Samantha Morton being up for best supporting actress in a year later than 1989?
SELECT Result FROM table WHERE Year > 1989 AND Category = best supporting actress AND Actor = samantha morton
Translate the following into a SQL query
What film was Dianne Wiest in?
SELECT Film FROM table WHERE Actor = dianne wiest
Translate the following into a SQL query
Which class has fewer than 10 and number(s) names?
SELECT Class FROM table WHERE Quantity < 10 AND Number(s) = names
Translate the following into a SQL query
What is the type with a quantity of fewer than 6 and number(s) 5201?
SELECT Type FROM table WHERE Quantity < 6 AND Number(s) = 5201
Translate the following into a SQL query
How many byes were then when there were less than 737 against?
SELECT SUM Byes FROM table WHERE Against < 737
Translate the following into a SQL query
How many wins were there when the byes were more than 3?
SELECT COUNT Wins FROM table WHERE Byes > 3
Translate the following into a SQL query
How many wins were there when draws were more than 0?
SELECT MIN Wins FROM table WHERE Draws > 0
Translate the following into a SQL query
How many wins did Glenelg FL of bahgallah have when there were more than 3 byes?
SELECT COUNT Wins FROM table WHERE Glenelg FL = bahgallah AND Byes > 3
Translate the following into a SQL query
What is Date, when Opponent in Final is "Guy Forget"?
SELECT Date FROM table WHERE Opponent in Final = guy forget
Translate the following into a SQL query
What is Opponent in Final, when Date is "13 January 1992"?
SELECT Opponent in Final FROM table WHERE Date = 13 january 1992
Translate the following into a SQL query
What is Opponent in Final, when Surface is "Hard", and when Date is "13 January 1992"?
SELECT Opponent in Final FROM table WHERE Surface = hard AND Date = 13 january 1992
Translate the following into a SQL query
What is the Height of the Player with a Date of Birth of 1979-06-12?
SELECT Height FROM table WHERE Date of Birth = 1979-06-12
Translate the following into a SQL query
What is the Height of the Player with a Date of Birth of 1982-07-05?
SELECT Height FROM table WHERE Date of Birth = 1982-07-05
Translate the following into a SQL query
What is the Height of the Player with a Date of Birth of 1982-07-05?
SELECT Height FROM table WHERE Date of Birth = 1982-07-05
Translate the following into a SQL query
What is the Weight of the Player with a Date of Birth of 1979-09-26?
SELECT Weight FROM table WHERE Date of Birth = 1979-09-26
Translate the following into a SQL query
What is Elise Norwood's Pos.?
SELECT Pos. FROM table WHERE Name = elise norwood
Translate the following into a SQL query
What is the Club of the Player with a Date of Birth of 1977-02-03?
SELECT Club FROM table WHERE Date of Birth = 1977-02-03
Translate the following into a SQL query
What home has 1-5 as the away?
SELECT Home FROM table WHERE Away = 1-5
Translate the following into a SQL query
What league has 2-3 as the away?
SELECT League FROM table WHERE Away = 2-3
Translate the following into a SQL query
What away has 1-4 as the home?
SELECT Away FROM table WHERE Home = 1-4
Translate the following into a SQL query
What teams has 1-5 as the away?
SELECT Teams FROM table WHERE Away = 1-5
Translate the following into a SQL query
What Date had a Series of ATCC Round 6?
SELECT Date FROM table WHERE Series = atcc round 6
Translate the following into a SQL query
Who was the Winner in the AMC Round 4 at Lakeside International Raceway?
SELECT Winner FROM table WHERE Circuit = lakeside international raceway AND Series = amc round 4
Translate the following into a SQL query
What is the week 15 result for the team that had a week 9 result of Washington (6-1)?
SELECT Week 15 (Final) Dec 9 FROM table WHERE Week 9 Oct 29 = washington (6-1)
Translate the following into a SQL query
What is the week 10 result for the tean when the week 15 result is Illinois (10-1)?
SELECT Week 10 Nov 5 FROM table WHERE Week 15 (Final) Dec 9 = illinois (10-1)
Translate the following into a SQL query
What is the week 10 result where the week 9 result was Dropped: Maryland South Carolina?
SELECT Week 10 Nov 5 FROM table WHERE Week 9 Oct 29 = dropped: maryland south carolina
Translate the following into a SQL query
What is the week 13 result where the week 14 resulted in Maryland (10-1)?
SELECT Week 13 Nov 26 FROM table WHERE Week 14 Dec 3 = maryland (10-1)
Translate the following into a SQL query
What happened in week 14 when week 11's result was Michigan (7-2)?
SELECT Week 14 Dec 3 FROM table WHERE Week 11 Nov 12 = michigan (7-2)
Translate the following into a SQL query
What happened in week 12 when week 13 resulted in Tennessee (9-1)?
SELECT Week 12 Nov 19 FROM table WHERE Week 13 Nov 26 = tennessee (9-1)
Translate the following into a SQL query
What is the fewest bronze medals when the total medals is less than 10, and the gold medals less than 0?
SELECT MIN Bronze FROM table WHERE Total < 10 AND Gold < 0
Translate the following into a SQL query
With 8 as the rank, and a total of more than 2 medals what is the average bronze medals?
SELECT AVG Bronze FROM table WHERE Rank = 8 AND Total > 2
Translate the following into a SQL query
What is the maximum total medals when the rank is 8?
SELECT MAX Total FROM table WHERE Rank = 8
Translate the following into a SQL query
What is the largest number of gold medals when the bronze medals is less than 49, and there is 22 silver medals, and the total is less than 60?
SELECT MAX Gold FROM table WHERE Bronze < 49 AND Silver = 22 AND Total < 60
Translate the following into a SQL query
When the number of gold medals is greater than 59, and the rank is total, what is the average bronze medals?
SELECT AVG Bronze FROM table WHERE Rank = total AND Gold > 59
Translate the following into a SQL query
What is the smallest number of medals a country with more than 14 silver has?
SELECT MIN Total FROM table WHERE Silver > 14
Translate the following into a SQL query
What is the rank of a country with more than 2 gold, less than 5 silver, and less than 31 total medals?
SELECT SUM Rank FROM table WHERE Gold > 2 AND Total < 31 AND Silver < 5
Translate the following into a SQL query
WHat was the score for Phil Mickelson when he placed t3?
SELECT Score FROM table WHERE Place = t3 AND Player = phil mickelson
Translate the following into a SQL query
What place did the golfer take whose country is South Africa?
SELECT Place FROM table WHERE Country = south africa
Translate the following into a SQL query
What was the result of the game played at Jeppesen Stadium?
SELECT Result FROM table WHERE Game site = jeppesen stadium
Translate the following into a SQL query
What week was the game played on November 12, 1961, with an attendance of 7,859 played?
SELECT MIN Week FROM table WHERE Date = november 12, 1961 AND Attendance < 7,859
Translate the following into a SQL query
What decade is the artist the replacements?
SELECT Decade FROM table WHERE Artist = the replacements
Translate the following into a SQL query
What is the number of households in the county with median income of $65,240 and population greater than 744,344?
SELECT SUM Number of households FROM table WHERE Median family income = $65,240 AND Population > 744,344
Translate the following into a SQL query
What is the population of Tioga county?
SELECT Population FROM table WHERE County = tioga
Translate the following into a SQL query
Which Constructor has Laps larger than 9, and a Grid smaller than 2?
SELECT Constructor FROM table WHERE Laps > 9 AND Grid < 2
Translate the following into a SQL query
What's filiberto rivera's height?
SELECT COUNT Height FROM table WHERE Player = filiberto rivera
Translate the following into a SQL query
Who has a position of sg?
SELECT Player FROM table WHERE Position = sg
Translate the following into a SQL query
Who has a height of 2.16?
SELECT Player FROM table WHERE Height = 2.16