Improvements automatic partitioning

- Full compatibility with between clauses
- Time ranges with < <= > >= are more efficiently treated