query-ce6b01c1472714388022b4e1bf3d579d
Give me all consortia members that are not yet members of the association!
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 ?affiliationTypeLabel ?p ?pLabel
WHERE
{
?p wdt:P31 wd:Q98270496 .
?p wdt:P31 wd:Q98270496 .
?p p:P1416 ?statement .
?statement ps:P1416 ?w .
?statement pq:P3831 ?affiliationType .
FILTER NOT EXISTS {?w wdt:P463 wd:Q105757481 .}
#FILTER NOT EXISTS {?w wdt:P463+ wd:Q105757481 .}
#FILTER NOT EXISTS {?w wdt:P361/wdt:P463 wd:Q105757481 .}
#FILTER NOT EXISTS {?w wdt:P749/wdt:P463 wd:Q105757481 .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" . }
} ORDER BY DESC(?affiliationTypeLabel) ASC(?wLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?affiliationType")
v1("?affiliationTypeLabel"):::projected
v4("?p"):::projected
v5("?statement")
v3("?w"):::projected
v2("?wLabel"):::projected
c9(["bd:serviceParam"]):::iri
c2(["wd:Q105757481"]):::iri
c11(["de,en"]):::literal
c4(["wd:Q98270496"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P463"--> e0c2
e0v1("?w"):::projected
e0c2(["wd:Q105757481"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v3
f0 --> c1
f0 --> c2
v3 --"p:direct/P463"--> c2
v4 --"p:direct/P31"--> c4
v4 --"p:direct/P31"--> c4
v4 --"p:P1416"--> v5
v5 --"p:statement/P1416"--> v3
v5 --"p:qualifier/P3831"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end