Question: Which is shorter, Murder on the Orient Express (the one that has Tony Walton as a costume designer) or The Wings of the Dove (the one that origins from United States of America)?
Choices:
Talk to Her
A Prairie Home Companion
Training Day
The Towering Inferno
Pleasantville
Curse of the Golden Flower
The Wings of the Dove
Rebecca
The Fifth Element
The Hunchback of Notre Dame
Program:
function: Find
inputs: Tony Walton
function: Relate
dependencies: 0
inputs: costume designer
backward
function: Find
inputs: Murder on the Orient Express
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: country of origin
backward
function: Find
inputs: The Wings of the Dove
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Murder on the Orient Express" . ?e <costume_designer> ?e_1 . ?e_1 <pred:name> "Tony Walton" .   } UNION { ?e <pred:name> "The Wings of the Dove" . ?e <country_of_origin> ?e_2 . ?e_2 <pred:name> "United States of America" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Wings of the Dove