Question: Which movie is longer, Enron: The Smartest Guys in the Room or Thunder Bay (the one whose director of photography is William H. Daniels)?
Choices:
Thunder Bay
Talk to Her
Enron: The Smartest Guys in the Room
Rebecca
The Hunchback of Notre Dame
Curse of the Golden Flower
The Fifth Element
A Prairie Home Companion
The Towering Inferno
Training Day
Answer: Enron: The Smartest Guys in the Room
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Enron: The Smartest Guys in the Room" .  } UNION { ?e <pred:name> "Thunder Bay" . ?e <director_of_photography> ?e_1 . ?e_1 <pred:name> "William H. Daniels" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Enron: The Smartest Guys in the Room
function: Find
inputs: William H. Daniels
function: Relate
dependencies: 1
inputs: director of photography
backward
function: Find
inputs: Thunder Bay
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater