what is the {object has role} for {Aberdeen} has {located in the administrative territorial entity} as {Grampian} ?
As part of the regional government of Grampian, how did Aberdeen contribute?
What role did Aberdeen play when it was a part of the regional government Grampian?
SELECT ?c WHERE { ?r property:located_in_the_administrative_territorial_entity resource:Grampian . resource:Aberdeen property:located_in_the_administrative_territorial_entity ?r . ?r property:object_has_role ?c }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q36405> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1542364> .
?statement <http://www.wikidata.org/entity/P3831> ?value. 
} 

SELECT ?value WHERE { wd:Q36405 p:P131 ?s . ?s ps:P131 wd:Q1542364 . ?s pq:P3831 ?value}