Question: What New Jersey county's capital is the New Jersey city that is the birthplace of Apache who is a citizen of the United States of America?
Choices:
Morris County
Union County
Camden County
Bergen County
Hunterdon County
Gloucester County
Essex County
Cumberland County
Hudson County
Passaic County
Answer: Hudson County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New Jersey" . ?e <capital> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city in New Jersey" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "Apache" . ?e_2 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "United States of America" .   }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Apache
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: city in New Jersey
function: Relate
dependencies: 5
inputs: capital
backward
function: FilterConcept
dependencies: 6
inputs: county of New Jersey
function: What
dependencies: 7