query-9d3cf643aa8437f975041216fb3e6789
Propertiesinstance of (P31)country of citizenship (P27)family name (P734)date of birth (P569)date of death (P570)occupation (P106)
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 ?item ?itemLabel ?birthdate ?deathdate ?nationalityLabel ?occupationLabel ?itemDescription WHERE {
?item wdt:P31 wd:Q5;
wdt:P27 wd:Q31.
FILTER(?deathdate < "1830-01-01T00:00:00Z"^^xsd:dateTime)
OPTIONAL { ?item wdt:P734 ?lastname. }
OPTIONAL { ?item wdt:P569 ?birthdate. }
OPTIONAL { ?item wdt:P570 ?deathdate. }
OPTIONAL { ?item wdt:P27 ?nationality. }
OPTIONAL { ?item wdt:P106 ?occupation. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,en,fr,de,es,it". }
}
ORDER BY (?itemLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?birthdate"):::projected
v2("?deathdate"):::projected
v3("?item"):::projected
v1("?itemLabel"):::projected
v4("?lastname")
v6("?nationality")
v7("?occupation")
c13(["nl,en,fr,de,es,it"]):::literal
c5(["wd:Q31"]):::iri
c11(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
f0[["?deathdate < '1830-01-01T00:00:00Z^^xsd:dateTime'"]]
f0 --> v2
v3 --"wdt:P31"--> c3
v3 --"wdt:P27"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P734".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P569".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P570".-> v2
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P27".-> v6
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P106".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end