Question: What is the county of Illinois that is named after the Scottish American James Monroe?
Choices:
Madison County
Montgomery County
Monroe County
Peoria County
Clinton County
Champaign County
McLean County
DeKalb County
McHenry County
Logan County
Answer: Monroe County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Illinois" . ?e <named_after> ?e_1 . ?e_1 <pred:name> "James Monroe" . ?e_1 <ethnic_group> ?e_2 . ?e_2 <pred:name> "Scottish American" .   }
Program:
function: Find
inputs: Scottish American
function: Relate
dependencies: 0
inputs: ethnic group
backward
function: Find
inputs: James Monroe
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: county of Illinois
function: What
dependencies: 5