Question: For which work was Peter Stone (who has the occupation of writer) nominated for an Academy Award for Best Writing, Original Screenplay?
Choices:
China–Greece relations
Russia–Spain relations
Romania–Spain relations
Brunei–Taiwan relations
Saudi Arabia–United States relations
37th Academy Awards
Bangladesh–Belarus relations
India–Iraq relations
Denmark–Iran relations
Georgia (country)–Germany relations
Program:
function: Find
inputs: writer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Peter Stone
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Writing, Original Screenplay
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
statement is subject of
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Peter Stone" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "writer" . ?e_2 <pred:name> "Academy Award for Best Writing, Original 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 .  }
Answer: 37th Academy Awards