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