what is the {subject has role} for {Carl Ritter} has {member of} as {Royal Swedish Academy of Letters, History and Antiquities} ?
What role did Carl Ritter played in Royal Swedish Academy of Letters, History and Antiques?
What is Role of Carl Ritter in Royal Swedish Academy of Letters, History and Antiques?
SELECT ?a WHERE { ?z property:subject_has_role ?a . resource:Carl_Ritter property:member_of ?z . ?z property:member_of resource:Royal_Swedish_Academy_of_Letters,_History_and_Antiquities }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q29297> .
?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/Q1792159> .
?statement <http://www.wikidata.org/entity/P2868> ?value. 
} 

SELECT ?value WHERE { wd:Q29297 p:P463 ?s . ?s ps:P463 wd:Q1792159 . ?s pq:P2868 ?value}