Question: Which movie is shorter, Freakazoid! or Dynasty (the one whose start time is 2017-10-11)?
Choices:
American Dad!
Freakazoid!
Phineas and Ferb
South Park
Robot Chicken
Aladdin
Batman Beyond
The Venture Bros.
Dynasty
Tiny Toon Adventures
Program:
function: Find
inputs: Freakazoid!
function: Find
inputs: Dynasty
function: FilterDate
dependencies: 1
inputs: start time
2017-10-11
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Freakazoid!" . } UNION { ?e <pred:name> "Dynasty" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "2017-10-11"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Freakazoid!