Question: What is the relationship between Epsom and Surrey (the one whose headquarter location is Kingston upon Thames)?
Choices: derivative work
work location
designed to carry
part of the series
candidate
software engine
located in the administrative territorial entity
currency
production designer
director of photography
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Epsom" . ?e_2 <pred:name> "Surrey" . ?e_2 <headquarters_location> ?e_3 . ?e_3 <pred:name> "Kingston upon Thames" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Epsom
function: Find
inputs: Kingston upon Thames
function: Relate
dependencies: 1
inputs: headquarters location
backward
function: Find
inputs: Surrey
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: located in the administrative territorial entity