Question: In regards to film series longer than 50 minutes, which of those has the shortest length of all?
Choices:
Dumb and Dumber
Final Destination
American Pie
Die Hard
The Mummy
The Smurfs
Ice Age
Carry On
The Fast and the Furious
Star Wars
Answer: Final Destination
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film series" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> ?v_1 . FILTER ( ?v_1 > "50"^^xsd:double ) . ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: duration
50 minute
>
function: FilterConcept
dependencies: 1
inputs: film series
function: SelectAmong
dependencies: 2
inputs: duration
smallest