Question: Which one is longer, Alice (the one whose duration is 86 minutes) or Harry Potter and the Prisoner of Azkaban (the one that has Michael Gambon as a cast member)   ?
Choices:
Harry Potter and the Prisoner of Azkaban
G-Force
The Flintstones
The Muppets
National Treasure: Book of Secrets
John Carter
Holes
Alvin and the Chipmunks: Chipwrecked
The Flintstones in Viva Rock Vegas
Alice
Program:
function: Find
inputs: Alice
function: FilterNum
dependencies: 0
inputs: duration
86 minute
=
function: Find
inputs: Michael Gambon
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Prisoner of Azkaban
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alice" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "86"^^xsd:double . } UNION { ?e <pred:name> "Harry Potter and the Prisoner of Azkaban" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Michael Gambon" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Harry Potter and the Prisoner of Azkaban