query-b4a59ad829e172051dbb9e19b2c84400

rq turtle/ttl

Number of votes of a given party on an election by municipalityHello! I want to have the votes of a given party on an election by municipality. I'm quite stuck with the statements. Let's see if someone can help me:

Use at

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 bd: <http://www.bigdata.com/rdf#>
SELECT ?election ?electionLabel ?place ?placeLabel ?party WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?election wdt:P361 wd:Q30594119.
  ?election wdt:P1001 ?place.
  ?party ps:P1111 [wdt:P726 wd:Q85843184].
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?election"):::projected v3("?party"):::projected v2("?place"):::projected a1((" ")) c6(["wd:Q30594119"]):::iri c9(["wd:Q85843184"]):::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 --"wdt:P361"--> c6 v1 --"wdt:P1001"--> v2 a1 --"wdt:P726"--> c9 v3 --"ps:P1111"--> a1