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