Question: Which is longer, The Expendables or November starring Courteney Cox?
Choices:
Talk to Her
Training Day
The Hunchback of Notre Dame
Pleasantville
The Towering Inferno
Curse of the Golden Flower
A Prairie Home Companion
November
Rebecca
The Expendables
Program:
function: Find
inputs: The Expendables
function: Find
inputs: Courteney Cox
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: November
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Expendables" .  } UNION { ?e <pred:name> "November" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Courteney Cox" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Expendables