seven dwarfs mine train and snow white's scary adventures are both what theme of amusement ride?
Entity
m.0x1m9wq
Snow White and the Seven Dwarfs
class entity entity
amusement_parks.ride_theme m.0gjbmmx m.0c60sv
amusement_parks.ride_theme amusement_parks.roller_coaster amusement_parks.ride
Amusement Ride Theme Seven Dwarfs Mine Train Snow White's Scary Adventures
none none none
amusement_parks.ride.theme amusement_parks.ride.theme
Theme Theme
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 :amusement_parks.ride_theme . 
VALUES ?x1 { :m.0gjbmmx } 
VALUES ?x2 { :m.0c60sv } 
?x1 :amusement_parks.ride.theme ?x0 . 
?x2 :amusement_parks.ride.theme ?x0 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND amusement_parks.ride_theme (AND (JOIN (R amusement_parks.ride.theme) m.0gjbmmx) (JOIN (R amusement_parks.ride.theme) m.0c60sv)))