Question: Which movie is longer, Into the Wild (the one that has Jena Malone as a cast member) or Giant (the one that was nominated for Academy Award for Best Supporting Actress)?
Choices:
Training Day
Into the Wild
Giant
Talk to Her
Rebecca
Curse of the Golden Flower
The Fifth Element
The Hunchback of Notre Dame
Pleasantville
The Towering Inferno
Program:
function: Find
inputs: Jena Malone
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Into the Wild
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Supporting Actress
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Giant
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Into the Wild" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jena Malone" .   } UNION { ?e <pred:name> "Giant" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Supporting Actress" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Giant