Question: What administrative territorial entity is the one that borders West Java to the east ?
Choices:
Cass County
African Union
Lee County
Orange County
Greene County
Central Java
Delaware County
Douglas County
Kent County
Queens
Answer: Central Java
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "West Java" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e ] <direction_relative_to_location> ?qpv . ?qpv <pred:value> "east" .  }
Program:
function: Find
inputs: West Java
function: Relate
dependencies: 0
inputs: shares border with
forward
function: QFilterStr
dependencies: 1
inputs: direction relative to location
east
function: FilterConcept
dependencies: 2
inputs: administrative territorial entity
function: What
dependencies: 3