query-bd3c063ac10202e24931540ab0305eb3
somevalue + stated as qualifier. (P1932)object named as together with a somevalueI am trying to count the number of statements with value = Can anyone think of a way to optimise this to get it to run within the time ?
Use at
- https://query.wikidata.org/sparql
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT (COUNT(DISTINCT(?stmt)) AS ?count) WHERE {
?stmt pq:P1932 [] .
?stmt ?ps ?stmt_value .
FILTER(isBlank(?stmt_value)) .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v3("?ps")
v2("?stmt"):::projected
v1("?stmt_value")
a1((" "))
f0[["isBlank(?stmt_value)"]]
f0 --> v1
v2 --"pq:P1932"--> a1
v2 -->v3--> v1
bind2[/"count(?stmt)"/]
v2 --o bind2
bind2 --as--o v4