Database
[{createdAt:"1",counts:[0,200,100]},{createdAt:"2",counts:[200,500,0]},{createdAt:"3",counts:[0,1100,100]}]
Query
db.collection.aggregate([{"$project":{"counts":1,"createdAt":1,"totalCounts":{"$sum":"$counts"}}},{"$match":{"totalCounts":{"$gte":400,"$lte":1300}}}])