Added support for JPQL functions like MOD, LENGTH, LOCATE, TRIM, and
SUBSTRING.