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