added pig script to randomly assign weights to query triples