what is the {subject has role} for {William Archibald Dunning} has {member of} as {American Historical Association} ?
When William Archibald was a member of the American Historical Association, what was his position during that time?
What is the position of William Archibald Dunning as a member of the American Historical Association?
SELECT ?f WHERE { ?n property:member_of resource:American_Historical_Association . ?n property:subject_has_role ?f . resource:William_Archibald_Dunning property:member_of ?n }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8004524> .
?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/Q464915> .
?statement <http://www.wikidata.org/entity/P2868> ?value. 
} 

SELECT ?value WHERE { wd:Q8004524 p:P463 ?s . ?s ps:P463 wd:Q464915 . ?s pq:P2868 ?value}