batman: the ride is a ride with which amusement ride theme?
Entity
m.01d5g
Bruce Wayne
class entity
amusement_parks.ride_theme m.0cwstm
amusement_parks.ride_theme amusement_parks.ride
Amusement Ride Theme Batman: The Ride
none none
amusement_parks.ride_theme.rides
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_theme . 
VALUES ?x1 { :m.0cwstm } 
?x0 :amusement_parks.ride_theme.rides ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND amusement_parks.ride_theme (JOIN amusement_parks.ride_theme.rides m.0cwstm))