Question: Which movie is shorter, Labyrinth (the one whose original language is German) or Glory (the one whose duration is 97 minute)?
Choices:
The Hunchback of Notre Dame
A Prairie Home Companion
Rebecca
Training Day
Talk to Her
Curse of the Golden Flower
The Towering Inferno
Labyrinth
Glory
The Fifth Element
Answer: Labyrinth
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Labyrinth" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "German" . } UNION { ?e <pred:name> "Glory" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "97"^^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: Labyrinth
function: And
dependencies: 1
2
function: Find
inputs: Glory
function: FilterNum
dependencies: 4
inputs: duration
97 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
less