Question: Which one, The Three Musketeers (the one that has Don Ameche as a cast member) or Get Smart (the one whose composer is Trevor Rabin), has greater duration?
Choices:
Talk to Her
Pleasantville
Rebecca
A Prairie Home Companion
The Three Musketeers
The Fifth Element
The Towering Inferno
Training Day
Get Smart
The Hunchback of Notre Dame
Answer: Get Smart
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Three Musketeers" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Don Ameche" .   } UNION { ?e <pred:name> "Get Smart" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Trevor Rabin" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Don Ameche
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 1
2
function: Find
inputs: Trevor Rabin
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: Get Smart
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater