Question: Which is shorter between, I Know Who Killed Me or the black and white version of Paris?
Choices:
Hamlet
The Last of the Mohicans
Earth
The Scarlet Letter
I Know Who Killed Me
Little Women
Paris
The Hunchback of Notre Dame
Pleasantville
A Prairie Home Companion
Program:
function: Find
inputs: I Know Who Killed Me
function: Find
inputs: black-and-white
function: Relate
dependencies: 1
inputs: color
backward
function: Find
inputs: Paris
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "I Know Who Killed Me" .  } UNION { ?e <pred:name> "Paris" . ?e <color> ?e_1 . ?e_1 <pred:name> "black-and-white" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Paris