implement rangequery on queryconfig