which tramission type is both an standard transmission and has less than 6 forward gears?
Entity
m.02k_mmq
5 Speed Manual
class literal entity
automotive.transmission 6^^http://www.w3.org/2001/XMLSchema#integer m.02xmn0
automotive.transmission type.int automotive.transmission_type
Transmission 6 standard transmission
none < none
automotive.transmission.number_of_gears automotive.transmission.classification
Number Of Forward Gears Classification
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 . 
FILTER (?x1 < "6"^^<http://www.w3.org/2001/XMLSchema#integer>)
VALUES ?x2 { :m.02xmn0 } 
?x0 :automotive.transmission.number_of_gears ?x1 . 
?x0 :automotive.transmission.classification ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND automotive.transmission (AND (lt automotive.transmission.number_of_gears 6^^http://www.w3.org/2001/XMLSchema#integer) (JOIN automotive.transmission.classification m.02xmn0)))