query-88bb1b7bf608dbc9461b0f9829cf2ec7
[Housecleaning] Show me all members from outside Germany (or NULL)!List should be empty (?)
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 ?a ?aLabel ?p ?pLabel
WHERE {
{
SELECT ?a ?p
WHERE {
?p wdt:P463 wd:Q105757481 .
FILTER NOT EXISTS {?p wdt:P17 wd:Q183 .}
OPTIONAL {
?p wdt:P131+ ?a .
?a wdt:P31 wd:Q1221156 .
}
}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" . }
}
ORDER BY ASC(?aLabel) ASC(?pLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?a"):::projected
v1("?aLabel"):::projected
v3("?p"):::projected
v2("?pLabel"):::projected
c9(["bd:serviceParam"]):::iri
c4(["wd:Q105757481"]):::iri
c7(["wd:Q1221156"]):::iri
c2(["wd:Q183"]):::iri
c11(["de,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P17"--> e0c2
e0v1("?p"):::projected
e0c2(["wd:Q183"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v3
f0 --> c1
f0 --> c2
v3 --"wdt:P17"--> c2
v3 --"wdt:P463"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P131".-> v4
v4 --"wdt:P31"--> c7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end