Question: Which military rank of Harry S. Truman precedes the rank of major?
Choices:
The Guns of Navarone
27th United States Congress
Chicago Fire
Michael Phelps
captain
King's College
colonel
major
Sioux
Fairfield University
Program:
function: Find
inputs: major
function: Relate
dependencies: 0
inputs: followed by
backward
function: FilterConcept
dependencies: 1
inputs: military rank
function: Find
inputs: Harry S. Truman
function: Relate
dependencies: 3
inputs: military rank
forward
function: FilterConcept
dependencies: 4
inputs: military rank
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "military rank" . ?e <followed_by> ?e_1 . ?e_1 <pred:name> "major" .  ?e_2 <military_rank> ?e . ?e_2 <pred:name> "Harry S. Truman" .  }
Answer: captain