Question: For which work was Robert Evans (who has the occupation of actor) nominated for an Academy Award for Best Picture?
Choices:
Guys and Dolls
American Sniper
The Farmer's Daughter
Chinatown
Chico and Rita
Toward Independence
Coney Island
Julie and Carol at Carnegie Hall
"Repent, Harlequin!" Said the Ticktockman
Justin Bieber: Never Say Never
Answer: Chinatown
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Robert Evans" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "actor" . ?e_2 <pred:name> "Academy Award for Best Picture" . ?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: Robert Evans
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Picture
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
for work