query-2017c1db4a2c17715e4d3c7237a7d3b3
descendants of William the Conqueror SELECT ?human ?humanLabel ?sexLabel ?fatherLabel ?motherLabel ?famLabel ?dob ?pobLabel ?dod ?podLabel ?geni WHERE { wd:Q37594 wdt:P40/wdt:P40* ?human . ?human wdt:P31 wd:Q5 . OPTIONAL{?human wdt:P21 ?sex .} OPTIONAL{?human wdt:P22 ?father .} OPTIONAL{?human wdt:P25 ?mother .} OPTIONAL{?human wdt:P53 ?fam .} OPTIONAL{?human wdt:P569 ?dob .} OPTIONAL{?human wdt:P19 ?pob .} OPTIONAL{?human wdt:P570 ?dod .} OPTIONAL{?human wdt:P20 ?pod .} OPTIONAL{?human wdt:P2600 ?geni .} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } }
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#>
# descendants of William the Conqueror
SELECT ?human ?humanLabel ?sexLabel ?fatherLabel ?motherLabel ?famLabel ?dob ?pobLabel ?dod ?podLabel ?geni
WHERE
{
wd:Q37594 wdt:P40/wdt:P40* ?human .
?human wdt:P31 wd:Q5 .
OPTIONAL{?human wdt:P21 ?sex .}
OPTIONAL{?human wdt:P22 ?father .}
OPTIONAL{?human wdt:P25 ?mother .}
OPTIONAL{?human wdt:P53 ?fam .}
OPTIONAL{?human wdt:P569 ?dob .}
OPTIONAL{?human wdt:P19 ?pob .}
OPTIONAL{?human wdt:P570 ?dod .}
OPTIONAL{?human wdt:P20 ?pod .}
OPTIONAL{?human wdt:P2600 ?geni .}
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;
v6("?dob"):::projected
v8("?dod"):::projected
v5("?fam")
v3("?father")
v10("?geni"):::projected
v1("?human"):::projected
v4("?mother")
v7("?pob")
v9("?pod")
v2("?sex")
a1((" "))
c15(["bd:serviceParam"]):::iri
c1(["wd:Q37594"]):::iri
c4(["wd:Q5"]):::iri
c17(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c1 --"wdt:P40"--> a1
a1 --"wdt:P40"--> v1
v1 --"wdt:P31"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P21".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P22".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P25".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P53".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P569".-> v6
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P19".-> v7
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P570".-> v8
end
subgraph optional7["(optional)"]
style optional7 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P20".-> v9
end
subgraph optional8["(optional)"]
style optional8 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2600".-> v10
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c15 --"wikibase:language"--> c17
end