which automobile generation has predecessor made by mercedes-benz?
Entity Entity
m.05w000 m.02k_mg5
Mercedes-Benz W169 W203
class class entity
automotive.generation automotive.generation m.0h5wpdf
automotive.generation automotive.generation automotive.make
Automobile generation Automobile generation Mercedes-Benz
none none none
automotive.generation.predecessor automotive.generation.make
Predecessor Make
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 :automotive.generation . 
?x1 :type.object.type :automotive.generation . 
VALUES ?x2 { :m.0h5wpdf } 
?x0 :automotive.generation.predecessor ?x1 . 
?x1 :automotive.generation.make ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND automotive.generation (JOIN automotive.generation.predecessor (JOIN automotive.generation.make m.0h5wpdf)))