query-28e93c283d7d9760a9f6a80b05904c7c
TODO
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 DISTINCT ?person ?personLabel ?personDescription ?birthplaceLabel ?dob ?dod ?image WHERE {
{
SELECT ?person ?birthplace ?dob ?dod (SAMPLE(?img) AS ?image) WHERE {
?person wdt:P27 wd:Q30 ;
wdt:P19/wdt:P131* wd:Q771 ;
wdt:P19 ?birthplace ;
wdt:P569 ?dob ;
OPTIONAL {?person wdt:P18 ?img .}
OPTIONAL {?person wdt:P570 ?dod .}
MINUS {?person wdt:P570 [] .}
FILTER (YEAR(?dob) > 1919)
} GROUP BY ?person ?birthplace ?dod ?dob
}
?person wdt:P106/wdt:P279* wd:Q482980 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en"}
}
ORDER BY ASC (?dob)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?birthplace")
v1("?dob"):::projected
v5("?dod"):::projected
v6("?image"):::projected
v4("?img")
v2("?person"):::projected
a2((" "))
a1((" "))
a3((" "))
c3(["wd:Q30"]):::iri
c14(["bd:serviceParam"]):::iri
c12(["wd:Q482980"]):::iri
c16(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q771"]):::iri
f0[["year-from-dateTime(?dob) > '1919^^xsd:integer'"]]
f0 --> v1
v2 --"wdt:P27"--> c3
v2 --"wdt:P19"--> a1
a1 --"wdt:P131"--> c6
v2 --"wdt:P19"--> v3
v2 --"wdt:P569"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P570".-> v5
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P570"--> a2
end
bind3[/"sample(?img)"/]
v4 --o bind3
bind3 --as--o v6
v2 --"wdt:P106"--> a3
a3 --"wdt:P279"--> c12
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end