what is the {point in time} for {Valencia} has {population} as {785732.0} ?
Valencia had once a population of 785,732. What year was it?
When did Valencia have a population of 785,732?
SELECT ?g WHERE { resource:Valencia property:population ?n . ?n property:point_in_time ?g . FILTER ( CONTAINS ( ?h , '785732.0' ) ) . ?n property:population ?h }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8818> .
?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> <785732.0> .
?statement <http://www.wikidata.org/entity/P585> ?value. 
} 

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