What is {population} of {Bacolod} that is {point in time} is {2010-5-1} ?
Give me the population of Bacolod on May 5, 2010.
What was the population of Bacolod on May 5, 2010?
SELECT ?n WHERE { resource:Bacolod property:population ?y . ?y property:point_in_time ?d . FILTER ( CONTAINS ( YEAR ( ?d ) , '2010' ) ) . ?y property:population ?n }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5217> .
?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> <2010-5-1>
} 

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