Question: For which work was  Roman Polanski nominated for Academy Award for Best Writing, Adapted Screenplay?
Choices:
Avtaar
Chocolat
The Elephant Man
Rosemary's Baby
Network
Les Misérables
The Dispossessed
Free Live Free
All in the Family
Star!
Answer: Rosemary's Baby
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Roman Polanski" . ?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: Roman Polanski
function: Find
inputs: Academy Award for Best Writing, Adapted Screenplay
function: QueryRelationQualifier
dependencies: 0
1
inputs: nominated for
for work