Added histogrammed query