What is {performer} of {Professor X} that is {of} is {X-Men: Apocalypse} ?
In X-Men Apocalypse who played Professor X?
What actor plays Professor X in the film X-Men: Apocalypse?
SELECT ?l WHERE { ?u property:performer ?l . ?u property:of resource:X-Men:_Apocalypse . resource:Professor_X property:performer ?u }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q838076> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P175> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P642> <http://wikidata.dbpedia.org/resource/Q17042878>
} 

SELECT ?obj WHERE { wd:Q838076 p:P175 ?s . ?s ps:P175 ?obj . ?s pq:P642 wd:Q17042878 }