Question: Which has a lesser duration, Sunshine (whose publication date is 2007-04-06) or Alice in Wonderland (whose duration is 46 minute)?
Choices:
Code Geass
Wonder Woman
Sunshine
Superman
A Christmas Carol
Ponyo on the Cliff by the Sea
Alice in Wonderland
My-HiME
Anastasia
Magic Knight Rayearth
Program:
function: Find
inputs: Sunshine
function: FilterDate
dependencies: 0
inputs: publication date
2007-04-06
=
function: Find
inputs: Alice in Wonderland
function: FilterNum
dependencies: 2
inputs: duration
46 minute
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sunshine" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2007-04-06"^^xsd:date . } UNION { ?e <pred:name> "Alice in Wonderland" . ?e <duration> ?pv_2 . ?pv_2 <pred:unit> "minute" . ?pv_2 <pred:value> "46"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Alice in Wonderland