Question: Which is the shortest among the feature films written by C. S. Lewis?
Choices:
The Chronicles of Narnia: The Lion, the Witch and the Wardrobe
Alvin and the Chipmunks: Chipwrecked
The Chronicles of Narnia: Prince Caspian
National Treasure: Book of Secrets
John Carter
The Muppets
Holes
Old Dogs
G-Force
The Flintstones
Program:
function: Find
inputs: C. S. Lewis
function: Relate
dependencies: 0
inputs: after a work by
backward
function: FilterConcept
dependencies: 1
inputs: feature film
function: SelectAmong
dependencies: 2
inputs: duration
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "feature film" . ?e <after_a_work_by> ?e_1 . ?e_1 <pred:name> "C. S. Lewis" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Chronicles of Narnia: Prince Caspian