Question: Which movie is longer, The Three Musketeers (the one that has Christopher Lee as a cast member) or Jerusalem (the one whose original language is Swedish)?
Choices:
The Towering Inferno
Pleasantville
The Fifth Element
Training Day
Talk to Her
A Prairie Home Companion
Rebecca
Curse of the Golden Flower
Jerusalem
The Three Musketeers
Answer: Jerusalem
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Three Musketeers" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Christopher Lee" .   } UNION { ?e <pred:name> "Jerusalem" . ?e <original_language_of_film_or_TV_show> ?e_2 . ?e_2 <pred:name> "Swedish" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Christopher Lee
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 1
2
function: Find
inputs: Swedish
function: Relate
dependencies: 4
inputs: original language of film or TV show
backward
function: Find
inputs: Jerusalem
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater