group query to the filter interface