Question: Which has a longer length, Phoenix (Jeremy Piven as a cast member) or Immortals?
Choices:
Rebecca
Talk to Her
The Fifth Element
Immortals
Training Day
The Hunchback of Notre Dame
Phoenix
A Prairie Home Companion
The Towering Inferno
Curse of the Golden Flower
Program:
function: Find
inputs: Jeremy Piven
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Phoenix
function: And
dependencies: 1
2
function: Find
inputs: Immortals
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Phoenix" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jeremy Piven" .   } UNION { ?e <pred:name> "Immortals" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Immortals