query-624bfef070ad6eebf35bd8f210d6cf99
Vojtěch Dostál}}Property uses{{
Use at
- https://query.wikidata.org/sparql
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?countStatements ?countQualifiers ?countReferences (?countStatements + ?countQualifiers + ?countReferences AS ?sum)
WHERE {
{ SELECT (COUNT(*) AS ?countStatements) WHERE { ?item p:P691 ?statement. } }
{ SELECT (COUNT(*) AS ?countQualifiers) WHERE { ?statement pq:P691 ?qualifier. } }
{ SELECT (COUNT(*) AS ?countReferences) WHERE { ?statement pr:P691 ?reference. } }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?countQualifiers"):::projected
v7("?countReferences"):::projected
v3("?countStatements"):::projected
v1("?item")
v4("?qualifier")
v6("?reference")
v2("?statement")
v8("?sum")
v1 --"p:P691"--> v2
bind1[/"count(*)"/]
bind1 --as--o v3
v2 --"p:qualifier/P691"--> v4
bind3[/"count(*)"/]
bind3 --as--o v5
v2 --"p:reference/P691"--> v6
bind5[/"count(*)"/]
bind5 --as--o v7
bind6[/"?countStatements + ?countQualifiers + ?countReferences"/]
v3 --o bind6
v5 --o bind6
v7 --o bind6
bind6 --as--o v8