Question: Which has a greater duration, Beasts of the Southern Wild or The Host (whose genre is adventure film)?
Choices:
Curse of the Golden Flower
The Fifth Element
The Towering Inferno
A Prairie Home Companion
Beasts of the Southern Wild
The Host
Training Day
Pleasantville
Rebecca
Talk to Her
Answer: The Host
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Beasts of the Southern Wild" .  } UNION { ?e <pred:name> "The Host" . ?e <genre> ?e_1 . ?e_1 <pred:name> "adventure film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Beasts of the Southern Wild
function: Find
inputs: adventure film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: The Host
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater