query-389ecfe165e0b3af87aa6371e3c8a789
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 ?person ?personLabel ?dod ?fsID ?father ?fatherLabel
WHERE
{
?person wdt:P31 wd:Q5 . # is human
?person wdt:P27 wd:Q16 . # Canadian
?person wdt:P570 ?dod . # have a date of death
?person wdt:P2889 ?fsID . # family search ID
?person wdt:P22 ?father.
FILTER NOT EXISTS { ?father wdt:P2889 ?father_fsID }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?dod"):::projected
v1("?father"):::projected
v2("?father_fsID")
v5("?fsID"):::projected
v3("?person"):::projected
c5(["wd:Q16"]):::iri
c9(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,fr,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P2889"--> e0v2
e0v1("?father"):::projected
e0v2("?father_fsID"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P2889"--> v2
v3 --"wdt:P31"--> c3
v3 --"wdt:P27"--> c5
v3 --"wdt:P570"--> v4
v3 --"wdt:P2889"--> v5
v3 --"wdt:P22"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end