find aircraft model whose engine type is pratt & whitney r-985 wasp junior.
Entity Entity Entity Entity Entity Entity
m.03h9q8 m.02pt2nw m.02srhl m.02qml22 m.04cv72v m.0j5c9d6
de Havilland Canada DHC-2 Beaver Spartan Executive Vought OS2U Kingfisher American Airmotive NA-75 Seversky SEV-3 De Havilland Canada DHC-2 Beaver I
class entity
aviation.aircraft_model m.0488z4
aviation.aircraft_model aviation.aircraft_engine_type
Aircraft model Pratt & Whitney R-985 Wasp Junior
none none
aviation.aircraft_model.engine_type
Engine Type
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_model . 
VALUES ?x1 { :m.0488z4 } 
?x0 :aviation.aircraft_model.engine_type ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND aviation.aircraft_model (JOIN aviation.aircraft_model.engine_type m.0488z4))