Question: For A Single Man (the one that has Julianne Moore as a cast member) which was nominated for an Academy Award for Best Actor, who was its nominee?
Choices: John Gielgud
Robert O. Cook
Julia Phillips
Mark Robson
Richard Nord
Richard Francis-Bruce
Mark Andrus
Colin Firth
Eric Barba
Joan Harrison
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "A Single Man" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Julianne Moore" . ?e_2 <pred:name> "Academy Award for Best Actor" . ?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: Julianne Moore
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: A Single Man
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Actor
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee
Answer: Colin Firth