misty mountains has been home to which fictional character?
Entity
m.0gvf0
Gollum
class entity
fictional_universe.fictional_character m.0h50n
fictional_universe.fictional_character fictional_universe.fictional_setting
Fictional Character Misty Mountains
none none
fictional_universe.fictional_character.places_lived
Places lived
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 :fictional_universe.fictional_character . 
VALUES ?x1 { :m.0h50n } 
?x0 :fictional_universe.fictional_character.places_lived ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND fictional_universe.fictional_character (JOIN fictional_universe.fictional_character.places_lived m.0h50n))