which automobile contains a generation number of 7?
Entity Entity Entity
m.04jhbht m.09dvk3k m.04hdqqb
Seventh Generation Honda Civic Mercury Cougar Mark VII Seventh Generation Pontiac Grand Prix
class literal
automotive.generation 7^^http://www.w3.org/2001/XMLSchema#integer
automotive.generation type.int
Automobile generation 7
none none
automotive.generation.generation_number
Generation Number
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 . 
VALUES ?x1 { "7"^^<http://www.w3.org/2001/XMLSchema#integer> } 
?x0 :automotive.generation.generation_number ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND automotive.generation (JOIN automotive.generation.generation_number 7^^http://www.w3.org/2001/XMLSchema#integer))