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