https://github.com/hibernate/hibernate-semantic-query/pull/3 This boils down to an interesting (well, if you find parsers interesting like me :) discussion about syntactic analysis versus semantic analysis.