Question: What is the connection between Paul Williams (the one that has the occupation of screenwriter) to songwriter?
Choices: parent astronomical body
territory claimed by
appointed by
field of work
league
official symbol
has contributing factor
legislative body
native language
occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Paul Williams" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "screenwriter" . ?e_2 <pred:name> "songwriter" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: screenwriter
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Paul Williams
function: And
dependencies: 1
2
function: Find
inputs: songwriter
function: QueryRelation
dependencies: 3
4
Answer: occupation