Add value hash to eliminate duplicates in query display

Relates to #191