query-208b514d9e6d89f3ae17966324f45ab2

rq turtle/ttl

People whose place of death (P20) is in a Nazi concentration camp (Q328468), but died outside the existence of Nazi Germany (Q7318)

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 ?person ?personLabel ?deathday WHERE {
  wd:Q7318 wdt:P571 ?start.
  wd:Q7318 wdt:P576 ?end.
  ?person wdt:P570 ?deathday.
  ?person wdt:P20 ?camp.
  ?camp wdt:P31 wd:Q328468.
  FILTER (!((?deathday > ?start) && (?deathday < ?end))).
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?deathday

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?camp") v1("?deathday"):::projected v3("?end") v4("?person"):::projected v2("?start") c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c7(["wd:Q328468"]):::iri c1(["wd:Q7318"]):::iri f0[["not ?deathday > ?start?deathday < ?end"]] f0 --> v1 f0 --> v2 f0 --> v3 c1 --"wdt:P571"--> v2 c1 --"wdt:P576"--> v3 v4 --"wdt:P570"--> v1 v4 --"wdt:P20"--> v5 v5 --"wdt:P31"--> c7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end