Question: How is Tom Jones the writer related to author?
Choices: award disciplines or subjects
occupation
home port
doctoral student
notable work
afflicts
said to be the same as
industry
commissioned by
country for sport
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Tom Jones" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "writer" . ?e_2 <pred:name> "author" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: writer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Tom Jones
function: And
dependencies: 1
2
function: Find
inputs: author
function: QueryRelation
dependencies: 3
4
Answer: occupation