Question: Which movie is shorter, Taxi Driver (the one that origins from United States of America) or A Beautiful Mind?
Choices:
Taxi Driver
Pleasantville
Talk to Her
The Fifth Element
The Hunchback of Notre Dame
Training Day
A Prairie Home Companion
Curse of the Golden Flower
Rebecca
A Beautiful Mind
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Taxi Driver
function: And
dependencies: 1
2
function: Find
inputs: A Beautiful Mind
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Taxi Driver" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "A Beautiful Mind" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Taxi Driver