The likeliness of the HAVING clause attribute is again decided based on the local context of the attribute.
gROUP BY clause attribute is not just identified using its local context, but also depending on the presence of HAV-2 http://nlp.stanford.edu/software/lex-parser.shtml INg clause attribute.