which military unit has james murray served in?
Entity
m.03vys4
Connaught Rangers
class class entity
military.military_unit military.military_service m.04jjzc
military.military_unit military.military_service military.military_person
Military unit Military Service James Murray
none none none
military.military_unit.servicemembers military.military_service.military_person
Service members Military Person
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 :military.military_unit . 
?x1 :type.object.type :military.military_service . 
VALUES ?x2 { :m.04jjzc } 
?x0 :military.military_unit.servicemembers ?x1 . 
?x1 :military.military_service.military_person ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND military.military_unit (JOIN military.military_unit.servicemembers (JOIN military.military_service.military_person m.04jjzc)))