Question: I want to know the Indiana county that is named after Benjamin Franklin (who has occupation of diplomat)
Choices:
Johnson County
Shelby County
Benjamin Franklin Medal
Lake County
Monroe County
Franklin County
Delaware County
Franklin & Marshall College
Allen County
Wayne County
Answer: Franklin County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Indiana" . ?e <named_after> ?e_1 . ?e_1 <pred:name> "Benjamin Franklin" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "diplomat" .   }
Program:
function: Find
inputs: diplomat
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Benjamin Franklin
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: county of Indiana
function: What
dependencies: 5