Question: Among the animated film whose director is Joseph Barbera, which one has the largest duration ?
Choices:
A Christmas Carol
The Bodyguard
Anastasia
Code Geass
Superman
The Polar Express
The Three Musketeers
Magic Knight Rayearth
My-HiME
Wonder Woman
Program:
function: Find
inputs: Joseph Barbera
function: Relate
dependencies: 0
inputs: director
backward
function: FilterConcept
dependencies: 1
inputs: animated film
function: SelectAmong
dependencies: 2
inputs: duration
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated film" . ?e <director> ?e_1 . ?e_1 <pred:name> "Joseph Barbera" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Three Musketeers