Question: In what way does William Goldman the playwright have a relation to the profession of writer?
Choices: location
this taxon is source of
legislative body
field of work
occupation
significant event
main food source
original language of film or TV show
model item
collection
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "William Goldman" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "playwright" . ?e_2 <pred:name> "writer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: playwright
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: William Goldman
function: And
dependencies: 1
2
function: Find
inputs: writer
function: QueryRelation
dependencies: 3
4
Answer: occupation