Question: Does The Three Musketeers (whose distributor is 20th Century Fox) or Montana (that has Robbie Coltrane as a cast member) have the longer runtime?
Choices:
Talk to Her
Pleasantville
Curse of the Golden Flower
Rebecca
The Hunchback of Notre Dame
Training Day
The Towering Inferno
The Fifth Element
A Prairie Home Companion
Montana
Program:
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 1
2
function: Find
inputs: Robbie Coltrane
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Montana
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Three Musketeers" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "20th Century Fox" .   } UNION { ?e <pred:name> "Montana" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Robbie Coltrane" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Montana