Question: Which one is shorter, Sabrina (the one whose duration is 109 minutes) or Gladiator (the one that has Cuba Gooding Jr. as a cast member)  ?
Choices:
Talk to Her
The Towering Inferno
Training Day
Rebecca
The Hunchback of Notre Dame
A Prairie Home Companion
Gladiator
Pleasantville
Curse of the Golden Flower
The Fifth Element
Program:
function: Find
inputs: Sabrina
function: FilterNum
dependencies: 0
inputs: duration
109 minute
=
function: Find
inputs: Cuba Gooding Jr.
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Gladiator
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sabrina" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "109"^^xsd:double . } UNION { ?e <pred:name> "Gladiator" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Cuba Gooding Jr." . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Gladiator