Add Query::getHash