Question: Which is shorter, Hamlet whose duration is 107 minutes or Boogie Nights?
Choices:
Training Day
Hamlet
Rebecca
The Towering Inferno
The Fifth Element
Boogie Nights
Pleasantville
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
Answer: Hamlet
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamlet" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "107"^^xsd:double . } UNION { ?e <pred:name> "Boogie Nights" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Hamlet
function: FilterNum
dependencies: 0
inputs: duration
107 minute
=
function: Find
inputs: Boogie Nights
function: SelectBetween
dependencies: 1
2
inputs: duration
less