query-ba4c85d1012d339ee3b8e616e1fbf007

rq turtle/ttl

wd:Q468455 (death by burning) or wd:Q337935 (necromancy)Hi, I should want all women whom death by burning or by necromancy. I do :

Use at

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
WHERE {
  ?iteme wdt:P31 wd:Q5 ;
          wdt:P21 wd:Q6581072.
  OPTIONAL {
    ?iteme wdt:P1399 ?condamnation. 
    ?condamnation wdt:P31 wd:Q337935.
  }
  OPTIONAL {
    ?iteme wdt:P509 ?deces. 
    ?deces wdt:P31 wd:Q468455.
  }
  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".-> v2 v2 --"wdt:P31"--> c6 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P509".-> v1 v1 --"wdt:P31"--> c8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end