Question: Which movie is shorter, Romeo + Juliet or The Sorcerer's Apprentice (the one whose genre is musical film)?
Choices: The Late Shift
The Three Musketeers
The Goodbye Girl
Romeo + Juliet
A Streetcar Named Desire
The Sorcerer's Apprentice
All Quiet on the Western Front
The Challenge
A Christmas Carol
The Music Man
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Romeo + Juliet" .  } UNION { ?e <pred:name> "The Sorcerer's Apprentice" . ?e <genre> ?e_1 . ?e_1 <pred:name> "musical film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Romeo + Juliet
function: Find
inputs: musical film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: The Sorcerer's Apprentice
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
Answer: The Sorcerer's Apprentice