Question: What is the connection between Peter Weir (the one that has the occupation of screenwriter) to Academy Award for Best Writing, Original Screenplay?
Choices: make-up artist
used by
officeholder
registered with
draft pick from school
nominated for
next lower rank
director of photography
executive producer
programming language
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Peter Weir" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "screenwriter" . ?e_2 <pred:name> "Academy Award for Best Writing, Original Screenplay" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: screenwriter
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Peter Weir
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Writing, Original Screenplay
function: QueryRelation
dependencies: 3
4
Answer: nominated for