Question: Which movie is shorter, Cleopatra (the one whose publication date is 1999-05-23) or Ally McBeal?
Choices:
Ally McBeal
Seinfeld
Robot Chicken
Phineas and Ferb
Six Feet Under
Bleak House
American Horror Story
Cleopatra
Game of Thrones
Saturday Night's Main Event
Program:
function: Find
inputs: Cleopatra
function: FilterDate
dependencies: 0
inputs: publication date
1999-05-23
=
function: Find
inputs: Ally McBeal
function: SelectBetween
dependencies: 1
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cleopatra" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1999-05-23"^^xsd:date . } UNION { ?e <pred:name> "Ally McBeal" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Ally McBeal