who was the character who had the item which was made of the same material as vilya?
Entity Entity Entity Entity
m.0g6z1 m.0gvf0 m.0gvgd m.02vzw
Old Bilbo Gollum Samwise Gamgee Frodo Baggins
class class class entity
theater.theater_character fictional_universe.fictional_object fictional_universe.fictional_substance m.064xmw6
theater.theater_character fictional_universe.fictional_object fictional_universe.fictional_substance fictional_universe.fictional_object
Theater Character Fictional Object Material in fiction Vilya
none none none none
fictional_universe.fictional_character.has_possessed fictional_universe.fictional_object.composition fictional_universe.fictional_object.composition
Has possessed (fictional object) Composition Composition
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 :theater.theater_character . 
?x1 :type.object.type :fictional_universe.fictional_object . 
?x2 :type.object.type :fictional_universe.fictional_substance . 
VALUES ?x3 { :m.064xmw6 } 
?x0 :fictional_universe.fictional_character.has_possessed ?x1 . 
?x1 :fictional_universe.fictional_object.composition ?x2 . 
?x3 :fictional_universe.fictional_object.composition ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(AND theater.theater_character (JOIN fictional_universe.fictional_character.has_possessed (JOIN fictional_universe.fictional_object.composition (JOIN (R fictional_universe.fictional_object.composition) m.064xmw6))))