Question: Which movie is shorter, Crash (2008-10-17) or Aladdin (publication date 1994-01-01)?
Choices:
The Cleveland Show
Tiny Toon Adventures
Batman Beyond
American Dad!
Robot Chicken
Crash
Phineas and Ferb
The Venture Bros.
Aladdin
Fantastic Four
Answer: Aladdin
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Aladdin" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1994-01-01"^^xsd:date . } UNION { ?e <pred:name> "Crash" . ?e <start_time> ?pv_2 . ?pv_2 <pred:date> "2008-10-17"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Aladdin
function: FilterDate
dependencies: 0
inputs: publication date
1994-01-01
=
function: Find
inputs: Crash
function: FilterDate
dependencies: 2
inputs: start time
2008-10-17
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less