Question: Which has a lesser duration, Savannah (whose title is Savannah) or The Invasion?
Choices:
The Towering Inferno
Rebecca
Training Day
Curse of the Golden Flower
Talk to Her
Savannah
A Prairie Home Companion
The Fifth Element
Pleasantville
The Invasion
Program:
function: Find
inputs: Savannah
function: FilterStr
dependencies: 0
inputs: title
Savannah
function: Find
inputs: The Invasion
function: SelectBetween
dependencies: 1
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Savannah" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Savannah" . } UNION { ?e <pred:name> "The Invasion" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Invasion