What is the {religious text} for {present in work} of {David}
What is the devout content given by the scriptural figure David?
What is the religious text provided by the biblical figure David?
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:religious_text . resource:David property:present_in_work ?u }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41370> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1441> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q179461> } 
 select distinct ?obj where { wd:Q41370 wdt:P1441 ?obj . ?obj wdt:P31 wd:Q179461 } 
Epistle to the Hebrews 1 Kings Ecclesiastes Second Epistle to Timothy Jeremiah Book of Ezra Book of Nehemiah Book of Tobit Sirach Books of Chronicles Amos Ezekiel Book of Zechariah Book of Hosea 2 Chronicles 2 Kings 1 Chronicles Proverbs Acts of the Apostles Psalms Epistle to the Romans Song of Songs