Question: What is the connection between Jack Abbott (the one that is educated at Dartmouth College) to head coach?
Choices:
author
editor
published in
candidacy in election
convicted of
occupation
drug used for treatment
developer
partially contains
Wikidata property
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Jack Abbott" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "Dartmouth College" . ?e_2 <pred:name> "head coach" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Dartmouth College
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: Jack Abbott
function: And
dependencies: 1
2
function: Find
inputs: head coach
function: QueryRelation
dependencies: 3
4