Question: Which movie has a longer runtime, Iris or My Fair Lady?
Choices:
Training Day
The Hunchback of Notre Dame
Talk to Her
Rebecca
The Fifth Element
Curse of the Golden Flower
Pleasantville
Iris
The Towering Inferno
My Fair Lady
Program:
function: Find
inputs: Iris
function: FilterNum
dependencies: 0
inputs: duration
99 minute
=
function: Find
inputs: My Fair Lady
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Iris" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "99"^^xsd:double . } UNION { ?e <pred:name> "My Fair Lady" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: My Fair Lady