Question: What is the title of the written work that derives The Sum of All Fears (the one that is shot in Baltimore)?
Choices:
The Commitments
The 40-Year-Old Virgin
The Sum of All Fears
The People vs. Larry Flynt
Babylon 5
Harry Potter and the Goblet of Fire
Sè, Jiè
Entourage
Get Shorty
Priest
Answer: The Sum of All Fears
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e_1 <based_on> ?e . ?e_1 <pred:name> "The Sum of All Fears" . ?e_1 <filming_location> ?e_2 . ?e_2 <pred:name> "Baltimore" .  ?e <title> ?pv .  }
Program:
function: Find
inputs: Baltimore
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: The Sum of All Fears
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
forward
function: FilterConcept
dependencies: 4
inputs: written work
function: QueryAttr
dependencies: 5
inputs: title