which car came before the model of sixth generation pontiac grand prix?
Entity
m.026s3_5
Pontiac G8
class class entity
automotive.model automotive.model m.04hdqrd
automotive.model automotive.model automotive.generation
Automobile Model Automobile Model Sixth Generation Pontiac Grand Prix
none none none
automotive.model.predecessor automotive.generation.model
Predecessor Model
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.model . 
?x1 :type.object.type :automotive.model . 
VALUES ?x2 { :m.04hdqrd } 
?x0 :automotive.model.predecessor ?x1 . 
?x2 :automotive.generation.model ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND automotive.model (JOIN automotive.model.predecessor (JOIN (R automotive.generation.model) m.04hdqrd)))