Adding mapreduce code of SQL join