What is {cast member} of {Ghostbusters} that is {character role} is {Janine Melnitz} ?
Who is the cast member in the movie, "Ghostbusters" where the character role was Janine Melnitz?
Who is {cast member} of {Ghostbusters} where {character role} is {Janine Melnitz} ?
SELECT ?k WHERE { ?s property:character_role resource:Janine_Melnitz . resource:Ghostbusters property:cast_member ?s . ?s property:cast_member ?k }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q108745> .
?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/Q1061977>
} 

SELECT ?obj WHERE { wd:Q108745 p:P161 ?s . ?s ps:P161 ?obj . ?s pq:P453 wd:Q1061977 }