query-e87b018bebac6ca423df8d24969168fd
...incl. parent classes
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?aggregate ?aggregateLabel (count(DISTINCT ?w) as ?number)
WHERE
{
?w wdt:P463 wd:Q105757481 .
?w wdt:P31/wdt:P279* ?aggregate .
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" . }
} GROUP BY ?aggregate ?aggregateLabel
ORDER BY DESC(?number)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?aggregate"):::projected
v4("?number")
v2("?w"):::projected
a1((" "))
c6(["bd:serviceParam"]):::iri
c2(["wd:Q105757481"]):::iri
c8(["de,en"]):::literal
v2 --"wdt:P463"--> c2
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind1[/"count(?w)"/]
v2 --o bind1
bind1 --as--o v4