Question: Among the visual artworks that are a derivative work of Iron Man (which derives Iron Man 3), which has the largest duration?
Choices:
Rebecca
Training Day
The Towering Inferno
Curse of the Golden Flower
Pleasantville
Iron Man 2
A Prairie Home Companion
The Hunchback of Notre Dame
Iron Man 3
The Fifth Element
Program:
function: Find
inputs: Iron Man 3
function: Relate
dependencies: 0
inputs: based on
forward
function: Find
inputs: Iron Man
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
forward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: SelectAmong
dependencies: 5
inputs: duration
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e_1 <derivative_work> ?e . ?e_1 <pred:name> "Iron Man" . ?e_2 <based_on> ?e_1 . ?e_2 <pred:name> "Iron Man 3" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Iron Man 3