query-ffc871f44a0f12e0696100ad8807e9de
Display options for chartsHello, I've made this simple query:
Use at
- https://query.wikidata.org/sparql
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
# line graph of annual number of weddings for Mulhouse
#defaultView:LineChart
SELECT
(STR(YEAR(?year)) AS ?year_)
?wedCount
WHERE {
wd:Q79815 p:P5982 ?s.
?s ps:P5982 ?wedCount.
?s pq:P585 ?year.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?s")
v2("?wedCount"):::projected
v3("?year"):::projected
v4("?year_")
c1(["wd:Q79815"]):::iri
c1 --"p:P5982"--> v1
v1 --"p:statement/P5982"--> v2
v1 --"p:qualifier/P585"--> v3
bind0[/"str(year-from-dateTime(?year))"/]
v3 --o bind0
bind0 --as--o v4