Question: Which one, Resident Evil: Afterlife or Trainspotting (the one whose genre is drama film), has greater length?
Choices:
Trainspotting
Rebecca
Pleasantville
Talk to Her
Resident Evil: Afterlife
A Prairie Home Companion
The Towering Inferno
The Hunchback of Notre Dame
Curse of the Golden Flower
Training Day
Answer: Resident Evil: Afterlife
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Resident Evil: Afterlife" .  } UNION { ?e <pred:name> "Trainspotting" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Resident Evil: Afterlife
function: Find
inputs: drama film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Trainspotting
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater