Question: Mel Gibson who is the screenwriter of Apocalypto was nominated for an Academy Award for Best Picture for which work?
Choices: Playing for Time
Braveheart
Paradise
Lou Grant
The Integral Trees
Heartsounds
(Everything I Do) I Do It for You
Fiesta
A Clash of Kings
Abhimaan
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Mel Gibson" . ?e_3 <screenwriter> ?e_1 . ?e_3 <pred:name> "Apocalypto" . ?e_2 <pred:name> "Academy Award for Best Picture" . ?e_1 <nominated_for> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <for_work> ?qpv .  }
Program:
function: Find
inputs: Apocalypto
function: Relate
dependencies: 0
inputs: screenwriter
forward
function: Find
inputs: Mel Gibson
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Picture
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
for work
Answer: Braveheart