what is the {character role} for {The Young and the Restless} has {cast member} as {Michael Damian} ?
Who did Michael Damian play in The Young and Restless?
What character role did Michael Damian play in The Young and Restless?
SELECT ?w WHERE { resource:The_Young_and_the_Restless property:cast_member ?s . ?s property:cast_member resource:Michael_Damian . ?s property:character_role ?w }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q849627> .
?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/Q3277020> .
?statement <http://www.wikidata.org/entity/P453> ?value. 
} 

SELECT ?value WHERE { wd:Q849627 p:P161 ?s . ?s ps:P161 wd:Q3277020 . ?s pq:P453 ?value}