Question: Which is longer, drama film Detroit or Out of Sight produced by Barry Sonnenfeld?
Choices:
The Fifth Element
Talk to Her
Rebecca
Detroit
Curse of the Golden Flower
The Hunchback of Notre Dame
A Prairie Home Companion
Out of Sight
Training Day
The Towering Inferno
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Detroit
function: And
dependencies: 1
2
function: Find
inputs: Barry Sonnenfeld
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: Out of Sight
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Detroit" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } UNION { ?e <pred:name> "Out of Sight" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Barry Sonnenfeld" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Detroit