Functions for doing COMPARISON_BETWEEN attribute comparisons