Question: For which project was photographer Candice Bergen a nominee for a BAFTA Award for Best Actress in a Supporting Role?
Choices:
Funny Girl
The Great Gatsby
Pineapple Express
The Subject Was Roses
Gandhi
None So Blind
Naughty Marietta
Hail the Conquering Hero
21 Grams
Green Dolphin Street
Answer: Gandhi
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Candice Bergen" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "photographer" . ?e_2 <pred:name> "BAFTA Award for Best Actress in a Supporting Role" . ?e_1 <nominated_for> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <for_work> ?qpv .  }
Program:
function: Find
inputs: photographer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Candice Bergen
function: And
dependencies: 1
2
function: Find
inputs: BAFTA Award for Best Actress in a Supporting Role
function: QueryRelationQualifier
dependencies: 3
4
inputs: nominated for
for work