what is the {character role} for {30 Rock} has {cast member} as {Alec Baldwin} ?
Which is the character portrayed in 30 Rock by cast member Alec Baldwin?
Who is the character portrayed in 30 Rock by cast member Alec Baldwin portray?
SELECT ?j WHERE { resource:30_Rock property:cast_member ?f . ?f property:cast_member resource:Alec_Baldwin . ?f property:character_role ?j }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q189350> .
?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/Q170572> .
?statement <http://www.wikidata.org/entity/P453> ?value. 
} 

SELECT ?value WHERE { wd:Q189350 p:P161 ?s . ?s ps:P161 wd:Q170572 . ?s pq:P453 ?value}