query-73e4ae239989cf095d39eaa9e0f4d316

rq turtle/ttl

BcohBOUND (?price)(Q4916)Euro (P2284)price (Q4916)Euro

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:AreaChart
SELECT ?dpa (STR(YEAR(?date)) AS ?year) ?budget ?dpaLabel
WHERE {
    ?dpa wdt:P31/wdt:P279* wd:Q55499415;
         p:P2769 _:budget.
    _:budget psv:P2769 _:budgetvalue;
             pq:P585 ?date.
    _:budgetvalue wikibase:quantityAmount ?amount;
                  wikibase:quantityUnit / p:P2284 / psv:P2284 [ wikibase:quantityAmount ?price ;
                                                                wikibase:quantityUnit wd:Q4916 ] .
    BIND ( ?amount * ?price AS ?budget )
    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; v3("?amount") v5("?budget"):::projected v2("?date"):::projected v1("?dpa"):::projected v4("?price") v6("?year") a2((" ")) a3((" ")) a1((" ")) a5((" ")) a6((" ")) a4((" ")) c15(["#91;AUTO_LANGUAGE#93;,en,de,fr"]):::literal c9(["wd:Q4916"]):::iri c3(["wd:Q55499415"]):::iri c13(["bd:serviceParam"]):::iri v1 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c3 v1 --"p:P2769"--> a2 a2 --"p:statement/value/P2769"--> a3 a2 --"p:qualifier/P585"--> v2 a3 --"wikibase:quantityAmount"--> v3 a4 --"wikibase:quantityAmount"--> v4 a4 --"wikibase:quantityUnit"--> c9 a3 --"wikibase:quantityUnit"--> a5 a5 --"p:P2284"--> a6 a6 --"p:statement/value/P2284"--> a4 bind0[/"?amount * ?price"/] v3 --o bind0 v4 --o bind0 bind0 --as--o v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end bind1[/"str(year-from-dateTime(?date))"/] v2 --o bind1 bind1 --as--o v6