Question: Does Red Dragon (the one whose production company is Universal Studios Home Entertainment) or Waterloo (the one that origins from Weimar Republic) has lesser duration ?
Choices:
The Towering Inferno
A Prairie Home Companion
Training Day
Talk to Her
The Fifth Element
Waterloo
Curse of the Golden Flower
Rebecca
Red Dragon
Pleasantville
Answer: Waterloo
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Red Dragon" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Universal Studios Home Entertainment" .   } UNION { ?e <pred:name> "Waterloo" . ?e <country_of_origin> ?e_2 . ?e_2 <pred:name> "Weimar Republic" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Universal Studios Home Entertainment
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Red Dragon
function: And
dependencies: 1
2
function: Find
inputs: Weimar Republic
function: Relate
dependencies: 4
inputs: country of origin
backward
function: Find
inputs: Waterloo
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less