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 wines produced before the year of 2000.
assistant
SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000;
human
also list the different names of wines produced after 2010.
assistant
SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010 ;