what is the {point in time} for {Kenitra} has {number of households} as {54158.0} ?
During what time period were the households in Kenitria 54158.0?
When was the number of households in Kenitra 54158.0?
SELECT ?f WHERE { ?c property:number_of_households ?w . FILTER ( ?w = 54158.0 ) . ?c property:point_in_time ?f . resource:Kenitra property:number_of_households ?c }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q478207> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1538> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <54158.0> .
?statement <http://www.wikidata.org/entity/P585> ?value. 
} 

SELECT ?value WHERE { wd:Q478207 p:P1538 ?s . ?s ps:P1538 ?x filter(contains(?x , '54158.0')) . ?s pq:P585 ?value}