chunkby use cursor. Add join range (python-like)