Question: Which movie is shorter, The Haunting (the one that origins from United Kingdom) or Iron Man 2 (the one whose codename is Rasputin)?
Choices:
The Fifth Element
Talk to Her
The Hunchback of Notre Dame
The Towering Inferno
Rebecca
Pleasantville
The Haunting
Iron Man 2
Training Day
Curse of the Golden Flower
Answer: The Haunting
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Haunting" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United Kingdom" . } UNION { ?e <pred:name> "Iron Man 2" . ?e <codename> ?pv_1 . ?pv_1 <pred:value> "Rasputin" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: The Haunting
function: And
dependencies: 1
2
function: Find
inputs: Iron Man 2
function: FilterStr
dependencies: 4
inputs: codename
Rasputin
function: SelectBetween
dependencies: 3
5
inputs: duration
less