what is the {point in time} for {Kalmar Union} has {population} as {4000000} ?
On what date did the Kalmar Union have a population of 40000000?
When did the Kalmar Union have a population of 4000000?
SELECT ?p WHERE { resource:Kalmar_Union property:population ?h . ?h property:population ?r . FILTER ( ?r = 4000000 ) . ?h property:point_in_time ?p }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q62623> .
?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> <4000000> .
?statement <http://www.wikidata.org/entity/P585> ?value. 
} 

SELECT ?value WHERE { wd:Q62623 p:P1082 ?s . ?s ps:P1082 ?x filter(contains(?x , '4000000')) . ?s pq:P585 ?value}