adventure is the genre for which comic strip?
Entity Entity Entity Entity
m.0154jg m.0jsqccz m.0vx2p86 m.04glmsj
Little Orphan Annie The Explorigator Popeye The Ongoing Adventures of Rocket Llama
class entity
comic_strips.comic_strip m.0h_m
comic_strips.comic_strip comic_strips.comic_strip_genre
Comic Strip Adventure
none none
comic_strips.comic_strip.genre
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 :comic_strips.comic_strip . 
VALUES ?x1 { :m.0h_m } 
?x0 :comic_strips.comic_strip.genre ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND comic_strips.comic_strip (JOIN comic_strips.comic_strip.genre m.0h_m))