Adding function to run Reduce queries using the MapReduce phase builder