Add support for BETWEEN {from, to} predicates
Extract duplicated stuff for predicate exceptions
Add tests for compound queries
Merge pull request #771 from realm/tg-between-literal

Add support for literal ranges to BETWEEN predicates