Question: Which movie is longer, Tomorrow Never Dies (the one that is shot in Germany) or Oklahoma! (the one whose genre is musical film)?
Choices: Talk to Her
Rebecca
Oklahoma!
The Hunchback of Notre Dame
The Fifth Element
Pleasantville
The Towering Inferno
A Prairie Home Companion
Curse of the Golden Flower
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tomorrow Never Dies" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Germany" .   } UNION { ?e <pred:name> "Oklahoma!" . ?e <genre> ?e_2 . ?e_2 <pred:name> "musical film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Tomorrow Never Dies
function: And
dependencies: 1
2
function: Find
inputs: musical film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Oklahoma!
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Oklahoma!