Pull request made for this issue. It fixes the not-equal issue and throws a QuerySytnaxException when any other operator than equal or not-equal are used to compare two composite types.