Question: How is Ontario that borders Ohio related to Toronto?
Choices:
medical treatment
location of final assembly
this taxon is source of
military conflicts
located on terrain feature
operating area
affiliation
has effect
capital
ancestral home
Answer: capital
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Ontario" . ?e_1 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Ohio" . ?e_2 <pred:name> "Toronto" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ohio
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Ontario
function: And
dependencies: 1
2
function: Find
inputs: Toronto
function: QueryRelation
dependencies: 3
4