Question: Which Alabama county is named after Andrew Jackson (the one that is the participant of 5th United States Congress)?
Choices:
Madison County
Baldwin County
Shelby County
Mobile County
Jefferson County
Dallas County
Monroe County
Jackson County
Washington County
Montgomery County
Answer: Jackson County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" . ?e <named_after> ?e_1 . ?e_1 <pred:name> "Andrew Jackson" . ?e_2 <participant> ?e_1 . ?e_2 <pred:name> "5th United States Congress" .   }
Program:
function: Find
inputs: 5th United States Congress
function: Relate
dependencies: 0
inputs: participant
forward
function: Find
inputs: Andrew Jackson
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: county of Alabama
function: What
dependencies: 5