Question: I'd like to know the general officer that is the military rank of James A. Garfield and that is William Tecumseh Sherman's military rank.
Choices:
graphic designer
captain
major general
illustrator
astronaut
cinematographer
financier
make-up artist
seiyū
bandleader
Answer: major general
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "general officer" . ?e_1 <military_rank> ?e . ?e_1 <pred:name> "James A. Garfield" .  ?e_2 <military_rank> ?e . ?e_2 <pred:name> "William Tecumseh Sherman" .  }
Program:
function: Find
inputs: James A. Garfield
function: Relate
dependencies: 0
inputs: military rank
forward
function: FilterConcept
dependencies: 1
inputs: general officer
function: Find
inputs: William Tecumseh Sherman
function: Relate
dependencies: 3
inputs: military rank
forward
function: FilterConcept
dependencies: 4
inputs: general officer
function: And
dependencies: 2
5
function: What
dependencies: 6