query-32022b0861a9b4eb4135834615b8c814

rq turtle/ttl

Distribution of values of a property SELECT distinct ?value ?valueLabel (COUNT(distinct ?item) AS ?cnt) WHERE { ?item wdt:P3716 ?value . SERVICE wikibase:label { bd:serviceParam wikibase:language "ru" } } GROUP BY ?value ?valueLabel ORDER BY DESC(?cnt)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Distribution of values of a property
SELECT distinct ?value ?valueLabel (COUNT(distinct ?item) AS ?cnt)
WHERE {
  ?item wdt:P3716 ?value .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "ru" }
} GROUP BY ?value ?valueLabel ORDER BY DESC(?cnt)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?cnt") v2("?item"):::projected v3("?value"):::projected c3(["bd:serviceParam"]):::iri c5(["ru"]):::literal v2 --"wdt:P3716"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end bind1[/"count(?item)"/] v2 --o bind1 bind1 --as--o v4