add litmit constraint to range query