Question: Which movie is longer, Jackass: The Movie or Brooklyn (the one that was nominated for Academy Award for Best Actress)?
Choices:
Curse of the Golden Flower
Jackass: The Movie
Brooklyn
Rebecca
Talk to Her
Pleasantville
A Prairie Home Companion
Training Day
The Hunchback of Notre Dame
The Fifth Element
Program:
function: Find
inputs: Jackass: The Movie
function: Find
inputs: Academy Award for Best Actress
function: Relate
dependencies: 1
inputs: nominated for
backward
function: Find
inputs: Brooklyn
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jackass: The Movie" .  } UNION { ?e <pred:name> "Brooklyn" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Actress" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Brooklyn