which type of engine is used in the aircraft with the smallest cargo capacity?
Entity
m.02sj_1
Rolls-Royce BR700
class class literal
aviation.aircraft_engine_type aviation.aircraft_model 0^^http://www.w3.org/2001/XMLSchema#int
aviation.aircraft_engine_type aviation.aircraft_model type.float
Aircraft Engine Type Aircraft model 0
none none argmin
aviation.aircraft_model.engine_type aviation.aircraft_model.cargo_capacity
Engine Type Cargo Capacity
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 :aviation.aircraft_engine_type . 
?x1 :type.object.type :aviation.aircraft_model . 
{
SELECT (MIN(?y2) AS ?x2)  WHERE { 
?y0 :type.object.type :aviation.aircraft_engine_type . 
?y1 :type.object.type :aviation.aircraft_model . 
?y1 :aviation.aircraft_model.engine_type ?y0 . 
?y1 :aviation.aircraft_model.cargo_capacity ?y2 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y1 != ?y2  )
}
}
?x1 :aviation.aircraft_model.engine_type ?x0 . 
?x1 :aviation.aircraft_model.cargo_capacity ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(ARGMIN aviation.aircraft_engine_type (JOIN (R aviation.aircraft_model.engine_type) aviation.aircraft_model.cargo_capacity))