Question: tell me the relationship between South Yorkshire and Derbyshire (which shares a border with great Manchester)
Choices:
significant person
religion
partner
original film format
shares border with
is a list of
director of photography
coextensive with
parent astronomical body
political alignment
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "South Yorkshire" . ?e_2 <pred:name> "Derbyshire" . ?e_3 <shares_border_with> ?e_2 . ?e_3 <pred:name> "Greater Manchester" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: South Yorkshire
function: Find
inputs: Greater Manchester
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Derbyshire
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4