Question: What is the connection between Norfolk (that shares a border with Virginia Beach) and Hampton?
Choices:
home world
candidacy in election
chairperson
sponsor
director
health specialty
shares border with
inspired by
located in the administrative territorial entity
sex or gender
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Norfolk" . ?e_3 <shares_border_with> ?e_1 . ?e_3 <pred:name> "Virginia Beach" . ?e_2 <pred:name> "Hampton" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Virginia Beach
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Norfolk
function: And
dependencies: 1
2
function: Find
inputs: Hampton
function: QueryRelation
dependencies: 3
4