Question: Which Washington county shares border with the Washington county which contains Yakima?
Choices:
King County
Douglas County
Kitsap County
San Juan County
Okanogan County
Pierce County
Grays Harbor County
Jefferson County
Skagit County
Snohomish County
Answer: Pierce County
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Washington" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "county of Washington" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Yakima" .   }
Program:
function: Find
inputs: Yakima
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 1
inputs: county of Washington
function: Relate
dependencies: 2
inputs: shares border with
backward
function: FilterConcept
dependencies: 3
inputs: county of Washington
function: What
dependencies: 4