SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/restingPlace> <http://dbpedia.org/resource/Madrid> . ?uri <http://dbpedia.org/property/author> ?x . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Book>}
What are the books written by authors who died in Madrid?
SELECT DISTINCT ?b WHERE { ?b property:author ?z . ?z property:resting_place resource:Madrid . ?b rdf:type ontology:Book }
Don Quixote, La Galatea, Los trabajos de Persiles y Sigismunda, Novelas ejemplares
The books authored by people buried in Madrid are [Don Quixote, La Galatea, Los trabajos de Persiles y Sigismunda, Novelas ejemplares].
Books written by people buried in Madrid [Don Quixote, La Galatea, Los trabajos de Persiles y Sigismunda, Novelas eplares].