union join and multiply for mapreduce