What is {population} of {Caen} that is {point in time} is {1866-0-0} ?
In 1866 what was the population for Caen?
What was the population of Caen in 1866?
SELECT ?c WHERE { resource:Caen property:population ?w . ?w property:point_in_time ?k . ?w property:population ?c . FILTER ( CONTAINS ( YEAR ( ?k ) , '1866' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41185> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P585> <1866-0-0>
} 

SELECT ?obj WHERE { wd:Q41185 p:P1082 ?s . ?s ps:P1082 ?obj . ?s pq:P585 ?x filter(contains(YEAR(?x),'1866')) }