what is the {point in time} for {Trento} has {population} as {117185} ?
Trento had a population of 117,185 in what year?
When was Trento's population at 117185?
SELECT ?b WHERE { ?z property:population ?r . resource:Trento property:population ?z . ?z property:point_in_time ?b . FILTER ( ?r = 117185 ) }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3376> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1082> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <117185> .
?statement <http://www.wikidata.org/entity/P585> ?value. 
} 

SELECT ?value WHERE { wd:Q3376 p:P1082 ?s . ?s ps:P1082 ?x filter(contains(?x , '117185')) . ?s pq:P585 ?value}