Chain mapreduce