query-ed5d1f99977aae5d0e92d052869ddc3b
Data Gamer
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?person ?personLabel ?election ?electionLabel
WHERE
{
?election wdt:P31 wd:Q22275878 . # ?election is a Cypriot legislative election
?person p:P39 / pq:P2715 ?election .
MINUS { ?person wdt:P3602 ?election . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],el,en". }
FILTER (?election = wd:Q3566196) # Only 1976 Cypriot legislative election
}
Query found at
- https://www.wikidata.org/wiki/User:Data_Gamer/Queries
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2020/07
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?election"):::projected
v2("?person"):::projected
a1((" "))
c10(["#91;AUTO_LANGUAGE#93;,el,en"]):::literal
c8(["bd:serviceParam"]):::iri
c3(["wd:Q22275878"]):::iri
f0[["?election = 'wd:Q3566196'"]]
f0 --> v1
v1 --"p:direct/P31"--> c3
v2 --"p:P39"--> a1
a1 --"p:qualifier/P2715"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"p:direct/P3602"--> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end