query-b8dd0091222a84f311c5a6da7554897e
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 ?iteme ?itemeLabel ?condamnationLabel ?decesLabel
WHERE {
?iteme wdt:P31 wd:Q5 ;
wdt:P21 wd:Q6581072.
OPTIONAL {
?iteme wdt:P1399 wd:Q337935.
?iteme wdt:P1399 ?condamnation
}
OPTIONAL {
?iteme wdt:P509 wd:Q468455.
?iteme wdt:P509 ?deces
}
FILTER(BOUND(?deces)|| BOUND(?condamnation)).
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?condamnation")
v1("?deces")
v3("?iteme"):::projected
c10(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c8(["wd:Q468455"]):::iri
c4(["wd:Q6581072"]):::iri
c12(["fr"]):::literal
c6(["wd:Q337935"]):::iri
f0[["(bound(?deces) || bound(?condamnation))"]]
f0 --> v1
f0 --> v2
v3 --"wdt:P31"--> c2
v3 --"wdt:P21"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P1399".-> c6
v3 --"wdt:P1399"--> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P509".-> c8
v3 --"wdt:P509"--> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end