Add support for literal ranges to BETWEEN predicates

@alazier