This is not SQL, it is HQL