Question: Which movie is shorter, 50 First Dates or Casablanca (the one whose genre is drama film)?
Choices: Rebecca
A Prairie Home Companion
Curse of the Golden Flower
Talk to Her
Casablanca
The Hunchback of Notre Dame
50 First Dates
The Towering Inferno
Pleasantville
The Fifth Element
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "50 First Dates" .  } UNION { ?e <pred:name> "Casablanca" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: 50 First Dates
function: Find
inputs: drama film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Casablanca
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
Answer: 50 First Dates