MapReduce query for finding the average value in an unstructured data set