Question: Who was nominated for an Academy Award for Best Picture for Ben-Hur directed by William Wyler?
Choices: Sam Zimbalist
Mark Weingarten
John Schwartzman
Gregory Peck
Geoffrey Patterson
Stuart Robertson
Ariel Velasco-Shaw
Bruce Gilbert
Eustace Lycett
James Coburn
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Ben-Hur" . ?e_1 <director> ?e_3 . ?e_3 <pred:name> "William Wyler" . ?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 ] <nominee> ?qpv .  }
Program:
function: Find
inputs: William Wyler
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Ben-Hur
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Picture
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee
Answer: Sam Zimbalist