removed unused code
added script to fetch query triple weights