Question: Which film has the longer runtime, Transformers (with Shia LaBeouf as a cast member) or Singapore (with Ava Gardner as a cast member)?
Choices:
A Prairie Home Companion
The Fifth Element
Training Day
Transformers
Pleasantville
Singapore
The Hunchback of Notre Dame
Curse of the Golden Flower
Talk to Her
Rebecca
Answer: Transformers
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Transformers" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Shia LaBeouf" .   } UNION { ?e <pred:name> "Singapore" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Ava Gardner" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Shia LaBeouf
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Transformers
function: And
dependencies: 1
2
function: Find
inputs: Ava Gardner
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Singapore
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater