Throw QueryParseException instead of PomonaExpressionSyntaxException in two places.