Question: What county of New York is named after Essex (that borders Hertfordshire) ?
Choices: Saratoga County
Genesee County
Jefferson County
Essex County
Orange County
Warren County
Albany County
Greene County
Niagara County
Clinton County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of New York" . ?e <named_after> ?e_1 . ?e_1 <pred:name> "Essex" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Hertfordshire" .   }
Program:
function: Find
inputs: Hertfordshire
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Essex
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: county of New York
function: What
dependencies: 5
Answer: Essex County