Question: What  administrative territorial entity borders Weld County to the east and also borders Larimer County ?
Choices:
Lee County
African Union
Orange County
Boulder County
San Juan County
Delaware County
United States Virgin Islands
Kent County
Greene County
Cass County
Program:
function: Find
inputs: Weld County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: QFilterStr
dependencies: 1
inputs: direction relative to location
east
function: FilterConcept
dependencies: 2
inputs: administrative territorial entity
function: Find
inputs: Larimer County
function: Relate
dependencies: 4
inputs: shares border with
forward
function: FilterConcept
dependencies: 5
inputs: administrative territorial entity
function: And
dependencies: 3
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Weld County" .  [ <pred:fact_h> ?e ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_1 ] <direction_relative_to_location> ?qpv . ?qpv <pred:value> "east" . ?e_2 <shares_border_with> ?e . ?e_2 <pred:name> "Larimer County" .  }
Answer: Boulder County