Question: What is the title of Americana (the one that has Barbara Hershey as a cast member)?
Choices:
The Last Station
City of Angels
This Is England
Water for Elephants
Blue Velvet
Cold War
Hellboy
Mr. & Mrs. Smith
Americana
Breakfast at Tiffany's
Program:
function: Find
inputs: Barbara Hershey
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Americana
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Americana" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Barbara Hershey" .  ?e <title> ?pv .  }
Answer: Americana