ranged queries work