query-e49b6a4a4b7b420cf3811d1e73feb43a
budget (P2769) of data protection authority (Q55499415) by point in time (P585) for several years. Now i want to plot them. I tried the following: (Q55499415)data protection authority to two (P2769)budget I added
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?dpaLabel ?year ?budget
WHERE {
?dpa wdt:P31/wdt:P279* wd:Q55499415.
?dpa p:P2769 _:budget.
_:budget ps:P2769 ?budget;
pq:P585 ?date.
BIND(YEAR(?date) as ?year)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de,fr". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?budget"):::projected
v3("?date")
v1("?dpa")
v4("?year"):::projected
a2((" "))
a1((" "))
c10(["#91;AUTO_LANGUAGE#93;,en,de,fr"]):::literal
c8(["bd:serviceParam"]):::iri
c3(["wd:Q55499415"]):::iri
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v1 --"p:P2769"--> a2
a2 --"p:statement/P2769"--> v2
a2 --"p:qualifier/P585"--> v3
bind0[/"year-from-dateTime(?date)"/]
v3 --o bind0
bind0 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end