query-9b7a70f72dbc37e2a1950505588fc24a
Sum of all NARA series' item or file unit counts
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT (SUM(?itemsorfileunits) AS ?count) {
?series wdt:P6224 wd:Q3511132;
wdt:P195 wd:Q518155;
wdt:P1225 ?naid;
wdt:P1436 ?itemsorfileunits.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v3("?itemsorfileunits"):::projected
v2("?naid")
v1("?series")
c2(["wd:Q3511132"]):::iri
c4(["wd:Q518155"]):::iri
v1 --"wdt:P6224"--> c2
v1 --"wdt:P195"--> c4
v1 --"wdt:P1225"--> v2
v1 --"wdt:P1436"--> v3
bind1[/"sum(?itemsorfileunits)"/]
v3 --o bind1
bind1 --as--o v4