Question: What is the title of a written work that serves as a basis for On Her Majesty's Secret Service (the one whose release region is United States of America) ?
Choices:
Ted
Nancy
Zack and Miri Make a Porno
Abraham Lincoln
Moneyball
Beowulf
Cedar Rapids
On Her Majesty's Secret Service
Miami
Paterson
Answer: On Her Majesty's Secret Service
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e <derivative_work> ?e_1 . ?e_1 <pred:name> "On Her Majesty's Secret Service" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "United States of America" .  ?e <title> ?pv .  }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: On Her Majesty's Secret Service
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
backward
function: FilterConcept
dependencies: 4
inputs: written work
function: QueryAttr
dependencies: 5
inputs: title