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