Use hash_key in query to filter returned items