what is the {character role} for {Batman} has {cast member} as {Burt Ward} ?
What character did Burt Ward play in Batman?
What character role did cast member Burt Ward play in Batman?
SELECT ?a WHERE { resource:Batman property:cast_member ?j . ?j property:cast_member resource:Burt_Ward . ?j property:character_role ?a }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1247201> .
?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/Q537747> .
?statement <http://www.wikidata.org/entity/P453> ?value. 
} 

SELECT ?value WHERE { wd:Q1247201 p:P161 ?s . ?s ps:P161 wd:Q537747 . ?s pq:P453 ?value}