adding query type pig
fix for pig type