query-ecc8e457e3224ea2cbb5f02699895dd1
Propertiesinstance of (P31)occupation (P106)subclass of (P279)date of birth (P569)date of death (P570)
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 ?human ?humanLabel ?date_of_birth ?date_of_death WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?human wdt:P31 wd:Q5.
?human wdt:P106 ?occupation.
?occupation wdt:P279* wd:Q901.
?human wdt:P569 ?born.
FILTER(?born >= "1900-01-01T00:00:00Z"^^xsd:dateTime)
OPTIONAL { ?human wdt:P569 ?date_of_birth. }
OPTIONAL { ?human wdt:P570 ?date_of_death. }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?born")
v4("?date_of_birth"):::projected
v5("?date_of_death"):::projected
v2("?human"):::projected
v3("?occupation")
c3(["bd:serviceParam"]):::iri
c10(["wd:Q901"]):::iri
c7(["wd:Q5"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?born >= '1900-01-01T00:00:00Z^^xsd:dateTime'"]]
f0 --> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end
v2 --"wdt:P31"--> c7
v2 --"wdt:P106"--> v3
v3 --"wdt:P279"--> c10
v2 --"wdt:P569"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P570".-> v5
end