what is the {character role} for {The Office} has {cast member} as {James Spader} ?
Jame Spader played what character in "The Office"?
What role did James Spader play in "The Office"?
SELECT ?k WHERE { ?a property:character_role ?k . resource:The_Office property:cast_member ?a . ?a property:cast_member resource:James_Spader }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23831> .
?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/Q296928> .
?statement <http://www.wikidata.org/entity/P453> ?value. 
} 

SELECT ?value WHERE { wd:Q23831 p:P161 ?s . ?s ps:P161 wd:Q296928 . ?s pq:P453 ?value}