Question: Which movie is longer, Nine Lives (the one whose duration is 87 minute) or Rachel Getting Married?
Choices:
Talk to Her
The Fifth Element
The Hunchback of Notre Dame
Nine Lives
Rebecca
A Prairie Home Companion
Rachel Getting Married
Curse of the Golden Flower
The Towering Inferno
Training Day
Program:
function: Find
inputs: Nine Lives
function: FilterNum
dependencies: 0
inputs: duration
87 minute
=
function: Find
inputs: Rachel Getting Married
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nine Lives" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "87"^^xsd:double . } UNION { ?e <pred:name> "Rachel Getting Married" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Rachel Getting Married