Question: How is Butler County, which shares a border with Beaver County, related to Armstrong County?
Choices:
presenter
vehicle normally used
licensed to broadcast to
shares border with
director of photography
place of publication
original network
chief executive officer
officially opened by
afflicts
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Armstrong 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: Armstrong 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