Question: Richard Brooks who died from heart failure received an Academy Award for Best Writing, Adapted Screenplay for which work?
Choices:
Sexy Beast
Hail the Conquering Hero
Romeo + Juliet
Mickey's Orphans
Elmer Gantry
The Little Mermaid
Star Wars: Episode III – Revenge of the Sith
Jagged Edge
Town Without Pity
Truant Officer Donald
Program:
function: Find
inputs: heart failure
function: Relate
dependencies: 0
inputs: cause of death
backward
function: Find
inputs: Richard Brooks
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Writing, Adapted Screenplay
function: QueryRelationQualifier
dependencies: 3
4
inputs: award received
for work
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Richard Brooks" . ?e_1 <cause_of_death> ?e_3 . ?e_3 <pred:name> "heart failure" . ?e_2 <pred:name> "Academy Award for Best Writing, Adapted Screenplay" . ?e_1 <award_received> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <award_received> ; <pred:fact_t> ?e_2 ] <for_work> ?qpv .  }
Answer: Elmer Gantry