Question: Which one has less term, Eragon (the one whose class is activity film) or The World Isn't Sufficient (the one that has Denise Richards as a cast member)
Choices:
Pleasantville
The Hunchback of Notre Dame
The Towering Inferno
Curse of the Golden Flower
Talk to Her
Eragon
Training Day
The World Is Not Enough
Rebecca
The Fifth Element
Program:
function: Find
inputs: action film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Eragon
function: And
dependencies: 1
2
function: Find
inputs: Denise Richards
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The World Is Not Enough
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Eragon" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" .   } UNION { ?e <pred:name> "The World Is Not Enough" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Denise Richards" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Eragon