Question: Which movie is shorter, Derby (the one whose original language is German) or American Pie (the one whose duration is 95 minute)?
Choices: Rebecca
Curse of the Golden Flower
The Hunchback of Notre Dame
American Pie
Pleasantville
Talk to Her
The Fifth Element
The Towering Inferno
Derby
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Derby" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "German" . } UNION { ?e <pred:name> "American Pie" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "95"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: German
function: Relate
dependencies: 0
inputs: original language of film or TV show
backward
function: Find
inputs: Derby
function: And
dependencies: 1
2
function: Find
inputs: American Pie
function: FilterNum
dependencies: 4
inputs: duration
95 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less
Answer: Derby