What is {cast member} of {The X-Files} that is {character role} is {Dana Scully} ?
In the X-Files, what actor played Dana Scully?
Which actor played Dana Scully in The X-Files?
SELECT ?j WHERE { ?b property:cast_member ?j . ?b property:character_role resource:Dana_Scully . resource:The_X-Files property:cast_member ?b }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2744> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P161> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P453> <http://wikidata.dbpedia.org/resource/Q2741>
} 

SELECT ?obj WHERE { wd:Q2744 p:P161 ?s . ?s ps:P161 ?obj . ?s pq:P453 wd:Q2741 }