query-12ed4076703fb59d5ae93a23ff3dd820
TODO
Use at
- https://query.wikidata.org/sparql
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/>
SELECT * {
wd:Q658061 wdt:P40+ ?item.
MINUS {
wd:Q658061 wdt:P40* ?adoptee_parent.
?adoptee_parent p:P40 ?stmt .
?stmt pq:P1039 wd:Q25858158 .
?stmt ps:P40 ?adoptee .
?adoptee wdt:P40* ?item .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?adoptee"):::projected
v2("?adoptee_parent"):::projected
v1("?item"):::projected
v3("?stmt"):::projected
c5(["wd:Q25858158"]):::iri
c1(["wd:Q658061"]):::iri
c1 --"p:direct/P40"--> v1
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
c1 --"p:direct/P40"--> v2
v2 --"p:P40"--> v3
v3 --"p:qualifier/P1039"--> c5
v3 --"p:statement/P40"--> v4
v4 --"p:direct/P40"--> v1
end