query-1d54ff7c5f3e6c42dfc1de99fcdfa79d

rq turtle/ttl

Query to count burials recorded for Père-Lachaise cemetery by year SELECT ?year (COUNT (DISTINCT ?a) AS ?count) WHERE { ?a wdt:P119 wd:Q311 . # buried at Père-Lachaise cemetery ?a wdt:P570 ?date . BIND(year(?date) AS ?year) } GROUP BY ?year ORDER BY ?year

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
# Query to count burials recorded for Père-Lachaise cemetery by year
SELECT ?year (COUNT (DISTINCT ?a) AS ?count) WHERE {
   ?a wdt:P119 wd:Q311 .    # buried at Père-Lachaise cemetery
   ?a wdt:P570 ?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; v2("?a"):::projected v4("?count") v3("?date") v4("?year"):::projected c2(["wd:Q311"]):::iri v2 --"wdt:P119"--> c2 v2 --"wdt:P570"--> v3 bind0[/"year-from-dateTime(?date)"/] v3 --o bind0 bind0 --as--o v4 bind2[/"count(?a)"/] v2 --o bind2 bind2 --as--o v4