Question: What work was Natalie Wood, the actor, nominated for an Academy Award for Best Supporting Actress?
Choices:
Born Yesterday
The Merry Old Soul
Nell
The Counterlife
Rebel Without a Cause
Boyhood
Doctor Zhivago
My Heart Will Go On
The Sixth Sense
Thriller
Answer: Rebel Without a Cause
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Natalie Wood" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "actor" . ?e_2 <pred:name> "Academy Award for Best Supporting Actress" . ?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: actor
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Natalie Wood
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Supporting Actress
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
for work