Question: Who was the Braveheart BAFTA nominee for Best Direction?
Choices: Mel Gibson
Cotton Warburton
Renée Zellweger
Allan Starski
Simon Thompson
Alberto Grimaldi
Stacey Sher
Andrew Stanton
Robert O. Cook
Donna Gigliotti
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Braveheart" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "BAFTA Award for Best Direction" . ?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: BAFTA Award for Best Direction
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Braveheart
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Director
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
nominee
Answer: Mel Gibson