Question: What Michigan County shares a border with Michigan County and is named after Andrew Jackson (participant of 5th United States Congress)?
Choices: Ingham County
Saginaw County
St. Clair County
Genesee County
Tuscola County
Clinton County
Oakland County
Livingston County
Berrien County
Wayne County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Michigan" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "county of Michigan" . ?e_1 <named_after> ?e_2 . ?e_2 <pred:name> "Andrew Jackson" . ?e_3 <participant> ?e_2 . ?e_3 <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 Michigan
function: Relate
dependencies: 5
inputs: shares border with
backward
function: FilterConcept
dependencies: 6
inputs: county of Michigan
function: What
dependencies: 7
Answer: Ingham County