Question: Which movie is longer, That's My Boy (the one whose director of photography is Lee Garmes) or When in Rome (the one whose producer is Mary-Kate Olsen)?
Choices:
That's My Boy
A Prairie Home Companion
The Hunchback of Notre Dame
The Fifth Element
Training Day
Pleasantville
The Towering Inferno
Rebecca
Curse of the Golden Flower
Talk to Her
Program:
function: Find
inputs: Lee Garmes
function: Relate
dependencies: 0
inputs: director of photography
backward
function: Find
inputs: That's My Boy
function: And
dependencies: 1
2
function: Find
inputs: Mary-Kate Olsen
function: Relate
dependencies: 4
inputs: producer
backward
function: Find
inputs: When in Rome
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "That's My Boy" . ?e <director_of_photography> ?e_1 . ?e_1 <pred:name> "Lee Garmes" .   } UNION { ?e <pred:name> "When in Rome" . ?e <producer> ?e_2 . ?e_2 <pred:name> "Mary-Kate Olsen" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: That's My Boy