what is the {earliest date} for {Manichaeism} has {located on terrain feature} as {Egypt} ?
Manichaeism was discovered in Egypt when?
Since when was Manichaeism found in Egypt?
SELECT ?b WHERE { resource:manichaeism property:located_on_terrain_feature ?a . ?a property:located_on_terrain_feature resource:Egypt . ?a property:earliest_date ?b }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q131165> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P706> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q202311> .
?statement <http://www.wikidata.org/entity/P1319> ?value. 
} 

SELECT ?value WHERE { wd:Q131165 p:P706 ?s . ?s ps:P706 wd:Q202311 . ?s pq:P1319 ?value}