Question: Which military officer shares the rank of major general William James ?
Choices:
cinematographer
astronaut
graphic designer
major general
seiyū
speaker of the United States House of Representatives
financier
bandleader
captain
make-up artist
Program:
function: Find
inputs: major general
function: Relate
dependencies: 0
inputs: military rank
backward
function: Find
inputs: William James
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: military rank
forward
function: FilterConcept
dependencies: 4
inputs: military officer
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "military officer" . ?e_1 <military_rank> ?e . ?e_1 <pred:name> "William James" . ?e_1 <military_rank> ?e_2 . ?e_2 <pred:name> "major general" .   }
Answer: major general