query-d05577bdd27165461d1097c90b772d06
[Housecleaning] Show detailed info of previous query.To identify those members that are not attributed to a Bundesland
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 ?a ?aLabel ?p ?pLabel
WHERE {
{
SELECT ?a ?p
WHERE {
?p wdt:P463 wd:Q105757481 .
OPTIONAL {
?p wdt:P159/wdt:P131*|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
a1((" "))
c8(["bd:serviceParam"]):::iri
c2(["wd:Q105757481"]):::iri
c6(["wd:Q1221156"]):::iri
c10(["de,en"]):::literal
v3 --"wdt:P463"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 -."wdt:P131".-> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P159"--> a1
a1 --"wdt:P131"--> v4
end
union0r <== or ==> union0l
end
v4 --"wdt:P31"--> c6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end