Question: For which work was Michael Mann (who has the occupation of screenwriter) nominated for an Academy Award for Best Writing, Adapted Screenplay?
Choices:
Parenthood
Viva Villa!
You Were Never Lovelier
The Insider
The River
Rambling Rose
The Four Seasons
Pigs in a Polka
Bad Day at Black Rock
Lena...Lovely and Alive
Answer: The Insider
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Michael Mann" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "screenwriter" . ?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 ] <for_work> ?qpv .  }
Program:
function: Find
inputs: screenwriter
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Michael Mann
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Writing, Adapted Screenplay
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
for work