help to design map/reduce jobs (SQL, Pig)