Question: Which is longer, Emma (distributed by Metro-Goldwyn-Mayer) or Into the West (produced by Miramax)?
Choices:
A Prairie Home Companion
The Fifth Element
Emma
Into the West
The Hunchback of Notre Dame
The Towering Inferno
Talk to Her
Curse of the Golden Flower
Pleasantville
Rebecca
Answer: Into the West
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Emma" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Metro-Goldwyn-Mayer" .   } UNION { ?e <pred:name> "Into the West" . ?e <production_company> ?e_2 . ?e_2 <pred:name> "Miramax" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Metro-Goldwyn-Mayer
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Emma
function: And
dependencies: 1
2
function: Find
inputs: Miramax
function: Relate
dependencies: 4
inputs: production company
backward
function: Find
inputs: Into the West
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater