Question: Which one, Friends (the one whose duration is 17 minute) or Scoop (the one whose publication date is 2006-01-01), has greater duration?
Choices:
Friends
Curse of the Golden Flower
The Towering Inferno
Rebecca
Scoop
The Hunchback of Notre Dame
The Fifth Element
A Prairie Home Companion
Pleasantville
Training Day
Answer: Scoop
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Friends" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "17"^^xsd:double . } UNION { ?e <pred:name> "Scoop" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "2006-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Friends
function: FilterNum
dependencies: 0
inputs: duration
17 minute
=
function: Find
inputs: Scoop
function: FilterDate
dependencies: 2
inputs: publication date
2006-01-01
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater