Question: What New York county includes Syracuse (that is the residence of Tom Kenny)?
Choices:
Niagara County
Clinton County
Orange County
Onondaga County
Albany County
Dutchess County
Warren County
Greene County
Jefferson County
Wayne County
Answer: Onondaga County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Syracuse" . ?e_2 <residence> ?e_1 . ?e_2 <pred:name> "Tom Kenny" .   }
Program:
function: Find
inputs: Tom Kenny
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: Syracuse
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: county of New York
function: What
dependencies: 5