which book is categorized in the alternate histories and historical novel genres?
Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.09q8cy m.09wrs0 m.05_71s m.0glnzt8 m.07f6xl m.0415spq m.09ws61 m.05c55mn m.040t6s m.03wj0jx
The Death of Kings The Gates of Rome The Valley of Horses The Land of Painted Caves The Field of Swords Days of Infamy series The Gods of War The Secret Magdalene Jonathan Strange & Mr Norrell The Berkut
class entity entity
book.book m.0mz2 m.0hwxm
book.book media_common.literary_genre media_common.literary_genre
Book alternate histories Historical novel
none none none
media_common.literary_genre.books_in_this_genre media_common.literary_genre.books_in_this_genre
Books In This Genre Books In This Genre
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :book.book . 
VALUES ?x1 { :m.0mz2 } 
VALUES ?x2 { :m.0hwxm } 
?x1 :media_common.literary_genre.books_in_this_genre ?x0 . 
?x2 :media_common.literary_genre.books_in_this_genre ?x0 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND book.book (AND (JOIN (R media_common.literary_genre.books_in_this_genre) m.0mz2) (JOIN (R media_common.literary_genre.books_in_this_genre) m.0hwxm)))