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