hokud: range check epoch for topk queries