Question: What film was nominated for an Academy Award for Best Picture and has a cast member named Amy Irving?
Choices:
Yentl
Traffic
Deconstructing Harry
Dog Day Afternoon
A Prairie Home Companion
Rebecca
High Noon
Terror in the Aisles
Broadcast News
Funny Girl
Program:
function: Find
inputs: Academy Award for Best Picture
function: Relate
dependencies: 0
inputs: nominated for
backward
function: FilterConcept
dependencies: 1
inputs: film
function: Find
inputs: Amy Irving
function: Relate
dependencies: 3
inputs: cast member
backward
function: FilterConcept
dependencies: 4
inputs: film
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Picture" .  ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Amy Irving" .  }
Answer: Traffic