Question: Tell me the title For Amazing Grace (which was shot in Baltimore)
Choices:
The Royal Tenenbaums
Amazing Grace
Palm Springs
Veronica Mars
Silkwood
Do the Right Thing
How the West Was Won
An Ideal Husband
Mrs Henderson Presents
The Island
Program:
function: Find
inputs: Baltimore
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Amazing Grace
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: title
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Amazing Grace" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Baltimore" .  ?e <title> ?pv .  }
Answer: Amazing Grace