query-49c5feacc396be78f43266144eeca13e
Such path searches fail even if the variable is a constant that has been set with a BIND statementThis query runs, in about 0.3 seconds
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT (COUNT(?item) AS ?count) WHERE {
?item wdt:P31/wdt:P279* wd:Q3305213 . # paintings
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?count")
v1("?item"):::projected
a1((" "))
c3(["wd:Q3305213"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
bind1[/"count(?item)"/]
v1 --o bind1
bind1 --as--o v2