what is the {object has role} for {Sydney} has {located in the administrative territorial entity} as {City of Sydney} ?
Which is the role played by City of Sydney located in the administrative territorial entity of Sydney?
What is the role played by City of Sydney which is located in the administrative territorial entity Sydney?
SELECT ?r WHERE { ?e property:object_has_role ?r . ?e property:located_in_the_administrative_territorial_entity resource:City_of_Sydney . resource:Sydney property:located_in_the_administrative_territorial_entity ?e }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3130> .
?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/Q1094194> .
?statement <http://www.wikidata.org/entity/P3831> ?value. 
} 

SELECT ?value WHERE { wd:Q3130 p:P131 ?s . ?s ps:P131 wd:Q1094194 . ?s pq:P3831 ?value}