Question: How is Beaver County related to the Butler County that has a border in common with it?
Choices: shares border with
permanent resident of
grants
country
time period
executive producer
film crew member
director
family
musical conductor
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Beaver County" . ?e_2 <pred:name> "Butler County" . ?e_2 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Beaver County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Beaver County
function: Find
inputs: Beaver County
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Butler County
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: shares border with