Question: How is Derbyshire (bordering West Yorkshire) related to High Sheriff ?
Choices: editor
rector
diaspora
platform
designed to carry
office held by head of government
public holiday
native language
original language of film or TV show
use
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Derbyshire" . ?e_3 <shares_border_with> ?e_1 . ?e_3 <pred:name> "West Yorkshire" . ?e_2 <pred:name> "High Sheriff" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: West Yorkshire
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Derbyshire
function: And
dependencies: 1
2
function: Find
inputs: High Sheriff
function: QueryRelation
dependencies: 3
4
Answer: office held by head of government