query-71e4e8aa95631ba4d89669e658b6588d

rq turtle/ttl

List of properties used as qualifier on a translator (P655) statement. SELECT ?property ?propertyLabel ?count WITH { SELECT ?property ?value (COUNT(DISTINCT ?item) AS ?count) WHERE { ?item p:P655 ?statement . ?statement ?pq ?x . ?property a wikibase:Property; wikibase:qualifier ?pq. FILTER(?property != wd:P31) } GROUP BY ?property ?value ORDER BY DESC(?count) LIMIT 100 } AS %results WHERE { INCLUDE %results. SERVICE wikibase:label { bd:serviceParam wikibase:language "en-US,en,en". } } ORDER BY DESC(?count)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#List of properties used as qualifier on a translator (P655) statement.
SELECT ?property ?propertyLabel ?count WHERE {
   {
  SELECT ?property ?value (COUNT(DISTINCT ?item) AS ?count) WHERE {
    ?item p:P655 ?statement .
    ?statement ?pq ?x .
    ?property a wikibase:Property;
              wikibase:qualifier ?pq.
    FILTER(?property != wd:P31)
  }
  GROUP BY ?property ?value
  ORDER BY DESC(?count)
  LIMIT 100
}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en-US,en,en". }
}
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?count"):::projected v3("?item") v5("?pq") v2("?property"):::projected v4("?statement") v6("?x") c9(["en-US,en,en"]):::literal c7(["bd:serviceParam"]):::iri c4(["wikibase:Property"]):::iri f0[["?property != 'wd:P31'"]] f0 --> v2 v3 --"p:P655"--> v4 v4 -->v5--> v6 v2 --"a"--> c4 v2 --"wikibase:qualifier"--> v5 bind2[/"count(?item)"/] v3 --o bind2 bind2 --as--o v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end