SELECT DISTINCT COUNT(?uri) WHERE { ?x <http://dbpedia.org/ontology/restingPlace> <http://dbpedia.org/resource/Madrid> . ?uri <http://dbpedia.org/ontology/author> ?x . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Book>}
How many books are there whose author's tomb is in Madrid?
SELECT DISTINCT COUNT ( ?o ) WHERE { ?o property:author ?o . ?o rdf:type ontology:Book . ?o property:resting_place resource:Madrid }
4
There are [4] books authored by people buried in Madrid.
There are [4] books written by people buried in Madrid.
There are [4] books are there whose authors's resting place is the country .
There are [4] books whose authors have their places of residence in the country.