query-ef4125f268a37c2fd928b84375f4368b
Chain between two people
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#>
#defaultView:Graph
SELECT DISTINCT ?person2 ?person2Label ?person1 ?person1Label?p2birth WHERE {
wd:Q22092846 wdt:P184* ?person2.
?person1 wdt:P184* wd:Q3118446.
?person2 wdt:P184 ?person1;
wdt:P569 ?p2birth.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
} ORDER BY DESC(?p2birth)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?p2birth"):::projected
v3("?person1"):::projected
v2("?person2"):::projected
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q3118446"]):::iri
c1(["wd:Q22092846"]):::iri
c1 --"wdt:P184"--> v2
v3 --"wdt:P184"--> c3
v2 --"wdt:P184"--> v3
v2 --"wdt:P569"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end