What is {cast member} of {How I Met Your Mother} that is {character role} is {Naomi} ?
Who played Naomi in How I Met Your Mother?
SELECT ?obj WHERE { wd:Q147235 p:P161 ?s . ?s ps:P161 ?obj . ?s pq:P453 wd:Q50385706 }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q147235> .
?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/Q50385706>
} 

In How I Met Your Mother, who was the actor that starred at Naomi