what is the {point in time} for {Sohag Governorate} has {population} as {3.12311e+06} ?
When did Sohag Governorate have a population of 3.12311e+06?
What { time point } has { population } as { 3.12311e+06 } for { Sohag Governorate }?
SELECT ?m WHERE { resource:Sohag_Governorate property:population ?o . ?o property:point_in_time ?m . FILTER ( ?z = 3.12311e+06 ) . ?o property:population ?z }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q30669> .
?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> <3.12311e+06> .
?statement <http://www.wikidata.org/entity/P585> ?value. 
} 

SELECT ?value WHERE { wd:Q30669 p:P1082 ?s . ?s ps:P1082 ?x filter(contains(?x , '3.12311e+06')) . ?s pq:P585 ?value}