Question: Which movie is shorter, Batman & Robin (the one whose script is wrote by Akiva Goldsman) or Crazy, Stupid, Love?
Choices:
Crazy, Stupid, Love.
A Prairie Home Companion
Batman & Robin
Talk to Her
The Towering Inferno
Training Day
The Hunchback of Notre Dame
Rebecca
Pleasantville
Curse of the Golden Flower
Program:
function: Find
inputs: Akiva Goldsman
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Batman & Robin
function: And
dependencies: 1
2
function: Find
inputs: Crazy, Stupid, Love.
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Batman & Robin" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Akiva Goldsman" .   } UNION { ?e <pred:name> "Crazy, Stupid, Love." .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Crazy, Stupid, Love.