Question: Which movie is longer, Elektra (the one whose production company is Regency Enterprises) or Labyrinth (the one whose duration is 187 minute)?
Choices:
Shackleton
The Challenge
All Quiet on the Western Front
Elektra
The Music Man
The Late Shift
A Streetcar Named Desire
The Three Musketeers
The Goodbye Girl
Labyrinth
Answer: Labyrinth
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Elektra" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Regency Enterprises" . } UNION { ?e <pred:name> "Labyrinth" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "187"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Regency Enterprises
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Elektra
function: And
dependencies: 1
2
function: Find
inputs: Labyrinth
function: FilterNum
dependencies: 4
inputs: duration
187 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater