Question: Does Heroes (that has Mithun Chakraborty as a cast member) or A.I. Artificial Intelligence have the shorter running time?
Choices:
Training Day
A.I. Artificial Intelligence
A Prairie Home Companion
Curse of the Golden Flower
The Hunchback of Notre Dame
The Fifth Element
Rebecca
Pleasantville
The Towering Inferno
Heroes
Program:
function: Find
inputs: Mithun Chakraborty
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Heroes
function: And
dependencies: 1
2
function: Find
inputs: A.I. Artificial Intelligence
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Heroes" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Mithun Chakraborty" .   } UNION { ?e <pred:name> "A.I. Artificial Intelligence" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Heroes