Question: Which movie is shorter, Bones (the one whose composer is Dr. Dre) or Dragon Ball: Mystical Adventure?
Choices:
Bones
Talk to Her
Training Day
A Prairie Home Companion
The Fifth Element
Curse of the Golden Flower
Dragon Ball: Mystical Adventure
The Towering Inferno
Pleasantville
The Hunchback of Notre Dame
Program:
function: Find
inputs: Dr. Dre
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Bones
function: And
dependencies: 1
2
function: Find
inputs: Dragon Ball: Mystical Adventure
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bones" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Dr. Dre" .   } UNION { ?e <pred:name> "Dragon Ball: Mystical Adventure" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Dragon Ball: Mystical Adventure