Question: Which is longer, Gigli or Batman produced by 20th Century Fox?
Choices:
Training Day
Gigli
Curse of the Golden Flower
Talk to Her
The Fifth Element
Batman
The Towering Inferno
Pleasantville
Rebecca
A Prairie Home Companion
Program:
function: Find
inputs: Gigli
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 1
inputs: production company
backward
function: Find
inputs: Batman
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gigli" .  } UNION { ?e <pred:name> "Batman" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Gigli