Question: For which work was Joshua Logan nominated for an Academy Award for Best Picture?
Choices: Doom and Gloom
Save the Last Dance
Homecoming
Fanny
Can't Help Singing
None but the Lonely Heart
By the Time I Get to Phoenix
The Curious Case of Benjamin Button
Glory of Love
Airport '77
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Joshua Logan" . ?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: Joshua Logan
function: Find
inputs: Academy Award for Best Picture
function: QueryRelationQualifier
dependencies: 0
1
inputs: nominated for
for work
Answer: Fanny