Question: Which is longer, Tehran that origins from the U.K. or The Faculty?
Choices:
A Prairie Home Companion
Tehran
Talk to Her
The Hunchback of Notre Dame
The Towering Inferno
Rebecca
Pleasantville
The Fifth Element
Training Day
The Faculty
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Tehran
function: And
dependencies: 1
2
function: Find
inputs: The Faculty
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tehran" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United Kingdom" .   } UNION { ?e <pred:name> "The Faculty" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Faculty