Compositional upscaling for individual models and ensembles of realizations