a major-generals is in charge of what military unit size?
Entity
m.012gvc
Division
class entity
military.military_unit_size m.01cpjx
military.military_unit_size military.rank
Military unit size designation major-generals
none none
military.military_unit_size.commanded_by_rank
Commanded by rank
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_size . 
VALUES ?x1 { :m.01cpjx } 
?x0 :military.military_unit_size.commanded_by_rank ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND military.military_unit_size (JOIN military.military_unit_size.commanded_by_rank m.01cpjx))