demo how to map and reduce lazy evaluated active record scopes