query-c186edbd2be08192603f35f792ac8cc7
TODO
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 (sum(?votes_) as ?votes) WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?election wdt:P361 wd:Q30594119.
?election wdt:P1001 ?place.
?election p:P726 ?stat .
VALUES ?party {wd:Q85843184 wd:Q15630787}.
?stat ps:P726 ?party .
?stat pq:P1111 ?votes_ .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?election")
v4("?party")
v2("?place")
v3("?stat")
v6("?votes")
v5("?votes_"):::projected
c6(["wd:Q30594119"]):::iri
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:direct/P361"--> c6
v1 --"p:direct/P1001"--> v2
v1 --"p:P726"--> v3
bind0[/VALUES ?party/]
bind0-->v4
bind00(["wd:Q85843184"])
bind00 --> bind0
bind01(["wd:Q15630787"])
bind01 --> bind0
v3 --"p:statement/P726"--> v4
v3 --"p:qualifier/P1111"--> v5
bind2[/"sum(?votes_)"/]
v5 --o bind2
bind2 --as--o v6