Question: Which is shorter, the action film Daredevil or War and Peace with Audrey Hepburn?
Choices:
A Prairie Home Companion
Curse of the Golden Flower
Talk to Her
Rebecca
Pleasantville
War and Peace
Daredevil
The Hunchback of Notre Dame
The Towering Inferno
Training Day
Program:
function: Find
inputs: action film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Daredevil
function: And
dependencies: 1
2
function: Find
inputs: Audrey Hepburn
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: War and Peace
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Daredevil" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" .   } UNION { ?e <pred:name> "War and Peace" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Audrey Hepburn" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Daredevil