query: SELECT ?qual ?qualLabel ?count WHERE {
    {
      SELECT ?qual (COUNT(DISTINCT ?item) AS ?count) WHERE {
           hint:Query hint:optimizer "None" .
           ?item p:P793 ?statement .
           ?statement ?pq_qual ?pq_obj .
           ?qual wikibase:qualifier ?pq_qual .
      }  GROUP BY ?qual
    } .
  
    OPTIONAL {
      ?qual rdfs:label ?qualLabel filter (lang(?qualLabel) = "en") .
    }
  }
  ORDER BY DESC(?count) ASC(?qualLabel)