query-87b7b990ded78fd1514fac4d86acae25
]reply[14:52, 23 February 2018 (UTC) Jura--- Looks like some descendants include people born before the subject. I'm not sure how to identify the incorrect links.
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
?subject ?subjectLabel ?dob
?relative ?relativeLabel ?dob2
?parent ?parentLabel ?dob3
{
BIND( wd:Q57224 as ?subject )
?subject wdt:P40+ ?relative .
?subject wdt:P569 ?dob .
?relative wdt:P569 ?dob2 .
FILTER (?dob > ?dob2 )
?parent wdt:P40 ?relative .
?parent wdt:P569 ?dob3 .
FILTER (?dob3 > ?dob2 )
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?dob"):::projected
v2("?dob2"):::projected
v1("?dob3"):::projected
v6("?parent"):::projected
v5("?relative"):::projected
v4("?subject"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?dob3 > ?dob2"]]
f0 --> v1
f0 --> v2
f1[["?dob > ?dob2"]]
f1 --> v3
f1 --> v2
bind2[/"'wd:Q57224'"/]
bind2 --as--o v4
v4 --"wdt:P40"--> v5
v4 --"wdt:P569"--> v3
v5 --"wdt:P569"--> v2
v6 --"wdt:P40"--> v5
v6 --"wdt:P569"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end