Question: Which is longer, the action film Hercules or Night at the Museum: Battle of the Smithsonian (the one that has Jonah Hill as a cast member)?
Choices:
Night at the Museum: Battle of the Smithsonian
Talk to Her
Curse of the Golden Flower
The Fifth Element
Rebecca
Training Day
Pleasantville
The Towering Inferno
The Hunchback of Notre Dame
Hercules
Answer: Night at the Museum: Battle of the Smithsonian
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hercules" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" .   } UNION { ?e <pred:name> "Night at the Museum: Battle of the Smithsonian" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Jonah Hill" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: action film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Hercules
function: And
dependencies: 1
2
function: Find
inputs: Jonah Hill
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Night at the Museum: Battle of the Smithsonian
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater