Question: Which one, Priest (the one whose distributor is Miramax) or Ben-Hur (the one whose distributor is Paramount Pictures), has greater duration?
Choices:
The Hunchback of Notre Dame
Priest
A Prairie Home Companion
Talk to Her
Ben-Hur
The Towering Inferno
The Fifth Element
Curse of the Golden Flower
Rebecca
Pleasantville
Answer: Ben-Hur
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Priest" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Miramax" .   } UNION { ?e <pred:name> "Ben-Hur" . ?e <distributor> ?e_2 . ?e_2 <pred:name> "Paramount Pictures" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Miramax
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Priest
function: And
dependencies: 1
2
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 4
inputs: distributor
backward
function: Find
inputs: Ben-Hur
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater