Question: Which movie is shorter, Beetlejuice (the one whose duration is 30 minute) or Cagney & Lacey?
Choices: Bleak House
Beetlejuice
Cagney & Lacey
Game of Thrones
Robot Chicken
Phineas and Ferb
Six Feet Under
American Horror Story
Seinfeld
Dancing with the Stars
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Beetlejuice" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "30"^^xsd:double . } UNION { ?e <pred:name> "Cagney & Lacey" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Beetlejuice
function: FilterNum
dependencies: 0
inputs: duration
30 minute
=
function: Find
inputs: Cagney & Lacey
function: SelectBetween
dependencies: 1
2
inputs: duration
less
Answer: Beetlejuice