Question: Which has greater duration, The Thin Red Line (which has Keir Dullea as a cast member) or Eragon (which has origins from United Kingdom)?
Choices:
Rebecca
Training Day
Pleasantville
The Towering Inferno
The Thin Red Line
A Prairie Home Companion
Eragon
Curse of the Golden Flower
Talk to Her
The Fifth Element
Answer: Eragon
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Thin Red Line" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Keir Dullea" .   } UNION { ?e <pred:name> "Eragon" . ?e <country_of_origin> ?e_2 . ?e_2 <pred:name> "United Kingdom" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Keir Dullea
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Thin Red Line
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: Relate
dependencies: 4
inputs: country of origin
backward
function: Find
inputs: Eragon
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater