What is {place of death} of {Al-Shafi‘i} that is {located in the administrative territorial entity} is {Egypt} ?
At what time did Al-Shafi'i die in Egypt?
Where in Egypt did Al-Shafi'i die?
SELECT ?t WHERE { resource:Al-Shafi‘i property:place_of_death ?f . ?f property:located_in_the_administrative_territorial_entity resource:Egypt . ?f property:place_of_death ?t }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q294281> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P20> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P131> <http://wikidata.dbpedia.org/resource/Q79>
} 

SELECT ?obj WHERE { wd:Q294281 p:P20 ?s . ?s ps:P20 ?obj . ?s pq:P131 wd:Q79 }