query-92816af364faa4299cc531c494699ebd

rq turtle/ttl

Propertiesinstance of (P31)sex or gender (P21)occupation (P106)date of death (P570)

Use at

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 ?occ ?occLabel WHERE
{
  ?item wdt:P31 wd:Q5 .
  ?item wdt:P21 wd:Q6581072.
  OPTIONAL {?item wdt:P106 ?occ}.
  ?item wdt:P570 ?time0 .
  FILTER((?time0 >= "1947-01-01T00:00:00Z"^^xsd:dateTime) && (?time0 <= "1948-01-01T00:00:00Z"^^xsd:dateTime))

   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; v2("?item"):::projected v3("?occ"):::projected v1("?time0") c10(["bd:serviceParam"]):::iri c4(["wd:Q5"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wd:Q6581072"]):::iri f0[["?time0 >= '1947-01-01T00:00:00Z^^xsd:dateTime'?time0 <= '1948-01-01T00:00:00Z^^xsd:dateTime'"]] f0 --> v1 v2 --"wdt:P31"--> c4 v2 --"wdt:P21"--> c6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P106".-> v3 end v2 --"wdt:P570"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end