Question: Which is the longest among the animated feature films that come from the USA?
Choices:
The Lord of the Rings
The Rescuers
Up
Madagascar
Ice Age
Peter Pan
Hercules
Tarzan
Ratatouille
The Simpsons Movie
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: FilterConcept
dependencies: 1
inputs: animated feature film
function: SelectAmong
dependencies: 2
inputs: duration
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated feature film" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Lord of the Rings