query-bca0c5c20066afb0ac3cae6c818cff66
Updating the progress barsUpdating the counts on this page is currently done manually, with a SPARQL query like this:
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT (COUNT(DISTINCT ?inst) as ?defined) WHERE {
?inst wdt:P159 ?val.
?inst p:P31/ps:P31/wdt:P279* wd:Q4671277.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?defined")
v1("?inst"):::projected
v2("?val")
a1((" "))
a2((" "))
c5(["wd:Q4671277"]):::iri
v1 --"p:direct/P159"--> v2
v1 --"p:P31"--> a1
a1 --"p:statement/P31"--> a2
a2 --"p:direct/P279"--> c5
bind1[/"count(?inst)"/]
v1 --o bind1
bind1 --as--o v3