Question: Which visual artwork that is a derivative work of Resident Evil (which derives Resident Evil: Extinction) has the largest duration?
Choices:
A Prairie Home Companion
Talk to Her
Resident Evil: Retribution
Resident Evil: Afterlife
Resident Evil: Apocalypse
Resident Evil: Extinction
The Fifth Element
Resident Evil
Training Day
Rebecca
Program:
function: Find
inputs: Resident Evil: Extinction
function: Relate
dependencies: 0
inputs: based on
forward
function: Find
inputs: Resident Evil
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> "Resident Evil" . ?e_2 <based_on> ?e_1 . ?e_2 <pred:name> "Resident Evil: Extinction" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Resident Evil