Question: Does Brooklyn (whose genre is drama film) or G.I. Joe: Retaliation have the longer running time?
Choices:
The Hunchback of Notre Dame
Pleasantville
Training Day
The Towering Inferno
G.I. Joe: Retaliation
Curse of the Golden Flower
A Prairie Home Companion
Rebecca
Talk to Her
The Fifth Element
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Brooklyn
function: And
dependencies: 1
2
function: Find
inputs: G.I. Joe: Retaliation
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brooklyn" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" .   } UNION { ?e <pred:name> "G.I. Joe: Retaliation" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: G.I. Joe: Retaliation