which book is from the genre of fictional and historical mystery?
Entity Entity Entity Entity Entity Entity Entity Entity
m.03mgm7g m.027fzw9 m.04zw9ny m.019gpb m.04t12cx m.071dvw m.03gxn6v m.0282s01
Sovereign The Talisman Ring A German Requiem The Name of the Rose Shinjū Death Comes as the End The Bride of Newgate Gallows Thief
class entity entity
book.book m.02xlf m.0py65
book.book media_common.literary_genre media_common.literary_genre
Book fictional Historical mystery
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.02xlf } 
VALUES ?x2 { :m.0py65 } 
?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.02xlf) (JOIN (R media_common.literary_genre.books_in_this_genre) m.0py65)))