Question: Screenwriter George Martin is related in what way to the profession of actor?
Choices: inspired by
original language of film or TV show
has contributing factor
occupation
chief executive officer
presenter
employer
honorific prefix
basic form of government
dissertation submitted to
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "George Martin" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "screenwriter" . ?e_2 <pred:name> "actor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: screenwriter
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: George Martin
function: And
dependencies: 1
2
function: Find
inputs: actor
function: QueryRelation
dependencies: 3
4
Answer: occupation