Question: What has John Cusack, the actor, in common to a writer?
Choices: film regional debut venue
draft pick from school
place of birth
genre
copyright representative
illustrator
eye color
game mode
occupation
general manager
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Cusack" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "actor" . ?e_2 <pred:name> "writer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: actor
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: John Cusack
function: And
dependencies: 1
2
function: Find
inputs: writer
function: QueryRelation
dependencies: 3
4
Answer: occupation