query-531a6db9eff2ec709da4a2743345e0c1
Propertiespart of (P361)instance of (P31)subclass of (P279)
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 ?instance ?instanceLabel ?cnt WHERE {
{ SELECT ?instance (count(*) as ?cnt) WHERE {
?item wdt:P361 wd:Q129421;
wdt:P31/wdt:P279* wd:Q43229;
wdt:P31 ?instance;
.
} GROUP BY ?instance ?instanceLabel
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by desc(?cnt)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?cnt"):::projected
v3("?instance"):::projected
v2("?item")
a1((" "))
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q129421"]):::iri
c5(["wd:Q43229"]):::iri
v2 --"wdt:P361"--> c2
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v2 --"wdt:P31"--> v3
bind1[/"count(*)"/]
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end