Question: Which one, The Turning Point (the one whose distributor is Paramount Pictures) or Oscar (the one that has Marisa Tomei as a cast member), has greater duration?
Choices:
The Towering Inferno
The Turning Point
Pleasantville
Oscar
Curse of the Golden Flower
Rebecca
The Fifth Element
A Prairie Home Companion
Talk to Her
The Hunchback of Notre Dame
Answer: Oscar
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Turning Point" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" .   } UNION { ?e <pred:name> "Oscar" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Marisa Tomei" .  } ?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: The Turning Point
function: And
dependencies: 1
2
function: Find
inputs: Marisa Tomei
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Oscar
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater