human
Schema:
grapes (ID, Grape, Color)
appellations (No, Appelation, County, State, Area, isAVA)
wine (No, Grape, Winery, Appelation, State, Name, Year, Price, Score, Cases, Drink)
Please answer with SQL.
assistant
Sure, I understand.
human
Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.
assistant
SELECT DISTINCT Name FROM WINE WHERE Price > ( SELECT MIN( Price ) FROM wine WHERE Winery = 'John Anthony' );
human
Find the price of all wines that have prices higher than some wines from John Anthony winery.
assistant
SELECT Price FROM WINE WHERE Price > ( SELECT MIN( Price ) FROM wine WHERE Winery = 'John Anthony' );
human
Find the score of all wines that have prices higher than some wines from John Anthony winery.
assistant
SELECT Score FROM WINE WHERE Price > ( SELECT MIN( Price ) FROM wine WHERE Winery = "John Anthony" ) ;