If condition contains comparision of boolean expressions, like this:
select x from SomeEntity x where (1 > 2) = (3 > 4)
Hibernate throws
org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected AST node
Simple values works OK (e.g.
select x from SomeEntity x where true = true
)