Question: What is the one with the larger duration, In the Name of the King or The Phantom (which was produced by Paramount Pictures)
Choices:
In the Name of the King
The Towering Inferno
Rebecca
A Prairie Home Companion
Curse of the Golden Flower
Pleasantville
Talk to Her
The Fifth Element
The Hunchback of Notre Dame
Training Day
Program:
function: Find
inputs: In the Name of the King
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 1
inputs: production company
backward
function: Find
inputs: The Phantom
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "In the Name of the King" .  } UNION { ?e <pred:name> "The Phantom" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: In the Name of the King