Question: Is the duration greater for Oasis (the one whose exploitation visa number is 16101) or Twilight (the one whose director is Robert Benton)?
Choices:
Rebecca
Pleasantville
Curse of the Golden Flower
Talk to Her
The Towering Inferno
The Hunchback of Notre Dame
A Prairie Home Companion
Oasis
Twilight
Training Day
Answer: Oasis
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Oasis" . ?e <exploitation_visa_number> ?pv_1 . ?pv_1 <pred:value> "16101" . } UNION { ?e <pred:name> "Twilight" . ?e <director> ?e_1 . ?e_1 <pred:name> "Robert Benton" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Oasis
function: FilterStr
dependencies: 0
inputs: exploitation visa number
16101
function: Find
inputs: Robert Benton
function: Relate
dependencies: 2
inputs: director
backward
function: Find
inputs: Twilight
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater