code: def _build_aggregation(self, queries: List[str]) -> Dict[str, Any]:
      rules_filters = [
          filters.text_query(rule_query) for rule_query in queries
      ]
      return aggregations.filters_aggregation(
          filters={
              "covered_records": filters.boolean_filter(
                  should_filters=rules_filters, minimum_should_match=1
              ),
              "annotated_covered_records": filters.boolean_filter(
                  filter_query=filters.exists_field("annotated_as"),
                  should_filters=rules_filters,
                  minimum_should_match=1,
              ),
          }
      )
  
file_path: argilla/src/argilla/server/daos/backend/metrics/text_classification.py
imports: import dataclasses
  from typing import Any, Dict, List, Optional
  from argilla.server.daos.backend.metrics.base import ElasticsearchMetric, TermsAggregation
  from argilla.server.daos.backend.query_helpers import aggregations, filters
  from argilla.server.helpers import unflatten_dict
label_desc: Use image node_id 1 for calling the DatasetLabelingRulesMetric obj's underlying member method code with example usage: obj._build_aggregation(queries) and returns: aggregations