Question: Which Illinois county contains a state or insular area capital in the United States that is the place where Kevin McCarthy, Catholicism follower, works?
Choices: Clinton County
DuPage County
McHenry County
Montgomery County
McLean County
Logan County
Madison County
DeKalb County
Peoria County
Sangamon County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Illinois" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "state or insular area capital in the United States" . ?e_2 <work_location> ?e_1 . ?e_2 <pred:name> "Kevin McCarthy" . ?e_2 <religion> ?e_3 . ?e_3 <pred:name> "Catholic Church" .   }
Program:
function: Find
inputs: Catholic Church
function: Relate
dependencies: 0
inputs: religion
backward
function: Find
inputs: Kevin McCarthy
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: work location
forward
function: FilterConcept
dependencies: 4
inputs: state or insular area capital in the United States
function: Relate
dependencies: 5
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 6
inputs: county of Illinois
function: What
dependencies: 7
Answer: Sangamon County