What is {population} of {The Gambia} that is {point in time} is {2009-0-0} ?
About of the Nation of Gambia: What was its population in 2009?
What was the population of Gambia in the year 2009?
SELECT ?b WHERE { ?c property:population ?b . resource:The_Gambia property:population ?c . FILTER ( CONTAINS ( YEAR ( ?h ) , '2009' ) ) . ?c property:point_in_time ?h }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1005> .
?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> <2009-0-0>
} 

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