Question: Which is longer, Pinocchio, which won an Academy Award for Best Original Score or A Bug's Life, which was directed by John Lasseter?
Choices:
Winnie the Pooh
Shrek 2
Aladdin
Lilo & Stitch
Beauty and the Beast
The Rescuers
A Bug's Life
WALL·E
Renaissance
Peter Pan
Program:
function: Find
inputs: Academy Award for Best Original Score
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: Pinocchio
function: And
dependencies: 1
2
function: Find
inputs: John Lasseter
function: Relate
dependencies: 4
inputs: director
backward
function: Find
inputs: A Bug's Life
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pinocchio" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Original Score" .   } UNION { ?e <pred:name> "A Bug's Life" . ?e <director> ?e_2 . ?e_2 <pred:name> "John Lasseter" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: A Bug's Life