Question: For which work was John Logan (the one that has the occupation of film producer) nominated for Academy Award for Best Writing, Adapted Screenplay ?
Choices: Arkansas–Missouri border
India–Trinidad and Tobago relations
North Korea–Russia border
Federal Republic of Central America
Argentina–Bangladesh relations
Mexico–Romania relations
35th Academy Awards
84th Academy Awards
Japan-Soviet Union relations
occupation of Smyrna
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "John Logan" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "film producer" . ?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: film producer
function: Relate
dependencies: 0
inputs: occupation
backward
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
Answer: 84th Academy Awards