Question: For which work did James Cameron, who was nominated for an Academy Award for Best Film Editing, win that award?
Choices: The Eel
Weeds
Rebecca
The Professionals
Titanic
The Iron Giant
Do the Right Thing
Kismet
Original Sin
Will & Grace
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "James Cameron" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Film Editing" . ?e_2 <pred:name> "Academy Award for Best Film Editing" . ?e_1 <award_received> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <award_received> ; <pred:fact_t> ?e_2 ] <for_work> ?qpv .  }
Program:
function: Find
inputs: Academy Award for Best Film Editing
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: James Cameron
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Film Editing
function: QueryRelationQualifier
dependencies: 3
4
inputs: award received
for work
Answer: Titanic