Question: What is the relationship between Beverly and Essex County (the one that contains Andover)?
Choices:
home port
interested in
substitute/deputy/replacement of office/officeholder
risk factor
illustrator
located in the administrative territorial entity
father
commander of
award disciplines or subjects
statistical leader
Answer: located in the administrative territorial entity
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Beverly" . ?e_2 <pred:name> "Essex County" . ?e_3 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_3 <pred:name> "Andover" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Beverly
function: Find
inputs: Andover
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Essex County
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4