Question: Which movie is longer, I Heart Huckabees or Rear Window (the one whose distributor is American Broadcasting Company)?
Choices:
Curse of the Golden Flower
Rear Window
The Towering Inferno
Training Day
Rebecca
A Prairie Home Companion
Talk to Her
I Heart Huckabees
Pleasantville
The Hunchback of Notre Dame
Program:
function: Find
inputs: I Heart Huckabees
function: Find
inputs: American Broadcasting Company
function: Relate
dependencies: 1
inputs: distributor
backward
function: Find
inputs: Rear Window
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "I Heart Huckabees" .  } UNION { ?e <pred:name> "Rear Window" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "American Broadcasting Company" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: I Heart Huckabees