Question: What is the connection between Alan Parker (the one that is a cast member of Angela's Ashes) to screenwriter?
Choices:
distribution
health specialty
main subject
given name
tributary
production company
parent club
languages spoken, written or signed
occupation
has part
Program:
function: Find
inputs: Angela's Ashes
function: Relate
dependencies: 0
inputs: cast member
forward
function: Find
inputs: Alan Parker
function: And
dependencies: 1
2
function: Find
inputs: screenwriter
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Alan Parker" . ?e_3 <cast_member> ?e_1 . ?e_3 <pred:name> "Angela's Ashes" . ?e_2 <pred:name> "screenwriter" . ?e_1 ?p ?e_2 .  }
Answer: occupation