Question: What film has a cast member named S. Epatha Merkerson and received an Academy Award for Best Actor that was won by Daniel Day-Lewis?
Choices:
Lincoln
There Will Be Blood
The Towering Inferno
Training Day
Curse of the Golden Flower
A Prairie Home Companion
My Left Foot
Rebecca
Pleasantville
Talk to Her
Program:
function: Find
inputs: S. Epatha Merkerson
function: Relate
dependencies: 0
inputs: cast member
backward
function: FilterConcept
dependencies: 1
inputs: film
function: Find
inputs: Academy Award for Best Actor
function: Relate
dependencies: 3
inputs: award received
backward
function: QFilterStr
dependencies: 4
inputs: winner
Daniel Day-Lewis
function: FilterConcept
dependencies: 5
inputs: film
function: And
dependencies: 2
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "S. Epatha Merkerson" .  ?e <award_received> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Actor" . [ <pred:fact_h> ?e ; <pred:fact_r> <award_received> ; <pred:fact_t> ?e_2 ] <winner> ?qpv . ?qpv <pred:value> "Daniel Day-Lewis" .  }
Answer: Lincoln