Question: What is the film shot in Malta written by Author Alexandre Dumas?
Choices:
Rebecca
Talk to Her
A Prairie Home Companion
Troy
Pleasantville
Pinocchio
The Fifth Element
Swept Away
The Count of Monte Cristo
The Three Musketeers
Program:
function: Find
inputs: author
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Alexandre Dumas
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: after a work by
backward
function: FilterConcept
dependencies: 4
inputs: film
function: Find
inputs: Malta
function: Relate
dependencies: 6
inputs: filming location
backward
function: FilterConcept
dependencies: 7
inputs: film
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <after_a_work_by> ?e_1 . ?e_1 <pred:name> "Alexandre Dumas" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "author" .  ?e <filming_location> ?e_3 . ?e_3 <pred:name> "Malta" .  }
Answer: The Count of Monte Cristo