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