Question: Tell me the person that has the job of lawyer and who passed away in Frankfort.
Choices:
Margaret Thatcher
William Henry Harrison
John Logan
Sylvester Stallone
Woodrow Wilson
Fidel Castro
William Pitt the Younger
Richard Gere
James K. Polk
Max Fleischer
Answer: John Logan
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "lawyer" .  ?e <place_of_death> ?e_2 . ?e_2 <pred:name> "Frankfort" .  }
Program:
function: Find
inputs: lawyer
function: Relate
dependencies: 0
inputs: occupation
backward
function: FilterConcept
dependencies: 1
inputs: human
function: Find
inputs: Frankfort
function: Relate
dependencies: 3
inputs: place of death
backward
function: FilterConcept
dependencies: 4
inputs: human
function: And
dependencies: 2
5
function: What
dependencies: 6