Question: What is the connection between Beetlejuice (the one that has the occupation of comedian) to actor?
Choices:
successful candidate
member of sports team
film editor
position played on team / speciality
librettist
lifestyle
designed by
position held
original language of film or TV show
occupation
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Beetlejuice" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "comedian" . ?e_2 <pred:name> "actor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: comedian
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Beetlejuice
function: And
dependencies: 1
2
function: Find
inputs: actor
function: QueryRelation
dependencies: 3
4