Question: What has Carl Sagan written his books about?
SPARQL query: SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/author> <http://dbpedia.org/resource/Carl_Sagan> . ?x <http://dbpedia.org/property/subject> ?uri  . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Book>}
Answer: The subjects of the books authored by Carl Sagan are [Human evolution, Intelligence, Evolutionary history of life, Relationship between religion and science, Extraterrestrial intelligence, Comets, Cosmos, Brain, Intellect, Paul Broca, Outline of space science].