query-6a4e8e960d7620b732d0534fd26a5251
Eligible voters in voting rounds is listed as not applying to voting rounds, but should be set on the 'parent' item instead. However, it is not uncommon for each voting round to have a different number: (P1867)eligible voters
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item1 ?item1Label ?voters1 ?parent ?parentLabel ?item2 ?item2Label ?voters2
WHERE {
?item1 wdt:P31 wd:Q24097670 ; wdt:P361 ?parent ; wdt:P1867 ?voters1 .
?item2 wdt:P31 wd:Q24097670 ; wdt:P361 ?parent ; wdt:P1867 ?voters2 .
FILTER (?voters1 > ?voters2)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item1"):::projected
v5("?item2"):::projected
v4("?parent"):::projected
v1("?voters1"):::projected
v2("?voters2"):::projected
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q24097670"]):::iri
f0[["?voters1 > ?voters2"]]
f0 --> v1
f0 --> v2
v3 --"wdt:P31"--> c2
v3 --"wdt:P361"--> v4
v3 --"wdt:P1867"--> v1
v5 --"wdt:P31"--> c2
v5 --"wdt:P361"--> v4
v5 --"wdt:P1867"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end