anchor.diff:      | UCASE OPEN_BRACE expression CLOSE_BRACE -> ^(UCASE expression)
       | LCASE OPEN_BRACE expression CLOSE_BRACE -> ^(LCASE expression)
       | ENCODE_FOR_URI OPEN_BRACE expression CLOSE_BRACE -> ^(ENCODE_FOR_URI expression)
  -    | CONTAINS OPEN_BRACE expression CLOSE_BRACE -> ^(CONTAINS expression)
  -    | STRSTARTS OPEN_BRACE expression CLOSE_BRACE -> ^(STRSTARTS expression)
  -    | STRENDS OPEN_BRACE expression CLOSE_BRACE -> ^(STRENDS expression)
  +    | CONTAINS OPEN_BRACE expression COMMA expression CLOSE_BRACE -> ^(CONTAINS expression expression)
  +    | STRSTARTS OPEN_BRACE expression COMMA expression CLOSE_BRACE -> ^(STRSTARTS expression expression)
  +    | STRENDS OPEN_BRACE expression COMMA expression CLOSE_BRACE -> ^(STRENDS expression expression)
  +    | STRBEFORE OPEN_BRACE expression COMMA expression CLOSE_BRACE -> ^(STRBEFORE expression expression)
  +    | STRAFTER OPEN_BRACE expression COMMA expression CLOSE_BRACE -> ^(STRAFTER expression expression)
  +    | REPLACE OPEN_BRACE expression COMMA expression COMMA expression CLOSE_BRACE -> ^(REPLACE expression expression expression)
       | YEAR OPEN_BRACE expression CLOSE_BRACE -> ^(YEAR expression)
       | MONTH OPEN_BRACE expression CLOSE_BRACE -> ^(MONTH expression)
       | DAY OPEN_BRACE expression CLOSE_BRACE -> ^(DAY expression)
  
positive.code: 
  query
      : prologue (selectQuery | constructQuery | describeQuery | askQuery) bindingsClause EOF -> ^(QUERY prologue selectQuery* constructQuery* describeQuery* askQuery*) bindingsClause*
      | update (SEMICOLON update)* EOF -> ^(UPDATE update+)
      ;
  
  prologue
  
negative.code:     | BOUND OPEN_BRACE var CLOSE_BRACE -> ^(BOUND var)
      | IRI OPEN_BRACE expression CLOSE_BRACE -> ^(IRI expression)
      | URI OPEN_BRACE expression CLOSE_BRACE -> ^(URI expression)
      | BNODE (OPEN_BRACE expression CLOSE_BRACE) -> ^(BNODE expression)
      | BNODE nil -> BNODE
      | RAND nil -> RAND
      | ABS OPEN_BRACE expression CLOSE_BRACE -> ^(ABS expression)
      | CEIL OPEN_BRACE expression CLOSE_BRACE -> ^(CEIL expression)
  