query-bc6c88821da0fa1f0593a892e9ede3e3
number of works per year
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?year (count(?item) as ?count) (SAMPLE(?item) as ?sampleitem) WHERE {
?item wdt:P170 wd:Q381238 .
?item wdt:P571 ?date.
BIND ( YEAR(?date) as ?year).
} group by ?year
order by ?year
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v3("?date")
v2("?item"):::projected
v5("?sampleitem")
v4("?year"):::projected
c2(["wd:Q381238"]):::iri
v2 --"wdt:P170"--> c2
v2 --"wdt:P571"--> v3
bind0[/"year-from-dateTime(?date)"/]
v3 --o bind0
bind0 --as--o v4
bind3[/"count(?item)"/]
v2 --o bind3
bind3 --as--o v4
bind4[/"sample(?item)"/]
v2 --o bind4
bind4 --as--o v5