Question: Does Milan, with composer Laxmikant-Pyarelal, or The Da Vinci Code, with Tom Hanks in its cast, have the longer running time?
Choices:
A Prairie Home Companion
The Hunchback of Notre Dame
Rebecca
Talk to Her
Pleasantville
The Towering Inferno
The Da Vinci Code
Training Day
Milan
The Fifth Element
Answer: Milan
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Milan" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Laxmikant-Pyarelal" .   } UNION { ?e <pred:name> "The Da Vinci Code" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Tom Hanks" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Laxmikant-Pyarelal
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Milan
function: And
dependencies: 1
2
function: Find
inputs: Tom Hanks
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Da Vinci Code
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater