What is {population} of {Tehran} that is {point in time} is {2006-0-0} ?
Tell me the population of Tehran in 2006.
What was the population of Tehran in 2006?
SELECT ?p WHERE { FILTER ( CONTAINS ( YEAR ( ?c ) , '2006' ) ) . ?r property:population ?p . ?r property:point_in_time ?c . resource:Tehran property:population ?r }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3616> .
?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> <2006-0-0>
} 

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