Histogram query (e.g. for reporting discrete marginals).