Question: When was  Love Affair (the one whose distributor is RKO Pictures) nominated or Academy Award for Best Story ?
Choices: Mario Cecchi Gori
Robert Forster
Don DaGradi
Ray Heindorf
Geoffrey Unsworth
Leo McCarey
Mike Johnson
Bill Naughton
John Knatchbull, 7th Baron Brabourne
M. Night Shyamalan
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Love Affair" . ?e_1 <distributor> ?e_3 . ?e_3 <pred:name> "RKO Pictures" . ?e_2 <pred:name> "Academy Award for Best Story" . ?e_1 <nominated_for> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <nominee> ?qpv .  }
Program:
function: Find
inputs: RKO Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Love Affair
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Story
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee
Answer: Leo McCarey