Question: Which movie is longer, Wonder Woman (the one whose producer is Bruce Timm) or In the Bedroom?
Choices:
The Towering Inferno
Training Day
Wonder Woman
A Prairie Home Companion
In the Bedroom
Rebecca
The Fifth Element
Curse of the Golden Flower
Talk to Her
The Hunchback of Notre Dame
Program:
function: Find
inputs: Bruce Timm
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Wonder Woman
function: And
dependencies: 1
2
function: Find
inputs: In the Bedroom
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wonder Woman" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Bruce Timm" .   } UNION { ?e <pred:name> "In the Bedroom" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: In the Bedroom