query-753ed12ee4668d8f69f2749b0c058f60
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 ?election ?electionLabel ?place ?placeLabel ?party ?partyLabel ?votes WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
VALUES ?party {wd:Q85843184}
?election wdt:P361 wd:Q30594119.
?election wdt:P1001 ?place.
?election p:P726 ?stat .
?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;
v2("?election"):::projected
v1("?party"):::projected
v3("?place"):::projected
v4("?stat")
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
bind0[/VALUES ?party/]
bind0-->v1
bind00(["wd:Q85843184"])
bind00 --> bind0
v2 --"p:direct/P361"--> c6
v2 --"p:direct/P1001"--> v3
v2 --"p:P726"--> v4
v4 --"p:statement/P726"--> v1
v4 --"p:qualifier/P1111"--> v5