what type of transmission has the highest number of forward gears?
Entity
m.01xc2y
Automatic transmission
class class literal
automotive.transmission_type automotive.transmission 0^^http://www.w3.org/2001/XMLSchema#int
automotive.transmission_type automotive.transmission type.int
Transmission Classification Transmission 0
none none argmax
automotive.transmission.classification automotive.transmission.number_of_gears
Classification Number Of Forward Gears
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.transmission_type . 
?x1 :type.object.type :automotive.transmission . 
{
SELECT (MAX(?y2) AS ?x2)  WHERE { 
?y0 :type.object.type :automotive.transmission_type . 
?y1 :type.object.type :automotive.transmission . 
?y1 :automotive.transmission.classification ?y0 . 
?y1 :automotive.transmission.number_of_gears ?y2 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y1 != ?y2  )
}
}
?x1 :automotive.transmission.classification ?x0 . 
?x1 :automotive.transmission.number_of_gears ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(ARGMAX automotive.transmission_type (JOIN (R automotive.transmission.classification) automotive.transmission.number_of_gears))