What is {cast member} of {The Hitchhiker's Guide to the Galaxy} that is {character role} is {Ford Prefect} ?
In The Hitchhiker's Guide to the Galaxy, which cast member played the role of Ford Perfect?
Which cast member from The Hitchhiker's Guide to the Galaxy played the role of Ford Prefect?
SELECT ?p WHERE { ?e property:character_role resource:Ford_Prefect . resource:The_Hitchhiker's_Guide_to_the_Galaxy property:cast_member ?e . ?e property:cast_member ?p }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3521267> .
?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/Q928321>
} 

SELECT ?obj WHERE { wd:Q3521267 p:P161 ?s . ?s ps:P161 ?obj . ?s pq:P453 wd:Q928321 }