Question: Does Robot (that has Marco Beltrami as a performer) or Psycho (that has William H. Macy as a cast member) have the longer running time?
Choices:
I, Robot
The Hunchback of Notre Dame
The Towering Inferno
Talk to Her
A Prairie Home Companion
Training Day
The Fifth Element
Curse of the Golden Flower
Rebecca
Psycho
Program:
function: Find
inputs: Marco Beltrami
function: Relate
dependencies: 0
inputs: performer
backward
function: Find
inputs: I, Robot
function: And
dependencies: 1
2
function: Find
inputs: William H. Macy
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Psycho
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "I, Robot" . ?e <performer> ?e_1 . ?e_1 <pred:name> "Marco Beltrami" .   } UNION { ?e <pred:name> "Psycho" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "William H. Macy" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: I, Robot