Question: Which has a longer duration, Dutch which originates from the United States of America, or Children of Men?
Choices:
Pleasantville
Rebecca
The Hunchback of Notre Dame
The Fifth Element
The Towering Inferno
Children of Men
Talk to Her
Dutch
A Prairie Home Companion
Curse of the Golden Flower
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Dutch
function: And
dependencies: 1
2
function: Find
inputs: Children of Men
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dutch" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Children of Men" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dutch