what is the {character role} for {Twin Peaks} has {cast member} as {Michael Ontkean} ?
Who did Michael Ontkean play in Twin Peaks?
What character in Twin Peaks was played by Michael Ontkean?
SELECT ?k WHERE { ?b property:character_role ?k . ?b property:cast_member resource:Michael_Ontkean . resource:Twin_Peaks property:cast_member ?b }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2085> .
?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/Q1343162> .
?statement <http://www.wikidata.org/entity/P453> ?value. 
} 

SELECT ?value WHERE { wd:Q2085 p:P161 ?s . ?s ps:P161 wd:Q1343162 . ?s pq:P453 ?value}