Question: Which movie is longer, Ghostbusters (the one that has Brian Baumgartner as a cast member) or I, Robot (the one whose release region is United States of America)?
Choices:
The Hunchback of Notre Dame
The Fifth Element
The Towering Inferno
Rebecca
Talk to Her
Ghostbusters
Curse of the Golden Flower
A Prairie Home Companion
I, Robot
Pleasantville
Answer: Ghostbusters
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ghostbusters" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Brian Baumgartner" .   } UNION { ?e <pred:name> "I, Robot" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "United States of America" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Brian Baumgartner
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Ghostbusters
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: I, Robot
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater