Question: Which movie is shorter, Carrie (the one that has Judy Greer as a cast member) or The Tourist?
Choices:
The Hunchback of Notre Dame
The Tourist
Rebecca
The Fifth Element
Talk to Her
Curse of the Golden Flower
Carrie
The Towering Inferno
Training Day
Pleasantville
Program:
function: Find
inputs: Judy Greer
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Carrie
function: And
dependencies: 1
2
function: Find
inputs: The Tourist
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carrie" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Judy Greer" .   } UNION { ?e <pred:name> "The Tourist" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Carrie