[SQL] Implement between in hql