Question: who was nominated for the academy award for the Best director for the film The Patriot which is a biography
Choices: Chris A. Butler
Tom Johnson
Ernst Lubitsch
Donald Peterman
John Peverall
Sylvia Miles
Beatrice De Alba
Carol Hemming
Drew Kunin
Grant Major
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Patriot" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "biographical film" . ?e_2 <pred:name> "Academy Award for Best Director" . ?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: biographical film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Patriot
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Director
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee
Answer: Ernst Lubitsch