Question: What work won the award received by Elia Kazan (the winner of this statement is Carol Reed)?
Choices: A Prairie Home Companion
The Pianist
The Artist
Oliver!
The French Connection
Rebecca
Talk to Her
The Sound of Music
Rocky
All About Eve
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <award_received> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "award" . ?e_2 <award_received> ?e_1 . ?e_2 <pred:name> "Elia Kazan" .  [ <pred:fact_h> ?e ; <pred:fact_r> <award_received> ; <pred:fact_t> ?e_1 ] <winner> ?qpv . ?qpv <pred:value> "Carol Reed" .  }
Program:
function: Find
inputs: Elia Kazan
function: Relate
dependencies: 0
inputs: award received
forward
function: FilterConcept
dependencies: 1
inputs: award
function: Relate
dependencies: 2
inputs: award received
backward
function: QFilterStr
dependencies: 3
inputs: winner
Carol Reed
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: What
dependencies: 5
Answer: Oliver!