Question: What is the relationship between Tom Jones (the one that has the occupation of lyricist) and author?
Choices:
territory overlaps
honorific prefix
cast member
kit supplier
highest judicial authority
public holiday
influenced by
country for sport
interests
occupation
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Tom Jones" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "lyricist" . ?e_2 <pred:name> "author" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: lyricist
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