Question: What is the subject of a statement that John Logan (the one that is the screenwriter of The Last Samurai) was nominated for Academy Award for Best Writing, Adapted Screenplay?
Choices:
Algeria–Malaysia relations
Fiji–France relations
84th Academy Awards
Turkey–United States relations
Afghanistan–Canada relations
Finland–France relations
Canada–Pakistan relations
42nd Academy Awards
Dominican Republic–Uruguay relations
Kosovo–Portugal relations
Answer: 84th Academy Awards
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "John Logan" . ?e_3 <screenwriter> ?e_1 . ?e_3 <pred:name> "The Last Samurai" . ?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 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: The Last Samurai
function: Relate
dependencies: 0
inputs: screenwriter
forward
function: Find
inputs: John Logan
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Writing, Adapted Screenplay
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
statement is subject of