Question: Which is longer, Kentucky (96 minutes long) or Good Will Hunting
Choices:
Rebecca
A Prairie Home Companion
Training Day
The Fifth Element
Pleasantville
Curse of the Golden Flower
The Towering Inferno
Good Will Hunting
Kentucky
The Hunchback of Notre Dame
Program:
function: Find
inputs: Kentucky
function: FilterNum
dependencies: 0
inputs: duration
96 minute
=
function: Find
inputs: Good Will Hunting
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kentucky" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "96"^^xsd:double . } UNION { ?e <pred:name> "Good Will Hunting" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Good Will Hunting