within the model family of r-4d locate the aircrafts within the model family
Entity
m.027ty2y
Douglas R4D-3 N763A
class class entity
aviation.aircraft aviation.aircraft_model m.0h8297t
aviation.aircraft aviation.aircraft_model aviation.aircraft
Aircraft Aircraft model R-4D
none none none
aviation.aircraft_model.aircraft aviation.aircraft.model
Aircraft Model
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 . 
?x1 :type.object.type :aviation.aircraft_model . 
VALUES ?x2 { :m.0h8297t } 
?x1 :aviation.aircraft_model.aircraft ?x0 . 
?x2 :aviation.aircraft.model ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND aviation.aircraft (JOIN (R aviation.aircraft_model.aircraft) (JOIN (R aviation.aircraft.model) m.0h8297t)))