alice in wonderland 2010 and the care bears adventure in wonderland was adapted to which work?
Entity
m.059_5s
The Care Bears
class entity class entity
media_common.adapted_work m.05dvlp media_common.adapted_work m.06zr25h
media_common.adapted_work media_common.adaptation media_common.adapted_work media_common.adaptation
Adapted Work The Care Bears Adventure in Wonderland Adapted Work alice in wonderland 2010
none none none none
media_common.adaptation.adapted_from media_common.adaptation.adapted_from media_common.adaptation.adapted_from
Adapted From Adapted From Adapted From
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.adapted_work . 
VALUES ?x1 { :m.05dvlp } 
?x2 :type.object.type :media_common.adapted_work . 
VALUES ?x3 { :m.06zr25h } 
?x1 :media_common.adaptation.adapted_from ?x0 . 
?x1 :media_common.adaptation.adapted_from ?x2 . 
?x3 :media_common.adaptation.adapted_from ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(AND media_common.adapted_work (JOIN (R media_common.adaptation.adapted_from) m.05dvlp))