what visual art genre is the art genre of an artwork that is the edition of the fortune teller?
Entity
m.01jw23
Genre art
class class entity
visual_art.visual_art_genre visual_art.artwork m.08kcbx
visual_art.visual_art_genre visual_art.artwork visual_art.artwork
Visual Art Genre Artwork The Fortune Teller
none none none
visual_art.artwork.art_genre visual_art.artwork.edition_of
Art Genre Edition of
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 :visual_art.visual_art_genre . 
?x1 :type.object.type :visual_art.artwork . 
VALUES ?x2 { :m.08kcbx } 
?x1 :visual_art.artwork.art_genre ?x0 . 
?x1 :visual_art.artwork.edition_of ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND visual_art.visual_art_genre (JOIN (R visual_art.artwork.art_genre) (JOIN visual_art.artwork.edition_of m.08kcbx)))