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