what book belongs in the genre novels and sea story?
Entity Entity Entity Entity
m.04_m6 m.03ch8nl m.015dlb m.02s7hj
Moby-Dick; or, The Whale Sea Change The Old Man and the Sea The Narrative of Arthur Gordon Pym of Nantucket
class entity entity
book.book m.05hgj m.07m5w1
book.book media_common.literary_genre media_common.literary_genre
Book novels Sea story
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.05hgj } 
VALUES ?x2 { :m.07m5w1 } 
?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.05hgj) (JOIN (R media_common.literary_genre.books_in_this_genre) m.07m5w1)))