Question: Which movie is shorter, Oasis (the one whose publication date is 2002-01-01) or Heroes (the one that has Bobby Deol as a cast member)?
Choices: The Towering Inferno
The Hunchback of Notre Dame
Oasis
Training Day
A Prairie Home Companion
The Fifth Element
Heroes
Pleasantville
Talk to Her
Rebecca
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Oasis" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2002-01-01"^^xsd:date . } UNION { ?e <pred:name> "Heroes" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Bobby Deol" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Oasis
function: FilterDate
dependencies: 0
inputs: publication date
2002-01-01
=
function: Find
inputs: Bobby Deol
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Heroes
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
Answer: Oasis