Question: Which one, Men in Black II or Bel Ami (the one whose production company is Magnolia Pictures), has a longer duration?
Choices:
Talk to Her
Men in Black II
Bel Ami
Training Day
Curse of the Golden Flower
Pleasantville
The Fifth Element
The Hunchback of Notre Dame
A Prairie Home Companion
Rebecca
Program:
function: Find
inputs: Men in Black II
function: Find
inputs: Magnolia Pictures
function: Relate
dependencies: 1
inputs: production company
backward
function: Find
inputs: Bel Ami
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Men in Black II" .  } UNION { ?e <pred:name> "Bel Ami" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Magnolia Pictures" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bel Ami