What is the {deity} for {participant of} of {Sermon on the Mount}
What divinity is portrayed within the Sermon on the Mount
What deity is depicted in the Sermon on the Mount
SELECT DISTINCT ?d WHERE { ?d property:participant_in resource:Sermon_on_the_Mount . ?d rdf:type ontology:deity }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1344> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q51640> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q178885> } 
 select distinct ?sbj where { ?sbj wdt:P1344 wd:Q51640 . ?sbj wdt:P31 wd:Q178885 } 
Jesus