query-5e2ec5906a055a10de7456c8e0b833d2
Give me all members that are not (co-)applicants!
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 DISTINCT ?w ?wLabel
WHERE
{
?w wdt:P463 wd:Q105757481 .
FILTER NOT EXISTS {
?p wdt:P31 wd:Q98270496 .
?p wdt:P31 wd:Q98270496 .
?p p:P1416 ?statement .
?statement ps:P1416 ?w .
{?statement pq:P3831 wd:Q54875338} UNION {?statement pq:P3831 wd:Q105906738}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" . }
} ORDER BY ASC(?wLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?p")
v3("?statement")
v4("?w"):::projected
v1("?wLabel"):::projected
c6(["wd:Q54875338"]):::iri
c9(["wd:Q105757481"]):::iri
c11(["bd:serviceParam"]):::iri
c7(["wd:Q105906738"]):::iri
c13(["de,en"]):::literal
c2(["wd:Q98270496"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P31"--> e0c2
e0v1 --"p:direct/P31"--> e0c2
e0v1 --"p:P1416"--> e0v2
e0v2 --"p:statement/P1416"--> e0v3
subgraph unione00[" Union "]
subgraph unione00l[" "]
style unione00l fill:#abf,stroke-dasharray: 3 3;
e0v2 --"p:qualifier/P3831"--> e0c7
end
subgraph unione00r[" "]
style unione00r fill:#abf,stroke-dasharray: 3 3;
e0v2 --"p:qualifier/P3831"--> e0c6
end
unione00r <== or ==> unione00l
end
e0v1("?p"):::projected
e0v2("?statement"):::projected
e0v3("?w"):::projected
e0c6(["wd:Q54875338"]):::iri
e0c7(["wd:Q105906738"]):::iri
e0c2(["wd:Q98270496"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> c2
f0 --> c3
f0 --> v3
f0 --> c4
f0 --> v4
f0 --> c5
f0 --> c6
f0 --> c7
v2 --"p:direct/P31"--> c2
v2 --"p:direct/P31"--> c2
v2 --"p:P1416"--> v3
v3 --"p:statement/P1416"--> v4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"p:qualifier/P3831"--> c7
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"p:qualifier/P3831"--> c6
end
union0r <== or ==> union0l
end
v4 --"p:direct/P463"--> c9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end