Question: Which movie is shorter, Milk (the one whose producer is Bruce Cohen) or Howard the Duck (the one whose narrative location is Ohio)?
Choices:
Howard the Duck
The Fifth Element
Milk
The Towering Inferno
A Prairie Home Companion
Pleasantville
Rebecca
The Hunchback of Notre Dame
Talk to Her
Training Day
Answer: Howard the Duck
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Milk" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Bruce Cohen" .   } UNION { ?e <pred:name> "Howard the Duck" . ?e <narrative_location> ?e_2 . ?e_2 <pred:name> "Ohio" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Bruce Cohen
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Milk
function: And
dependencies: 1
2
function: Find
inputs: Ohio
function: Relate
dependencies: 4
inputs: narrative location
backward
function: Find
inputs: Howard the Duck
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less