find the media genre that is the parent genre of a film genre which contains black humor.
Entity
m.02jjt
Entertainment
class class entity
media_common.media_genre film.film_genre m.0vgkd
media_common.media_genre film.film_genre theater.theater_genre
Media genre Film genre black humor
none none none
media_common.media_genre.parent_genre media_common.media_genre.child_genres
Parent genre Child genres
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 :media_common.media_genre . 
?x1 :type.object.type :film.film_genre . 
VALUES ?x2 { :m.0vgkd } 
?x1 :media_common.media_genre.parent_genre ?x0 . 
?x1 :media_common.media_genre.child_genres ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND media_common.media_genre (JOIN (R media_common.media_genre.parent_genre) (JOIN media_common.media_genre.child_genres m.0vgkd)))