Question: Which was longer, Georgia (the one that origins from United States of America) or Selma (the one that origins from United Kingdom)?
Choices:
Georgia
The Fifth Element
Training Day
Selma
The Towering Inferno
A Prairie Home Companion
Rebecca
Pleasantville
Talk to Her
The Hunchback of Notre Dame
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: United Kingdom
function: Relate
dependencies: 4
inputs: country of origin
backward
function: Find
inputs: Selma
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
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> "Selma" . ?e <country_of_origin> ?e_2 . ?e_2 <pred:name> "United Kingdom" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Selma