Question: Which movie is longer, Peter Pan (the one whose distributor is Paramount Pictures) or Enid (the one whose title is Enid)?
Choices: Training Day
Talk to Her
A Prairie Home Companion
Peter Pan
Curse of the Golden Flower
The Towering Inferno
Pleasantville
The Hunchback of Notre Dame
Enid
The Fifth Element
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Peter Pan" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" . } UNION { ?e <pred:name> "Enid" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Enid" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Peter Pan
function: And
dependencies: 1
2
function: Find
inputs: Enid
function: FilterStr
dependencies: 4
inputs: title
Enid
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: Peter Pan