Question: Which Arizona county shares a border with Apache County?
Choices:
Gila County
Santa Cruz County
Navajo County
Yavapai County
San Juan County
Cochise County
Apache County
Pima County
Maricopa County
Mohave County
Program:
function: Find
inputs: Apache County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: county of Arizona
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Arizona" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Apache County" .   }
Answer: Navajo County