classify based on the WHERE