To answer my own question, I try to run this JPQL from jpqlExample in the book,
SELECT DISTINCT p FROM Department d JOIN d.employees e JOIN E.projects p
and
SELECT DISTINCT p FROM Department d JOIN d.employees e JOIN e.projects p
Since identifiable variables are case insensitive, these JPQL statements return the same result.