Question: I need to know the relationship between David Mills (who works as an actor) to poet.
Choices: follows
time period
occupant
diaspora
instrument
director
series spin-off
characters
coextensive with
occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "David Mills" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "actor" . ?e_2 <pred:name> "poet" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: actor
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: David Mills
function: And
dependencies: 1
2
function: Find
inputs: poet
function: QueryRelation
dependencies: 3
4
Answer: occupation