Question: What is the title of the written work that inspired You Only Live Twice, set in Washington, D.C.?
Choices:
Beowulf
When in Rome
Hairspray
Quadrophenia
Merry Christmas, Mr. Lawrence
A View to a Kill
The Green Hornet
You Only Live Twice
Spider-Man
The Blues Brothers
Program:
function: Find
inputs: Washington, D.C.
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: You Only Live Twice
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
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e_1 <based_on> ?e . ?e_1 <pred:name> "You Only Live Twice" . ?e_1 <narrative_location> ?e_2 . ?e_2 <pred:name> "Washington, D.C." .  ?e <title> ?pv .  }
Answer: You Only Live Twice