rat appears in which comic strip?
Entity
m.02mgkt
Pearls Before Swine
class entity
comic_strips.comic_strip m.05lhhyn
comic_strips.comic_strip comic_strips.comic_strip_character
Comic Strip Rat
none none
comic_strips.comic_strip.characters
Characters
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.05lhhyn } 
?x0 :comic_strips.comic_strip.characters ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND comic_strips.comic_strip (JOIN comic_strips.comic_strip.characters m.05lhhyn))