Example of selecting subset, conditioned on values