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