what is the {character role} for {Neighbours} has {cast member} as {Ryan Moloney} ?
Who played the character Ryan Moloney in Neighbours?
What { character role } has { cast member } as { Ryan Moloney } for { Neighbours }?
SELECT ?u WHERE { ?l property:cast_member resource:Ryan_Moloney . ?l property:character_role ?u . resource:Neighbours property:cast_member ?l }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q908708> .
?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> <http://wikidata.dbpedia.org/resource/Q5296779> .
?statement <http://www.wikidata.org/entity/P453> ?value. 
} 

SELECT ?value WHERE { wd:Q908708 p:P161 ?s . ?s ps:P161 wd:Q5296779 . ?s pq:P453 ?value}