query-8f190b9f2b15fcd93e271657a3a855fe
Propertiesinstance of (P31)occupation (P106)subclass of (P279)place of birth (P19)country (P17)work location (P937)residence (P551)date of death (P570)copyright representative (P6275)
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 DISTINCT ?item ?itemLabel WHERE {
?item wdt:P31 wd:Q5.
{ ?item (wdt:P106/wdt:P279*) wd:Q3391743. }
{
?item wdt:P19 ?pob.
?pob wdt:P17 wd:Q55.
}
UNION
{
?item wdt:P937 ?pow.
?pow wdt:P17 wd:Q55.
}
UNION
{
?item wdt:P551 ?por.
?por wdt:P17 wd:Q55.
}
UNION
{
?item wdt:P937 ?pod.
?pod wdt:P17 wd:Q55.
}
?item wdt:P570 ?death .
FILTER (?death < "1949-01-01T00:00:00Z"^^xsd:dateTime ) .
FILTER (?death >= "1939-01-01T00:00:00Z"^^xsd:dateTime ) .
MINUS {?item wdt:P6275 wd:Q71887839}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?death")
v2("?item"):::projected
v3("?pob")
v6("?pod")
v5("?por")
v4("?pow")
a1((" "))
c15(["wd:Q71887839"]):::iri
c7(["wd:Q3391743"]):::iri
c10(["wd:Q55"]):::iri
c17(["bd:serviceParam"]):::iri
c4(["wd:Q5"]):::iri
c19(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?death >= '1939-01-01T00:00:00Z^^xsd:dateTime'"]]
f0 --> v1
f1[["?death < '1949-01-01T00:00:00Z^^xsd:dateTime'"]]
f1 --> v1
v2 --"wdt:P31"--> c4
v2 --"wdt:P106"--> a1
a1 --"wdt:P279"--> c7
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P937"--> v6
v6 --"wdt:P17"--> c10
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P551"--> v5
v5 --"wdt:P17"--> c10
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P937"--> v4
v4 --"wdt:P17"--> c10
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P19"--> v3
v3 --"wdt:P17"--> c10
end
union0r <== or ==> union0l
end
v2 --"wdt:P570"--> v1
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P6275"--> c15
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c17 --"wikibase:language"--> c19
end