Question: Tell me the one with the larger duration, Going My Way (which is in the drama film genre) or Maid in Manhattan.
Choices:
The Fifth Element
Pleasantville
A Prairie Home Companion
Going My Way
Curse of the Golden Flower
Maid in Manhattan
Rebecca
Training Day
Talk to Her
The Hunchback of Notre Dame
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Going My Way
function: And
dependencies: 1
2
function: Find
inputs: Maid in Manhattan
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Going My Way" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } UNION { ?e <pred:name> "Maid in Manhattan" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Going My Way