Question: What movie produced by Sony Pictures is set in Massachusetts, which borders Connecticut?
Choices: Ghost Rider
A Prairie Home Companion
Rebecca
The Scarlet Letter
Angels & Demons
Jaws
Tough Guys Don't Dance
Talk to Her
Little Women
The Squid and the Whale
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Sony Pictures" .  ?e <narrative_location> ?e_2 . ?e_2 <pred:name> "Massachusetts" . ?e_2 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Connecticut" .  }
Program:
function: Find
inputs: Sony Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: FilterConcept
dependencies: 1
inputs: film
function: Find
inputs: Connecticut
function: Relate
dependencies: 3
inputs: shares border with
backward
function: Find
inputs: Massachusetts
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: narrative location
backward
function: FilterConcept
dependencies: 7
inputs: film
function: And
dependencies: 2
8
function: What
dependencies: 9
Answer: Little Women