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