what is the {subject has role} for {Carl Ritter} has {member of} as {Royal Swedish Academy of Letters, History and Antiquities} ?
What is Role of Carl Ritter in Royal Swedish Academy of Letters, History and Antiques?
SELECT ?value WHERE { wd:Q29297 p:P463 ?s . ?s ps:P463 wd:Q1792159 . ?s pq:P2868 ?value}
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. 
} 

What role did Carl Ritter played in Royal Swedish Academy of Letters, History and Antiques?