Question: Tell me the one with a longer duration, Step Brothers or Paul (which has Relativity Media as as a production company)
Choices:
Talk to Her
Rebecca
The Hunchback of Notre Dame
Paul
Training Day
Step Brothers
The Fifth Element
Pleasantville
Curse of the Golden Flower
A Prairie Home Companion
Program:
function: Find
inputs: Step Brothers
function: Find
inputs: Relativity Media
function: Relate
dependencies: 1
inputs: production company
backward
function: Find
inputs: Paul
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Step Brothers" .  } UNION { ?e <pred:name> "Paul" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Relativity Media" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Step Brothers