SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/publisher> <http://dbpedia.org/resource/Random_House> . ?x <http://dbpedia.org/property/subject> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Book>}
Which genre of books are published by Random House?
SELECT DISTINCT ?t WHERE { ?d property:subject ?t . ?d rdf:type ontology:Book . ?d property:publisher resource:Random_House }
answer
The subjects of the books published by Random House are [answer].
The themes of the books published by Random House [answer].