Question: Who is the nominee of Academy Award for Best Writing, Adapted Screenplay for the work in Traffic (the one that received Academy Award for Best Director) ?
Choices:
Ken Weston
Stephen Gaghan
Rick Heinrichs
Jonah Hill
Joshua Logan
Dean Semler
Mike Johnson
Timothy Hutton
Tambi Larsen
Valli O'Reilly
Answer: Stephen Gaghan
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Traffic" . ?e_1 <award_received> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Director" . ?e_2 <pred:name> "Academy Award for Best Writing, Adapted Screenplay" . ?e_1 <nominated_for> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <nominee> ?qpv .  }
Program:
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: Traffic
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Writing, Adapted Screenplay
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee