What is {population} of {Piraeus} that is {point in time} is {2001-0-0} ?
Identify the population of Piraeus in 2001.
What was the population of Piraeus in 2001?
SELECT ?d WHERE { ?e property:population ?d . resource:Piraeus property:population ?e . FILTER ( CONTAINS ( YEAR ( ?m ) , '2001' ) ) . ?e property:point_in_time ?m }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q58976> .
?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> <2001-0-0>
} 

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