Question: Among the animated film containing Shrek with a children number of 3, which one has the least box office?
Choices: Shrek
Peter Pan
Aladdin
Renaissance
Shrek 2
The Rescuers
Winnie the Pooh
Shrek the Third
Beauty and the Beast
WALL·E
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated feature film" . ?e_1 <present_in_work> ?e . ?e_1 <pred:name> "Shrek" . ?e_1 <number_of_children> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3"^^xsd:double . ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Shrek
function: FilterNum
dependencies: 0
inputs: number of children
3
=
function: Relate
dependencies: 1
inputs: present in work
forward
function: FilterConcept
dependencies: 2
inputs: animated feature film
function: SelectAmong
dependencies: 3
inputs: box office
smallest
Answer: Shrek