query-a8183a54151ddeec88ac7ac6b1bab9c3
Animated movies by year in Bulgaria
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 ?cnt) WHERE {
?item (wdt:P31/wdt:P279*) wd:Q202866.
?item wdt:P577 ?publicationdate.
?item wdt:P495 wd:Q219.
BIND(STR(YEAR(?publicationdate)) AS ?year)
FILTER(BOUND(?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("?cnt")
v2("?item"):::projected
v3("?publicationdate")
v4("?year"):::projected
a1((" "))
c6(["wd:Q219"]):::iri
c3(["wd:Q202866"]):::iri
f0[["bound(?year)"]]
f0 --> v4
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P577"--> v3
v2 --"wdt:P495"--> c6
bind1[/"str(year-from-dateTime(?publicationdate))"/]
v3 --o bind1
bind1 --as--o v4
bind3[/"count(?item)"/]
v2 --o bind3
bind3 --as--o v4