Question: Is Iron Man the title of the television series containing Iron Man that derives Iron Man 3?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e_1 <present_in_work> ?e . ?e_1 <pred:name> "Iron Man" . ?e_1 <derivative_work> ?e_2 . ?e_2 <pred:name> "Iron Man 3" .  ?e <title> ?pv . ?pv <pred:value> "Iron Man" .  }
Program:
function: Find
inputs: Iron Man 3
function: Relate
dependencies: 0
inputs: derivative work
backward
function: Find
inputs: Iron Man
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: present in work
forward
function: FilterConcept
dependencies: 4
inputs: television series
function: QueryAttr
dependencies: 5
inputs: title
function: VerifyStr
dependencies: 6
inputs: Iron Man