query-6dd4b6b6e6ae36f33f3dd2fc9c1efc6a
Propertiesinstance of (P31)sex or gender (P21)occupation (P106)subclass of (P279)family name (P734)date of birth (P569)date of death (P570)country of citizenship (P27)
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 ?item ?itemLabel ?lastnameLabel ?birthdate ?deathdate ?nationalityLabel ?itemDescription WHERE {
?item wdt:P31 wd:Q5 .
?item wdt:P21 wd:Q6581072 .
?item wdt:P106/wdt:P279* wd:Q901 .
optional { ?item wdt:P734 ?lastname . }
optional { ?item wdt:P569 ?birthdate . }
optional { ?item wdt:P570 ?deathdate . }
optional { ?item wdt:P27 ?nationality . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,en,fr,de,es,it,no" }
}
order by ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?birthdate"):::projected
v5("?deathdate"):::projected
v2("?item"):::projected
v1("?itemLabel"):::projected
v3("?lastname")
v6("?nationality")
a1((" "))
c15(["nl,en,fr,de,es,it,no"]):::literal
c4(["wd:Q6581072"]):::iri
c13(["bd:serviceParam"]):::iri
c7(["wd:Q901"]):::iri
c2(["wd:Q5"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P21"--> c4
v2 --"wdt:P106"--> a1
a1 --"wdt:P279"--> c7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P734".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P570".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P27".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end