Question: Which movie is longer, Waterloo (the one that origins from Weimar Republic) or Munich (the one that has Daniel Craig as a cast member)?
Choices:
The Towering Inferno
Curse of the Golden Flower
A Prairie Home Companion
Rebecca
Talk to Her
Training Day
The Fifth Element
Waterloo
The Hunchback of Notre Dame
Munich
Program:
function: Find
inputs: Weimar Republic
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Waterloo
function: And
dependencies: 1
2
function: Find
inputs: Daniel Craig
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Munich
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Waterloo" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Weimar Republic" .   } UNION { ?e <pred:name> "Munich" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Daniel Craig" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Munich