what is the {subject has role} for {Cindy Sherman} has {member of} as {Royal Academy of Arts} ?
Cindy Sherman played what role in Royal Academy of Arts
What role did Cindy Sherman play in Royal Academy of Arts?
SELECT ?r WHERE { ?p property:subject_has_role ?r . ?p property:member_of resource:Royal_Academy_of_Arts . resource:Cindy_Sherman property:member_of ?p }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q229455> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P463> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q270920> .
?statement <http://www.wikidata.org/entity/P2868> ?value. 
} 

SELECT ?value WHERE { wd:Q229455 p:P463 ?s . ?s ps:P463 wd:Q270920 . ?s pq:P2868 ?value}