query-9a9585efdce28538fca57edbd830e237
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 ?item ?itemLabel ?denoted ?denotedLabel WHERE{
?item wdt:P31/wdt:P279* wd:Q11424;
(wdt:P921|wdt:P138) ?denoted;
wdt:P577 ?published.
?denoted wdt:P31 wd:Q5;
wdt:P569 ?birth.
OPTIONAL{
?denoted wdt:P570 ?death .
}
FILTER(?death > ?published || !bound(?death))
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?birth")
v1("?death")
v4("?denoted"):::projected
v3("?item"):::projected
v2("?published")
a1((" "))
c13(["en"]):::literal
c11(["bd:serviceParam"]):::iri
c7(["wd:Q5"]):::iri
c3(["wd:Q11424"]):::iri
f0[["(?death > ?published || not bound(?death))"]]
f0 --> v1
f0 --> v2
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P138"--> v4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P921"--> v4
end
union0r <== or ==> union0l
end
v3 --"wdt:P577"--> v2
v4 --"wdt:P31"--> c7
v4 --"wdt:P569"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P570".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end