Question: which one is longer, Superman (which has an 11-minute duration) or Rachel getting married
Choices:
The Fifth Element
Pleasantville
Superman
A Prairie Home Companion
Curse of the Golden Flower
Rebecca
The Towering Inferno
Talk to Her
Rachel Getting Married
The Hunchback of Notre Dame
Program:
function: Find
inputs: Superman
function: FilterNum
dependencies: 0
inputs: duration
11 minute
=
function: Find
inputs: Rachel Getting Married
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Superman" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "11"^^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