Question: Which has a greater duration, V for Vendetta (which has Eddie Marsan as a cast member) or Poltergeist (whose duration is 93 minutes)?
Choices:
Curse of the Golden Flower
Talk to Her
The Towering Inferno
Training Day
The Hunchback of Notre Dame
A Prairie Home Companion
The Fifth Element
V for Vendetta
Poltergeist
Rebecca
Answer: V for Vendetta
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "V for Vendetta" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Eddie Marsan" . } UNION { ?e <pred:name> "Poltergeist" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "93"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Eddie Marsan
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: V for Vendetta
function: And
dependencies: 1
2
function: Find
inputs: Poltergeist
function: FilterNum
dependencies: 4
inputs: duration
93 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater