SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/author> <http://dbpedia.org/resource/Terry_Pratchett> . ?x <http://dbpedia.org/ontology/nonFictionSubject> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Book>}
What are the non-fiction topics in the books whose authors is Terry Pratchett?
SELECT DISTINCT ?k WHERE { ?y property:author resource:Terry_Pratchett . ?y property:non_fiction_subject ?k . ?y rdf:type ontology:Book }
answer
The non-fiction subjects in the books authored by Terry Pratchett are [answer].
Books non-fiction in Terry Pratchett's books [answer].
The non-fiction subject of the books whose authors is him are [answer].
The non-fiction book of which he is the author is [answer].