the amusement ride dumbo the flying elephant has the same theme as which other amusement park ride?
Entity Entity Entity Entity
m.02693xq m.0j1gyx8 m.0j1gyyl m.0j1gz1h
Dumbo the Flying Elephant Dumbo the Flying Elephant Dumbo the Flying Elephant Dumbo the Flying Elephant
class class entity
amusement_parks.ride amusement_parks.ride_theme m.0j1gz9_
amusement_parks.ride amusement_parks.ride_theme amusement_parks.ride
Amusement Ride Amusement Ride Theme Dumbo the Flying Elephant
none none none
amusement_parks.ride.theme amusement_parks.ride_theme.rides
Theme Rides
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 . 
?x1 :type.object.type :amusement_parks.ride_theme . 
VALUES ?x2 { :m.0j1gz9_ } 
?x0 :amusement_parks.ride.theme ?x1 . 
?x1 :amusement_parks.ride_theme.rides ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND amusement_parks.ride (JOIN amusement_parks.ride.theme (JOIN amusement_parks.ride_theme.rides m.0j1gz9_)))