Question: Which one, Unfaithful (the one whose duration is 124 minute) or Puss in Boots (the one whose genre is musical film), has less duration?
Choices:
Rebecca
Pleasantville
The Fifth Element
The Hunchback of Notre Dame
Puss in Boots
A Prairie Home Companion
Curse of the Golden Flower
Unfaithful
Training Day
Talk to Her
Answer: Puss in Boots
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Unfaithful" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "124"^^xsd:double . } UNION { ?e <pred:name> "Puss in Boots" . ?e <genre> ?e_1 . ?e_1 <pred:name> "musical film" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Unfaithful
function: FilterNum
dependencies: 0
inputs: duration
124 minute
=
function: Find
inputs: musical film
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: Puss in Boots
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less