Question: Which visual artwork contains Dr. Strangelove in German language ?
Choices:
The Towering Inferno
Training Day
Pleasantville
Rebecca
The Verdict
Sherlock Holmes: A Game of Shadows
The Gift
A Prairie Home Companion
Dr. Strangelove
The Fifth Element
Program:
function: Find
inputs: German
function: Relate
dependencies: 0
inputs: languages spoken, written or signed
backward
function: Find
inputs: Dr. Strangelove
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: present in work
forward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e_1 <present_in_work> ?e . ?e_1 <pred:name> "Dr. Strangelove" . ?e_1 <languages_spoken,_written_or_signed> ?e_2 . ?e_2 <pred:name> "German" .   }
Answer: Dr. Strangelove