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