query-f7b28632d878c91c4a83ac6a3b800eb6

rq turtle/ttl

Actors of German 2015 movies who died before 2010

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#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>

SELECT DISTINCT ?cast ?castLabel ?death  WHERE {
  ?film wdt:P31/wdt:P279* wd:Q11424 .
  ?film p:P577 ?release_statement .
  ?release_statement v:P577 ?release . FILTER(year(?release)=2015) .
  ?release_statement pq:P291 wd:Q183 .
  ?film wdt:P161 ?cast .
  ?cast wdt:P570 ?death FILTER(year(?death)<2010)
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "de" .
  }
} ORDER BY ?death ?cast

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?cast"):::projected v1("?death"):::projected v4("?film") v3("?release") v5("?release_statement") a1((" ")) c15(["de"]):::literal c13(["bd:serviceParam"]):::iri c9(["wd:Q183"]):::iri c5(["wd:Q11424"]):::iri f0[["year-from-dateTime(?death) < '2010^^xsd:integer'"]] f0 --> v1 f1[["year-from-dateTime(?release) = '2015^^xsd:integer'"]] f1 --> v3 v4 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c5 v4 --"p:P577"--> v5 v5 --"p:statement/P577"--> v3 v5 --"p:qualifier/P291"--> c9 v4 --"p:direct/P161"--> v2 v2 --"p:direct/P570"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end