Question: Which movie is longer, Marie Antoinette (the one whose production company is Columbia Pictures) or When in Rome (the one whose composer is Christopher Young)?
Choices:
When in Rome
The Fifth Element
The Hunchback of Notre Dame
Rebecca
Marie Antoinette
Pleasantville
Talk to Her
Curse of the Golden Flower
Training Day
A Prairie Home Companion
Answer: Marie Antoinette
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Marie Antoinette" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Columbia Pictures" .   } UNION { ?e <pred:name> "When in Rome" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Christopher Young" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Columbia Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Marie Antoinette
function: And
dependencies: 1
2
function: Find
inputs: Christopher Young
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: When in Rome
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater